Monster level adjustment: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
No edit summary
imported>StDoodle
mNo edit summary
Line 1: Line 1:
{{#vardefine:name|monster_level_adjustment}}
{{
{{#vardefine:return_type|int}}
#vardefine:name|monster_level_adjustment}}{{
#vardefine:return_type|int}}{{


{{FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Your Character|
function_category=Your Character|

Revision as of 15:11, 8 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.