From b8ba267261e0586c01fad1c5f280d1fd16cd44ca Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 16 Jan 2008 17:11:06 +0000 Subject: FR 1836617: Add item brand for plants (and mimics) in Tiles. FR 1870291: Give a message when gaining exp for killing monsters outside LOS. (This is something the player can find out by checking their xp pool, anyway, so it's not like it gives anything away. Currently does not happen for pet kills, should it?) Implement 1829910: Make Daevas fully resist negative energy, with the reasoning that TSO will protect them. Also, fix dragon slaying to actually have an effect on draconian players (whoops!) as well as on characters in Dragon Form. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3282 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/monstuff.cc') diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 2f663aeeac..a557e30d41 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -404,7 +404,13 @@ static void give_adjusted_experience(monsters *monster, killer_type killer, if (created_friendly) ; // No experience if monster was created friendly else if (YOU_KILL(killer)) + { + int old_lev = you.experience_level; gain_exp( experience, exp_gain, avail_gain ); + // Give a message for monsters dying out of sight + if (exp_gain > 0 && !mons_near(monster) && you.experience_level == old_lev) + mpr("You feel a bit more experienced."); + } else if (pet_kill) gain_exp( experience / 2 + 1, exp_gain, avail_gain ); @@ -969,7 +975,7 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent) if (monster->type == MONS_SIMULACRUM_SMALL || monster->type == MONS_SIMULACRUM_LARGE) { - simple_monster_message( monster, " vaporises!" ); + simple_monster_message( monster, " vapourises!" ); place_cloud( CLOUD_COLD, monster->x, monster->y, 1 + random2(3), monster->kill_alignment() ); -- cgit v1.2.3-54-g00ecf