]> granicus.if.org Git - nethack/commitdiff
chest trap bit
authornethack.rankin <nethack.rankin>
Wed, 2 Nov 2005 02:35:31 +0000 (02:35 +0000)
committernethack.rankin <nethack.rankin>
Wed, 2 Nov 2005 02:35:31 +0000 (02:35 +0000)
     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.

doc/fixes34.4
src/trap.c

index f988bdaa8afdaa68b58347536a3de937284f9788..681a7637f1275c848ef484dc6dd1a2ff50a5b43e 100644 (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
index 7026bde5d4b9c0f70c0101c1835fb72103b9b1fe..213e3914684717787ca405d90834a4c06a1af342 100644 (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);