git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2078 c06c8d41-db1a-0410-9941-cceddc491573
GZMPIDNMBXZ4B2ZWKREHBPAVN53J6WRVY5W5KY52KEBHKU6IW4IQC id_the_scroll = magic_mapping(50, 90 + random2(11));if ( id_the_scroll )mpr("You feel aware of your surroundings.");
if (you.level_type == LEVEL_PANDEMONIUM){if (!item_type_known(scroll)){mpr("You feel momentarily disoriented.");id_the_scroll = false;}elsempr("Your Earth magic cannot map Pandemonium.");}
if ( magic_mapping( 3 + roll_dice( 2, you.skills[SK_EVOCATIONS]),40 + roll_dice( 2, you.skills[SK_EVOCATIONS])))
case ABIL_MAPPING: // Gnome + sense surrounds mutif (abil.ability == ABIL_MAPPING && you.mutation[MUT_MAPPING] < 3 &&you.level_type == LEVEL_PANDEMONIUM){mpr("You feel momentarily disoriented.");return (false);}power = (abil.ability == ABIL_EVOKE_MAPPING) ?you.skills[SK_EVOCATIONS] : you.experience_level;if ( magic_mapping( 3 + roll_dice( 2,(abil.ability == ABIL_EVOKE_MAPPING) ? power :power + you.mutation[MUT_MAPPING] * 10),40 + roll_dice( 2, power), true) ){