From: Patric Mueller Date: Thu, 21 Jan 2021 23:07:03 +0000 (+0100) Subject: Bones levels information in xlogfile and enlightenment X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4e9104957dc5b28cd579a66460e6e5a10f04d69;p=nethack Bones levels information in xlogfile and enlightenment - 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 --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 5ecc66eb8..3eedd63c3 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -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 diff --git a/src/insight.c b/src/insight.c index 4d69b6430..15368fb74 100644 --- a/src/insight.c +++ b/src/insight.c @@ -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) { diff --git a/src/topten.c b/src/topten.c index 554278037..f96948cb2 100644 --- a/src/topten.c +++ b/src/topten.c @@ -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; }