diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-26 21:37:15 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-26 21:37:15 +0000 |
commit | 9500cfc373e96320602216b95b7bc549b2cf9960 (patch) | |
tree | 3b1102f5b6547d34470703a6db28d3695a15112e /crawl-ref/source/monstuff.cc | |
parent | fe49062ee095d75d7748febde626cb927c9e97fd (diff) | |
download | crawl-ref-9500cfc373e96320602216b95b7bc549b2cf9960.tar.gz crawl-ref-9500cfc373e96320602216b95b7bc549b2cf9960.zip |
Clean up death message handling for killed and abjured simulacra.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4678 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index c8e3c8b05c..3b5e30481c 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -827,6 +827,9 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent) place_cloud(CLOUD_COLD, monster->x, monster->y, 2 + random2(4), monster->kill_alignment()); + + if (killer == KILL_RESET) + killer = KILL_DISMISSED; } else if (monster->type == MONS_DANCING_WEAPON) { @@ -1247,23 +1250,12 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent) { if (mons_weight(mons_species(monster->type))) { - if (monster->type == MONS_SIMULACRUM_SMALL - || monster->type == MONS_SIMULACRUM_LARGE) - { - simple_monster_message( monster, " vapourises!" ); - - place_cloud( CLOUD_COLD, monster->x, monster->y, - 1 + random2(3), monster->kill_alignment() ); - } - else - { - simple_monster_message(monster, - "'s corpse disappears in a puff of smoke!"); + simple_monster_message(monster, + "'s corpse disappears in a puff of smoke!"); - place_cloud( random_smoke_type(), - monster->x, monster->y, 1 + random2(3), - monster->kill_alignment() ); - } + place_cloud( random_smoke_type(), + monster->x, monster->y, 1 + random2(3), + monster->kill_alignment() ); } } else |