summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-16 17:11:06 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-16 17:11:06 +0000
commitb8ba267261e0586c01fad1c5f280d1fd16cd44ca (patch)
treedad33a9139ffe9c7bba93005f95f053e8a939340 /crawl-ref/source/monstuff.cc
parent5a01c6b4c075124a30e6ede371ba74bc58b504f8 (diff)
downloadcrawl-ref-b8ba267261e0586c01fad1c5f280d1fd16cd44ca.tar.gz
crawl-ref-b8ba267261e0586c01fad1c5f280d1fd16cd44ca.zip
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
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc8
1 files changed, 7 insertions, 1 deletions
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() );