Difference between revisions of "Fullness limit"

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
imported>StDoodle
m
Line 1: Line 1:
{{#vardefine:name|fullness_limit}}
+
{{
{{#vardefine:return_type|int}}
+
#vardefine:name|fullness_limit}}{{
 +
#vardefine:return_type|int}}{{
  
{{FunctionPage|
+
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
 
function_category=Your Character|
 
function_category=Your Character|

Revision as of 20:11, 8 March 2010

Function Syntax

int fullness_limit()

Returns the logged-in character's maximum fullness level as an int. For most characters, the returned value will be 15. On the Feast of Boris this number is raised by 15. The number is also raised by 5 for characters with Stomach of Steel.

Code Samples

This example calculates how many hot hi meins it can eat and then eats them.

if(my_fullness() < fullness_limit()) {
   if(fullness_limit() == 15) {
      eat(3 , $item[hot hi mein]);
   }
   else if(fullness_limit() == 20) {
      eat(4 , $item[hot hi mein]);
   }
}

See Also

my_fullness() | eat()

Special

When not logged in, this function returns 15.