diff options
Diffstat (limited to 'crawl-ref/source/mon-stuff.cc')
-rw-r--r-- | crawl-ref/source/mon-stuff.cc | 9 |
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; |