My fullness

From Kolmafia
Revision as of 06:44, 29 January 2009 by imported>Zarqon (added example)
Jump to navigation Jump to search

int my_fullness()

Returns the logged-in character's current fullness as an int. This can be used in tandem with fullness_limit() to eat as much of something as possible:

 if (my_fullness() < (fullness_limit()-2))
   eat(floor((fullness_limit()-my_fullness()) / 3), $item[peach pie]);

When not logged in, this function returns 0.