summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-12 17:53:23 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-12 17:53:23 +0000
commit7b83fd125f30d8479760be243d6c8cc83438b622 (patch)
tree1c2bc1d39f856f70ef8f2c72331895650452fe08 /crawl-ref
parente8db28371cb0baab1b48f02b94d7dbfb1b6790bc (diff)
downloadcrawl-ref-7b83fd125f30d8479760be243d6c8cc83438b622.tar.gz
crawl-ref-7b83fd125f30d8479760be243d6c8cc83438b622.zip
Players can use upward escape hatches even if beyond the burden limits for normal stairs.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3258 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/misc.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index b6df1ef8d5..e710a5ac3a 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -683,7 +683,8 @@ void up_stairs(dungeon_feature_type force_stair,
return;
}
- if (you.burden_state == BS_OVERLOADED)
+ if (you.burden_state == BS_OVERLOADED
+ && !grid_is_rock_stair(stair_find))
{
mpr("You are carrying too much to climb upwards.");
you.turn_is_over = true;
@@ -808,7 +809,7 @@ void up_stairs(dungeon_feature_type force_stair,
// Left Zot without enough runes to get back in (probably because
// of dropping some runes within Zot), but need to get back in Zot
- // to get the Orb? Zom finds that funny.
+ // to get the Orb? Xom finds that funny.
if (stair_find == DNGN_RETURN_FROM_ZOT
&& branches[BRANCH_HALL_OF_ZOT].branch_flags & BFLAG_HAS_ORB)
{
@@ -1136,8 +1137,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
if (!player_is_airborne()
&& you.duration[DUR_CONF]
- && (stair_find >= DNGN_STONE_STAIRS_DOWN_I
- && stair_find <= DNGN_STONE_STAIRS_DOWN_III)
+ && !grid_is_rock_stair(stair_find)
&& random2(100) > you.dex)
{
mpr("In your confused state, you trip and fall down the stairs.");