diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-23 21:12:13 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-23 21:12:13 +0000 |
commit | 8cd1ead540d9e49b67d345307a615f586afe5886 (patch) | |
tree | f1d2f4df89e4b3ff5f1b6fc2ad2b72e63d7727a8 /crawl-ref/source/religion.cc | |
parent | 99a2d02f8bedde0f230f404c561a0b5604c64721 (diff) | |
download | crawl-ref-8cd1ead540d9e49b67d345307a615f586afe5886.tar.gz crawl-ref-8cd1ead540d9e49b67d345307a615f586afe5886.zip |
Tweak the chance of gaining piety under Elyvilon by destroying missiles,
since they're worth much less relative to weapons now that their being
stacked doesn't count.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9807 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index bc6affe8eb..b6b0ac392e 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -3871,8 +3871,9 @@ static bool _destroyed_valuable_weapon(int value, int type) if (random2(value) >= random2(250)) return (true); - // Medium valuable items are more likely to net piety at low piety. - if (random2(value) >= random2(100) + // Medium valuable items are more likely to net piety at low piety, + // more so for missiles, since they're worth less as single items. + if (random2(value) >= random2((type == OBJ_MISSILES) ? 33 : 100) && one_chance_in(1 + you.piety / 50)) { return (true); |