Monster level adjustment: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>MapleMario
No edit summary
imported>Zarqon
mNo edit summary
Line 1: Line 1:
'''monster_level_adjustment()'''<br />
'''monster_level_adjustment()'''<br />
Returns your current +ML, including any MCDs.
Returns your current +ML, including any MCDs.


Example:
Example:
<p><pre># Script that tries to figure out if it's better to use Volley or Brero
<code>
# for a certain area's ML (assuming that your volley and 'brero are both 20 lbs.)
  [[comments|# Script 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.)]]
boolean better_to_use_brero(int ml_being_tested)
 
{
  [[boolean]] better_to_use_brero([[int]] ml_being_tested) {
 
    [[int]] ml_modifier = [[monster_level_adjustment()]];
  int ml_modifier = monster_level_adjustment();
    if ((ml_being_tested + ml_modifier) >= 85) [[return]] true;
  if ((ml_being_tested + ml_modifier) >= 85) return true;
    [[return]] false;
  return false;
  }
 
</code>
}</pre></p>

Revision as of 15:13, 3 October 2009

monster_level_adjustment()

Returns your current +ML, including any MCDs.

Example:

 # Script 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) {
    int ml_modifier = monster_level_adjustment();
    if ((ml_being_tested + ml_modifier) >= 85) return true;
    return false;
 }