Difference between revisions of "Stat bonus tomorrow"

From Kolmafia
Jump to navigation Jump to search
imported>ZammyWarrior
imported>Zarqon
(better example, more links, consistent formatting)
Line 1: Line 1:
'''stat stat_bonus_tomorrow()'''<br/>
+
[[stat]] [[stat_bonus_tomorrow()]]
Returns the stat that is benefited by the moon phases today or tomorrow. If it is an “ordinary” day, the return value is $stat[none].
+
 
<pre>if(stat_bonus_tomorrow() == $stat[muscle] && my_adventures() <= 140){
+
Returns the [[stat]] that will benefit from the moon phases tomorrow. If it will be an "ordinary" day (no stat benefits), the return value is $stat[none].
   abort("Stat day tomorrow!!");
+
 
}
+
The following [[function]] returns ''true'' if tomorrow will be a stat day benefitting your primary stat.
</pre>
+
 
 +
<code>
 +
  [[boolean]] my_statday_tomorrow() {
 +
    return ([[stat_bonus_tomorrow()]] == [[my_primestat()]]);
 +
   }
 +
</code>
 
[[Category:Your Character | Stat bonus tomorrow()]]
 
[[Category:Your Character | Stat bonus tomorrow()]]
[[Category:Ash Functions |Stat bonus tomorrow()]]
+
[[Category:Ash Functions | Stat bonus tomorrow()]]
 +
 
 +
When not logged in, this function returns $stat[none] or behaves normally (needs spading).

Revision as of 07:06, 30 January 2009

stat stat_bonus_tomorrow()

Returns the stat that will benefit from the moon phases tomorrow. If it will be an "ordinary" day (no stat benefits), the return value is $stat[none].

The following function returns true if tomorrow will be a stat day benefitting your primary stat.

 boolean my_statday_tomorrow() {
   return (stat_bonus_tomorrow() == my_primestat());
 }

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