move saving-grace back behind the curtain

If hero survives a killing blow via saving-grace, report that to
livelog but hide it from player's own #chronicle.

Only reveal whether saving-grace was used up during end-of-game
disclosure.  Omit that during enlightenment unless running in
explore mode (or wizard mode).
This commit is contained in:
PatR
2024-09-13 13:31:12 -07:00
parent 5091ac3fdd
commit 933330a0df
2 changed files with 5 additions and 3 deletions

View File

@@ -4049,8 +4049,9 @@ saving_grace(int dmg)
we might invent one, or perhaps use LL_LIFESAVE, but surviving
certain death (or preserving worn amulet of life saving) via
saving-grace feels like breaking a conduct; not sure how best
to phrase this though... */
livelog_printf(LL_CONDUCT, "%s (%d damage, %d/%d HP)",
to phrase this though; classifying it as a spoiler will hide it
from #chronicle during play but show it to livelog observers */
livelog_printf(LL_CONDUCT | LL_SPOILER, "%s (%d damage, %d/%d HP)",
"survived one-shot death via saving-grave",
dmg, u.uhp, u.uhpmax);

View File

@@ -1922,7 +1922,8 @@ attributes_enlightenment(
}
#endif
{
/* saving-grace: show during final disclosure, hide during normal play */
if (final || wizard || discover) {
static const char *verbchoices[2][2] = {
{ "might avoid", "have avoided" },
{ "could have avoided", "avoided" },