]> granicus.if.org Git - nethack/commit
fix #H4181 - strange death messages
authorPatR <rankin@nethack.org>
Thu, 7 Jan 2016 09:53:06 +0000 (01:53 -0800)
committerPatR <rankin@nethack.org>
Thu, 7 Jan 2016 09:53:06 +0000 (01:53 -0800)
commit9fae6217786305dd4c5fdd7961c9f4674fdac625
tree23b39ab4d05cd580ff51bccef1790bb9fa776514
parent89a1db64800f267634b5f14e4f7b6d0652cff68b
fix #H4181 - strange death messages

"Petrified by <foo>, while getting stoned." -- multi_reason "while
getting stoned" explains why no last-second recovery could be made,
but doesn't explain how the petrification happened, so suppress it.

"Died of starvation, while fainted from lack of food." -- nethack
does not display this; presumeably the IRC death notices for NAO are
generated from xlogfile entries.  Change 'while fainted from lack of
food' to 'while fainted' at time of death if reason for death is
starvation.  The longer version is accurate but sounds fairly silly.

When starvation is set in motion, set it up before checking whether
the initial faint triggers falling on a wielded cockatrice corpse, so
that fainting isn't applied after recovery in case of life-saving.
doc/fixes36.1
src/eat.c
src/end.c