Difference between revisions of "Monster level adjustment"

From Kolmafia
Jump to navigation Jump to search
imported>Zarqon
m (cleaned up code)
imported>Zarqon
m
Line 1: Line 1:
'''monster_level_adjustment()'''<br />
+
'''monster_level_adjustment()'''
  
Returns your current +ML, including any MCDs.
+
Returns your current +ML, including your mind-control device if applicable.
  
 
Example:
 
Example:
 
<code>
 
<code>
   [[comments|# Script that tries to figure out if it's better to use Volley or Brero]]
+
   [[comments|# Function that tries to figure out if it's better to use Volley or Brero]]
 
   [[comments|# for a certain area's ML (assuming that your volley and 'brero are both 20 lbs.)]]
 
   [[comments|# for a certain area's ML (assuming that your volley and 'brero are both 20 lbs.)]]
 
    
 
    

Revision as of 15:17, 3 October 2009

monster_level_adjustment()

Returns your current +ML, including your mind-control device if applicable.

Example:

 # Function that tries to figure out if it's better to use Volley or Brero
 # for a certain area's ML (assuming that your volley and 'brero are both 20 lbs.)
 
 boolean better_to_use_brero(int ml_being_tested) {
    return ((ml_being_tested + monster_level_adjustment()) >= 85);
 }