Difference between revisions of "Weapon hands"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '{{#vardefine:name|weapon_hands}} {{#vardefine:return_type|int}} {{FunctionPage| name={{#var:name}}| function_category=| function1={{Function| name={{#var:name}}| aggregate={{#v…')
 
imported>PhilmASTErpLus
(This function returns 3 for 3-handed weapons as of r8607.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:name|weapon_hands}}
+
{{
{{#vardefine:return_type|int}}
+
#vardefine:name|weapon_hands}}{{
 +
#vardefine:return_type|int}}{{
  
{{FunctionPage|
+
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=|
 
  
 
function1={{Function|
 
function1={{Function|
Line 15: Line 15:
 
}}|
 
}}|
  
function_description=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.|
+
function_description=Returns the number of hands required for a weapon. Everything else, including off-hand items, returns 0. Note that while weapons jokingly labeled as "3-handed" in KoL are actually 2-handed in reality, this function will return 3.|
  
 
needscode=yes|
 
needscode=yes|
Line 21: Line 21:
 
see_also={{SeeAlso|weapon_type}}|
 
see_also={{SeeAlso|weapon_type}}|
 
}}
 
}}
 +
 +
[[Category:Equipment]]

Latest revision as of 10:18, 12 September 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 while weapons jokingly labeled as "3-handed" in KoL are actually 2-handed in reality, this function will return 3.

See Also

weapon_type()