N5 review fixes: protect keys from Robbie, fire epilogue on autopilot, atomic finale reward

Five correctness fixes from a code review of the N5 branch:

- Robbie no longer sweeps/sells cross-zone keys (Type "key"), which
  permanently broke the vault unlock they exist to open.
- Robbie's gift tier now reads the canonical DnD level, not the frozen
  legacy CombatLevel that pegged every gift at tier 1.
- Boss epilogue (D1b) now fires on the compact autopilot boss resolve —
  the primary long-expedition path — not just manual !fight. Deduped the
  two manual sites into a shared writeBossEpilogue helper.
- Finale reward latches epilogue_cleared before granting the Legendary +
  title, so a failed/late write can't make the reward repeatable.
- Misty arc beat's occupied-slot guard moved above the counter increment,
  so a contended pending slot defers the encounter instead of consuming a
  5/15/30 beat forever.

Claude-Session: https://claude.ai/code/session_017mEwUmmS7aQTP2NQXj6rUa
This commit is contained in:
prosolis
2026-07-10 16:53:32 -07:00
parent 3103b519fb
commit 81b2359109
6 changed files with 48 additions and 19 deletions

View File

@@ -119,9 +119,7 @@ func (p *AdventurePlugin) finishPartyWin(
}
}
if !elite {
if ep := bossEpilogueLine(zone.ID); ep != "" {
b.WriteString("\n" + ep + "\n")
}
writeBossEpilogue(&b, zone.ID)
}
switch {
case bossOnExpedition && seat == 0: