summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-24 14:21:21 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-24 14:21:21 +0000
commit2ef3e8a632f7c0220649c43daa20aeefaf9bebcb (patch)
treebff9d5f8f2ef1ded8d42b69744fe1febe5d82f8c
parent1fb4f68676ed0afedf72126362d791aaffd5c251 (diff)
downloadcrawl-ref-2ef3e8a632f7c0220649c43daa20aeefaf9bebcb.tar.gz
crawl-ref-2ef3e8a632f7c0220649c43daa20aeefaf9bebcb.zip
Cap Sif Muna piety to prevent wraparound.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@492 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/religion.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 805c652d77..403bbf06fd 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1390,7 +1390,8 @@ void gain_piety(char pgn)
{
// Sif Muna has a gentler taper off because training because
// naturally slower as the player gains in spell skills.
- if (you.piety > 150 && one_chance_in(5))
+ if ((you.piety > 220) ||
+ (you.piety > 150 && one_chance_in(5)))
return;
}