summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-stuff.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-13 16:39:02 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-13 16:39:02 +0100
commitcea2f935d230e87f6df3d14907cc2f16a264235f (patch)
treeb6f97cbfdf4c73abe4b076cb1009565980e3c046 /crawl-ref/source/mon-stuff.cc
parent432f4a3b29385564301a99578f3dd0896e9e3b1e (diff)
downloadcrawl-ref-cea2f935d230e87f6df3d14907cc2f16a264235f.tar.gz
crawl-ref-cea2f935d230e87f6df3d14907cc2f16a264235f.zip
Allow monsters to gain experience in the arena.
Diffstat (limited to 'crawl-ref/source/mon-stuff.cc')
-rw-r--r--crawl-ref/source/mon-stuff.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/mon-stuff.cc b/crawl-ref/source/mon-stuff.cc
index c653edd29f..8ba89a64fb 100644
--- a/crawl-ref/source/mon-stuff.cc
+++ b/crawl-ref/source/mon-stuff.cc
@@ -2099,6 +2099,11 @@ int monster_die(monsters *monster, killer_type killer,
corpse = place_monster_corpse(monster, silent);
}
+ unsigned int exp_gain = 0, avail_gain = 0;
+ if (!mons_reset)
+ _give_adjusted_experience(monster, killer, pet_kill, killer_index,
+ &exp_gain, &avail_gain);
+
if (!mons_reset && !crawl_state.arena)
{
you.kills->record_kill(monster, killer, pet_kill);
@@ -2108,10 +2113,6 @@ int monster_die(monsters *monster, killer_type killer,
(pet_kill)? KC_FRIENDLY :
KC_OTHER;
- unsigned int exp_gain = 0, avail_gain = 0;
- _give_adjusted_experience(monster, killer, pet_kill, killer_index,
- &exp_gain, &avail_gain);
-
PlaceInfo& curr_PlaceInfo = you.get_place_info();
PlaceInfo delta;