summaryrefslogtreecommitdiff
path: root/src/dungeon.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2013-07-15 17:30:16 +0200
committerBardur Arantsson <bardur@scientician.net>2013-08-08 16:33:29 +0200
commit3dfea8f553013c251a60e2f99d5fa3f0ef65fec8 (patch)
tree0f326556c2d384ba279f75cbf67402dcfe2f66ad /src/dungeon.c
parent13503952c8aef44cebd3289a15b9ad2767a3937c (diff)
Rework paralysis to avoid insta-death
Paralysis would mean instant death (even when hit by a lowly floating eye), but this is not really an interesting mechanic. It has been reworked to not be cumulative, such that it isn't a death sentence, but is still very dangerous if the paralyzer is faster than the player.
Diffstat (limited to 'src/dungeon.c')
-rw-r--r--src/dungeon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dungeon.c b/src/dungeon.c
index fdf11b3b..de1a51fe 100644
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -1802,7 +1802,7 @@ static void process_world(void)
disturb(1, 0);
/* Hack -- faint (bypass free action) */
- (void)set_paralyzed(p_ptr->paralyzed + 1 + rand_int(5));
+ (void)set_paralyzed(1 + rand_int(5));
}
}
}
@@ -2266,7 +2266,7 @@ static void process_world(void)
/* Paralysis */
if (p_ptr->paralyzed)
{
- (void)set_paralyzed(p_ptr->paralyzed - 1);
+ dec_paralyzed();
}
/* Confusion */