Change mcd

From Kolmafia
Revision as of 06:08, 30 January 2009 by imported>Zarqon (created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

boolean change_mcd( int level )

Attempts to change your mind-control device (MCD) to the specified level, returning true if successful. Attempting to change the MCD to an impossible number will generate this abort error: "The dial only goes from 0 to 10." (11 for mysticality signs)

The following function attempts to set your MCD to the maximum, returning true if successful.

 boolean mcd_max() {
   int maxmcd = 10;
   if (in_mysticality_sign()) maxmcd = 11;
   if (current_mcd() == maxmcd) return true;
   print("Adjusting MCD to "+maxmcd+"...","olive");
   return change_mcd(maxmcd);
 }

When not logged in, this function returns false.