summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-03 22:59:32 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-03 22:59:32 +0000
commit5381635abae0b75987bce01bb596b35fc11bb529 (patch)
treeb80128f4c1d8259f40fd9402d564031226ace5bc /crawl-ref/source/monstuff.cc
parentc067a7b8496eedb4b1b06f16bfc70c333a9a823a (diff)
downloadcrawl-ref-5381635abae0b75987bce01bb596b35fc11bb529.tar.gz
crawl-ref-5381635abae0b75987bce01bb596b35fc11bb529.zip
[1747353] Allies shouldn't be noted as "defeated" by you.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1739 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 455e61160a..8f89045e8c 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -341,12 +341,13 @@ static void tutorial_inspect_kill()
}
#ifdef DGL_MILESTONES
-static std::string milestone_kill_verb(int killer)
+static std::string milestone_kill_verb(killer_type killer)
{
return (killer == KILL_RESET? "banished " : "killed ");
}
-static void check_kill_milestone(const monsters *mons, int killer, int i)
+static void check_kill_milestone(const monsters *mons,
+ killer_type killer, int i)
{
if (mons->type == MONS_PLAYER_GHOST)
{
@@ -365,7 +366,7 @@ static void check_kill_milestone(const monsters *mons, int killer, int i)
}
#endif // DGL_MILESTONES
-void monster_die(monsters *monster, char killer, int i, bool silent)
+void monster_die(monsters *monster, killer_type killer, int i, bool silent)
{
if (monster->type == -1)
return;
@@ -388,7 +389,8 @@ void monster_die(monsters *monster, char killer, int i, bool silent)
monster->type == MONS_PLAYER_GHOST ||
monster->type == MONS_PANDEMONIUM_DEMON )
{
- take_note(Note(NOTE_KILL_MONSTER, monster->type, 0,
+ take_note(Note(NOTE_KILL_MONSTER,
+ monster->type, mons_friendly(monster),
str_monam(*monster, DESC_NOCAP_A, true).c_str()));
}
}
@@ -4145,7 +4147,7 @@ static void do_move_monster(monsters *monster, int xi, int yi)
mons_check_pool(monster);
}
-void mons_check_pool(monsters *mons, int killer)
+void mons_check_pool(monsters *mons, killer_type killer)
{
// Levitating/flying monsters don't make contact with the terrain.
const int lev = mons->levitates();