Difference between revisions of "Monster level adjustment"

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
imported>Grotfang
Line 17: Line 17:
 
code1={{CodeSample|
 
code1={{CodeSample|
 
title=Code Samples|
 
title=Code Samples|
description=Checks to see if you should use a level 20 sombrero for a monster of level 60.|
+
description=Checks to see if you should use a level 20 sombrero over a volleyball for a monster of level 60.|
 
code=
 
code=
 
<syntaxhighlight>
 
<syntaxhighlight>

Revision as of 00:02, 1 March 2010



Function Syntax

int monster_level_adjustment()

Returns the cumulative total of all monster level adjustments from equipment, effects and area modifiers.

Code Samples

Checks to see if you should use a level 20 sombrero over a volleyball for a monster of level 60.

boolean better_to_use_brero() {
   int test = 60 + monster_level_adjustment();
   if(test >= 85) {
      return true;
   }
   return false;
}

See Also

current_mcd() | change_mcd()

Special

Return 0 when not logged in.