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