Difference between revisions of "Monster level adjustment"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>Professorjellybean
m
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Your Character|
 
  
 
function1={{Function|
 
function1={{Function|
Line 23: Line 22:
 
boolean better_to_use_brero() {
 
boolean better_to_use_brero() {
 
   int test = 60 + monster_level_adjustment();
 
   int test = 60 + monster_level_adjustment();
   if(test >= 85) {
+
   return test >= 85;
      return true;
 
  }
 
  return false;
 
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 34: Line 30:
 
special=Return 0 when not logged in.|
 
special=Return 0 when not logged in.|
 
}}
 
}}
 +
 +
[[Category:Your Character]]

Latest revision as of 22:02, 4 April 2016

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();
   return test >= 85;
}

See Also

current_mcd() | change_mcd()

Special

Return 0 when not logged in.