adventure: show the party, the pets, and what you missed
Four small surfaces the game has had all along and the web has never shown. The party roster on the adventurer page is the one with a bug behind it. The board resolved an expedition by owner id, so a player seated on somebody else's run has been reading as "idle in town" while standing in a tier-4 dungeon. Seats now ride the roster detail beside the supply and threat numbers, and an opted-out player's seat is anonymised rather than dropped: a party of three rendered as a pair contradicts everything printed next to it. Pets show their levelling. They have earned XP from every won fight since that wiring was fixed and the only place a level ever appeared was a Matrix line that scrolled away. The threshold comes from the engine, in the engine's own centi-XP, because a copy of the curve here would drift the first time a band moved. "While you were away" is the one panel on the site about the reader rather than the realm. Two stamps behind it, not one: a single column would show the news, move the clock, and render an empty box over the same events on the reader's first refresh. And the story permalink names its region, which has been hardcoded empty behind a `// reserved` comment since the page shipped.
This commit is contained in:
@@ -14,6 +14,38 @@
|
||||
</section>
|
||||
|
||||
{{if .ShowRoster}}
|
||||
{{/* While you were away. First thing on the page when it renders at all, and it
|
||||
renders for exactly one reader: the signed-in owner of an adventurer something
|
||||
has happened to since their last visit. Above the Siege because everything
|
||||
below this line is the realm's news and this is the reader's own. */}}
|
||||
{{if .Away.Has}}
|
||||
<section class="mb-6 rounded-3xl bg-[color:var(--card)] border-2 border-theme-adventure/30 p-5 sm:p-6 shadow-pete">
|
||||
<div class="flex items-baseline justify-between gap-3 flex-wrap">
|
||||
<h2 class="font-display text-xl font-bold">While you were away</h2>
|
||||
<span class="text-xs uppercase tracking-wider text-[color:var(--ink)]/45">{{.Away.Name}} · past {{.Away.Since}}</span>
|
||||
</div>
|
||||
<ul class="mt-3 space-y-2">
|
||||
{{range .Away.Lines}}
|
||||
<li class="away-line{{if .Notable}} away-line-notable{{end}}">
|
||||
<a href="{{.Permalink}}" class="flex items-baseline gap-2.5 group">
|
||||
<span class="shrink-0" aria-hidden="true">{{.Emoji}}</span>
|
||||
<span class="flex-1 text-sm">
|
||||
<span class="font-semibold group-hover:text-theme-adventure group-hover:underline">{{.Label}}</span>
|
||||
{{if .Line}}<span class="text-[color:var(--ink)]/60"> — {{.Line}}</span>{{end}}
|
||||
</span>
|
||||
<span class="text-xs text-[color:var(--ink)]/40 shrink-0 tabular-nums">{{.When}}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{if .Away.Token}}
|
||||
<a href="/adventure/who/{{.Away.Token}}" class="mt-3 inline-flex items-center gap-1.5 text-sm font-semibold text-theme-adventure hover:opacity-80 transition">
|
||||
{{if .Away.HasMore}}More, and the rest of the trail{{else}}Your adventurer{{end}} <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
{{end}}
|
||||
</section>
|
||||
{{end}}
|
||||
|
||||
{{/* The Siege strip. Above the board on purpose: the board is where everyone is,
|
||||
the Siege is where everyone should be. When one is camped this is a live bar
|
||||
and a door into the war room; when none is, it stays as the quiet doorway to
|
||||
|
||||
Reference in New Issue
Block a user