Fullness limit: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
m moved Fullness limit() to Fullness limit: Conformity
imported>Grotfang
No edit summary
Line 1: Line 1:
[[int]] [[fullness_limit()]]
{{#vardefine:name|fullness_limit}}
{{#vardefine:return_type|int}}


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.
{{FunctionPage|
name={{#var:name}}|
function_category=Your Character|


<code>
function1={{Function|
  if ([[my_fullness()]] < [[fullness_limit()]])
name={{#var:name}}|
    if ([[fullness_limit()]] == 15)
aggregate={{#var:aggregate}}|
      [[eat()|eat]](3, $[[item]][hot hi mein]);
return_type={{#var:return_type}}|
    else if (fullness_limit() == 20)
return_also={{#var:return_also}}
      [[eat()|eat]](4, $[[item]][hot hi mein]);
}}|
</code>


[[Category:Your Character | Fullness limit()]]
function_description=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.|
[[Category:Ash Functions | Fullness limit()]]


When not logged in, this function returns 15.
code1={{CodeSample|
title=Code Samples|
description=This example calculates how many hot hi meins it can eat and then eats them.|
code=
<syntaxhighlight>
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]);
  }
}
</syntaxhighlight>
}}|
 
see_also={{SeeAlso|my_fullness|eat}}|
special=When not logged in, this function returns 15.
}}

Revision as of 14:07, 1 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.