Name the highest opposing players in failed journey summaries
This commit is contained in:
parent
2f7e8acac0
commit
b769c7e9ac
1 changed files with 8 additions and 1 deletions
|
|
@ -47,7 +47,14 @@
|
|||
>{j.own} {j.own > j.highest ? ">" : j.own === j.highest ? "=" : "<"} {j.highest}</span
|
||||
>
|
||||
{#if j.loss !== null}<span class="log-loss" title="Stamina lost">♥ −{j.loss}</span>{/if}
|
||||
{#if j.reason === "comparison"}<span class="failed">{j.own === j.highest ? "Tie" : "Lower total"}</span>
|
||||
{#if j.reason === "comparison"}<span class="failed"
|
||||
>{j.own === j.highest ? "Tied with" : "Beaten by"}
|
||||
{j.participants
|
||||
.slice(1)
|
||||
.filter((p) => p.total === j.highest)
|
||||
.map((p) => p.name)
|
||||
.join(" & ")}</span
|
||||
>
|
||||
{:else if j.reason === "blocked"}<span class="failed">Route blocked</span>
|
||||
{:else if j.reason === "planned-stay"}<span>Planned stay</span>{/if}
|
||||
</summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue