From 3451d72641c72712d00e3584a68903a5b8d06128 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 17 May 2009 00:12:35 +0000 Subject: 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 --- crawl-ref/source/religion.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/religion.cc') 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 -- cgit v1.2.3-54-g00ecf