Skip to content

Commit

Permalink
fix #H1733 - fainting doesn't behave like falling (trunk only)
Browse files Browse the repository at this point in the history
     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.
  • Loading branch information
nethack.rankin committed Nov 14, 2008
1 parent 1485d51 commit 655a340
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/fixes35.0
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/eat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down

0 comments on commit 655a340

Please sign in to comment.