Difference between revisions of "Stat bonus tomorrow"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>Bale
m
 
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Your Character|
 
  
 
function1={{Function|
 
function1={{Function|
Line 33: Line 32:
 
special=When not logged in, this function returns $stat[none].
 
special=When not logged in, this function returns $stat[none].
 
}}
 
}}
 +
 +
[[Category:Your Character]]

Latest revision as of 21:37, 21 May 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

my_primestat() | stat_bonus_today()

Special

When not logged in, this function returns $stat[none].