Stat bonus tomorrow: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang Conform to template |
imported>StDoodle mNo edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:name|stat_bonus_tomorrow}} | {{ | ||
{{#vardefine:return_type|stat}} | #vardefine:name|stat_bonus_tomorrow}}{{ | ||
#vardefine:return_type|stat}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function_category=Your Character| | function_category=Your Character| |
Revision as of 15:12, 8 March 2010
Function Syntax
stat stat_bonus_tomorrow()
Returns the stat that will benefit from the moon phases tomorrow. If it will be an "ordinary" day (no stat benefits), the return value is $stat[none].
Code Samples
The following function checks to see if tomorrow will be a stat day benefiting your primary stat.
boolean my_statday_tomorrow() {
if(stat_bonus_tomorrow() == my_primestat()) {
return true;
}
return false;
}
See Also
Special
When not logged in, this function returns $stat[none].