diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-17 00:12:35 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-17 00:12:35 +0000 |
commit | 3451d72641c72712d00e3584a68903a5b8d06128 (patch) | |
tree | 23ab823964ad7ed30de54af8ec01a3d16e31bf76 /crawl-ref/source/religion.cc | |
parent | 23805e86071f29c889ca943dac0c0586fb5a9494 (diff) | |
download | crawl-ref-3451d72641c72712d00e3584a68903a5b8d06128.tar.gz crawl-ref-3451d72641c72712d00e3584a68903a5b8d06128.zip |
Replace hardcoded piety value with piety_breakpoint(0).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9783 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index cf5d8aa06e..1a0b16f64c 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -3874,7 +3874,7 @@ static bool _destroyed_valuable_weapon(int value, int type) // Medium valuable items are more likely to net piety at low piety. // This includes missiles in sufficiently large quantities. if (random2(value) >= random2(100) - && one_chance_in(1 + you.piety/50)) + && one_chance_in(1 + you.piety / 50)) { return (true); } @@ -3884,7 +3884,7 @@ static bool _destroyed_valuable_weapon(int value, int type) return (false); // Weapons, on the other hand, are always acceptable to boost low piety. - if (you.piety < 30 || player_under_penance()) + if (you.piety < piety_breakpoint(0) || player_under_penance()) return (true); return (false); @@ -3914,7 +3914,7 @@ bool ely_destroy_weapons() continue; } - const int value = item_value( item, true ); + const int value = item_value(item, true); #ifdef DEBUG_DIAGNOSTICS mprf(MSGCH_DIAGNOSTICS, "Destroyed weapon value: %d", value); #endif |