Lfun: query_wc - return the amount of weapon class of a living Synopsis: int query_wc() Description: The query_wc call returns the amount of weapon class of a living. The weapon class is calculated from the weapon the living is wielding. Return value: A positive integer indicating the weapon class. If no weapon is worn, 0 is returned. Examples: int wc; wc=this_player()->query_wc(); Note: Even if the weapon class of a living is 0, it still hits with WEAPON_CLASS_OF_HANDS as it is defined in /etc/living.h. See also: living/query_weapon, monster/query_def_wc, monster/set_wc, living/query_ac