Difference between revisions of "Weapon type"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
imported>StDoodle
m
Line 15: Line 15:
 
}}|
 
}}|
  
function_description=Returns the stat used to calculate to-hit percentage with {{pspan|check_me}}. If {{pspan|check_me}} is not a weapon, this function returns $stat[none].|
+
function_description=Returns the equip requirement stat for {{pspan|check_me}}. If {{pspan|check_me}} is not a weapon, this function returns $stat[none].|
  
 
needscode=yes|
 
needscode=yes|
  
 
see_also={{SeeAlso|weapon_hands}}|
 
see_also={{SeeAlso|weapon_hands}}|
special=Note this function returns $stat[Mysticality] for chefstaves (really, you shouldn't be relying on "attack with weapon" if you have one equipped).|
 
 
}}
 
}}
 
{{RFI|This page's info is based on the original description given years ago; is the function actually about stat requirements to equip, and not to-hit at all?}}
 
{{RFI|This page's info is based on the original description given years ago; is the function actually about stat requirements to equip, and not to-hit at all?}}

Revision as of 18:57, 6 March 2010



needs(code_samples);

Function Syntax

stat weapon_type(item check_me )

  • check_me is the item to check

Returns the equip requirement stat for check_me. If check_me is not a weapon, this function returns $stat[none].

See Also

weapon_hands()


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific question has been raised:

  • This page's info is based on the original description given years ago; is the function actually about stat requirements to equip, and not to-hit at all?