Monster level adjustment

From Kolmafia
Revision as of 22:02, 4 April 2016 by imported>Professorjellybean (Return true/return false is bad coding practice, removed)
Jump to navigation Jump to search

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.