summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-18 16:51:50 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-18 23:52:19 +0100
commitad2ab460048119f15ece7a885098426c2b5e7b33 (patch)
tree6c60b36c7f786e252f91ca2e84df63a5e3542108 /crawl-ref/source/xom.cc
parenta515e3fef2cb3582e90959c15f89d4d25043cb67 (diff)
downloadcrawl-ref-ad2ab460048119f15ece7a885098426c2b5e7b33.tar.gz
crawl-ref-ad2ab460048119f15ece7a885098426c2b5e7b33.zip
Under Xom's penance, don't limit number of hostile demons summoned.
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index cb12146d07..5b0ee4b460 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -3202,9 +3202,12 @@ static int _xom_summon_hostiles(int sever, bool debug = false)
numdemons = std::min(numdemons + 1, 14);
// Limit number of demons by experience level.
- const int maxdemons = (you.max_level * 2);
- if (numdemons > maxdemons)
- numdemons = maxdemons;
+ if (!you.penance[GOD_XOM])
+ {
+ const int maxdemons = (you.max_level * 2);
+ if (numdemons > maxdemons)
+ numdemons = maxdemons;
+ }
int num_summoned = 0;
for (int i = 0; i < numdemons; ++i)