summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-10-23 22:27:12 +0200
committerAdam Borowski <kilobyte@angband.pl>2009-10-23 22:27:12 +0200
commita918fa5811087dade5c8bbe4836882cdbd63ef65 (patch)
tree39c1bed3227b4c8ccdfbe84317e3e2d7f6dbae5f /crawl-ref
parent8cc7f8f9a7940798f851d0e6b06195858589159d (diff)
downloadcrawl-ref-a918fa5811087dade5c8bbe4836882cdbd63ef65.tar.gz
crawl-ref-a918fa5811087dade5c8bbe4836882cdbd63ef65.zip
Sync Cb's Slow Biology effects with announcements.
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/effects.cc2
-rw-r--r--crawl-ref/source/player.cc6
2 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 65245158fa..347cd130ed 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -3624,7 +3624,7 @@ void handle_time(long time_delta)
// not actually do anything.
if (one_chance_in(30)
&& !(you.religion == GOD_CHEIBRIADOS
- && piety_rank(you.piety) >= 1
+ && you.piety >= piety_breakpoint(1)
&& coinflip()))
{
mpr("Your disease is taking its toll.", MSGCH_WARN);
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 377c3f5752..e74c72aecd 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -1200,7 +1200,7 @@ int player_hunger_rate(void)
// If Cheibriados has slowed your life processes, there's a
// chance you'll hunger a bit less.
if (GOD_CHEIBRIADOS == you.religion
- && piety_rank(you.piety) >= 1
+ && you.piety >= piety_breakpoint(1)
&& coinflip())
hunger--;
@@ -5297,7 +5297,7 @@ void dec_poison_player()
// chance that your poison level is simply unaffected and
// you aren't hurt by poison.
if (GOD_CHEIBRIADOS == you.religion
- && piety_rank(you.piety) >= 1
+ && you.piety >= piety_breakpoint(1)
&& coinflip())
return;
@@ -5568,7 +5568,7 @@ void dec_disease_player()
// If Cheibriados has slowed your life processes, there's a
// chance that your disease level is unaffected.
if (GOD_CHEIBRIADOS == you.religion
- && piety_rank(you.piety) >= 1
+ && you.piety >= piety_breakpoint(1)
&& coinflip())
{
return;