Weapon hands: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>Bale
mNo edit summary
Line 5: Line 5:
FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Equipment|


function1={{Function|
function1={{Function|
Line 22: Line 21:
see_also={{SeeAlso|weapon_type}}|
see_also={{SeeAlso|weapon_type}}|
}}
}}
[[Category:Equipment]]

Revision as of 22:11, 21 May 2010

needs(code_samples);

Function Syntax

int weapon_hands(item check_me )

  • check_me is the item to check

Returns the number of hands required for a weapon. Everything else, including off-hand items, returns 0. Note that weapons jokingly labeled as "3-handed" in KoL are actually 2-handed in reality, and will thus return 2.

See Also

weapon_type()