Stat bonus today

From Kolmafia
Revision as of 06:19, 30 January 2009 by imported>Zarqon (more links, consistent formatting, stub for logged-out info)
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).