]> granicus.if.org Git - nethack/commitdiff
gas colors while blind
authornethack.allison <nethack.allison>
Mon, 19 Aug 2002 00:00:52 +0000 (00:00 +0000)
committernethack.allison <nethack.allison>
Mon, 19 Aug 2002 00:00:52 +0000 (00:00 +0000)
<email deleted> on Sunday, August 18, 2002 at 15:28:18
> comments: player is blind, and not hallucinating (initially). On #loot:
>
> You trigger a trap!
> A cloud of ultraviolet gas billows from the large box.
> You stagger and get dizzy...

doc/fixes34.1
src/trap.c

index 78f4ebd541278e2f3f77abf3fc9a13dd498d6fa1..468a13703d2aebc9eec8351540e2bea5ed8203ac 100644 (file)
@@ -208,6 +208,7 @@ zero entries in DUNGEON, MONSTERS, et al, of config file are now treated
 enlightenment: don't misreport polymorphed lycanthrope as "in beast form"
 remove TIMED_DELAY from the features checked for version compatibility
 rolling boulder hitting monster stuck in pit should stop even when mon survives
+don't see chest trap gas colors while Blind
 
 
 Platform- and/or Interface-Specific Fixes
@@ -229,7 +230,6 @@ win32gui: A caret bug was fixed
 win32gui: fix bug that caused two lines too many to be drawn on each paint
 win32gui: last line no longer highlighted
 win32gui: reduce the number of popups and support for !popup
-win32gui: support for not having popup windows
 win32tty: honour the use_inverse option and default to ATR_BOLD if disabled
 win32tty: respond only to mouse clicks not mouse movement
 win32tty: allow ^C to abort the game at the "Who are you?" prompt
index 250380d6394dd085f23b870d9d1962a277fa8515..526e7bd687f9523648c68a3fbe1f06c491e0513c 100644 (file)
@@ -34,6 +34,7 @@ STATIC_VAR const char *A_Your[2];
 STATIC_VAR const char *the_your[2];
 STATIC_VAR const char tower_of_flame[];
 STATIC_VAR const char *A_gush_of_water_hits;
+STATIC_VAR const char * const blindgas[6];
 
 #else
 
@@ -42,6 +43,8 @@ STATIC_VAR const char *A_Your[2] = { "A", "Your" };
 STATIC_VAR const char *the_your[2] = { "the", "your" };
 STATIC_VAR const char tower_of_flame[] = "tower of flame";
 STATIC_VAR const char *A_gush_of_water_hits = "A gush of water hits";
+STATIC_VAR const char * const blindgas[6] = 
+       {"humid", "odorless", "pungent", "chilling", "acrid", "biting"};
 
 #endif /* OVLB */
 
@@ -3497,8 +3500,8 @@ boolean disarm;
                case 1:
                case 0:
                        pline("A cloud of %s gas billows from %s.",
-                                               hcolor((char *)0),
-                                               the(xname(obj)));
+                               Blind ? blindgas[rn2(SIZE(blindgas))] :
+                               hcolor((char *)0), the(xname(obj)));
                        if(!Stunned) {
                            if (Hallucination)
                                pline("What a groovy feeling!");