Repository navigation
Commit 4f903f3
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5454 | 5454 | | |
5455 | 5455 | | |
5456 | 5456 | | |
| 5457 | + | |
5457 | 5458 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4347 | 4347 | | |
4348 | 4348 | | |
4349 | 4349 | | |
4350 | | - | |
| 4350 | + | |
4351 | 4351 | | |
4352 | 4352 | | |
4353 | 4353 | | |
| |||
0 commit comments