is done inside magic_mapping(), which now returns a bool success value. Functionally: this means that the randart magic mapping power can no longer map the Abyss or labyrinths, ditto Map card. We can change this part back if we want.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1851 c06c8d41-db1a-0410-9941-cceddc491573
AMFTO4UE74UYQBU3R2EYUU6BJ7SC4O4NOAFICRTLMT3MIFRQ6AKAC
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: ability - acr - it_use3 - item_use - spell
* *********************************************************************** */
void magic_mapping(int map_radius, int proportion);
bool magic_mapping(int map_radius, int proportion, bool force = false);
if ( (you.level_type == LEVEL_LABYRINTH && you.species != SP_MINOTAUR)
|| you.level_type == LEVEL_ABYSS)
mpr("You feel momentarily disoriented.");
else if (you.level_type == LEVEL_PANDEMONIUM)
if (you.level_type == LEVEL_PANDEMONIUM)
{
if ( (you.level_type == LEVEL_LABYRINTH && you.species != SP_MINOTAUR)
|| you.level_type == LEVEL_ABYSS)
{
id_the_scroll = magic_mapping(50, 90 + random2(11));
if ( id_the_scroll )
mpr("You feel aware of your surroundings.");
else
else if (use < 15
|| (you.level_type == LEVEL_LABYRINTH &&
you.species != SP_MINOTAUR)
|| you.level_type == LEVEL_ABYSS || coinflip())
else if (use < 15 || coinflip())
mpr("You sense your surroundings.");
magic_mapping( 3 + roll_dice( 2, you.skills[SK_EVOCATIONS] ),
40 + roll_dice( 2, you.skills[SK_EVOCATIONS] ) );
if ( magic_mapping( 3 + roll_dice( 2, you.skills[SK_EVOCATIONS]),
40 + roll_dice( 2, you.skills[SK_EVOCATIONS])))
mpr("You sense your surroundings.");
else
mpr("You feel momentarily disoriented.");