summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-11-12 12:42:59 -0800
committerStefan O'Rear <stefanor@cox.net>2009-11-12 12:43:22 -0800
commita511725f34635f3e3a55cfc2b4f23723cec61ed5 (patch)
tree62280d716f7a10b501afbf8791ae1626fd2359aa /crawl-ref/source/describe.cc
parent1498653cf16e631f825793aed0c76af91efc6287 (diff)
downloadcrawl-ref-a511725f34635f3e3a55cfc2b4f23723cec61ed5.tar.gz
crawl-ref-a511725f34635f3e3a55cfc2b4f23723cec61ed5.zip
Monsters track who summoned them
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index def7925150..426cba067f 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2952,6 +2952,19 @@ void get_monster_db_desc(const monsters& mons, describe_info &inf,
<< mitm[mons.inv[i]].name(DESC_NOCAP_A, false, true);
}
}
+
+ if (mons.props.exists("blame"))
+ {
+ inf.body << "$$Monster blame chain:$";
+
+ const CrawlVector& blame = mons.props["blame"].get_vector();
+
+ for (CrawlVector::const_iterator it = blame.begin();
+ it != blame.end(); ++it)
+ {
+ inf.body << " " << it->get_string() << "$";
+ }
+ }
#endif
}