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
This commit is contained in:
Patric Mueller
2021-01-22 00:07:03 +01:00
parent 44bb68fe82
commit f4e9104957
3 changed files with 21 additions and 3 deletions

View 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) {

View 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;
}