{{define "title"}}{{if .Siege.Active}}The Siege — {{.Siege.BossName}}{{else}}The Siege{{end}} — {{.SiteTitle}}{{end}} {{/* One row of the defender board. Same shape whether they fought today or are still to go; the column they're in is the message. An opted-out defender carries no token, so they get no link — their damage still counts and still holds its rank, they just aren't named. */}} {{define "defenderrow"}}
  • {{if .Token}}{{.Name}} {{else}}{{.Name}}{{end}} {{if .Level}}lv {{.Level}}{{end}} {{if .Fights}} {{.Damage}} dmg · {{.Fights}} bout{{if ne .Fights 1}}s{{end}} {{else}} not yet in it {{end}}
  • {{end}} {{define "main"}}
    {{if .Siege.Active}}

    🏰 The Siege · Tier {{.Siege.Tier}}

    {{.Siege.BossName}}

    Camped outside town. One bout each, every day, until it falls or the window closes.

    {{.Siege.HPCurrent}} / {{.Siege.HPMax}} HP {{.Siege.HPPercent}}% standing
    Time left · Bouts today · {{.Siege.BoutsToday}} Mustered · {{.Siege.Mustered}}
    {{if .Siege.Stale}}

    We've lost the wire to the field — this is where the pool stood {{.Siege.LastSeenAgo}}. Treat the number as history until it comes back.

    {{end}}

    Taking your bout: say !adventure siege fight to me in Matrix. One a day, each. Damage counts whether you win the fight or not — turning up is the mechanic.

    In it today

    {{len .Siege.Fought}}
    {{if .Siege.Fought}}
      {{range .Siege.Fought}}{{template "defenderrow" .}}{{end}}
    {{else}}

    Nobody's swung at it yet today. The pool doesn't move on its own.

    {{end}}

    Bout still going spare

    {{len .Siege.Waiting}}
    {{if .Siege.Waiting}}
      {{range .Siege.Waiting}}{{template "defenderrow" .}}{{end}}

    Each of these is a free hit the town hasn't taken.

    {{else}}

    Everyone's been out. Good turnout.

    {{end}}
    {{else}}

    🏰 The Siege

    Nothing's camped outside town.

    {{if .Siege.Known}} Quiet month so far. One comes for the town every month — a named thing with a shared health pool, and everybody gets a swing a day at it. {{else}} I haven't heard from the field about a Siege yet. When one turns up, the bar lives here. {{end}}

    {{end}} {{if .Siege.History}}

    Sieges past

    {{end}}
    {{end}}