diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-12 12:42:59 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-12 12:43:22 -0800 |
commit | a511725f34635f3e3a55cfc2b4f23723cec61ed5 (patch) | |
tree | 62280d716f7a10b501afbf8791ae1626fd2359aa /crawl-ref/source/describe.cc | |
parent | 1498653cf16e631f825793aed0c76af91efc6287 (diff) | |
download | crawl-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.cc | 13 |
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 } |