summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-stats.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-25 15:06:53 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-25 15:09:53 +0200
commit0929d457a0a34038d548be3dfc5d94119f86f6a8 (patch)
treea91fb4d32553f3e641eb1507cfb54bd3d00a2f14 /crawl-ref/source/player-stats.cc
parentaa88e2029d8802a6f40daf78b441bc023bb216c7 (diff)
downloadcrawl-ref-0929d457a0a34038d548be3dfc5d94119f86f6a8.tar.gz
crawl-ref-0929d457a0a34038d548be3dfc5d94119f86f6a8.zip
Don't let Jiyva permanently drain stats if one reaches 72.
Diffstat (limited to 'crawl-ref/source/player-stats.cc')
-rw-r--r--crawl-ref/source/player-stats.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/player-stats.cc b/crawl-ref/source/player-stats.cc
index 91c7fd8e2e..a33992bf19 100644
--- a/crawl-ref/source/player-stats.cc
+++ b/crawl-ref/source/player-stats.cc
@@ -205,7 +205,8 @@ void jiyva_stat_action()
for (int y = 0; y < 3; ++y)
{
if (x != y && cur_stat[y] > 1
- && target_stat[x] - cur_stat[x] > target_stat[y] - cur_stat[y])
+ && target_stat[x] - cur_stat[x] > target_stat[y] - cur_stat[y]
+ && cur_stat[x] < 72)
{
choices++;
if (one_chance_in(choices))