From 28e8ff7561caf65d1f654018bf7c272eb97fa33b Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Wed, 18 Dec 2002 17:51:02 +0000 Subject: [PATCH] invisibility bit 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 | 2 ++ src/timeout.c | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 84ceaff6a..3d7ac6abf 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -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 diff --git a/src/timeout.c b/src/timeout.c index dd013883d..1b4df23cb 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -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: