From cea2f935d230e87f6df3d14907cc2f16a264235f Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 13 Nov 2009 16:39:02 +0100 Subject: Allow monsters to gain experience in the arena. --- crawl-ref/source/mon-stuff.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/mon-stuff.cc') 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; -- cgit v1.2.3-54-g00ecf