mischief: tighten the detail page's live poll and drop dead state

The who-page poll now keeps the location line honest both ways (a mark
that came back to town stops showing its old expedition) and stops
polling once the adventurer leaves the board. Also collapses a redundant
branch in ResolveMischiefOrder and removes the always-false whoPage.Stale.
This commit is contained in:
prosolis
2026-07-14 23:12:01 -07:00
parent 16711e13e6
commit 4189c03a82
3 changed files with 18 additions and 11 deletions

View File

@@ -54,7 +54,6 @@ var abilityLabels = [6]string{"STR", "DEX", "CON", "INT", "WIS", "CHA"}
type whoPage struct {
pageData
Mark RosterView
Stale bool
HasDetail bool
Detail whoDetail
Abilities []abilityRow
@@ -90,7 +89,6 @@ func (s *Server) handleAdventureWho(w http.ResponseWriter, r *http.Request) {
page := whoPage{
pageData: base,
Mark: toRosterView(entry),
Stale: storage.RosterSnapshotAt() == 0,
}
if d, abil, ok := decodeWhoDetail(entry.Detail); ok {
page.HasDetail = true