]> granicus.if.org Git - nethack/commitdiff
extra ^X feedback
authorPatR <rankin@nethack.org>
Wed, 16 Dec 2020 10:49:00 +0000 (02:49 -0800)
committerPatR <rankin@nethack.org>
Wed, 16 Dec 2020 10:49:00 +0000 (02:49 -0800)
Report "abnormal" play (wizard mode or explore mode) in ^X output
or end of game dumplog.  Omitted for normal play.

src/insight.c

index 519a64be477ba70dcb5e6bb1a497c725c885fefe..b957919686cd16127c8c213b205c5271c387fb72 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.7 insight.c       $NHDT-Date: 1596334662 2020/08/02 02:17:42 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.22 $ */
+/* NetHack 3.7 insight.c       $NHDT-Date: 1608115734 2020/12/16 10:48:54 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.23 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -259,9 +259,7 @@ int final; /* ENL_GAMEINPROGRESS:0, ENL_GAMEOVERALIVE, ENL_GAMEOVERDEAD */
         characteristics_enlightenment(mode, final);
     }
     /* expanded status line information, including things which aren't
-       included there due to space considerations--such as obvious
-       alternative movement indicators (riding, levitation, &c), and
-       various troubles (turning to stone, trapped, confusion, &c);
+       included there due to space considerations;
        shown for both basic and magic enlightenment */
     status_enlightenment(mode, final);
     /* remaining attributes; shown for potion,&c or wizard mode and
@@ -270,6 +268,13 @@ int final; /* ENL_GAMEINPROGRESS:0, ENL_GAMEOVERALIVE, ENL_GAMEOVERDEAD */
         /* intrinsics and other traditional enlightenment feedback */
         attributes_enlightenment(mode, final);
     }
+    /* reminder to player and/or information for dumplog */
+    if ((mode & BASICENLIGHTENMENT) != 0 && (wizard || discover)) {
+        enlght_out(""); /* separator */
+        enlght_out("Miscellaneous:");
+        Sprintf(buf, "running in %s mode", wizard ? "debug" : "explore");
+        you_are(buf, "");
+    }
 
     if (!g.en_via_menu) {
         display_nhwindow(g.en_win, TRUE);