Difference between revisions of "Get power"

From Kolmafia
Jump to navigation Jump to search
imported>Slyz
m
imported>Bale
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Item Management|
 
  
 
function1={{Function|
 
function1={{Function|
Line 18: Line 17:
 
function_description=Returns the power of the item {{pspan|it}} or 0 if the item doesn't have a power|
 
function_description=Returns the power of the item {{pspan|it}} or 0 if the item doesn't have a power|
  
 +
needscode=yes|
 
}}
 
}}
 +
 +
[[Category:Item Management]]

Revision as of 21:52, 21 May 2010

needs(code_samples);

Function Syntax

int get_power(item it )

  • it is the item to check for.

Returns the power of the item it or 0 if the item doesn't have a power