git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2257 c06c8d41-db1a-0410-9941-cceddc491573
FJ2URTFOTFNB5VZUQMFTO7MMQBBWSOPRY2RE3UG2ZFJYOXBIMC7QC
const std::string what = "Cast into the Abyss" + who_banished(who);
take_note(Note(NOTE_USER_NOTE, 0, 0, what.c_str()), true);
case DNGN_ENTER_ABYSS:
if (you.level_type == LEVEL_ABYSS)
{
mpr("You feel trapped.");
return;
}
cast_into = "the Abyss";
break;
case DNGN_EXIT_ABYSS:
if (you.level_type != LEVEL_ABYSS)
{
mpr("You feel dizzy for a moment.");
return;
}
break;
case DNGN_ENTER_PANDEMONIUM:
if (you.level_type == LEVEL_PANDEMONIUM)
{
mpr("You feel trapped.");
return;
}
cast_into = "Pandemonium";
break;
case DNGN_TRANSIT_PANDEMONIUM:
if (you.level_type != LEVEL_PANDEMONIUM)
{
banished(DNGN_ENTER_PANDEMONIUM, who);
return;
}
break;
case DNGN_EXIT_PANDEMONIUM:
if (you.level_type != LEVEL_PANDEMONIUM)
{
mpr("You feel dizzy for a moment.");
return;
}
break;
case DNGN_ENTER_LABYRINTH:
if (you.level_type == LEVEL_LABYRINTH)
{
mpr("You feel trapped.");
return;
}
cast_into = "a Labyrinth";
break;
case DNGN_ENTER_HELL:
case DNGN_ENTER_DIS:
case DNGN_ENTER_GEHENNA:
case DNGN_ENTER_COCYTUS:
case DNGN_ENTER_TARTARUS:
if (player_in_hell() || player_in_branch(BRANCH_VESTIBULE_OF_HELL))
{
mpr("You feel dizzy for a moment.");
return;
}
cast_into = "Hell";
break;
default:
mprf(MSGCH_DIAGNOSTICS, "Invalid banished() gateway %d",
static_cast<int>(gate_type));
ASSERT(false);