]> granicus.if.org Git - nethack/commitdiff
Bones levels information in xlogfile and enlightenment
authorPatric Mueller <bhaak@gmx.net>
Thu, 21 Jan 2021 23:07:03 +0000 (00:07 +0100)
committerPatric Mueller <bhaak@gmx.net>
Thu, 21 Jan 2021 23:22:09 +0000 (00:22 +0100)
  - record number of encountered bones levels in xlogfile
  - add bonesless to extended conducts field in xlogfile
  - show bones levels information in enlightenment at end of game or in
    explore and wizmode

doc/fixes37.0
src/insight.c
src/topten.c

index 5ecc66eb8546eacb2ec98ffd8b8f5f9248628038..3eedd63c375a240c8f2346274bd69176a69e4bd7 100644 (file)
@@ -753,6 +753,10 @@ consolidate several monsters that differed only by their gender into their
 added wizmgender debugging command to display female monsters in red inverse;
        helpful for debugging gender-related matters on tty; currently ignored
        on other window ports
+record number of encountered bones levels in xlogfile
+add bonesless to extended conducts field in xlogfile
+show bones levels information in enlightenment at end of game or in explore
+       and wizmode
 
 
 Platform- and/or Interface-Specific New Features
index 4d69b643011604acf62bcb62253d0ab1c6930e16..15368fb74db7447696adf6abf6922c4da095ace7 100644 (file)
@@ -269,11 +269,23 @@ int final; /* ENL_GAMEINPROGRESS:0, ENL_GAMEOVERALIVE, ENL_GAMEOVERDEAD */
         attributes_enlightenment(mode, final);
     }
     /* reminder to player and/or information for dumplog */
-    if ((mode & BASICENLIGHTENMENT) != 0 && (wizard || discover)) {
+    if ((mode & BASICENLIGHTENMENT) != 0 && (wizard || discover || final)) {
         enlght_out(""); /* separator */
         enlght_out("Miscellaneous:");
-        Sprintf(buf, "running in %s mode", wizard ? "debug" : "explore");
-        you_are(buf, "");
+        if (wizard || discover) {
+            Sprintf(buf, "running in %s mode", wizard ? "debug" : "explore");
+            you_are(buf, "");
+        }
+
+        if (!flags.bones) {
+            you_have_X("disabled loading of bones levels");
+        } else if (!u.uroleplay.numbones) {
+            you_have_never("encountered a bones level");
+        } else {
+            Sprintf(buf, "encountered %ld bones level%s",
+                    u.uroleplay.numbones, plur(u.uroleplay.numbones));
+            you_have_X(buf);
+        }
     }
 
     if (!g.en_via_menu) {
index 5542780370397063a4ffcbee11f4974691db22ca..f96948cb223b82665c1e2a76b0b6c6cddcab0957 100644 (file)
@@ -378,6 +378,7 @@ int how;
             money_cnt(g.invent) + hidden_gold(TRUE));
     Fprintf(rfile, "%cwish_cnt=%ld", XLOG_SEP, u.uconduct.wishes);
     Fprintf(rfile, "%carti_wish_cnt=%ld", XLOG_SEP, u.uconduct.wisharti);
+    Fprintf(rfile, "%cbones=%ld", XLOG_SEP, u.uroleplay.numbones);
     Fprintf(rfile, "\n");
 #undef XLOG_SEP
 }
@@ -591,6 +592,7 @@ encode_extended_conducts()
         add_achieveX(buf, "sokoban",  !u.uconduct.sokocheat);
     add_achieveX(buf, "blind",        u.uroleplay.blind);
     add_achieveX(buf, "nudist",       u.uroleplay.nudist);
+    add_achieveX(buf, "bonesless",    !flags.bones);
 
     return buf;
 }