Stat bonus today: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Zarqon
more links, consistent formatting, stub for logged-out info
imported>Grotfang
m moved Stat bonus today() to Stat bonus today: Conformity
(No difference)

Revision as of 12:30, 1 March 2010

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