[quote=“Coolthulhu, post:2, topic:10929”]player::exclusive_flag_coverage does that for the entire body at once (returns a bitset).
You can use it like:
const auto coverage = g->u.exclusive_flag_coverage( "FLAG_HERE" );
bool torso_covered = coverage[bp_torso];
It would be quite easy to copy it and simplify the copy to just return “false” if any item without flag exists a given body part (or set of body parts).[/quote]
Thanks, took some time and a bunch of fiddling since this is my first time doing this, but I’ve got it compiled and working.