Stat bonus tomorrow

From Kolmafia
Revision as of 12:23, 1 March 2010 by imported>Grotfang (moved Stat bonus tomorrow() to Stat bonus tomorrow: Conformity)
Jump to navigation Jump to search

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].

The following function returns true if tomorrow will be a stat day benefitting your primary stat.

 boolean my_statday_tomorrow() {
   return (stat_bonus_tomorrow() == my_primestat());
 }

When not logged in, this function returns $stat[none] or behaves normally (needs spading).