Turns played: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
Created page with '{{ #vardefine:name|turns_played}}{{ #vardefine:return_type|int}}{{ FunctionPage| name={{#var:name}}| function_category=Your Character| function1={{Function| name={{#var:name}}|…'
 
imported>Bale
Answered RFI
Line 14: Line 14:
}}|
}}|


function_description=This function returns the total number of adventures used thus far by the logged-in character during the current ascension.|
function_description=This function returns the total number of adventures used thus far by the logged-in character during the current ascension.</p>
<p>This exactly duplicates the function [[my_turncount|my_turncount()]]. Indications are that it was added as part at attempt to support semirare counters, but nothing ever came of it. Oops. <span class="plainlinks">[http://kolmafia.us/showthread.php?4061 Discussion here]</span>.|


needscode=yes|
needscode=yes|
Line 21: Line 22:
special=When not logged in, this function returns 0.
special=When not logged in, this function returns 0.
}}
}}
{{RFI|Is there any reason for the duplicated functionality?|Should this function return total turns played (ever) instead?}}

Revision as of 07:40, 28 April 2010

needs(code_samples);

Function Syntax

int turns_played()

This function returns the total number of adventures used thus far by the logged-in character during the current ascension.

This exactly duplicates the function my_turncount(). Indications are that it was added as part at attempt to support semirare counters, but nothing ever came of it. Oops. Discussion here.

See Also

my_turncount()

Special

When not logged in, this function returns 0.