Difference between revisions of "Weapon type"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '{{#vardefine:name|weapon_type}} {{#vardefine:return_type|stat}} {{FunctionPage| name={{#var:name}}| function_category=Equipment| function1={{Function| name={{#var:name}}| aggre…')
 
imported>Heeheehee
Line 23: Line 23:
 
}}
 
}}
 
{{RFI|I could swear the other day this misreported $stat[Mysticality] for a few weapons that used to use Myst but no longer do; was this fixed, or am I just nuts?}}
 
{{RFI|I could swear the other day this misreported $stat[Mysticality] for a few weapons that used to use Myst but no longer do; was this fixed, or am I just nuts?}}
 +
Protip: utensils require myst to equip, as well. --[[User:Heeheehee|Heeheehee]] 17:50, 6 March 2010 (UTC)

Revision as of 17:50, 6 March 2010



needs(code_samples);

Function Syntax

stat weapon_type(item check_me )

  • check_me is the item to check

Returns the stat used to calculate to-hit percentage with check_me. If check_me is not a weapon, this function returns $stat[none].

See Also

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).


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:

  • I could swear the other day this misreported $stat[Mysticality] for a few weapons that used to use Myst but no longer do; was this fixed, or am I just nuts?

Protip: utensils require myst to equip, as well. --Heeheehee 17:50, 6 March 2010 (UTC)