summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-06 21:27:59 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-06 21:29:09 -0600
commit889a46f0ec75b8b3fad729248ceab78e50c6a853 (patch)
tree68b6692ede51940c69117d67de54268c54917423
parentbe871d682e8087ab38c5e9e054190daf6f81fff2 (diff)
downloadcrawl-ref-889a46f0ec75b8b3fad729248ceab78e50c6a853.tar.gz
crawl-ref-889a46f0ec75b8b3fad729248ceab78e50c6a853.zip
Simplify the formula for Jiyva-worshipping players' royal jelly spawns.
-rw-r--r--crawl-ref/source/ouch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index f8cc5d73f9..507a57e837 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -919,12 +919,12 @@ static void _maybe_spawn_jellies(int dam, const char* aux,
if (you.religion == GOD_JIYVA && you.piety > 160 && ptr == NULL)
{
int how_many = 0;
- if (dam >= you.hp_max * 0.75)
+ if (dam >= you.hp_max * 3 / 4)
how_many = random2(4) + 2;
else if (dam >= you.hp_max / 2)
how_many = random2(2) + 2;
else if (dam >= you.hp_max / 4)
- how_many = random2(1) + 1;
+ how_many = 1;
if (how_many > 0)
{