summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-05 11:18:56 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-05 11:18:56 +1000
commit98b441d511bd1538c6803f8fab3a7777c51dc90b (patch)
treece9fe9f204d2a17383f8708641297fe26c0778c3 /crawl-ref/source/dungeon.cc
parent70b4882ab1e74848851da2cc5f9f7872ca1c8bc8 (diff)
downloadcrawl-ref-98b441d511bd1538c6803f8fab3a7777c51dc90b.tar.gz
crawl-ref-98b441d511bd1538c6803f8fab3a7777c51dc90b.zip
New monster spec tags for marking monsters summoned.
dur:1-6, marks the abjuration duration of a monster. sum:<str>, any of "clone", "animate", "chaos", "miscast", "zot", "wrath" or "aid", or the relevant spell we're mimicking; nas:<str> equivalent to the non-actor summoner. Not setting the non-actor summoner will mean that kills by these pseudo- summons are unmarked as such.
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index ef0616086c..7640048c11 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -4933,6 +4933,11 @@ int dgn_place_monster(mons_spec &mspec,
mg.hd = mspec.hd;
mg.hp = mspec.hp;
+ // Marking monsters as summoned
+ mg.abjuration_duration = mspec.abjuration_duration;
+ mg.summon_type = mspec.summon_type;
+ mg.non_actor_summoner = mspec.non_actor_summoner;
+
// XXX: hack.
if (mg.colour == -1)
mg.colour = random_colour();