chest trap bit

From a bug report, the "you stagger"
message when a trapped chest releases a cloud of gas shouldn't include the
inaccurate phrase "and your vision blurs" if hallucination is blocked by
Grayswandir.  Suppress it in that case.
This commit is contained in:
nethack.rankin
2005-11-02 02:35:31 +00:00
parent 0defd00b4b
commit fa708fe73b
2 changed files with 7 additions and 6 deletions

View File

@@ -152,6 +152,7 @@ incubi react to mirrors
alignment of Angels was handled inconsistently
pets capable of digging could pass through walls and stone on the Rogue level
avoid inappropriate "the corridor disappears" when vault guard gets killed
adjust message for gas effect from chest trap if hero resists hallucination
Platform- and/or Interface-Specific Fixes

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)trap.c 3.5 2005/06/22 */
/* SCCS Id: @(#)trap.c 3.5 2005/11/01 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -3919,12 +3919,12 @@ boolean disarm;
if(!Stunned) {
if (Hallucination)
pline("What a groovy feeling!");
else if (Blind)
You("%s and get dizzy...",
stagger(youmonst.data, "stagger"));
else
You("%s and your vision blurs...",
stagger(youmonst.data, "stagger"));
You("%s%s...",
stagger(youmonst.data, "stagger"),
Halluc_resistance ? "" :
Blind ? " and get dizzy" :
" and your vision blurs");
}
make_stunned(HStun + rn1(7, 16),FALSE);
(void) make_hallucinated(HHallucination + rn1(5, 16),FALSE,0L);