Stat bonus today

From Kolmafia
Revision as of 15:12, 8 March 2010 by imported>StDoodle
Jump to navigation Jump to search

Function Syntax

stat stat_bonus_today()

Returns the stat that is benefited by the moon phases today. If it is an "ordinary" day (no stat benefits), the return value is $stat[none].

Code Samples

This example attempts to eat some food giving moxie substats if today is a moxie day.

if(stat_bonus_today() == $stat[moxie]) {
   eat(3 , $item[rat appendix chow mein]);
}

See Also

stat_bonus_tomorrow() | my_primestat()

Special

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