diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-04-06 01:00:06 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-04-06 01:00:06 -0400 |
commit | 63a232999fb6433f0ccbc20a88680cff18a2db57 (patch) | |
tree | 01e0d56485d749ab6fe52dcddf9c651e86607fe8 /crawl-ref/source/misc.cc | |
parent | 2d7d1c5946cf378a1ecd2de0086ccab400ff3d99 (diff) | |
download | crawl-ref-63a232999fb6433f0ccbc20a88680cff18a2db57.tar.gz crawl-ref-63a232999fb6433f0ccbc20a88680cff18a2db57.zip |
Remove scrambling.
It was something that was almost never relevant but that cluttered
up the code regardless. If it were to be more relevant that would
not really be a good thing since a chance for instadeath is rather
bad design.
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index f3b826626b..65aa48a442 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -1295,19 +1295,6 @@ string weird_sound() return getMiscString("sound_name"); } -bool scramble(void) -{ - ASSERT(!crawl_state.game_is_arena()); - - // Statues are too stiff and heavy to scramble out of the water. - if (you.form == TRAN_STATUE || you.cannot_move()) - return false; - - const int max_carry = carrying_capacity(); - // When highly encumbered, scrambling out is hard to do. - return you.burden < (max_carry / 2) + random2(max_carry / 2); -} - /** * Make the player go berserk! * @param intentional If true, this was initiated by the player, and additional @@ -2503,7 +2490,7 @@ void swap_with_monster(monster* mon_to_swap) } // Move you to its previous location. - move_player_to_grid(newpos, false, true); + move_player_to_grid(newpos, false); if (mon_caught) { |