diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2013-05-23 18:35:35 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2013-10-30 21:31:26 -0600 |
commit | 630d5cd27fa467db0cfa8abca8716f5fc92b91d3 (patch) | |
tree | 94ef65b835bc790601698b5fd58ec64baa6d0fdd /crawl-ref/source/stairs.cc | |
parent | 04def9691ecb83211848921f2ff546bc06f9493d (diff) | |
download | crawl-ref-630d5cd27fa467db0cfa8abca8716f5fc92b91d3.tar.gz crawl-ref-630d5cd27fa467db0cfa8abca8716f5fc92b91d3.zip |
Have the Orb not take up an inventory slot.
It still, however, costs 60 aum to carry, and has all of its other
effects.
Diffstat (limited to 'crawl-ref/source/stairs.cc')
-rw-r--r-- | crawl-ref/source/stairs.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/stairs.cc b/crawl-ref/source/stairs.cc index c6b7acfca5..3ca4ef40e7 100644 --- a/crawl-ref/source/stairs.cc +++ b/crawl-ref/source/stairs.cc @@ -401,11 +401,8 @@ void up_stairs(dungeon_feature_type force_stair) you.depth = 0; mpr("You have escaped!"); - for (int i = 0; i < ENDOFPACK; i++) - { - if (you.inv[i].defined() && you.inv[i].base_type == OBJ_ORBS) - ouch(INSTANT_DEATH, NON_MONSTER, KILLED_BY_WINNING); - } + if (player_has_orb()) + ouch(INSTANT_DEATH, NON_MONSTER, KILLED_BY_WINNING); ouch(INSTANT_DEATH, NON_MONSTER, KILLED_BY_LEAVING); } |