From 933330a0dfdbba5af273a2a5faec7126c79c2029 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 13 Sep 2024 13:31:12 -0700 Subject: [PATCH] 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). --- src/hack.c | 5 +++-- src/insight.c | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hack.c b/src/hack.c index da9ea36f4..8a306d7d7 100644 --- a/src/hack.c +++ b/src/hack.c @@ -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); diff --git a/src/insight.c b/src/insight.c index 8faa2a375..488a5a07a 100644 --- a/src/insight.c +++ b/src/insight.c @@ -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" },