summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-29 00:54:15 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-29 00:54:15 +0000
commit86bae0c1a3a28bc81c0fb66576e63c0a965c292c (patch)
tree360f93338d3a9978c03842451c494765f221d471 /crawl-ref/source/misc.cc
parent4df1ff7d51ee4c57b53af69e9f5e7db3ee72ab1a (diff)
downloadcrawl-ref-86bae0c1a3a28bc81c0fb66576e63c0a965c292c.tar.gz
crawl-ref-86bae0c1a3a28bc81c0fb66576e63c0a965c292c.zip
Prevent shafts from being created in corridors, at least until
around dungeon level 7. Rename ROCK_STAIRS to ESCAPE_HATCH, as well as the corresponding function, since I think that the escape hatches are such a cool concept that we won't be going back, and the current coding name is a bit confusing. Clean up dungeon.cc. I'll probably have to add stuff into our new conventions file as I've been making up a lot of new rules in trying to make the code more readable. (Rules concerning nested brackets, and function indentation, etc.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3927 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index dadab0955a..0f8ec8a42b 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -645,7 +645,7 @@ void merfolk_start_swimming(void)
static void exit_stair_message(dungeon_feature_type stair, bool /* going_up */)
{
- if (grid_is_rock_stair(stair))
+ if (grid_is_escape_hatch(stair))
mpr("The hatch slams shut behind you.");
}
@@ -657,7 +657,7 @@ static void climb_message(dungeon_feature_type stair, bool going_up,
if (grid_is_portal(stair))
mpr("The world spins around you as you enter the gateway.");
- else if (grid_is_rock_stair(stair))
+ else if (grid_is_escape_hatch(stair))
{
if (going_up)
mpr("A mysterious force pulls you upwards.");
@@ -806,7 +806,7 @@ void up_stairs(dungeon_feature_type force_stair,
}
if (you.burden_state == BS_OVERLOADED
- && !grid_is_rock_stair(stair_find))
+ && !grid_is_escape_hatch(stair_find))
{
mpr("You are carrying too much to climb upwards.");
you.turn_is_over = true;
@@ -1045,7 +1045,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
}
if (stair_find >= DNGN_ENTER_LABYRINTH
- && stair_find <= DNGN_ROCK_STAIRS_DOWN
+ && stair_find <= DNGN_ESCAPE_HATCH_DOWN
&& player_in_branch( BRANCH_VESTIBULE_OF_HELL ))
{
mpr("A mysterious force prevents you from descending the staircase.");
@@ -1260,7 +1260,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
if (!player_is_airborne()
&& you.duration[DUR_CONF]
- && !grid_is_rock_stair(stair_find)
+ && !grid_is_escape_hatch(stair_find)
&& random2(100) > you.dex)
{
mpr("In your confused state, you trip and fall down the stairs.");
@@ -1288,7 +1288,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
stair_taken = DNGN_TRANSIT_PANDEMONIUM;
if (shaft)
- stair_taken = DNGN_ROCK_STAIRS_DOWN;
+ stair_taken = DNGN_ESCAPE_HATCH_DOWN;
switch (you.level_type)
{