diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-06 20:47:29 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-06 20:47:29 +0000 |
commit | 7fdcbf5cb01e4bda74932ffd72128522c572574a (patch) | |
tree | 779de3e132557aba521e9c2ff0f86ae158019d44 /crawl-ref/source/religion.cc | |
parent | a42d22746172067e745524f8a0ca455b28fe03fa (diff) | |
download | crawl-ref-7fdcbf5cb01e4bda74932ffd72128522c572574a.tar.gz crawl-ref-7fdcbf5cb01e4bda74932ffd72128522c572574a.zip |
Adjust piety gain for orc corpses yet again. The odds are now:
25% chance of 1 piety gain from an ordinary orc corpse
50% chance of 1 piety gain from an orc priest corpse
75% chance of 1 piety gain from an orc high priest corpse
100% chance of 1 piety gain from Saint Roka's orc corpse
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8936 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 5969bb59dc..ebd9c255b1 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -6232,18 +6232,13 @@ static piety_gain_t _sacrifice_one_item_noncount(const item_def& item) { const int item_orig = item.orig_monnum - 1; - if (coinflip() || mons_class_flag(item_orig, M_PRIEST)) + if (item_orig == MONS_SAINT_ROKA + || (item_orig == ORC_HIGH_PRIEST && !one_chance_in(4)) + || (item_orig == ORC_PRIEST && coinflip()) + || one_chance_in(4)) { - if (item_orig == MONS_SAINT_ROKA) - { - gain_piety(2); - relative_piety_gain = PIETY_LOTS; - } - else - { - gain_piety(1); - relative_piety_gain = PIETY_SOME; - } + gain_piety(1); + relative_piety_gain = PIETY_SOME; } break; } |