diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-04-24 10:57:48 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-04-24 11:00:40 -0400 |
commit | 909e888fd0cb8d760d0464439e3ca5092d0a68f6 (patch) | |
tree | da958b3e2148b65c7ad075a749d63ab2b9dc8880 /crawl-ref/source/mon-death.cc | |
parent | 8fda2a0803f3be61ec03fba3af885e5eca1db9b3 (diff) | |
download | crawl-ref-909e888fd0cb8d760d0464439e3ca5092d0a68f6.tar.gz crawl-ref-909e888fd0cb8d760d0464439e3ca5092d0a68f6.zip |
Don't allow getting a hide from a polymorphed monster.
It was prone to spoilery (HD is not told to the player in-game),
somewhat scummy behavior.
Diffstat (limited to 'crawl-ref/source/mon-death.cc')
-rw-r--r-- | crawl-ref/source/mon-death.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-death.cc b/crawl-ref/source/mon-death.cc index 0be549a04e..9b57f569a9 100644 --- a/crawl-ref/source/mon-death.cc +++ b/crawl-ref/source/mon-death.cc @@ -138,6 +138,8 @@ monster_type fill_out_corpse(const monster* mons, corpse.props[MONSTER_NUMBER] = short(mons->number); // XXX: Appears to be a safe conversion? corpse.props[MONSTER_MID] = int(mons->mid); + if (mons->props.exists("no_hide")) + corpse.props["never_hide"] = true; } corpse.colour = mons_class_colour(corpse_class); |