Stat bonus today

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

stat stat_bonus_today()

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

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]);
 }

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