Difference between revisions of "Weapon type"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>PhilmASTErpLus
(A few tests (Gnollish pie server, eggbeater, etc) tell me that weapons without stat requirements still yield stats based on their type (melee/ranged/mysticality weapon))
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:name|weapon_type}}
+
{{
{{#vardefine:return_type|stat}}
+
#vardefine:name|weapon_type}}{{
 +
#vardefine:return_type|stat}}{{
  
{{FunctionPage|
+
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Equipment|
 
  
 
function1={{Function|
 
function1={{Function|
Line 15: Line 15:
 
}}|
 
}}|
  
function_description=Returns the equip requirement stat for {{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}}, even if the weapon does not have any stat requirements. If {{pspan|check_me}} is not a weapon, this function returns $stat[none].|
  
 
needscode=yes|
 
needscode=yes|
Line 21: Line 21:
 
see_also={{SeeAlso|weapon_hands}}|
 
see_also={{SeeAlso|weapon_hands}}|
 
}}
 
}}
{{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?}}
+
 
 +
[[Category:Equipment]]

Latest revision as of 02:17, 23 August 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, even if the weapon does not have any stat requirements. If check_me is not a weapon, this function returns $stat[none].

See Also

weapon_hands()