Difference between pages "Is accessible" and "My lightning"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Bale
(r9555)
 
imported>Bale
(r14409)
 
Line 1: Line 1:
 
{{
 
{{
#vardefine:name|is_accessible}}{{
+
#vardefine:name|my_lightning}}{{
#vardefine:return_type|boolean}}{{
+
#vardefine:return_type|int}}{{
  
 
FunctionPage|
 
FunctionPage|
 +
 
name={{#var:name}}|
 
name={{#var:name}}|
  
Line 9: Line 10:
 
name={{#var:name}}|
 
name={{#var:name}}|
 
aggregate={{#var:aggregate}}|
 
aggregate={{#var:aggregate}}|
return_type=boolean|
+
return_type={{#var:return_type}}|
 
return_also={{#var:return_also}}|
 
return_also={{#var:return_also}}|
parameter1={{Param|coinmaster|master}}|
 
p1desc={{pspan|master}} is the coinmaster to purchase from|
 
 
}}|
 
 
function_description=Returns true if {{pspan|master}} is currently available.|
 
 
code1={{CodeSample|
 
title=Code Sample|
 
description=Check if a coinmaster is available and if not, explains why.|
 
code=
 
<syntaxhighlight>
 
boolean check(coinmaster master) {
 
  if(is_accessible(master))
 
      return true;
 
  print(master+ " is not accesible! "
 
      + inaccessible_reason(master));
 
  return false;
 
}
 
</syntaxhighlight>
 
 
}}|
 
}}|
  
see_also={{SeeAlso|inaccessible_reason|sells_item|buys_item}}|
+
function_description=Returns your current bolts of {{kolwiki|Heavy_Rains|Lightning}}.|
 +
see_also={{SeeAlso|my_thunder|my_rain}}|
 +
needscode=yes|
 
}}
 
}}
  
[[Category:Item Management]]
+
[[Category:Your Character]]

Revision as of 04:10, 4 November 2014

needs(code_samples);

Function Syntax

int my_lightning()

Returns your current bolts of Lightning.

See Also

my_thunder() | my_rain()