Difference between revisions of "My spleen use"
Jump to navigation
Jump to search
imported>StDoodle m (moved My spleen use() to My spleen use: standards) |
imported>StDoodle |
||
Line 1: | Line 1: | ||
− | + | {{#vardefine:name|my_spleen_use}} | |
+ | {{#vardefine:return_type|int}} | ||
− | Returns the | + | {{FunctionPage| |
+ | name={{#var:name}}| | ||
+ | function_category=Your Character| | ||
+ | |||
+ | function1={{Function| | ||
+ | name={{#var:name}}| | ||
+ | aggregate={{#var:aggregate}}| | ||
+ | return_type={{#var:return_type}}| | ||
+ | return_also={{#var:return_also}}| | ||
+ | }}| | ||
+ | |||
+ | function_description=Returns the number of spleen hits your character has taken this KoL day.| | ||
+ | |||
+ | code1={{CodeSample| | ||
+ | title=Code Sample| | ||
+ | description=Buy and use twinkly wads as many times as possible.| | ||
+ | code= | ||
+ | <syntaxhighlight> | ||
+ | while (my_spleen_use() < spleen_limit()) { | ||
+ | retrieve_item(1 , $item[twinkly wad]); | ||
+ | use(1 , $item[twinkly wad]); | ||
+ | } | ||
+ | </syntaxhighlight>}}| | ||
+ | |||
+ | see_also={{SeeAlso|spleen_limit|retrieve_item|use}}| | ||
+ | }} |
Revision as of 20:15, 28 February 2010
Function Syntax
int my_spleen_use()
Returns the number of spleen hits your character has taken this KoL day.
Code Sample
Buy and use twinkly wads as many times as possible.
while (my_spleen_use() < spleen_limit()) {
retrieve_item(1 , $item[twinkly wad]);
use(1 , $item[twinkly wad]);
}
See Also