Skip to content

Commit 4f903f3

Browse files
committed
Fix: #conduct hid alignment-abuse history after full atonement.
The "Last alignment abuse events:" block in enlightenment_out() was gated on u.ualign.abuse != 0, so a player who paid a temple priest enough gold to reach "Thou art fully absolved of past transgressions." had their entire transgression record vanish from #conduct - including the ABUSE_ATONEMENT entry that the priest_talk() atonement path had just appended to document the purchase. The ring buffer itself was intact; only the display gate was wrong. * src/cmd.c: switch the history-section gate from u.ualign.abuse != 0 to u.ever_abused, the sticky "has ever been abused" flag set in adjalign() and never cleared. This matches the three-state conduct text immediately above (never-abused / absolved / currently-abused) and lets a fully-absolved player still see both the "absolved of past alignment abuse" line and the chronological event list with the new ABUSE_ATONEMENT (+N) entry. The inner count > 0 guard already suppresses an empty heading in pathological save states.
1 parent b483ac2 commit 4f903f3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎doc/evilhack-changelog.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5454,4 +5454,5 @@ The following changes to date are:
54545454
- Fix: curses count-entry prompt leaked negative yn_number on ESC
54555455
- Fix: query_objlist() empty-menu panic on venom-only invent (curses)
54565456
- Build-system: portable ncurses, prune macOS hints, fix dlb race
5457+
- Fix: #conduct hid alignment-abuse history after full atonement
54575458

‎src/cmd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4347,7 +4347,7 @@ int final;
43474347
}
43484348

43494349
/* Display last alignment abuse events */
4350-
if (u.ualign.abuse != 0) {
4350+
if (u.ever_abused) {
43514351
char buf[BUFSZ];
43524352
int i, count = 0, start;
43534353
struct abuse_event *evt;

0 commit comments

Comments
 (0)