summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-transloc.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-05-07 02:14:14 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-05-07 02:18:20 -0400
commit1566fb85ff91066d71043124c87f0629061537b5 (patch)
treeb59c2608b04802460a0d1754cc28cf95588fe5fb /crawl-ref/source/spl-transloc.cc
parent925f14e1ba68c38f6e2392324c53f1db9c13db55 (diff)
downloadcrawl-ref-1566fb85ff91066d71043124c87f0629061537b5.tar.gz
crawl-ref-1566fb85ff91066d71043124c87f0629061537b5.zip
Freely allow blinking in the Abyss.
This conditional hadn't been changed since blinking in the Abyss was changed to cause a blink to occur. Random blinking seems like just the chaotic thing that fits in well with the chaotic theme of the place, and it can take the buff.
Diffstat (limited to 'crawl-ref/source/spl-transloc.cc')
-rw-r--r--crawl-ref/source/spl-transloc.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/crawl-ref/source/spl-transloc.cc b/crawl-ref/source/spl-transloc.cc
index e3f428e76b..956df30bec 100644
--- a/crawl-ref/source/spl-transloc.cc
+++ b/crawl-ref/source/spl-transloc.cc
@@ -48,12 +48,6 @@
#include "viewmap.h"
#include "xom.h"
-static bool _abyss_blocks_teleport(bool cblink)
-{
- // Controlled Blink (the spell) works more reliably in the Abyss.
- return cblink ? coinflip() : !one_chance_in(3);
-}
-
// XXX: can miscast before cancelling.
spret_type cast_controlled_blink(int pow, bool fail)
{
@@ -137,14 +131,6 @@ int blink(int pow, bool high_level_controlled_blink, bool wizard_blink,
mpr(pre_msg->c_str());
canned_msg(MSG_STRANGE_STASIS);
}
- else if (player_in_branch(BRANCH_ABYSS)
- && _abyss_blocks_teleport(high_level_controlled_blink)
- && !wizard_blink)
- {
- if (pre_msg)
- mpr(pre_msg->c_str());
- mpr("The power of the Abyss keeps you in your place!");
- }
else if (you.confused() && !wizard_blink)
{
if (pre_msg)
@@ -305,12 +291,6 @@ void random_blink(bool allow_partial_control, bool override_abyss, bool override
if (you.no_tele(true, true, true) && !override_stasis)
canned_msg(MSG_STRANGE_STASIS);
- else if (player_in_branch(BRANCH_ABYSS)
- && !override_abyss
- && _abyss_blocks_teleport(false))
- {
- mpr("The power of the Abyss keeps you in your place!");
- }
// First try to find a random square not adjacent to the player,
// then one adjacent if that fails.
else if (!random_near_space(&you, you.pos(), target)