diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-01-10 15:22:23 -0700 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-01-10 15:22:23 -0700 |
commit | d655bc3f8fa2d3f6df63d9d44bb37edab85f5def (patch) | |
tree | a25427bc3ebfbb63084ddc3841191d26e418a5a6 /crawl-ref/source/hiscores.cc | |
parent | 6085916ba58b19779de8aadc5b82363429611b12 (diff) | |
download | crawl-ref-d655bc3f8fa2d3f6df63d9d44bb37edab85f5def.tar.gz crawl-ref-d655bc3f8fa2d3f6df63d9d44bb37edab85f5def.zip |
Special-case death message if your shadow action kills you.
"Killed by their own shadow" is a death message everyone should strive
for!
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc index b38b6900cd..a54fc6c4d5 100644 --- a/crawl-ref/source/hiscores.cc +++ b/crawl-ref/source/hiscores.cc @@ -1214,6 +1214,9 @@ void scorefile_entry::init_death_cause(int dam, int dsrc, if (death || you.can_see(mons)) death_source_name = mons->full_name(desc, true); + if (mons->mid == MID_PLAYER) + death_source_name = "their own shadow"; // heh + if (death && mons->type == MONS_MARA_FAKE) death_source_name = "an illusion of Mara"; |