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