A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/living/query_wc


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:


This page was generated in LPC

Imprint / Impressum