diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-27 08:39:37 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-27 08:39:37 +0000 |
commit | 962e0244aac6795b08d6106fdf4751fd5cb8f780 (patch) | |
tree | 4a89d110ac4b1b3fcf5a2712d89d7b677b263c68 /crawl-ref/source/player.cc | |
parent | 4784d40f57682c0d960f382d5b975e13cf0326a4 (diff) | |
download | crawl-ref-962e0244aac6795b08d6106fdf4751fd5cb8f780.tar.gz crawl-ref-962e0244aac6795b08d6106fdf4751fd5cb8f780.zip |
[1873415] Weaken chain paralysis.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3344 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 0b69753383..d8ecc86e4d 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6157,14 +6157,16 @@ void player::confuse(int str) void player::paralyse(int str) { + int ¶lysis(duration[DUR_PARALYSIS]); + mprf( "You %s the ability to move!", - (duration[DUR_PARALYSIS]) ? "still haven't" : "suddenly lose" ); + paralysis ? "still haven't" : "suddenly lose" ); - if (str > duration[DUR_PARALYSIS]) - duration[DUR_PARALYSIS] = str; + if (str > paralysis && (paralysis < 3 || one_chance_in(paralysis))) + paralysis = str; - if (duration[DUR_PARALYSIS] > 13) - duration[DUR_PARALYSIS] = 13; + if (paralysis > 13) + paralysis = 13; } void player::slow_down(int str) |