]> granicus.if.org Git - nethack/commit
fix #Q117 - vomiting by rodents & more
authornethack.rankin <nethack.rankin>
Tue, 6 Feb 2007 04:35:50 +0000 (04:35 +0000)
committernethack.rankin <nethack.rankin>
Tue, 6 Feb 2007 04:35:50 +0000 (04:35 +0000)
commit128ed0f0beee6034d9f15daf3896f01ffd33b362
tree5cba39ef3fdefd2daa0fbbd5110e533fd77f80fb
parent8465f87d2ff475766c76a110adb5f69d2c682dc6
fix #Q117 - vomiting by rodents & more

     From a bug report:  you could vomit when polymorphed into a rat but real life
rats can't/don't vomit.  The latter was confirmed by <Someone> and <Someone>.
While testing a fix for this, I discovered a couple of other problems.
Healing magic which cured sickness failed to heal Vomiting (potion or
spell; unicorn horn deals with them separately).  Enlightenment failed to
report Vomiting (it's not shown on the status line).  Most significant was
that vomiting_dialogue() called vomit() twice (also make_confused() and
make_stunned() three times for every once intended).  It was dividing the
remaining turns by 3 and then using that value to decide what to do, but
only message display took into account that the same divided value would
occur on 3 consecutive turns (or just 2 for the final countdown to 0,
because dialog routine gets called before timed-property decrement).
doc/fixes34.4
include/extern.h
src/cmd.c
src/eat.c
src/mondata.c
src/potion.c
src/timeout.c