enlightenment about bones

"You have disabled loading of bones levels" (during play) and
"You disabled loading of bones levels" (end of game disclosure)
both clearly refer to the player rather than the hero.
"You have never encountered a bones level" is accurate for current
hero but not necessarily accurate for the player.  Rephrase it.

Also, if OPTIONS=!bones is set and the hero just died, extend
"You disabled loading of bones levels" during disclosure to
"You disabled loading and storing of bones levels" (even in the
case where bones wouldn't be saved anyway).
This commit is contained in:
PatR
2025-03-08 13:16:27 -08:00
parent d0d77ed5f4
commit a3c6eec5c0

View File

@@ -156,7 +156,11 @@ enlght_line(
/* format increased chance to hit or damage or defense (Protection) */
staticfn char *
enlght_combatinc(const char *inctyp, int incamt, int final, char *outbuf)
enlght_combatinc(
const char *inctyp, /* "to hit" or "damage" or "defense" */
int incamt, /* amount of increment (negative if decrement) */
int final, /* ENL_{GAMEINPROGRESS,GAMEOVERALIVE,GAMEOVERDEAD} */
char *outbuf)
{
const char *modif, *bonus;
boolean invrt;
@@ -405,9 +409,13 @@ enlightenment(
}
if (!flags.bones) {
you_have_X("disabled loading of bones levels");
/* mention not saving bones iff hero just died */
Sprintf(buf, "disabled loading%s of bones levels",
(final == ENL_GAMEOVERDEAD) ? " and storing" : "");
you_have_X(buf);
} else if (!u.uroleplay.numbones) {
you_have_never("encountered a bones level");
enl_msg(You_, "haven't encountered", "didn't encounter",
" any bones levels", "");
} else {
Sprintf(buf, "encountered %ld bones level%s",
u.uroleplay.numbones, plur(u.uroleplay.numbones));