summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-18 19:58:02 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-18 19:58:02 +0000
commit77a23de544182bfc1b02c64f5209c60cde1eec25 (patch)
treeece7a8b8408dd2d068da016f50680d58cd2efb48 /crawl-ref/source/acr.cc
parent34ed092618e212e0aa6dd26a499233f566b7f78f (diff)
downloadcrawl-ref-77a23de544182bfc1b02c64f5209c60cde1eec25.tar.gz
crawl-ref-77a23de544182bfc1b02c64f5209c60cde1eec25.zip
Move the HALF_MAX_PIETY define to religion.h, as it's used with Xom in
several places outside xom.cc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9639 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 8d5bf039c1..3951610e5b 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -545,9 +545,9 @@ static void _do_wizard_command(int wiz_command, bool silent_fail)
case 'X':
if (you.religion == GOD_XOM)
- xom_acts(abs(you.piety - 100));
+ xom_acts(abs(you.piety - HALF_MAX_PIETY));
else
- xom_acts(coinflip(), random_range(0, MAX_PIETY/2));
+ xom_acts(coinflip(), random_range(0, HALF_MAX_PIETY));
break;
case 'p':