]> granicus.if.org Git - nethack/commitdiff
invisibility bit
authornethack.rankin <nethack.rankin>
Wed, 18 Dec 2002 17:51:02 +0000 (17:51 +0000)
committernethack.rankin <nethack.rankin>
Wed, 18 Dec 2002 17:51:02 +0000 (17:51 +0000)
     Make timeout of temporary invisibility consistent with other
forms of toggling that state:  you notice it even when you are able
to see invisible.  (Invoking the archeologist's quest artifact is
still inconsistent in this regard.)

doc/fixes34.1
src/timeout.c

index 84ceaff6ab60004c2f1ba53017f29026ad616adb..3d7ac6abfa9cf2f29d1d19c0bc84b5f3f7bfc8d4 100644 (file)
@@ -331,6 +331,8 @@ non-moving monster are not affected by liquid
        present in the quiver or alternate weapon inventory slots
 most cases of the hero dropping things need to check for dropping on an altar
 zapping undiggable trees with wand or spell of dig gave feedback about rock
+being able to see invisible shouldn't cause you to not notice when potion
+       or spell of invisibility wears off
 
 
 Platform- and/or Interface-Specific Fixes
index dd013883db57c25ac3f77c64d8e198c5aa7b78bd..1b4df23cb7d44c948372393dbbd872f17e9dce37 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)timeout.c  3.4     2002/10/12      */
+/*     SCCS Id: @(#)timeout.c  3.4     2002/12/17      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -287,10 +287,11 @@ nh_timeout()
                        break;
                case INVIS:
                        newsym(u.ux,u.uy);
-                       if (!Invis && !BInvis &&
-                           !See_invisible && !Blind) {
-                               You("are no longer invisible.");
-                               stop_occupation();
+                       if (!Invis && !BInvis && !Blind) {
+                           You(!See_invisible ?
+                                   "are no longer invisible." :
+                                   "can no longer see through yourself.");
+                           stop_occupation();
                        }
                        break;
                case SEE_INVIS: