summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-11-13 13:01:46 -0800
committerStefan O'Rear <stefanor@cox.net>2009-11-13 13:01:46 -0800
commitb6759039f6283a5576ed7d94bcebd1441db40198 (patch)
treec15ba29988918e3f0c35feda42031e42070a4acb /crawl-ref/source/mon-util.cc
parent2f3076fab0cdb77358d80152803bca36410c3e47 (diff)
downloadcrawl-ref-b6759039f6283a5576ed7d94bcebd1441db40198.tar.gz
crawl-ref-b6759039f6283a5576ed7d94bcebd1441db40198.zip
Excempt Roxanne and ice statues from statuic XP
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index fc33cccc69..ffd589ac25 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -1230,7 +1230,10 @@ int exper_value(const monsters *monster)
if (mons_class_flag(mclass, M_NO_EXP_GAIN))
return (0);
- if (mons_is_statue(mclass))
+ // The beta26 statues have non-spell-like abilities that the experience
+ // code can't see, so inflate their XP a bit. Ice statues and Roxanne
+ // get plenty of XP for their spells.
+ if (mclass == MONS_ORANGE_STATUE || mclass == MONS_SILVER_STATUE)
return (mHD * 15);
x_val = (16 + maxhp) * (mHD * mHD) / 10;