fix #H1733 - fainting doesn't behave like falling (trunk only)

Suggested by <Someone> <email deleted>, fainting from lack
of food while wielding a cockatrice corpse should fall on that corpse
and be fatal, like triggering a pit or moving down stairs while too
heavily encumbered.  I put the fixes entry in the new features section
even though it probably qualifies as a bug.
This commit is contained in:
nethack.rankin
2008-11-14 00:38:28 +00:00
parent 1485d51ca9
commit 655a340f69
2 changed files with 2 additions and 0 deletions

View File

@@ -413,6 +413,7 @@ streamline old ^X output and integrate it with enlightenment feedback;
"killed by X" becomes "killed by a chameleon imitating X" when appropriate
eating disenchanter corpses is now considered risky
make '[' command more precise when poly'd hero has embedded dragon scales/mail
fainting while wielding a cockatrice corpse will be fatal
Platform- and/or Interface-Specific New Features

View File

@@ -2723,6 +2723,7 @@ boolean incr;
/* stop what you're doing, then faint */
stop_occupation();
You("faint from lack of food.");
if (!Levitation) selftouch("Falling, you");
incr_itimeout(&HDeaf, duration);
nomul(-duration);
nomovemsg = "You regain consciousness.";