+

+ <% if (plugins.splatoon.vs.player) { %>
+
+
+ <%= plugins.splatoon.vs.player.name %>
+
+
+ <%= plugins.splatoon.vs.player.byname %>
+
+
+ <% } %>
+ <% for (const {stage, mode, teams, awards, result, ...match} of plugins.splatoon.vs.matches) { const player = teams.map(({players}) => players.filter(({self}) => self)).flat(Infinity)[0] %>
+
+
+ <% if (result === "WIN") { %>
Victory!
<% } %>
+ <% if (result === "LOSE") { %>
Defeat...
<% } %>
+
+

+ <%= mode.name %>
+ <% if (mode.name !== "Turf War") { %>
+
<%= match.player.rank %>
+ <% } %>
+
+
+
+
<%= f.date(new Date(match.date), {time:true, date:true, timeZone:config.timezone?.name}) %>
+
<%= stage.name %>
+
+
+ <% for (const {color, score} of teams) { const width = (score/teams.map(({score}) => score).reduce((a, b) => a + b, 0))*100 %>
+
+ <% } %>
+
+
+ <% if (match.knockout === "WIN") { %>
+
K-O!
+
+ <% } else if (match.knockout === "LOSE") { %>
+
+
K-O!
+ <% } else { for (const {score} of teams) { %>
+
+ <% if (mode.name === "Turf War") { %>
+ <%= score.toFixed(1) %>%
+ <% } else { %>
+ <%= score %>
+ <% } %>
+
+ <% } } %>
+
+
+
+ Personal stats
+
+
+
+
+
<%= player.result.paint %>p
+

<%= player.result.kill %> <% if (player.result.assist) { %>
(<%= player.result.assist %>)<% } %>
+

<%= player.result.death %>
+

<%= player.result.special %>
+
+
+
+ <% for (const {name, rank} of awards) { %>
+
+
}`] %>)
+ <%= name %>
+
+ <% } %>
+
+
+
+ <% } %>
+
+ <% } %>
+
+ <% if (plugins.splatoon.salmon) { %>
+
+

+ <% if (plugins.splatoon.salmon.player) { %>
+
+
+ <%= plugins.splatoon.salmon.player.name %>
+
+
+ <%= plugins.splatoon.salmon.player.grade %>
+
+
+ <% } %>
+ <% for (const {stage, waves, weapons, special, boss, ...match} of plugins.splatoon.salmon.matches) { %>
+
+
+
Hazard level <%= match.hazard %>%
+
+
+
<%= f.date(new Date(match.date), {time:true, date:true, timeZone:config.timezone?.name}) %>
+
<%= stage.name %>
+
+ <% for (let i = 0; i < 3; i++) { %>
+
+ <% if (waves[i]) { %>
+
Wave <%= i+1 %>
+
+

+ <%= waves[i].delivered %> / <%= waves[i].quota %>
+
+ <% } else { %>
+
+
+ <% } %>
+
+ <% } %>
+ <% if (boss) { %>
+
+
+
+
+

+
+
+ <% } %>
+
+
+ Personal stats
+
+
+
+ <% for (let i = 0; i < 3; i++) { %>
+

" alt="" />
+ <% } %>
+

+
+
+

<%= match.eggs.regular %>
+

<%= match.eggs.golden %>
+

<%= match.rescues %>
+

<%= match.rescued %>
+
+
+
+ <% for (const {count, icon} of match.defeated) { if (count) { %>
+
+

+
x<%= count %>
+
+ <% } } %>
+
+
+
+ <% } %>
+
+ <% } %>
+ <% } %>
+
+
+
+