diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-02 21:27:30 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-02 21:28:52 -0600 |
commit | b02230ce497f96dbb7fdf3975e7b38b3dd3ce3a0 (patch) | |
tree | d2c7314deb4519789a101957d140c82a349dce80 /crawl-ref/source/mon-act.cc | |
parent | e181fa40e7cbb65b803f221e234776d893c535a5 (diff) | |
download | crawl-ref-b02230ce497f96dbb7fdf3975e7b38b3dd3ce3a0.tar.gz crawl-ref-b02230ce497f96dbb7fdf3975e7b38b3dd3ce3a0.zip |
Apply n78291's patch in [2891024] to fix Jiyva's piety gain.
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r-- | crawl-ref/source/mon-act.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc index 4a67c4d57c..4ed2fe4afa 100644 --- a/crawl-ref/source/mon-act.cc +++ b/crawl-ref/source/mon-act.cc @@ -2231,10 +2231,15 @@ static bool _monster_eat_item(monsters *monster, bool nearby) for (int m = 0; m < quantity; ++m) { - if (x_chance_in_y(value / 2 + 1, 30 + you.piety / 4)) + if (x_chance_in_y(value / 4 + 1, 30 + you.piety / 4)) { if (timeout <= 0) - pg += random2(item_value(*si) / 6); + { + if (value < 100) + pg += random2(item_value(*si) / 5); + else + pg += random2(item_value(*si) / 30); + } else timeout -= value / 5; } @@ -2270,7 +2275,7 @@ static bool _monster_eat_item(monsters *monster, bool nearby) if (success) { - timeout = (100 + roll_dice(2, 4)); + timeout = (700 + roll_dice(2, 4)); you.num_gifts[you.religion]++; take_note(Note(NOTE_GOD_GIFT, you.religion)); } |