Publish detailed game journal and Supporter appearance controls

This commit is contained in:
coyotte508 2026-10-01 23:56:32 +02:00
commit 3e73e09536
37 changed files with 2004 additions and 139 deletions

View file

@ -66,17 +66,24 @@ function shuffle(s, items) {
return a;
}
const die = (s) => 1 + random(s, 6);
const say = (s, text, cell) => {
const say = (s, text, cell, genes = []) => {
s.log.push({
round: s.round,
phase: s.phase,
text,
...(cell === undefined ? {} : { cell }),
...(genes.length ? { genes: [...new Set(genes)] } : {}),
});
if (cell !== undefined) s.lastCells = [cell];
};
const name = (s, p) => s.players[p].name;
const label = (s, a) => `${name(s, a.p)} #${a.n}`;
const nutrients = (food) =>
food
.flatMap((n, p) =>
n ? [`${n} ${COLORS[p]} nutrient${n === 1 ? "" : "s"}`] : [],
)
.join(", ");
const pay = (s, p, n) => {
requireThat(s.players[p].bp >= n, "Not enough biological points.");
s.players[p].bp -= n;
@ -85,18 +92,29 @@ const addFood = (s, cell, p, n) => {
const add = Math.min(n, s.supply[p]);
s.food[cell][p] += add;
s.supply[p] -= add;
return add;
};
function kill(s, a, amount) {
if (!amoeba(s, a.id)) return;
s.amoebas = s.amoebas.filter((b) => b.id !== a.id);
s.players.forEach((_, p) => addFood(s, a.cell, p, amount));
say(s, `${label(s, a)} returns to the soup.`, a.cell);
const food = s.players.map((_, p) => addFood(s, a.cell, p, amount));
say(
s,
`${label(s, a)} returns to the soup at ${coordinate(a.cell)}; food: ${nutrients(food) || "none"}.`,
a.cell,
);
if (has(s, a.p, "bang")) {
const others = s.amoebas
.filter((b) => b.cell === a.cell)
.sort((x, y) => s.players[y.p].score - s.players[x.p].score || x.n - y.n);
for (const b of others) b.hp++;
say(s, `${GENE.bang.name} injures ${others.length} other amoebas.`, a.cell);
for (const b of others) {
b.hp++;
say(
s,
`${label(s, a)} gives ${label(s, b)} one injury with Go Out With a Bang.`,
a.cell,
);
}
for (const b of others) if (b.hp >= injuriesToDie(s, b.p)) kill(s, b, 2);
}
}
@ -279,7 +297,7 @@ function mealRecipes(s, a) {
}
return variants;
}
export function menus(s, a) {
function mealVariants(s, a) {
let variants = mealRecipes(s, a);
if (has(s, a.p, "glutton"))
variants = variants.flatMap((v) =>
@ -294,6 +312,10 @@ export function menus(s, a) {
],
),
);
return variants;
}
export function menus(s, a) {
const variants = mealVariants(s, a);
const suction = has(s, a.p, "suction2") ? 2 : has(s, a.p, "suction1") ? 1 : 0;
const sources =
suction === 2
@ -370,14 +392,14 @@ export const genesInGame = (s) =>
.filter((g) => copiesOf(g, s.players.length));
const ownerOf = (s, id) =>
s.players.findIndex((pl) => pl.genes.some((g) => g.id === id));
const genePrice = (s, id) =>
id === "social" && ownerOf(s, id) !== -1
? GENE.social.transferCost
: geneFor(id, s.players.length).cost;
export function genePurchaseCost(s, p, id, exchange) {
const price =
id === "social" && ownerOf(s, id) !== -1
? GENE.social.transferCost
: geneFor(id, s.players.length).cost;
return Math.max(
0,
price -
genePrice(s, id) -
(exchange ? geneFor(exchange, s.players.length).cost : 0) -
Number(has(s, p, "flexible")),
);
@ -600,17 +622,41 @@ export function legalMoves(s) {
throw new Error(`Unknown decision: ${t.kind}`);
}
}
function startSwim(s, a, after, free = false) {
if (!free) pay(s, a.p, swimCost(s, a.p));
function startSwim(s, a, after, free = false, escapeGene) {
const cost = free ? 0 : swimCost(s, a.p);
pay(s, a.p, cost);
say(
s,
escapeGene
? `${label(s, a)} swims with ${escapeGene} for ${cost} BP.`
: free
? `${label(s, a)} swims again for 0 BP with Speed.`
: `${label(s, a)} swims for ${cost} BP.`,
a.cell,
!free && cost === 0 ? ["streamline"] : [],
);
const dice = has(s, a.p, "movement2")
? [6]
: Array.from({ length: has(s, a.p, "movement1") ? 2 : 1 }, () => die(s));
if (!has(s, a.p, "movement2"))
say(s, `${label(s, a)} rolls ${dice.join(" and ")}.`);
say(
s,
`${label(s, a)} rolls ${dice.join(" and ")}.`,
undefined,
has(s, a.p, "movement1") ? ["movement1"] : [],
);
putTasks(s, { kind: "direction", a: a.id, dice, after });
}
function startTravel(s, a, to, after, followers = true) {
const t = { kind: "travel", a: a.id, from: a.cell, to, after, followers };
function startTravel(s, a, to, after, followers = true, genes = []) {
const t = {
kind: "travel",
a: a.id,
from: a.cell,
to,
after,
followers,
genes,
};
if (
to !== a.cell &&
has(s, a.p, "tentacle") &&
@ -626,29 +672,62 @@ function startTravel(s, a, to, after, followers = true) {
else putTasks(s, t);
}
function excrete(s, a, cell) {
addFood(s, cell, a.p, 2);
const count = addFood(s, cell, a.p, 2);
if (has(s, a.p, "toxic")) {
s.toxins ??= Array(25).fill(0);
s.toxins[cell]++;
}
say(
s,
`${label(s, a)} excretes two ${COLORS[a.p]} nutrients${has(s, a.p, "toxic") ? " and one toxin" : ""} at ${coordinate(cell)}.`,
`${label(s, a)} excretes ${count} ${COLORS[a.p]} nutrient${count === 1 ? "" : "s"}${has(s, a.p, "toxic") ? " and one toxin" : ""} at ${coordinate(cell)}.`,
cell,
[
...(has(s, a.p, "toxic") ? ["toxic"] : []),
...(cell !== a.cell ? ["cleanliness"] : []),
],
);
}
function finishFeed(s, a, menu, after) {
// Only credit optional diet genes when this particular meal needs them.
const genes = ["frugality", "substitution", "glutton"].filter((id) => {
if (!has(s, a.p, id)) return false;
if (id === "glutton") return true;
const without = {
...s,
players: s.players.map((player, p) =>
p !== a.p
? player
: {
...player,
genes: player.genes.filter((g) => g.id !== id),
},
),
};
return !mealVariants(without, a).some(
(v) => v.host === menu.host && v.food.every((n, p) => n === menu.food[p]),
);
});
for (let p = 0; p < s.players.length; p++) {
const remote = menu.borrowed?.[p] ?? 0;
s.food[a.cell][p] -= menu.food[p] - remote;
if (remote) s.food[menu.source][p] -= remote;
s.supply[p] += menu.food[p];
}
if (menu.host !== undefined) pay(s, menu.host, 1);
if (menu.borrowed?.some((n) => n > 0))
say(
s,
`${label(s, a)} takes ${nutrients(menu.borrowed)} from ${coordinate(menu.source)} with ${has(s, a.p, "suction2") ? "Suction II" : "Suction I"}.`,
menu.source,
);
if (menu.host !== undefined) {
pay(s, menu.host, 1);
say(s, `${label(s, a)} uses Parasitism; ${name(s, menu.host)} pays 1 BP.`);
}
say(
s,
`${label(s, a)} feeds${menu.host === undefined ? "" : ` using ${name(s, menu.host)}'s BP`}.`,
`${label(s, a)} feeds on ${nutrients(menu.food)} at ${coordinate(a.cell)}${after?.kind === "movement" && after.fed ? " with Fast Food" : ""}.`,
a.cell,
genes,
);
if (has(s, a.p, "cleanliness"))
putTasks(s, { kind: "excrete", a: a.id, after });
@ -660,6 +739,10 @@ function finishFeed(s, a, menu, after) {
function finishAttack(s, c, success) {
const a = amoeba(s, c.attacker),
b = amoeba(s, c.victim);
if (!success && a && b && !c.failed) {
say(s, `${label(s, a)} fails to attack ${label(s, b)}.`, a.cell);
c.failed = true;
}
if (success && a && b && has(s, b.p, "hard-crust") && !c.crustPaid) {
putTasks(s, { kind: "crust", a: a.id, combat: c });
return;
@ -717,6 +800,7 @@ function resolveCombat(s, c) {
if (!c.camoRolled) {
c.camoRolled = true;
c.camouflaged = has(s, a.p, "camouflage2");
if (c.camouflaged) say(s, `${label(s, a)} uses Camouflage II.`);
if (has(s, a.p, "camouflage1")) {
const roll = die(s);
c.camouflaged = roll >= 4;
@ -747,8 +831,9 @@ function fight(s, c, again = false) {
do {
x = die(s);
y = die(s);
say(s, `${label(s, a)} rolls ${x}; ${label(s, b)} rolls ${y}.`);
if (x === y) say(s, "Tie — roll again.");
} while (x === y);
say(s, `${name(s, a.p)} rolls ${x}; ${name(s, b.p)} rolls ${y}.`);
if (y > x) finishAttack(s, c, false);
else if (!again && has(s, b.p, "persistence"))
putTasks(s, { kind: "retry-defense", p: b.p, combat: c });
@ -865,7 +950,7 @@ function newPhase(s) {
}
say(
s,
`${name(s, p)} advances ${earned} spaces to ${s.players[p].score}.`,
`${name(s, p)} advances ${earned} spaces to ${s.players[p].score} (${populationPoints(colony(s, p).length, s.players.length)} from amoebas + ${genePoints(geneCount(s, p))} from genes).`,
);
}
s.lastScoring = s.players.map((_, p) => ({
@ -902,7 +987,9 @@ function finishTurn(s, t) {
const p = taskPlayer(s, t);
say(
s,
`${name(s, p)} finishes ${s.phase === 2 ? "buying genes" : s.phase === 3 ? "cell division" : "the survival phase"}.`,
t.kind === "genes" && !t.acted
? `${name(s, p)} didn't buy any genes.`
: `${name(s, p)} finishes ${s.phase === 2 ? "buying genes" : s.phase === 3 ? "cell division" : "the survival phase"}.`,
);
if (t.kind !== "genes" || !s.newGeneMarket) return;
const previous = s.newGeneMarket;
@ -962,18 +1049,21 @@ function settle(s) {
)
: [];
a.cell = t.to;
if (from !== t.to && s.toxins?.[t.to]) {
const damage = s.toxins[t.to];
a.hp += damage;
s.toxins[t.to] = 0;
say(s, `${label(s, a)} absorbs ${damage} toxic injuries.`, t.to);
}
s.lastCells = [from, t.to];
say(
s,
`${label(s, a)} ${from === t.to ? "stays at" : "moves to"} ${coordinate(t.to)}.`,
t.to,
t.genes,
);
if (from !== t.to && s.toxins?.[t.to]) {
const damage = s.toxins[t.to];
a.hp += damage;
s.toxins[t.to] = 0;
say(s, `${label(s, a)} absorbs ${damage} toxic injuries.`, t.to, [
"toxic",
]);
}
if (t.after) putTasks(s, t.after);
if (from !== t.to)
putTasks(
@ -1101,6 +1191,12 @@ function applyMove(data, action, player) {
kind: "feeding",
a: a.id,
},
true,
m.type === "hold"
? ["holding"]
: m.cell !== destination(a.cell, s.environment.direction)
? ["rebound"]
: [],
);
break;
case "swim":
@ -1115,7 +1211,14 @@ function applyMove(data, action, player) {
s,
`${label(s, a)} chooses ${m.direction === 4 ? "to stay" : DIRECTIONS[m.direction].toLowerCase()}${has(s, p, "movement2") ? " with Movement II" : ""}.`,
);
startTravel(s, a, m.cell, t.after);
startTravel(
s,
a,
m.cell,
t.after,
true,
m.cell !== destination(a.cell, m.direction) ? ["rebound"] : [],
);
break;
case "carry":
s.food[a.cell][m.color]--;
@ -1129,10 +1232,16 @@ function applyMove(data, action, player) {
break;
case "travel":
for (const color of t.cargo) s.food[t.travel.to][color]++;
if (t.cargo.length)
say(
s,
`${label(s, a)} carries ${nutrients(s.players.map((_, color) => t.cargo.filter((c) => c === color).length))} from ${coordinate(t.travel.from)} to ${coordinate(t.travel.to)} with Tentacle.`,
t.travel.to,
);
putTasks(s, t.travel);
break;
case "follow":
startTravel(s, a, t.to, null, false);
startTravel(s, a, t.to, null, false, ["holding"]);
break;
case "decline":
break;
@ -1156,6 +1265,8 @@ function applyMove(data, action, player) {
break;
case "starve":
a.hp++;
if (t.after?.kind === "movement" && t.after.fed)
say(s, `${label(s, a)} uses Fast Food.`);
say(s, `${label(s, a)} cannot feed and takes one injury.`, a.cell);
putTasks(s, t.after);
break;
@ -1167,30 +1278,50 @@ function applyMove(data, action, player) {
s.players[p].genes = s.players[p].genes.filter((g) => g.id !== m.gene);
t.debt -=
GENE[m.gene].defectRelief ?? geneFor(m.gene, s.players.length).mutation;
say(s, `${name(s, p)} gives up ${GENE[m.gene].name}.`);
say(
s,
`${name(s, p)} discards ${GENE[m.gene].name}; remaining deficit: ${Math.max(0, t.debt)} BP.`,
);
putTasks(s, t);
break;
case "buy":
case "exchange": {
const cost = genePurchaseCost(s, p, m.gene, m.exchange);
const causes = [
...(m.exchange ? ["adaptable"] : []),
...(has(s, p, "flexible") &&
cost <
Math.max(
0,
genePrice(s, m.gene) -
(m.exchange ? geneFor(m.exchange, s.players.length).cost : 0),
)
? ["flexible"]
: []),
];
const previousOwner = m.gene === "social" ? ownerOf(s, m.gene) : -1;
pay(s, p, cost);
if (m.gene === "social") {
const owner = ownerOf(s, "social");
if (owner >= 0) {
s.players[owner].genes = s.players[owner].genes.filter(
(g) => g.id !== "social",
);
s.players[owner].bp += cost;
}
if (previousOwner >= 0) {
s.players[previousOwner].genes = s.players[previousOwner].genes.filter(
(g) => g.id !== "social",
);
s.players[previousOwner].bp += cost;
}
if (m.base || m.exchange)
if (m.base || m.exchange) {
s.players[p].genes = s.players[p].genes.filter(
(g) => g.id !== m.base && g.id !== m.exchange,
);
for (const id of new Set([m.base, m.exchange].filter(Boolean)))
say(s, `${name(s, p)} returns ${GENE[id].name} to the gene pool.`);
}
s.players[p].genes.push({ id: m.gene, round: s.round });
say(
s,
`${name(s, p)} evolves ${GENE[m.gene].name}${m.exchange ? ` by exchanging ${GENE[m.exchange].name}` : ""} for ${cost} BP.`,
previousOwner >= 0
? `${name(s, p)} buys ${GENE[m.gene].name} from ${name(s, previousOwner)} for ${cost} BP.`
: `${name(s, p)} buys ${GENE[m.gene].name} for ${cost} BP.`,
undefined,
causes,
);
t.acted = true;
putTasks(s, t);
@ -1203,42 +1334,64 @@ function applyMove(data, action, player) {
s.tasks[0].acted = true;
break;
}
case "population-explosion":
case "population-explosion": {
const surrendered = s.players[p].bp;
s.players[p].bp = 0;
s.tasks[0].target = t.target;
s.tasks[0].acted = true;
say(
s,
`${name(s, p)} uses Population Explosion, gives up all BP and grows toward ${t.target} amoebas.`,
`${name(s, p)} uses Population Explosion, gives up ${surrendered} BP and grows toward ${t.target} amoebas.`,
);
break;
}
case "heal":
case "transfer-injury": {
const healed = amoeba(s, m.amoeba);
healed.hp--;
if (m.type === "heal") pay(s, p, 3);
else {
if (m.type === "heal") {
pay(s, p, 3);
say(
s,
`${label(s, healed)} removes one injury with ${has(s, p, "healing2") ? "Healing II" : "Healing I"} for 3 BP.`,
healed.cell,
);
} else {
const target = amoeba(s, m.target);
target.hp++;
say(
s,
`${label(s, healed)} transfers one injury to ${label(s, target)} with Healing II.`,
healed.cell,
);
kill(s, target, 2);
}
say(
s,
`${label(s, healed)} removes one injury with ${m.type === "heal" ? "Healing" : "Healing II"}.`,
healed.cell,
);
t.acted = true;
putTasks(s, t);
break;
}
case "divide": {
const cost = t.target === undefined ? divisionCost(s, p) : 0;
const existing = colony(s, p);
const causes = [
...(t.target !== undefined
? ["population"]
: cost === 4
? [has(s, p, "division") ? "division" : "short-life"]
: []),
...(existing.length >= 2 &&
has(s, p, "spores") &&
!existing.some((a) => adjacent(a.cell).includes(m.cell))
? ["spores"]
: []),
];
pay(s, p, cost);
s.amoebas.push({ id: `${p}-${m.n}`, p, n: m.n, cell: m.cell, hp: 0 });
say(
s,
`${name(s, p)} places amoeba #${m.n} at ${coordinate(m.cell)} for ${cost} BP.`,
m.cell,
causes,
);
t.acted = true;
putTasks(s, t);
@ -1252,7 +1405,7 @@ function applyMove(data, action, player) {
pay(s, actor.p, 1);
say(
s,
`${label(s, actor)} attacks ${label(s, amoeba(s, m.victim))}.`,
`${label(s, actor)} attacks ${label(s, amoeba(s, m.victim))} with ${has(s, actor.p, "aggression") ? "Aggression" : "Struggle for Survival"} for 1 BP.`,
actor.cell,
);
resolveCombat(s, {
@ -1265,9 +1418,11 @@ function applyMove(data, action, player) {
}
case "pay-crust":
pay(s, p, 1);
say(s, `${label(s, a)} pays 1 BP to overcome Hard Crust.`, a.cell);
finishAttack(s, { ...t.combat, crustPaid: true }, true);
break;
case "abandon-attack":
say(s, `${label(s, a)} abandons the attack.`, a.cell);
finishAttack(s, t.combat, false);
break;
case "accept-attack":
@ -1275,25 +1430,37 @@ function applyMove(data, action, player) {
break;
case "defend":
pay(s, p, 1);
say(s, `${label(s, amoeba(s, t.combat.victim))} uses Defense for 1 BP.`);
t.combat.defended = true;
fight(s, t.combat);
break;
case "escape": {
const b = amoeba(s, t.combat.victim);
t.combat.escaped = true;
startSwim(s, b, {
kind: "after-swim",
a: b.id,
after: {
kind: "escape-result",
startSwim(
s,
b,
{
kind: "after-swim",
a: b.id,
from: b.cell,
combat: t.combat,
after: {
kind: "escape-result",
a: b.id,
from: b.cell,
combat: t.combat,
},
},
});
false,
has(s, b.p, "escape") ? "Escape" : "Alarm",
);
break;
}
case "retry-attack":
say(
s,
`${label(s, a)} attacks ${label(s, amoeba(s, m.victim))} with Persistence for 0 BP.`,
a.cell,
);
resolveCombat(s, {
...t.combat,
victim: m.victim,
@ -1302,13 +1469,19 @@ function applyMove(data, action, player) {
camoRolled: false,
camouflaged: false,
crustPaid: false,
failed: false,
retry: true,
});
break;
case "stop-attack":
say(s, `${label(s, a)} abandons the attack.`, a.cell);
finishAttack(s, { ...t.combat, retry: true }, false);
break;
case "retry-defense":
say(
s,
`${label(s, amoeba(s, t.combat.victim))} uses Persistence for 0 BP.`,
);
fight(s, t.combat, true);
break;
case "accept-defense-roll":

View file

@ -1,6 +1,6 @@
{
"name": "@boardgamers/primordial-soup",
"version": "0.2.19",
"version": "0.2.21",
"private": true,
"type": "module",
"main": "dist/engine.js",
@ -15,7 +15,7 @@
"test:locales": "node scripts/check-locales.mjs viewer/localization && node --test scripts/localization.test.mjs"
},
"dependencies": {
"@boardgamers/protocol": "0.6.2",
"@boardgamers/protocol": "0.8.1",
"@noble/hashes": "2.0.1"
},
"devDependencies": {

10
pnpm-lock.yaml generated
View file

@ -9,8 +9,8 @@ importers:
.:
dependencies:
'@boardgamers/protocol':
specifier: 0.6.2
version: 0.6.2
specifier: 0.8.1
version: 0.8.1
'@noble/hashes':
specifier: 2.0.1
version: 2.0.1
@ -27,8 +27,8 @@ importers:
packages:
'@boardgamers/protocol@0.6.2':
resolution: {integrity: sha512-6FKgLsB4guCzNww1rkanhrsLHIdQVajDs1B4qNsYcgtUobTBRM2VPt9T4mlc8ZDX4JDQltvJVHuK7XDZ1J556A==}
'@boardgamers/protocol@0.8.1':
resolution: {integrity: sha512-BZNj+wof1aR1nSybRMqmQ+yAVNR3ZZy+mczIz2KbXSLXMLL3Jv21yi50CRbJ2ipdkPiPatcSP0nJj+xJbFgIfQ==}
'@esbuild/aix-ppc64@0.25.12':
resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}
@ -220,7 +220,7 @@ packages:
snapshots:
'@boardgamers/protocol@0.6.2':
'@boardgamers/protocol@0.8.1':
dependencies:
zod: 4.6.5

View file

@ -2,4 +2,4 @@ allowBuilds:
esbuild: true
minimumReleaseAgeExclude:
- "@boardgamers/protocol@0.4.0 || 0.4.2 || 0.5.0 || 0.6.0 || 0.6.1 || 0.6.2"
- "@boardgamers/protocol@0.4.0 || 0.4.2 || 0.5.0 || 0.6.0 || 0.6.1 || 0.6.2 || 0.8.1"

View file

@ -91,7 +91,26 @@ try {
);
assert.equal(await page.evaluate(() => requests.length), 1);
await page.getByRole("tab", { name: "Journal", exact: true }).click();
const desktop = width > 1000;
const chatPanel = page.locator(".activity-chat");
const journalPanel = page.locator(".activity-journal");
if (desktop) {
assert.ok(await chatPanel.isVisible());
assert.ok(await journalPanel.isVisible());
const chatBounds = await chatPanel.boundingBox(),
journalBounds = await journalPanel.boundingBox();
assert.ok(Math.abs(chatBounds.y - journalBounds.y) < 1);
assert.ok(Math.abs(chatBounds.width - journalBounds.width) < 1);
assert.ok(chatBounds.x + chatBounds.width <= journalBounds.x + 1);
assert.equal(
await page.locator('.soup-activity [role="region"]').count(),
2,
);
} else {
assert.ok(await journalPanel.isHidden());
}
await page.locator('[data-tab="journal"]').click();
if (desktop) await page.locator(".topbar").scrollIntoViewIfNeeded();
await page.evaluate(() => {
window.restoredReceipts = [];
e.on("chat:read", (payload) => restoredReceipts.push(payload));
@ -137,9 +156,11 @@ try {
).length,
),
0,
"journal does not mark restored chat read",
"hidden or offscreen chat does not mark restored messages read",
);
await page.locator(".soup-chat-shortcut").click();
if (desktop)
await page.locator('.pond-tools [data-ui="journal"]').click();
else await page.locator(".soup-chat-shortcut").click();
await page.waitForFunction(() =>
restoredReceipts.some(
({ messageId }) => messageId === "000001f70000000000000001",
@ -148,8 +169,116 @@ try {
assert.equal(
await page.locator(".chat-count").isHidden(),
true,
"opening chat clears restored unread",
"visible chat clears restored unread, including beside the journal",
);
await page.screenshot({
path: `/tmp/soup-activity-${width}.png`,
fullPage: true,
});
if (desktop) {
// Resizing keeps the selected mobile tab, then restores both desktop panes.
await page.setViewportSize({ width: 1000, height: 950 });
await page.getByRole("tab", { name: "Journal", exact: true }).waitFor();
assert.ok(await chatPanel.isHidden());
assert.ok(await journalPanel.isVisible());
await page.getByRole("tab", { name: /^Chat/ }).click();
assert.ok(await chatPanel.isVisible());
assert.ok(await journalPanel.isHidden());
await page.setViewportSize({ width: 1001, height: 950 });
await page
.getByRole("region", { name: "Journal", exact: true })
.waitFor();
assert.ok(await chatPanel.isVisible());
const history = {
...state,
log: Array.from({ length: 100 }, (_, i) => ({
round: 1,
phase: 0,
text: `Colony moves ${i}.`,
})),
};
await page.evaluate((state) => e.emit("state", state), history);
await page.waitForFunction(() => {
const list = document.querySelector(".journal-list");
return (
list.scrollHeight > list.clientHeight &&
list.scrollHeight - list.clientHeight - list.scrollTop <= 1
);
});
// New entries must not pull someone away while they read older journal lines.
await page
.locator(".journal-list")
.evaluate((list) => (list.scrollTop -= 50));
await page.waitForTimeout(50);
const position = await page
.locator(".journal-list")
.evaluate((list) => list.scrollTop);
history.log.push({ round: 1, phase: 0, text: "One more move." });
await page.evaluate((state) => e.emit("state", state), history);
await page.waitForTimeout(50);
assert.equal(
await page
.locator(".journal-list")
.evaluate((list) => list.scrollTop),
position,
);
await page.setViewportSize({ width, height: 950 });
}
const journalState = prepared();
journalState.log = [
{ round: 2, phase: 0, text: "Maya #1 chooses south with Movement II." },
{ round: 2, phase: 0, text: "Maya #1 moves to C5." },
{
round: 2,
phase: 0,
text: "Maya #1 feeds on 1 green nutrient, 1 blue nutrient, 1 yellow nutrient at C5.",
},
{ round: 2, phase: 0, text: "Maya #1 excretes 2 red nutrients at C5." },
{ round: 2, phase: 0, text: "Leo #1 moves to C5.", genes: ["holding"] },
];
await page.evaluate(
(state) => e.emit("state", state),
engine.stripSecret(journalState),
);
const combined = page.locator(".journal-event--combined");
assert.equal(await combined.count(), 1);
assert.equal(await combined.locator(".journal-amoeba").count(), 1);
assert.equal(await combined.locator(".journal-action").count(), 4);
assert.equal(await combined.locator(".food-amount").count(), 4);
assert.equal(
await page
.locator(".journal-event .gene-label")
.filter({ hasText: "Holding" })
.count(),
1,
);
for (const locale of ["fr", "en"]) {
await page.evaluate(
(locale) => e.emit("preferences", { sound: false, locale }),
locale,
);
const holding = locale === "fr" ? "Adhérence" : "Holding";
// Gene names and full sentences localize without reintroducing the shared portrait.
await page.waitForFunction(
(holding) =>
[...document.querySelectorAll(".journal-event .gene-label")].some(
(label) => label.textContent.includes(holding),
),
holding,
);
assert.equal(await combined.locator(".journal-amoeba").count(), 1);
assert.equal(await combined.locator(".food-amount").count(), 4);
assert.ok(
await page.evaluate(
() => document.documentElement.scrollWidth <= innerWidth,
),
);
}
await page.locator('[data-tab="journal"]').click();
await combined.scrollIntoViewIfNeeded();
await page
.locator(".soup-activity")
.screenshot({ path: `/tmp/soup-grouped-journal-${width}.png` });
await page.evaluate(() =>
e.emit("preferences", { sound: false, analysis: true }),
);
@ -163,12 +292,16 @@ try {
0,
);
assert.equal(await page.getByRole("tab", { name: /^Chat/ }).count(), 0);
assert.ok(await journalPanel.isVisible());
assert.equal(await page.locator(".soup-activity.is-split").count(), 0);
await page.screenshot({
path: `/tmp/${game}-analysis-${width}.png`,
fullPage: true,
});
assert.deepEqual(errors, []);
console.log(`${game} ${width}: translation/original/analysis passed`);
console.log(
`${game} ${width}: chat/journal layout, unread visibility, responsive scrolling, translation and analysis passed`,
);
await page.evaluate(
(state) => {
e.emit("player", {});

View file

@ -49,8 +49,13 @@ test("empty gene and division turns skip on entry without synthetic moves or tim
s.players.map((_, p) => Number(p === players - 1)),
);
assert.equal(
s.log.filter((line) => line.text.startsWith("Colony 1 finishes"))
.length,
s.log.filter(
(line) =>
line.text ===
(kind === "genes"
? "Colony 1 didn't buy any genes."
: "Colony 1 finishes cell division."),
).length,
1,
);
assert.equal(E.canUndo(s, players - 1), false);
@ -112,7 +117,7 @@ test("a skipped leader reveals new genes after passing, before the next colony's
"alarm",
]);
assert.deepEqual(s.newGeneMarket._deck, ["energy"]);
assert.match(s.log.at(-2).text, /^Colony 1 finishes buying genes/);
assert.equal(s.log.at(-2).text, "Colony 1 didn't buy any genes.");
assert.match(s.log.at(-1).text, /^New genes available:/);
assert.ok(
E.legalMoves(s).some((m) => m.type === "buy" && m.gene === "glutton"),

View file

@ -0,0 +1,451 @@
import test from "node:test";
import assert from "node:assert/strict";
import * as E from "../engine/index.js";
import { prepared } from "../viewer/tutorials.js";
const act = (s, type, props = {}) => {
const move = E.legalMoves(s).find(
(m) =>
m.type === type && Object.entries(props).every(([k, v]) => m[k] === v),
);
assert.ok(move, `Missing ${type}`);
return E.move(s, move, E.currentPlayer(s));
};
const text = (s) => s.log.map((l) => l.text).join("\n");
const own = (s, p, ...genes) => {
s.players[p].genes = genes.map((id) => ({ id, round: 1 }));
};
test("Tentacle logs only confirmed cargo, aggregates colours, and undo removes the entry", () => {
for (const players of [3, 4, 5, 6]) {
let s = act(prepared({ players, genes: ["tentacle"] }), "drift");
const before = structuredClone(s);
for (let i = 0; i < 10; i++) s = act(act(s, "carry"), "return-food");
assert.deepEqual(s.log, before.log);
assert.equal(E.logLength(s), E.logLength(before));
const colour = players >= 5 ? 4 : 1;
s = act(s, "carry", { color: colour });
s = act(s, "carry", { color: colour });
const picked = s;
s = act(s, "travel");
assert.equal(s.log.filter((l) => l.text.includes("carries")).length, 1);
assert.match(
text(s),
new RegExp(
`carries 2 ${E.COLORS[colour]} nutrients from B2 to C2 with Tentacle`,
),
);
assert.equal(s.food[7][colour], before.food[7][colour] + 2);
s = E.move(s, { type: "undo" }, 0);
assert.deepEqual(s.log, picked.log);
assert.deepEqual(s.food, picked.food);
s = act(act(s, "return-food"), "return-food");
s = act(s, "travel");
assert.doesNotMatch(text(s), /carries/);
}
});
test("feeding identifies the meal, Suction source, Parasitism payer and Fast Food timing", () => {
let s = prepared({ genes: ["suction1", "parasitism", "fast-food"] });
s.amoebas.find((a) => a.p === 1).cell = 6;
s = act(s, "eat-first");
const meal = E.legalMoves(s).find(
(m) => m.type === "eat" && m.source === 7 && m.host === 1,
);
assert.ok(meal);
s = E.move(s, meal, 0);
assert.match(text(s), /takes .* from C2 with Suction I/);
assert.match(text(s), /You #1 uses Parasitism; Maya pays 1 BP/);
assert.match(text(s), /You #1 feeds on .* at B2 with Fast Food/);
for (let p = 0; p < s.players.length; p++) {
if (meal.food[p])
assert.ok(text(s).includes(`${meal.food[p]} ${E.COLORS[p]} nutrient`));
}
assert.equal(s.players[1].bp, 5);
assert.equal(s.tasks[0].kind, "movement");
const normal = act(prepared({ task: { kind: "feeding", a: "0-1" } }), "eat");
assert.match(
text(normal),
/feeds on 1 red nutrient, 1 blue nutrient, 1 yellow nutrient at B2\./,
);
});
test("excretion reports actual supply-limited amounts, including zero with Toxic Excretions", () => {
for (const supply of [0, 1, 2]) {
let s = prepared({ genes: ["toxic"], task: { kind: "feeding", a: "0-1" } });
s.supply[0] = supply;
s = act(s, "eat");
assert.match(
text(s),
new RegExp(
`excretes ${supply} green nutrient${supply === 1 ? "" : "s"} and one toxin at B2`,
),
);
assert.equal(s.toxins[6], 1);
}
});
test("Holding, normal swimming, Streamline and Speed explain the chosen movement and fee", () => {
let s = act(prepared({ genes: ["holding"] }), "hold");
assert.equal(s.log[0].text, "You #1 stays at B2.");
assert.deepEqual(s.log[0].genes, ["holding"]);
s = prepared();
own(s, 1, "holding");
s.amoebas.find((a) => a.p === 1).cell = 6;
s = act(act(s, "drift"), "follow");
assert.deepEqual(
s.log.map((l) => [l.text, l.genes]),
[
["You #1 moves to C2.", undefined],
["Maya #1 moves to C2.", ["holding"]],
],
);
s = act(prepared(), "swim");
assert.match(text(s), /swims for 1 BP/);
assert.match(s.log.at(-1).text, /rolls/);
s = act(prepared({ genes: ["movement2", "streamline", "speed"] }), "swim");
assert.match(text(s), /swims for 0 BP/);
assert.deepEqual(s.log[0].genes, ["streamline"]);
s = act(act(s, "direction"), "swim-again");
assert.match(text(s), /swims again for 0 BP with Speed/);
assert.doesNotMatch(text(s), /rolls/);
});
test("Holding tags the confirmed movement after Tentacle choices and undo removes both", () => {
let s = prepared({ genes: ["holding", "tentacle"] });
s.amoebas.find((a) => a.id === "0-2").cell = 6;
s = act(act(act(s, "drift"), "travel"), "follow");
assert.equal(s.log.length, 1);
s = act(s, "carry");
const before = structuredClone(s);
s = act(s, "travel");
assert.match(s.log.at(-2).text, /with Tentacle/);
assert.deepEqual(s.log.at(-1).genes, ["holding"]);
assert.equal(s.log.at(-1).text, "You #2 moves to C2.");
s = E.move(s, { type: "undo" }, 0);
assert.deepEqual(s.log, before.log);
});
test("movement and excretion entries identify the genes that cause them", () => {
let s = act(prepared({ genes: ["movement1"] }), "swim");
assert.deepEqual(s.log.at(-1).genes, ["movement1"]);
for (const swim of [false, true]) {
s = prepared({ genes: ["rebound", "movement2"] });
s.amoebas[0].cell = 11;
s.environment.direction = 2;
if (swim) s = act(s, "swim");
s = act(s, swim ? "direction" : "drift", { cell: 13 });
assert.deepEqual(s.log.at(-1).genes, ["rebound"]);
}
s = prepared({
genes: ["cleanliness", "toxic"],
task: { kind: "feeding", a: "0-1" },
});
s = act(act(s, "eat"), "excrete", { cell: 7 });
assert.deepEqual(s.log.find((l) => l.text.includes("excretes")).genes, [
"toxic",
"cleanliness",
]);
});
test("feeding chips credit only genes needed by the chosen meal", () => {
for (const players of [3, 4, 5, 6]) {
for (const genes of [
[],
["frugality"],
["substitution"],
["frugality", "substitution"],
["glutton"],
]) {
const s = prepared({
players,
genes,
task: { kind: "feeding", a: "0-1" },
});
s.food[6].fill(8);
for (const meal of E.legalMoves(s).filter((m) => m.type === "eat")) {
const next = E.move(s, meal, 0);
const entry = next.log.find((l) => l.text.includes("feeds on"));
for (const id of genes) {
const without = structuredClone(s);
own(without, 0, ...genes.filter((g) => g !== id));
const possibleWithout = E.legalMoves(without).some(
(m) =>
m.type === "eat" && m.food.every((n, p) => n === meal.food[p]),
);
assert.equal(
entry.genes?.includes(id) ?? false,
id === "glutton" || !possibleWithout,
`${players} players, ${genes}, meal ${meal.food}, gene ${id}`,
);
}
}
}
}
});
test("division chips explain discounts and remote placement without claiming unused genes", () => {
for (const id of ["division", "short-life"]) {
let s = prepared({
genes: [id, "spores"],
phase: 3,
task: { kind: "division", p: 0 },
});
const remote = E.legalMoves(s).find(
(m) =>
m.type === "divide" &&
!E.colony(s, 0).some((a) => E.adjacent(a.cell).includes(m.cell)),
);
s = E.move(s, remote, 0);
assert.deepEqual(s.log[0].genes, [id, "spores"]);
assert.match(s.log[0].text, /for 4 BP/);
}
let s = prepared({
genes: ["division", "spores"],
phase: 3,
task: { kind: "division", p: 0 },
});
s.amoebas = s.amoebas.filter((a) => a.p !== 0);
s = act(s, "divide");
assert.equal(s.log[0].genes, undefined);
assert.match(s.log[0].text, /for 0 BP/);
});
function combat(defenderGenes, attackerGenes = ["struggle"], seed) {
const s = prepared({
genes: attackerGenes,
task: { kind: "feeding", a: "0-1" },
...(seed ? { seed } : {}),
});
s.tasks.push({ kind: "movement", a: "0-2" });
s.food[6].fill(0);
s.amoebas.find((a) => a.p === 1).cell = 6;
own(s, 1, ...defenderGenes);
return s;
}
test("combat records the gene, defender cost, escape attempt and Hard Crust payment", () => {
let s = act(combat(["defense"]), "attack");
assert.match(text(s), /attacks Maya #1 with Struggle for Survival for 1 BP/);
s = act(s, "defend");
assert.match(text(s), /Maya #1 uses Defense for 1 BP/);
s = act(act(combat(["escape", "movement2"]), "attack"), "escape");
assert.match(text(s), /Maya #1 swims with Escape for 1 BP/);
s = act(
act(combat(["escape", "movement2", "streamline"]), "attack"),
"escape",
);
assert.match(text(s), /Maya #1 swims with Escape for 0 BP/);
assert.equal(s.players[1].bp, 6);
s = act(act(combat(["hard-crust"]), "attack"), "pay-crust");
assert.match(text(s), /You #1 pays 1 BP to overcome Hard Crust/);
assert.equal(s.players[0].bp, 10);
s = act(
act(combat(["hard-crust"], ["struggle", "persistence"]), "attack"),
"abandon-attack",
);
assert.match(text(s), /fails to attack Maya #1/);
const retried = act(s, "retry-attack");
assert.match(text(retried), /attacks Maya #1 with Persistence for 0 BP/);
assert.equal(retried.players[0].bp, s.players[0].bp);
s = act(s, "stop-attack");
assert.equal(
s.log.filter((l) => l.text.includes("fails to attack")).length,
1,
);
});
test("tied combat rolls remain visible and a Persistence defense reroll costs no additional BP", () => {
let s = act(
combat(["defense", "persistence"], ["struggle"], "journal-combat-6"),
"attack",
);
s = act(s, "defend");
assert.deepEqual(
s.log.slice(2).map((l) => l.text),
[
"You #1 rolls 1; Maya #1 rolls 1.",
"Tie — roll again.",
"You #1 rolls 6; Maya #1 rolls 6.",
"Tie — roll again.",
"You #1 rolls 3; Maya #1 rolls 2.",
],
);
const bp = s.players[1].bp;
s = act(s, "retry-defense");
assert.match(text(s), /Maya #1 uses Persistence for 0 BP/);
assert.equal(s.players[1].bp, bp);
});
test("upgrades and exchanges name every returned gene; Social Gene names its paid owner", () => {
const genesTurn = (genes = []) => {
const s = prepared({ genes, phase: 2, task: { kind: "genes", p: 0 } });
s.options.newGenes = true;
s.newGeneMarket = {
available: ["social", "phd", "population"],
_deck: [],
revealedRound: 0,
};
return s;
};
let s = act(genesTurn(), "buy", { gene: "movement1" });
assert.equal(s.log[0].text, "You buys Movement I for 3 BP.");
assert.equal(s.players[0].bp, 9);
s = act(genesTurn(["movement1"]), "buy", { gene: "movement2" });
assert.match(text(s), /returns Movement I to the gene pool/);
assert.match(text(s), /buys Movement II for 5 BP/);
s = act(genesTurn(["adaptable", "intelligence", "movement1"]), "exchange", {
gene: "phd",
exchange: "movement1",
});
assert.match(text(s), /returns Intelligence to the gene pool/);
assert.match(text(s), /returns Movement I to the gene pool/);
assert.equal(s.log.filter((l) => l.text.includes("returns")).length, 2);
assert.deepEqual(s.log.at(-1).genes, ["adaptable"]);
s = genesTurn(["flexible"]);
s.players[0].score = 0;
own(s, 1, "social");
s = act(s, "buy", { gene: "social" });
assert.equal(s.log[0].text, "You buys Social Gene from Maya for 1 BP.");
assert.equal(s.players[0].bp, 11);
assert.equal(s.players[1].bp, 7);
assert.deepEqual(s.log[0].genes, ["flexible"]);
});
test("gene passes distinguish purchases, free exchanges, and an undone purchase", () => {
const turn = (genes = []) => {
const s = prepared({ genes, phase: 2, task: { kind: "genes", p: 0 } });
s.tasks.push({ kind: "genes", p: 1 });
return s;
};
assert.equal(act(turn(), "done").log[0].text, "You didn't buy any genes.");
const bought = act(turn(), "buy", { gene: "movement1" });
assert.equal(
act(bought, "done").log.at(-1).text,
"You finishes buying genes.",
);
const undone = E.move(bought, { type: "undo" }, 0);
const passed = act(undone, "done");
assert.equal(passed.log.length, 1);
assert.equal(passed.log[0].text, "You didn't buy any genes.");
const exchanged = act(turn(["adaptable"]), "exchange", {
gene: "intelligence",
exchange: "adaptable",
});
assert.match(text(exchanged), /buys Intelligence for 0 BP/);
assert.equal(
act(exchanged, "done").log.at(-1).text,
"You finishes buying genes.",
);
});
test("deaths show actual released food and Bang identifies each injured amoeba", () => {
let s = prepared({ phase: 3, task: { kind: "division", p: 0 } });
s.amoebas[0].hp = 2;
s.supply = [0, 1, 2, 0];
s = act(s, "done");
assert.match(
text(s),
/You #1 returns to the soup at B2; food: 1 red nutrient, 2 blue nutrients\./,
);
s = prepared({ genes: ["bang"], phase: 3, task: { kind: "division", p: 0 } });
s.supply.fill(0);
s.amoebas[0].hp = 2;
s.amoebas.find((a) => a.p === 1).cell = 6;
s.amoebas.find((a) => a.p === 2).cell = 6;
s = act(s, "done");
assert.match(text(s), /returns to the soup at B2; food: none/);
for (const victim of ["Maya", "Leo"])
assert.ok(
text(s).includes(
`You #1 gives ${victim} #1 one injury with Go Out With a Bang.`,
),
);
});
test("gene defects and Population Explosion report the actual BP still needed or surrendered", () => {
let s = prepared({
genes: ["short-life"],
phase: 1,
task: { kind: "defect", p: 0, debt: 6 },
});
s = act(s, "discard", { gene: "short-life" });
assert.match(text(s), /discards Short Life Span; remaining deficit: 2 BP/);
assert.equal(s.players[0].bp, 12);
s = prepared({
genes: ["population"],
bp: 5,
phase: 3,
task: { kind: "population", p: 0, target: 3 },
});
s.tasks.push({ kind: "division", p: 0 });
s = act(s, "population-explosion");
assert.match(text(s), /gives up 5 BP and grows toward 3 amoebas/);
assert.equal(s.players[0].bp, 0);
});
test("scoring breaks down amoeba and gene points while showing the final position after occupied spaces", () => {
let s = prepared({
genes: ["movement2", "speed"],
phase: 4,
task: { kind: "aggression", p: 0 },
});
s.players.forEach((p, i) => (p.score = [4, 5, 6, 7][i]));
s.amoebas.push({ id: "0-3", p: 0, n: 3, cell: 1, hp: 0 });
s = act(s, "done");
assert.match(
text(s),
/You advances 2 spaces to 9 \(1 from amoebas \+ 1 from genes\)/,
);
assert.equal(s.players[0].score, 9);
});
test("phase 5 Aggression and Defense journal the BP paid by each colony", () => {
let s = combat(["defense"], ["aggression"]);
s.phase = 4;
s.tasks = [
{ kind: "aggression", p: 0 },
{ kind: "aggression", p: 2 },
];
const initialBP = s.players.map((p) => p.bp);
s = act(s, "attack", { attacker: "0-1", victim: "1-1" });
assert.equal(s.players[0].bp, initialBP[0] - 1);
assert.equal(s.players[1].bp, initialBP[1]);
assert.deepEqual(s.log[0], {
round: s.round,
phase: 4,
text: "You #1 attacks Maya #1 with Aggression for 1 BP.",
cell: 6,
});
s = act(s, "defend");
assert.equal(s.players[0].bp, initialBP[0] - 1);
assert.equal(s.players[1].bp, initialBP[1] - 1);
assert.equal(s.log[1].phase, 4);
assert.equal(s.log[1].text, "Maya #1 uses Defense for 1 BP.");
assert.match(s.log[2].text, /rolls/);
});
test("Healing shows its price or the recipient of the injury before that recipient dies", () => {
let s = prepared({
genes: ["healing1"],
phase: 3,
task: { kind: "division", p: 0 },
});
s.amoebas[0].hp = 1;
s = act(s, "heal");
assert.match(text(s), /You #1 removes one injury with Healing I for 3 BP/);
s = prepared({
genes: ["healing2"],
phase: 3,
task: { kind: "division", p: 0 },
});
s.amoebas[0].hp = 1;
s.amoebas.find((a) => a.p === 1).cell = 6;
s = act(s, "transfer-injury", { target: "1-1" });
assert.match(
s.log[0].text,
/You #1 transfers one injury to Maya #1 with Healing II/,
);
assert.match(s.log[1].text, /Maya #1 returns to the soup/);
assert.equal(s.players[0].bp, 12);
});

View file

@ -1,5 +1,7 @@
import test from "node:test";
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import { createTranslator, languages } from "../viewer/localization/runtime.js";
import {
journalHtml,
journalEntryHtml,
@ -33,12 +35,15 @@ test("swimming rolls show each die and its direction without treating combat rol
assert.match(html, /Rolled 6: Choose/);
for (const text of [
"Maya rolls 2; Maya_2 rolls 4.",
"Maya #1 rolls 3; Maya_2 #2 rolls 5.",
"Maya #1 rolls 4 for Camouflage I: defenses are bypassed.",
]) {
assert.doesNotMatch(
journalEntryHtml({ phase: 0, text }, players),
/journal-die/,
);
for (const phase of [0, 4]) {
assert.doesNotMatch(
journalEntryHtml({ phase, text }, players),
/journal-die/,
);
}
}
});
@ -61,6 +66,93 @@ test("journal preserves amoeba identities, coordinates and resource amounts", ()
assert.doesNotMatch(html, /Maya #1|Maya_2 #2/);
});
test("gene causes appear as chips on the affected journal entry and the last-move line", () => {
const line = {
round: 2,
phase: 0,
text: "Maya_2 #1 moves to B3.",
genes: ["holding"],
};
for (const html of [
journalHtml([line], players),
journalEntryHtml(line, players),
]) {
assert.match(html, /aria-label="Maya_2, amoeba 1"/);
assert.match(html, /title="Space B3"/);
assert.match(html, /class="gene-label"[^>]*>.*<span>Holding<\/span>/);
assert.equal((html.match(/class="gene-label"/g) ?? []).length, 1);
assert.match(html, /data-localized-rich-text="Holding"/);
}
});
test("consecutive amoeba actions share one portrait while preserving dice, resources and gene causes", () => {
const lines = [
{ text: "Maya #1 rolls 2 and 3.", genes: ["movement1"] },
{ text: "Maya #1 chooses east." },
{ text: "Maya #1 moves to C2.", genes: ["holding"] },
{ text: "Maya #1 feeds on 1 blue nutrient at C2." },
{ text: "Maya #1 excretes 2 red nutrients at C2." },
].map((line) => ({ round: 2, phase: 0, ...line }));
const original = structuredClone(lines);
const html = journalHtml(lines, players);
assert.equal((html.match(/journal-event--combined/g) ?? []).length, 1);
assert.equal((html.match(/class="journal-amoeba"/g) ?? []).length, 1);
assert.equal((html.match(/class="journal-action"/g) ?? []).length, 5);
assert.equal((html.match(/class="journal-die"/g) ?? []).length, 2);
assert.equal((html.match(/class="gene-label"/g) ?? []).length, 2);
assert.equal((html.match(/class="food-amount"/g) ?? []).length, 2);
assert.deepEqual(lines, original);
assert.equal(
(
journalHtml(lines.slice(0, 2), players).match(
/class="journal-action"/g,
) ?? []
).length,
2,
);
});
test("journal grouping stops at other actors, standalone events, phases and rounds", () => {
const html = journalHtml(
[
{ round: 1, phase: 0, text: "Maya #1 moves to C2." },
{ round: 1, phase: 0, text: "Maya #2 moves to C2." },
{ round: 1, phase: 0, text: "Maya #1 feeds." },
{
round: 1,
phase: 0,
text: "Maya_2 #1 moves to C2.",
genes: ["holding"],
},
{ round: 1, phase: 0, text: "Maya #1 feeds." },
{ round: 1, phase: 0, text: "Tie — roll again." },
{ round: 1, phase: 0, text: "Maya #1 feeds." },
{ round: 1, phase: 4, text: "Maya #1 feeds." },
{ round: 2, phase: 4, text: "Maya #1 feeds." },
],
players,
);
assert.doesNotMatch(html, /journal-event--combined/);
assert.equal((html.match(/class="journal-event"/g) ?? []).length, 9);
});
test("grouped translations omit only their shared subject, retaining other amoeba references", () => {
const source = "Maya #1 attacks Maya_2 #2 with Aggression for 1 BP.";
const html = renderJournalSentence(
source,
players,
(text) =>
text === source
? "Maya_2 #2 is attacked by Maya #1 with Aggression for 1 BP."
: text,
{ name: "Maya", number: "1" },
);
assert.doesNotMatch(html, /aria-label="Maya, amoeba 1"/);
assert.match(html, /aria-label="Maya_2, amoeba 2"/);
assert.match(html, /class="gene-label"/);
assert.match(html, /class="resource-amount bp-amount"/);
});
test("journal uses one round divider across phase changes and retains historical environments", () => {
const html = journalHtml(
[
@ -123,3 +215,71 @@ test("journal translates the complete sentence before decorating names and coord
assert.match(html, /aria-label="Maya, Amöbe 1"/);
assert.doesNotMatch(html, /moves to/);
});
test("detailed cargo and meal entries retain nutrient icons, gene labels and amoeba badges in every language", async () => {
for (const locale of Object.keys(languages)) {
const catalog = JSON.parse(
await readFile(
new URL(`../viewer/localization/${locale}.json`, import.meta.url),
"utf8",
),
);
const translator = createTranslator({ [locale]: catalog }, locale);
translator.setNames(players.map((p) => p.name));
for (const source of [
"Maya #1 carries 2 blue nutrients, 1 red nutrient from B2 to C2 with Tentacle.",
"Maya #1 feeds on 1 red nutrient, 1 blue nutrient at B2 with Fast Food.",
]) {
const html = renderJournalSentence(source, players, translator.translate);
assert.equal(
(html.match(/class="food-amount"/g) ?? []).length,
2,
`${locale}: ${source}`,
);
assert.equal(
(html.match(/class="journal-amoeba"/g) ?? []).length,
1,
locale,
);
assert.match(html, /class="gene-label"/, locale);
assert.match(html, /class="journal-cell"/, locale);
const grouped = renderJournalSentence(
source,
players,
translator.translate,
{ name: "Maya", number: "1" },
);
assert.doesNotMatch(grouped, /class="journal-amoeba"/, locale);
assert.match(grouped, /class="gene-label"/, locale);
assert.equal(
(grouped.match(/class="food-amount"/g) ?? []).length,
2,
locale,
);
if (locale !== "en")
assert.notEqual(translator.translate(source), source, locale);
}
for (const source of [
"Maya #1 attacks Maya_2 #2 with Aggression for 1 BP.",
"Maya #1 attacks Maya_2 #2 with Persistence for 0 BP.",
"Maya_2 #2 uses Defense for 1 BP.",
"Maya_2 #2 uses Persistence for 0 BP.",
"Maya_2 #2 swims with Escape for 0 BP.",
"Maya #1 pays 1 BP to overcome Hard Crust.",
"Maya buys Movement II for 5 BP.",
"Maya buys Social Gene from Maya_2 for 2 BP.",
"Maya discards Speed; remaining deficit: 0 BP.",
]) {
const html = renderJournalSentence(source, players, translator.translate);
assert.equal(
(html.match(/class="resource-amount bp-amount"/g) ?? []).length,
1,
`${locale}: ${source}`,
);
assert.match(html, /class="journal-(?:amoeba|player)"/, locale);
assert.match(html, /class="gene-label"/, locale);
if (locale !== "en")
assert.notEqual(translator.translate(source), source, locale);
}
}
});

View file

@ -100,7 +100,7 @@ test("the market reveals after the actual leader finishes, never before or twice
];
assert.ok(!E.legalMoves(s).some((m) => m.gene === "energy"));
s = act(s, "done");
assert.match(s.log.at(-2).text, /finishes buying genes/);
assert.match(s.log.at(-2).text, /didn't buy any genes/);
assert.match(s.log.at(-1).text, /^New genes available:/);
assert.deepEqual(s.newGeneMarket.available, [
"social",

View file

@ -0,0 +1,40 @@
import test from "node:test";
import assert from "node:assert/strict";
import { COLORS } from "../engine/catalog.js";
import {
colors,
amoeba,
setPlayerColors,
displayColorName,
} from "../viewer/art.js";
import { food } from "../viewer/rich-text.js";
test("custom colours recolour amoebas and nutrients together without changing colony identities", () => {
const original = structuredClone(colors);
const identities = [...COLORS];
try {
setPlayerColors(["#123abc"]);
assert.equal(colors.green.body, "#123abc");
assert.match(amoeba("green"), /#123abc/);
assert.ok(food(0).includes(colors.green.shade));
assert.equal(displayColorName(0, "Green"), "Player 1");
assert.deepEqual(COLORS, identities);
setPlayerColors(["#123abc"], false);
assert.deepEqual(
colors,
original,
"accessibility mode restores the canonical palette",
);
setPlayerColors(["url(x)"]);
assert.deepEqual(colors, original);
setPlayerColors(["#ffffff"]);
setPlayerColors([]);
assert.deepEqual(
colors,
original,
"expired or cleared preferences restore all colours",
);
} finally {
setPlayerColors([]);
}
});

View file

@ -17,7 +17,7 @@
--activity-padding: 12px;
}
.activity-header,
.activity-header [role="tablist"] {
.activity-tabs {
display: flex;
align-items: center;
gap: 8px;
@ -27,7 +27,7 @@
padding: 10px 16px 0;
border-bottom: 1px solid var(--line);
}
.activity-header [role="tab"] {
.activity-header [data-tab] {
display: inline-flex;
align-items: center;
gap: 7px;
@ -65,9 +65,43 @@
}
.activity-chat,
.activity-journal {
min-width: 0;
height: var(--activity-height);
padding: var(--activity-padding) 20px;
}
.soup-activity.is-split {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.is-split .activity-header {
position: relative;
grid-column: 1 / -1;
display: block;
padding: 0;
}
.is-split .activity-tabs {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0;
}
.is-split .activity-header [data-tab] {
justify-content: flex-start;
padding: 14px 20px;
border-bottom: 0;
color: var(--ink);
}
.is-split .activity-header [data-tab="journal"] {
padding-right: 150px;
border-left: 1px solid var(--line);
}
.is-split .activity-back {
position: absolute;
top: 5px;
right: 16px;
}
.is-split .activity-journal {
border-left: 1px solid var(--line);
}
.soup-activity .bgs-game-chat {
height: 100%;
min-width: 0;
@ -253,6 +287,18 @@
border: 0;
line-height: 1.7;
}
.soup .journal-list .journal-event--combined {
display: flex;
align-items: flex-start;
gap: 5px;
}
.journal-event--combined > .journal-amoeba {
flex: none;
margin-top: 0;
}
.journal-sequence {
min-width: 0;
}
.journal-amoeba,
.journal-player {
display: inline-flex;

View file

@ -9,7 +9,7 @@ export function mountActivity(target, { chat, openPlayer, backToBoard } = {}) {
const section = document.createElement("section");
section.className = "soup-activity";
section.setAttribute("aria-label", "Chat and journal");
section.innerHTML = `<header class="activity-header"><div role="tablist" aria-label="Chat and journal">
section.innerHTML = `<header class="activity-header"><div class="activity-tabs" role="tablist" aria-label="Chat and journal">
<button type="button" role="tab" id="${id}-chat-tab" aria-controls="${id}-chat" data-tab="chat" ${chat ? "" : "hidden"}>${icon("chat")} Chat <span class="chat-count" hidden></span></button>
<button type="button" role="tab" id="${id}-journal-tab" aria-controls="${id}-journal" data-tab="journal">${icon("history")} Journal</button>
</div><button type="button" class="text-button activity-back">Back to board ↑</button></header>
@ -22,12 +22,15 @@ export function mountActivity(target, { chat, openPlayer, backToBoard } = {}) {
shortcut.hidden = true;
target.append(section, shortcut);
const tabs = [...section.querySelectorAll("[data-tab]")];
const tabList = section.querySelector(".activity-tabs");
const desktop = matchMedia("(min-width: 1001px)");
const chatPanel = section.querySelector(".activity-chat");
const journalPanel = section.querySelector(".activity-journal");
const journal = journalPanel.querySelector("ol");
const count = section.querySelector(".chat-count");
let active = chat ? "chat" : "journal";
let analysis = false;
let split = false;
let players = [];
let identity = "";
let journalKey;
@ -78,19 +81,27 @@ export function mountActivity(target, { chat, openPlayer, backToBoard } = {}) {
function followJournal() {
cancelAnimationFrame(journalFrame);
journalFrame = requestAnimationFrame(() => {
if (active === "journal" && following)
if (!journalPanel.hidden && following)
journal.scrollTop = journal.scrollHeight;
});
}
function select(kind) {
active = kind === "chat" && chat && !analysis ? "chat" : "journal";
split = desktop.matches && !!chat && !analysis;
section.classList.toggle("is-split", split);
tabList.setAttribute("role", split ? "group" : "tablist");
for (const tab of tabs) {
tab.setAttribute("aria-selected", String(tab.dataset.tab === active));
tab.tabIndex = tab.dataset.tab === active ? 0 : -1;
tab.setAttribute("role", split ? "button" : "tab");
if (split) tab.removeAttribute("aria-selected");
else
tab.setAttribute("aria-selected", String(tab.dataset.tab === active));
tab.tabIndex = split || tab.dataset.tab === active ? 0 : -1;
}
chatPanel.hidden = active !== "chat";
journalPanel.hidden = active !== "journal";
chat?.setOpen(active === "chat");
chatPanel.setAttribute("role", split ? "region" : "tabpanel");
journalPanel.setAttribute("role", split ? "region" : "tabpanel");
chatPanel.hidden = !split && active !== "chat";
journalPanel.hidden = !split && active !== "journal";
chat?.setOpen(!chatPanel.hidden);
followJournal();
}
function open(kind) {
@ -100,10 +111,15 @@ export function mountActivity(target, { chat, openPlayer, backToBoard } = {}) {
else journal.focus({ preventScroll: true });
}
for (const tab of tabs) {
tab.addEventListener("click", () => select(tab.dataset.tab), eventOptions);
tab.addEventListener(
"click",
() => (split ? open(tab.dataset.tab) : select(tab.dataset.tab)),
eventOptions,
);
tab.addEventListener(
"keydown",
(event) => {
if (split) return;
const shown = tabs.filter((item) => !item.hidden);
const index = shown.indexOf(tab);
const next = {
@ -120,6 +136,7 @@ export function mountActivity(target, { chat, openPlayer, backToBoard } = {}) {
eventOptions,
);
}
desktop.addEventListener("change", () => select(active), eventOptions);
section
.querySelector(".activity-back")
.addEventListener("click", backToBoard, eventOptions);
@ -162,7 +179,7 @@ export function mountActivity(target, { chat, openPlayer, backToBoard } = {}) {
update(state) {
players = state.players;
const nextIdentity = JSON.stringify(
players.map(({ name, color }) => [name, color]),
players.map(({ name, color }) => [name, color, colors[color]]),
);
if (nextIdentity !== identity) {
identity = nextIdentity;

View file

@ -44,6 +44,59 @@ const colors = {
cheek: "#dfb965",
},
};
const originalColors = structuredClone(colors);
const seatColors = ["green", "red", "blue", "yellow", "black", "burgundy"];
let colourLabels = [];
const mix = (hex, target, amount) =>
"#" +
[1, 3, 5]
.map((i) =>
Math.round(
parseInt(hex.slice(i, i + 2), 16) * (1 - amount) + target * amount,
)
.toString(16)
.padStart(2, "0"),
)
.join("");
export function setPlayerColors(preferred = [], enabled = true) {
colourLabels = [];
seatColors.forEach((key, i) => {
const hex = enabled && Array.isArray(preferred) ? preferred[i] : undefined;
if (typeof hex !== "string" || !/^#[a-f0-9]{6}$/i.test(hex)) {
colors[key] = { ...originalColors[key] };
return;
}
const original = Object.entries(originalColors).find(
([, v]) => v.body.toLowerCase() === hex.toLowerCase(),
);
colors[key] = original
? { ...original[1] }
: {
body: hex,
shade: mix(hex, 0, 0.15),
light: mix(hex, 255, 0.5),
stroke: mix(hex, 0, 0.4),
cheek: mix(hex, 0, 0.1),
};
const names = {
"#da4a47": "Red",
"#e68b32": "Orange",
"#e8c844": "Yellow",
"#42a06a": "Green",
"#4595d1": "Blue",
"#9868c5": "Purple",
"#da73aa": "Pink",
"#e8e7de": "White",
"#414955": "Black",
};
colourLabels[i] = original
? original[0]
: (names[hex.toLowerCase()] ?? "Player " + (i + 1));
});
}
export function displayColorName(index, fallback) {
return colourLabels[index] || fallback;
}
const iconPaths = {
"colony-symbols":
'<circle cx="6" cy="7" r="4"/><path d="m17 3 5 9H12Z"/><rect x="3" y="15" width="8" height="7" rx="1"/><path d="m18 15 4 4-4 4-4-4Z"/>',
@ -65,6 +118,8 @@ const iconPaths = {
sun: '<circle cx="12" cy="12" r="4"/><path d="M12 1v2m0 18v2M1 12h2m18 0h2M4 4l2 2m12 12 2 2M4 20l2-2M18 6l2-2"/>',
ozone:
'<circle cx="12" cy="7" r="3"/><path d="M12 1v1M5.5 2.5l1 1M2 7h2m16 0h2m-4.5-4.5-1 1M7 11l-1 1m11-1 1 1M2 16q2.5-2 5 0t5 0 5 0 5 0M2 21q2.5-2 5 0t5 0 5 0 5 0"/>',
"environment-card":
'<path d="M15 3V2H3v16h2"/><rect x="7" y="6" width="14" height="16" rx="2"/><path d="M10 14h8m-3-3 3 3-3 3"/>',
divide:
'<path d="M11 5C4-2-3 14 5 19c4 3 5-3 7-3s3 6 7 3c8-5 1-21-6-14Z"/><circle cx="7" cy="11" r="2"/><circle cx="17" cy="11" r="2"/>',
shield:

View file

@ -10,16 +10,52 @@ import {
export function mountChatPreview(nav) {
let state = prepared({ round: 3 });
state.log = [
{ round: 2, phase: 0, text: "You #1 swims for 1 BP." },
{ round: 2, phase: 0, text: "You #1 rolls 2 and 3." },
{ round: 2, phase: 0, text: "You #1 chooses east." },
{
round: 2,
phase: 0,
text: "You #1 carries 2 blue nutrients, 1 red nutrient from C2 to D2 with Tentacle.",
},
{ round: 2, phase: 0, text: "You #1 moves to D2." },
{ round: 2, phase: 0, text: "You #1 feeds." },
{ round: 2, phase: 0, text: "Leo #1 moves to D2.", genes: ["holding"] },
{
round: 2,
phase: 0,
text: "You #1 feeds on 1 red nutrient, 1 blue nutrient, 1 yellow nutrient at D2.",
},
{ round: 2, phase: 0, text: "You #1 excretes two green nutrients at D2." },
{ round: 2, phase: 0, text: "Maya #2 moves to B4." },
{ round: 2, phase: 1, text: "The current is west. Ozone layer: 12." },
{ round: 2, phase: 2, text: "Leo evolves Movement II for 5 BP." },
{
round: 2,
phase: 1,
text: "Maya discards Speed; remaining deficit: 0 BP.",
},
{ round: 2, phase: 2, text: "Leo returns Movement I to the gene pool." },
{ round: 2, phase: 2, text: "Leo buys Movement II for 5 BP." },
{ round: 2, phase: 2, text: "Leo finishes buying genes." },
{ round: 2, phase: 2, text: "Nina didn't buy any genes." },
{
round: 2,
phase: 4,
text: "You #1 attacks Maya #1 with Aggression for 1 BP.",
},
{ round: 2, phase: 4, text: "Maya #1 uses Defense for 1 BP." },
{ round: 2, phase: 4, text: "You #1 rolls 3; Maya #1 rolls 5." },
{ round: 2, phase: 4, text: "You #1 fails to attack Maya #1." },
{ round: 3, phase: 0, text: "You #2 moves to B5." },
{ round: 3, phase: 0, text: "You #2 feeds." },
{
round: 3,
phase: 0,
text: "You #2 takes 1 blue nutrient from C5 with Suction I.",
},
{
round: 3,
phase: 0,
text: "You #2 feeds on 1 red nutrient, 1 blue nutrient, 1 yellow nutrient at B5.",
},
{ round: 3, phase: 0, text: "You #2 excretes two green nutrients at B5." },
];
let sequence = 0;

View file

@ -101,6 +101,7 @@ registerViewer(
ui.setChatNotifications(preferences.chatNotifications !== false);
ui.setAnalysisMode(preferences.analysis === true);
ui.setColorBlind(preferences[COLOR_BLIND_PREFERENCE.name] === true);
ui.setPlayerAppearance(preferences);
},
onPlayer(player) {
ui.setPlayer(player.index);

View file

@ -1,4 +1,4 @@
import { DIRECTIONS, PHASES } from "../engine/catalog.js";
import { DIRECTIONS, PHASES, GENE } from "../engine/catalog.js";
import { amoeba, colors, icon, PHASE_ICONS } from "./art.js";
import { richText, renderRichText } from "./rich-text.js";
@ -74,11 +74,11 @@ function environmentEntry(line) {
return `<div class="journal-environment" role="img" aria-label="Current ${match[1]}. Ozone layer ${match[2]}."><span class="journal-current"><span class="journal-current-arrow" aria-hidden="true" style="transform:rotate(${[180, 270, 0, 90, 0][direction]}deg)">${direction === 4 ? "·" : "➜"}</span><strong>${DIRECTIONS[direction]}</strong></span><span class="journal-ozone" title="Ozone layer ${match[2]} — protection from radiation">${icon("ozone")}<strong>${match[2]}</strong></span></div>`;
}
function swimmingRoll(line, renderText) {
function swimmingRoll(line, renderText, players, omitSubject) {
const match = line.text.match(
/^(.+ #[1-7]) rolls ([1-6])(?: and ([1-6]))?\.$/,
/^(.+) #([1-7]) rolls ([1-6])(?: and ([1-6]))?\.$/,
);
if (!match) return;
if (!match || !players.some((player) => player.name === match[1])) return;
const pips = [
[],
[[12, 12]],
@ -114,7 +114,7 @@ function swimmingRoll(line, renderText) {
],
];
const dice = match
.slice(2)
.slice(3)
.filter(Boolean)
.map((value) => {
const direction = ["West", "North", "East", "South", "Stay", "Choose"][
@ -123,14 +123,16 @@ function swimmingRoll(line, renderText) {
return `<span class="journal-die" role="img" aria-label="Rolled ${value}: ${direction}" title="${value}: ${direction}"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="1" y="1" width="22" height="22" rx="4"/>${pips[Number(value)].map(([x, y]) => `<circle cx="${x}" cy="${y}" r="1.8"/>`).join("")}</svg><small>${direction}</small></span>`;
})
.join("");
return `<span class="journal-text">${renderText(match[1])} rolls <span class="journal-dice">${dice}</span></span>`;
return `<span class="journal-text">${omitSubject ? "" : `${renderText(`${match[1]} #${match[2]}`)} `}rolls <span class="journal-dice">${dice}</span>.</span>`;
}
export function renderJournalSentence(
source,
players,
translate = (text) => text,
omitSubject,
) {
let subjectOmitted = false;
const byName = new Map(
players
.filter((p) => p.name && colors[p.color])
@ -156,33 +158,76 @@ export function renderJournalSentence(
/^[A-E][1-5]$/.test(piece)
? `<span class="journal-cell" title="${escape(translate(`Space ${piece}`))}">${piece}</span>`
: references
? piece.replace(references, (_, name, number) =>
playerReference(byName.get(name), number, translate),
)
? piece.replace(references, (_, name, number) => {
const player = byName.get(name);
if (
!subjectOmitted &&
omitSubject?.name === player.name &&
String(omitSubject.number) === number
) {
subjectOmitted = true;
return "";
}
return playerReference(player, number, translate);
})
: piece,
)
.join("");
})
.join("");
.join("")
.trim();
}
function journalSentence(source, players) {
function journalSentence(source, players, omitSubject) {
const data = players.map(({ name, color }) => ({ name, color }));
return `<span data-localized-rich-text="${escape(source).replaceAll("#", "&#35;")}" data-journal-players="${escape(JSON.stringify(data))}" translate="no">${renderJournalSentence(source, data)}</span>`;
return `<span data-localized-rich-text="${escape(source).replaceAll("#", "&#35;")}" data-journal-players="${escape(JSON.stringify(data))}"${omitSubject ? ` data-journal-omit-subject="${escape(JSON.stringify(omitSubject))}"` : ""} translate="no">${renderJournalSentence(source, data, undefined, omitSubject)}</span>`;
}
function renderEntry(line, renderText, players) {
return (
function renderEntry(line, renderText, players, omitSubject) {
const entry =
environmentEntry(line) ??
swimmingRoll(line, renderText) ??
`<span class="journal-text">${journalSentence(line.text, players)}</span>`
);
swimmingRoll(line, renderText, players, omitSubject) ??
`<span class="journal-text">${journalSentence(line.text, players, omitSubject)}</span>`;
const causes = [...new Set(line.genes ?? [])]
.filter((id) => GENE[id])
.map((id) => richText(GENE[id].name));
return [entry, ...causes].join(" ");
}
export function journalEntryHtml(line, players) {
return line ? renderEntry(line, textRenderer(players), players) : "";
}
function actionGroups(lines, players, renderText) {
const groups = [];
const byLongestName = [...players].sort(
(a, b) => b.name.length - a.name.length,
);
for (const line of lines) {
const player = byLongestName.find((p) =>
line.text.startsWith(`${p.name} #`),
);
const number =
player && line.text.slice(player.name.length).match(/^ #([1-7]) /)?.[1];
const subject = number ? { name: player.name, number } : undefined;
const previous = groups.at(-1);
if (
subject &&
previous?.subject?.name === subject.name &&
previous.subject.number === subject.number
)
previous.lines.push(line);
else groups.push({ player, subject, lines: [line] });
}
return groups
.map(({ player, subject, lines }) =>
lines.length === 1
? `<li class="journal-event">${renderEntry(lines[0], renderText, players)}</li>`
: `<li class="journal-event journal-event--combined">${playerReference(player, subject.number)}<span class="journal-sequence">${lines.map((line) => `<span class="journal-action">${renderEntry(line, renderText, players, subject)}</span>`).join(" ")}</span></li>`,
)
.join("");
}
export function journalHtml(lines, players) {
if (!lines.length) return '<li class="journal-empty">No moves yet.</li>';
const renderText = textRenderer(players);
@ -208,7 +253,7 @@ export function journalHtml(lines, players) {
typeof phase === "number" && PHASES[phase]
? `<h4>${icon(PHASE_ICONS[phase])}${phase + 1} · ${escape(PHASES[phase])}</h4>`
: "";
return `<li class="journal-group">${heading}<ol>${lines.map((line) => `<li class="journal-event">${renderEntry(line, renderText, players)}</li>`).join("")}</ol></li>`;
return `<li class="journal-group">${heading}<ol>${actionGroups(lines, players, renderText)}</ol></li>`;
})
.join("")}</ol></li>`;
})

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "ikke afsløret · +2 pr. runde",
"Buyable": "Kan købes",
"Show only genes you can buy or exchange now.": "Vis kun gener, du kan købe eller få ved bytte nu.",
"No genes available to buy.": "Ingen gener kan købes."
"No genes available to buy.": "Ingen gener kan købes.",
"1. Movement & feeding · Lowest scorer first.": "1. Bevægelse & føde · Spilleren med færrest point starter.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Miljø · Vend et nyt miljøkort (strøm og ozon), og kontrollér derefter følsomheden. · Spilleren med flest point starter.",
"3. New genes · Highest scorer first.": "3. Nye gener · Spilleren med flest point starter.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Celledeling · Modtag {p0} biologiske point · Spilleren med flest point starter.",
"5. Survival · Highest scorer first.": "5. Overlevelse · Spilleren med flest point starter.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Evolution · Automatisk pointgivning, spilleren med flest point først.",
"{p0} swims for {p1} BP.": "{p0} svømmer for {p1} BP.",
"{p0} swims again for 0 BP with Speed.": "{p0} svømmer igen for 0 BP med Hastighed.",
"{p0} excretes {p1} at {p2}.": "{p0} udskiller {p1} på {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} udskiller {p1} og ét giftstof på {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} tager {p1} fra {p2} med {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} bruger Parasitisme; {p1} betaler 1 BP.",
"{p0} feeds on {p1} at {p2}.": "{p0} spiser {p1} på {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} spiser {p1} på {p2} med Fast Food.",
"{p0} fails to attack {p1}.": "{p0} mislykkes med angrebet på {p1}.",
"{p0} uses {p1}.": "{p0} bruger {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} bærer {p1} fra {p2} til {p3} med Tentakel.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} følger fra {p1} til {p2} med Fastholdelse.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} fjerner én skade med {p1} for 3 BP.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} overfører én skade til {p1} med Helbredelse II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} angriber {p1} med {p2} for 1 BP.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} betaler 1 BP for at overvinde Hård skal.",
"{p0} abandons the attack.": "{p0} opgiver angrebet.",
"{p0} uses {p1} for {p2} BP.": "{p0} bruger {p1} for {p2} BP.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} prøver angrebet på {p1} igen med Vedholdenhed.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} vender tilbage til suppen på {p1}; mad: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} giver {p1} én skade med Gå ud med et brag.",
"Tie — roll again.": "Uafgjort — slå igen.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} rykker {p1} felter til {p2} ({p3} fra amøber + {p4} fra gener).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} opgiver {p1}; resterende underskud: {p2} BP.",
"{p0} returns {p1} to the gene pool.": "{p0} lægger {p1} tilbage i genpuljen.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} køber {p1} fra {p2} for {p3} BP.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} bruger Befolkningseksplosion, opgiver {p1} BP og sigter mod {p2} amøber.",
"{p0} swims with {p1} for {p2} BP.": "{p0} svømmer med {p1} for {p2} BP.",
"{p0} evolves {p1} for {p2} BP.": "{p0} udvikler {p1} for {p2} BP.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} angriber {p1} med {p2} for {p3} BP.",
"{p0} buys {p1} for {p2} BP.": "{p0} køber {p1} for {p2} BP.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} køber {p1} fra {p2} for {p3} BP.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} kasserer {p1}; resterende underskud: {p2} BP.",
"{p0} didn't buy any genes.": "{p0} købte ingen gener."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "nicht aufgedeckt · +2 pro Runde",
"Buyable": "Kaufbar",
"Show only genes you can buy or exchange now.": "Nur Gene anzeigen, die du jetzt kaufen oder durch Tausch erhalten kannst.",
"No genes available to buy.": "Keine Gene zum Kaufen verfügbar."
"No genes available to buy.": "Keine Gene zum Kaufen verfügbar.",
"1. Movement & feeding · Lowest scorer first.": "1. Bewegung & Fressen · Wer die wenigsten Punkte hat, beginnt.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Umwelt · Eine neue Umweltkarte aufdecken (Strömung und Ozon), dann die Empfindlichkeit prüfen. · Wer die meisten Punkte hat, beginnt.",
"3. New genes · Highest scorer first.": "3. Neue Gene · Wer die meisten Punkte hat, beginnt.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Zellteilung · Erhalte {p0} biologische Punkte · Wer die meisten Punkte hat, beginnt.",
"5. Survival · Highest scorer first.": "5. Überleben · Wer die meisten Punkte hat, beginnt.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Evolution · Automatische Wertung, beginnend mit den meisten Punkten.",
"{p0} swims for {p1} BP.": "{p0} schwimmt für {p1} BP.",
"{p0} swims again for 0 BP with Speed.": "{p0} schwimmt mit Geschwindigkeit erneut für 0 BP.",
"{p0} excretes {p1} at {p2}.": "{p0} scheidet {p1} auf {p2} aus.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} scheidet {p1} und ein Gift auf {p2} aus.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} nimmt mit {p3} {p1} von {p2}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} nutzt Parasitismus; {p1} zahlt 1 BP.",
"{p0} feeds on {p1} at {p2}.": "{p0} frisst {p1} auf {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} frisst mit Fast Food {p1} auf {p2}.",
"{p0} fails to attack {p1}.": "Der Angriff von {p0} auf {p1} scheitert.",
"{p0} uses {p1}.": "{p0} nutzt {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} trägt mit Tentakel {p1} von {p2} nach {p3}.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} folgt mit Festhalten von {p1} nach {p2}.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} entfernt mit {p1} eine Verletzung für 3 BP.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} überträgt mit Heilung II eine Verletzung auf {p1}.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} greift {p1} mit {p2} für 1 BP an.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} zahlt 1 BP, um Harte Kruste zu überwinden.",
"{p0} abandons the attack.": "{p0} bricht den Angriff ab.",
"{p0} uses {p1} for {p2} BP.": "{p0} nutzt {p1} für {p2} BP.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} wiederholt mit Beharrlichkeit den Angriff auf {p1}.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} kehrt auf {p1} in die Ursuppe zurück; Nahrung: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} fügt {p1} mit Mit einem Knall gehen eine Verletzung zu.",
"Tie — roll again.": "Gleichstand — erneut würfeln.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} rückt {p1} Felder auf {p2} vor ({p3} durch Amöben + {p4} durch Gene).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} gibt {p1} ab; verbleibender Fehlbetrag: {p2} BP.",
"{p0} returns {p1} to the gene pool.": "{p0} gibt {p1} in den Genvorrat zurück.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} erwirbt {p1} von {p2} für {p3} BP.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} nutzt Populationsexplosion, gibt {p1} BP auf und strebt {p2} Amöben an.",
"{p0} swims with {p1} for {p2} BP.": "{p0} schwimmt mit {p1} für {p2} BP.",
"{p0} evolves {p1} for {p2} BP.": "{p0} entwickelt {p1} für {p2} BP.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} greift {p1} mit {p2} für {p3} BP an.",
"{p0} buys {p1} for {p2} BP.": "{p0} kauft {p1} für {p2} BP.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} kauft {p1} von {p2} für {p3} BP.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} legt {p1} ab; verbleibender Fehlbetrag: {p2} BP.",
"{p0} didn't buy any genes.": "{p0} hat keine Gene gekauft."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "κρυφά · +2 ανά γύρο",
"Buyable": "Διαθέσιμα για αγορά",
"Show only genes you can buy or exchange now.": "Εμφάνιση μόνο των γονιδίων που μπορείς να αγοράσεις ή να αποκτήσεις με ανταλλαγή τώρα.",
"No genes available to buy.": "Δεν υπάρχουν γονίδια διαθέσιμα για αγορά."
"No genes available to buy.": "Δεν υπάρχουν γονίδια διαθέσιμα για αγορά.",
"1. Movement & feeding · Lowest scorer first.": "1. Κίνηση & σίτιση · Ξεκινά ο παίκτης με τους λιγότερους πόντους.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Περιβάλλον · Αποκάλυψε μια νέα κάρτα περιβάλλοντος (ρεύμα και όζον) και μετά έλεγξε την ευαισθησία. · Ξεκινά ο παίκτης με τους περισσότερους πόντους.",
"3. New genes · Highest scorer first.": "3. Νέα γονίδια · Ξεκινά ο παίκτης με τους περισσότερους πόντους.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Κυτταρική διαίρεση · Λήψη {p0} βιολογικών πόντων · Ξεκινά ο παίκτης με τους περισσότερους πόντους.",
"5. Survival · Highest scorer first.": "5. Επιβίωση · Ξεκινά ο παίκτης με τους περισσότερους πόντους.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Εξέλιξη · Αυτόματη βαθμολόγηση, ξεκινώντας από τον παίκτη με τους περισσότερους πόντους.",
"{p0} swims for {p1} BP.": "{p0} κολυμπά για {p1} ΒΠ.",
"{p0} swims again for 0 BP with Speed.": "{p0} κολυμπά ξανά για 0 ΒΠ με Ταχύτητα.",
"{p0} excretes {p1} at {p2}.": "{p0} αποβάλλει {p1} στο {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} αποβάλλει {p1} και μία τοξίνη στο {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} παίρνει {p1} από το {p2} με {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} χρησιμοποιεί Παρασιτισμός· {p1} πληρώνει 1 ΒΠ.",
"{p0} feeds on {p1} at {p2}.": "{p0} τρώει {p1} στο {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} τρώει {p1} στο {p2} με Γρήγορο Φαγητό.",
"{p0} fails to attack {p1}.": "Η επίθεση του {p0} στον {p1} αποτυγχάνει.",
"{p0} uses {p1}.": "{p0} χρησιμοποιεί {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} μεταφέρει {p1} από το {p2} στο {p3} με Πλοκάμι.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} ακολουθεί από το {p1} στο {p2} με Κράτημα.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} αφαιρεί έναν τραυματισμό με {p1} για 3 ΒΠ.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} μεταφέρει έναν τραυματισμό στον {p1} με Θεραπεία II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} επιτίθεται στον {p1} με {p2} για 1 ΒΠ.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} πληρώνει 1 ΒΠ για να ξεπεράσει το Σκληρό Κέλυφος.",
"{p0} abandons the attack.": "{p0} εγκαταλείπει την επίθεση.",
"{p0} uses {p1} for {p2} BP.": "{p0} χρησιμοποιεί {p1} για {p2} ΒΠ.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} επαναλαμβάνει την επίθεση στον {p1} με Επιμονή.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} επιστρέφει στη σούπα στο {p1}· τροφή: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} προκαλεί έναν τραυματισμό στον {p1} με Φύγε με Πάταγο.",
"Tie — roll again.": "Ισοπαλία — νέα ζαριά.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} προχωρά {p1} θέσεις στο {p2} ({p3} από αμοιβάδες + {p4} από γονίδια).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} εγκαταλείπει το {p1}· υπόλοιπο ελλείμματος: {p2} ΒΠ.",
"{p0} returns {p1} to the gene pool.": "{p0} επιστρέφει το {p1} στο απόθεμα γονιδίων.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} αποκτά το {p1} από τον {p2} για {p3} ΒΠ.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} χρησιμοποιεί Πληθυσμιακή Έκρηξη, εγκαταλείπει {p1} ΒΠ και στοχεύει στις {p2} αμοιβάδες.",
"{p0} swims with {p1} for {p2} BP.": "{p0} κολυμπά με {p1} για {p2} ΒΠ.",
"{p0} evolves {p1} for {p2} BP.": "{p0} εξελίσσει {p1} για {p2} ΒΠ.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} επιτίθεται στον {p1} με {p2} για {p3} ΒΠ.",
"{p0} buys {p1} for {p2} BP.": "{p0} αγοράζει το {p1} για {p2} ΒΠ.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} αγοράζει το {p1} από τον {p2} για {p3} ΒΠ.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} απορρίπτει το {p1}· υπόλοιπο ελλείμματος: {p2} ΒΠ.",
"{p0} didn't buy any genes.": "{p0} δεν αγόρασε κανένα γονίδιο."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "unrevealed · +2 per round",
"Buyable": "Buyable",
"Show only genes you can buy or exchange now.": "Show only genes you can buy or exchange now.",
"No genes available to buy.": "No genes available to buy."
"No genes available to buy.": "No genes available to buy.",
"1. Movement & feeding · Lowest scorer first.": "1. Movement & feeding · Lowest scorer first.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.",
"3. New genes · Highest scorer first.": "3. New genes · Highest scorer first.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Cell division · Receive {p0} biological points · Highest scorer first.",
"5. Survival · Highest scorer first.": "5. Survival · Highest scorer first.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Evolution · Automatic scoring, highest scorer first.",
"{p0} swims for {p1} BP.": "{p0} swims for {p1} BP.",
"{p0} swims again for 0 BP with Speed.": "{p0} swims again for 0 BP with Speed.",
"{p0} excretes {p1} at {p2}.": "{p0} excretes {p1} at {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} excretes {p1} and one toxin at {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} takes {p1} from {p2} with {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} uses Parasitism; {p1} pays 1 BP.",
"{p0} feeds on {p1} at {p2}.": "{p0} feeds on {p1} at {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} feeds on {p1} at {p2} with Fast Food.",
"{p0} fails to attack {p1}.": "{p0} fails to attack {p1}.",
"{p0} uses {p1}.": "{p0} uses {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} carries {p1} from {p2} to {p3} with Tentacle.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} follows from {p1} to {p2} with Holding.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} removes one injury with {p1} for 3 BP.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} transfers one injury to {p1} with Healing II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} attacks {p1} with {p2} for 1 BP.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} pays 1 BP to overcome Hard Crust.",
"{p0} abandons the attack.": "{p0} abandons the attack.",
"{p0} uses {p1} for {p2} BP.": "{p0} uses {p1} for {p2} BP.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} retries the attack against {p1} with Persistence.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} returns to the soup at {p1}; food: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} gives {p1} one injury with Go Out With a Bang.",
"Tie — roll again.": "Tie — roll again.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} gives up {p1}; remaining deficit: {p2} BP.",
"{p0} returns {p1} to the gene pool.": "{p0} returns {p1} to the gene pool.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} acquires {p1} from {p2} for {p3} BP.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.",
"{p0} swims with {p1} for {p2} BP.": "{p0} swims with {p1} for {p2} BP.",
"{p0} evolves {p1} for {p2} BP.": "{p0} evolves {p1} for {p2} BP.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} attacks {p1} with {p2} for {p3} BP.",
"{p0} buys {p1} for {p2} BP.": "{p0} buys {p1} for {p2} BP.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} buys {p1} from {p2} for {p3} BP.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} discards {p1}; remaining deficit: {p2} BP.",
"{p0} didn't buy any genes.": "{p0} didn't buy any genes."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "آشکارنشده · هر دور ۲+",
"Buyable": "قابل خرید",
"Show only genes you can buy or exchange now.": "فقط ژن‌هایی را نشان بده که اکنون می‌توان خرید یا معاوضه کرد.",
"No genes available to buy.": "ژنی برای خرید در دسترس نیست."
"No genes available to buy.": "ژنی برای خرید در دسترس نیست.",
"1. Movement & feeding · Lowest scorer first.": "1. حرکت و تغذیه · بازیکن با کمترین امتیاز ابتدا بازی می‌کند.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "۲. محیط · یک کارت محیط جدید رو کنید (جریان و اوزون)، سپس حساسیت را بررسی کنید. · بازیکن با بیشترین امتیاز ابتدا بازی می‌کند.",
"3. New genes · Highest scorer first.": "3. ژن‌های تازه · بازیکن با بیشترین امتیاز ابتدا بازی می‌کند.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. تقسیم سلولی · دریافت {p0} امتیاز زیستی · بازیکن با بیشترین امتیاز ابتدا بازی می‌کند.",
"5. Survival · Highest scorer first.": "5. بقا · بازیکن با بیشترین امتیاز ابتدا بازی می‌کند.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. تکامل · امتیازدهی خودکار، با شروع از بازیکن با بیشترین امتیاز.",
"{p0} swims for {p1} BP.": "{p0} با پرداخت {p1} امتیاز زیستی شنا می‌کند.",
"{p0} swims again for 0 BP with Speed.": "{p0} با سرعت دوباره با هزینهٔ 0 امتیاز زیستی شنا می‌کند.",
"{p0} excretes {p1} at {p2}.": "{p0} در {p2} مقدار {p1} دفع می‌کند.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} در {p2} مقدار {p1} و یک سم دفع می‌کند.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} با {p3} مقدار {p1} را از {p2} می‌گیرد.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} از انگلی استفاده می‌کند؛ {p1} مقدار 1 امتیاز زیستی می‌پردازد.",
"{p0} feeds on {p1} at {p2}.": "{p0} در {p2} مقدار {p1} می‌خورد.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} با غذای فوری در {p2} مقدار {p1} می‌خورد.",
"{p0} fails to attack {p1}.": "حملهٔ {p0} به {p1} ناموفق است.",
"{p0} uses {p1}.": "{p0} از {p1} استفاده می‌کند.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} با شاخک مقدار {p1} را از {p2} به {p3} می‌برد.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} با چسبیدن از {p1} به {p2} دنبال می‌کند.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} با {p1} و پرداخت 3 امتیاز زیستی یک زخم را برمی‌دارد.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} با درمان ۲ یک زخم را به {p1} منتقل می‌کند.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} با {p2} و پرداخت 1 امتیاز زیستی به {p1} حمله می‌کند.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} برای عبور از پوستهٔ سخت مقدار 1 امتیاز زیستی می‌پردازد.",
"{p0} abandons the attack.": "{p0} از حمله منصرف می‌شود.",
"{p0} uses {p1} for {p2} BP.": "{p0} با پرداخت {p2} امتیاز زیستی از {p1} استفاده می‌کند.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} با پافشاری حمله به {p1} را دوباره امتحان می‌کند.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} در {p1} به سوپ برمی‌گردد؛ غذا: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} با پایان انفجاری یک زخم به {p1} وارد می‌کند.",
"Tie — roll again.": "تساوی — دوباره تاس بریزید.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} به‌اندازهٔ {p1} خانه تا {p2} پیش می‌رود ({p3} از آمیب‌ها + {p4} از ژن‌ها).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} از {p1} دست می‌کشد؛ کسری باقی‌مانده: {p2} امتیاز زیستی.",
"{p0} returns {p1} to the gene pool.": "{p0} ژن {p1} را به ذخیرهٔ ژن‌ها برمی‌گرداند.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} ژن {p1} را از {p2} با پرداخت {p3} امتیاز زیستی می‌گیرد.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} از انفجار جمعیت استفاده می‌کند، {p1} امتیاز زیستی را از دست می‌دهد و به‌سوی {p2} آمیب رشد می‌کند.",
"{p0} swims with {p1} for {p2} BP.": "{p0} با {p1} و پرداخت {p2} امتیاز زیستی شنا می‌کند.",
"{p0} evolves {p1} for {p2} BP.": "{p0} ژن {p1} را با {p2} امتیاز زیستی تکامل می‌دهد.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} با {p2} و پرداخت {p3} امتیاز زیستی به {p1} حمله می‌کند.",
"{p0} buys {p1} for {p2} BP.": "{p0} ژن {p1} را با {p2} امتیاز زیستی می‌خرد.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} ژن {p1} را از {p2} با پرداخت {p3} امتیاز زیستی می‌خرد.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} ژن {p1} را دور می‌اندازد؛ کسری باقی‌مانده: {p2} امتیاز زیستی.",
"{p0} didn't buy any genes.": "{p0} هیچ ژنی نخرید."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "non révélé · +2 par manche",
"Buyable": "Achetables",
"Show only genes you can buy or exchange now.": "Afficher uniquement les gènes que vous pouvez acheter ou obtenir par échange maintenant.",
"No genes available to buy.": "Aucun gène ne peut être acheté."
"No genes available to buy.": "Aucun gène ne peut être acheté.",
"1. Movement & feeding · Lowest scorer first.": "1. Mouvement et alimentation · Le joueur avec le moins de points commence.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Environnement · Révéler une nouvelle carte Environnement (courant et ozone), puis vérifier la sensibilité. · Le joueur avec le plus de points commence.",
"3. New genes · Highest scorer first.": "3. Nouveaux gènes · Le joueur avec le plus de points commence.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Division cellulaire · Recevoir {p0} points biologiques · Le joueur avec le plus de points commence.",
"5. Survival · Highest scorer first.": "5. Survie · Le joueur avec le plus de points commence.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Évolution · Décompte automatique, en commençant par le joueur avec le plus de points.",
"{p0} swims for {p1} BP.": "{p0} nage pour {p1} PB.",
"{p0} swims again for 0 BP with Speed.": "{p0} nage à nouveau pour 0 PB avec Vitesse.",
"{p0} excretes {p1} at {p2}.": "{p0} excrète {p1} en {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} excrète {p1} et une toxine en {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} prélève {p1} en {p2} avec {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} utilise Parasitisme ; {p1} paie 1 PB.",
"{p0} feeds on {p1} at {p2}.": "{p0} mange {p1} en {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} mange {p1} en {p2} avec Restauration rapide.",
"{p0} fails to attack {p1}.": "{p0} échoue à attaquer {p1}.",
"{p0} uses {p1}.": "{p0} utilise {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} transporte {p1} de {p2} à {p3} avec Tentacule.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} suit de {p1} à {p2} avec Adhérence.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} retire une blessure avec {p1} pour 3 PB.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} transfère une blessure à {p1} avec Guérison II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} attaque {p1} avec {p2} pour 1 PB.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} paie 1 PB pour surmonter Carapace dure.",
"{p0} abandons the attack.": "{p0} abandonne l’attaque.",
"{p0} uses {p1} for {p2} BP.": "{p0} utilise {p1} pour {p2} PB.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} retente l’attaque contre {p1} avec Persistance.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} retourne dans la soupe en {p1} ; nourriture : {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} inflige une blessure à {p1} avec Partir en beauté.",
"Tie — roll again.": "Égalité — relancer les dés.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} avance de {p1} cases jusqu’à {p2} ({p3} pour les amibes + {p4} pour les gènes).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} abandonne {p1} ; déficit restant : {p2} PB.",
"{p0} returns {p1} to the gene pool.": "{p0} remet {p1} dans la réserve de gènes.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} acquiert {p1} auprès de {p2} pour {p3} PB.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} utilise Explosion démographique, abandonne {p1} PB et vise {p2} amibes.",
"{p0} swims with {p1} for {p2} BP.": "{p0} nage avec {p1} pour {p2} PB.",
"{p0} evolves {p1} for {p2} BP.": "{p0} fait évoluer {p1} pour {p2} PB.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} attaque {p1} avec {p2} pour {p3} PB.",
"{p0} buys {p1} for {p2} BP.": "{p0} achète {p1} pour {p2} PB.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} achète {p1} à {p2} pour {p3} PB.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} défausse {p1} ; déficit restant : {p2} PB.",
"{p0} didn't buy any genes.": "{p0} n’a acheté aucun gène."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "अप्रकट · +2 प्रति राउंड",
"Buyable": "खरीदने योग्य",
"Show only genes you can buy or exchange now.": "केवल वे जीन दिखाएँ जिन्हें आप अभी खरीद सकते हैं या अदला-बदली से पा सकते हैं।",
"No genes available to buy.": "खरीदने के लिए कोई जीन उपलब्ध नहीं है।"
"No genes available to buy.": "खरीदने के लिए कोई जीन उपलब्ध नहीं है।",
"1. Movement & feeding · Lowest scorer first.": "1. गति और भोजन · सबसे कम अंक वाला खिलाड़ी पहले खेलता है।",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. पर्यावरण · नया पर्यावरण कार्ड खोलें (धारा और ओज़ोन), फिर संवेदनशीलता जाँचें। · सबसे अधिक अंक वाला खिलाड़ी पहले खेलता है।",
"3. New genes · Highest scorer first.": "3. नए जीन · सबसे अधिक अंक वाला खिलाड़ी पहले खेलता है।",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. कोशिका विभाजन · {p0} जैविक अंक प्राप्त करें · सबसे अधिक अंक वाला खिलाड़ी पहले खेलता है।",
"5. Survival · Highest scorer first.": "5. उत्तरजीविता · सबसे अधिक अंक वाला खिलाड़ी पहले खेलता है।",
"6. Evolution · Automatic scoring, highest scorer first.": "6. विकास · अंक अपने आप मिलते हैं, सबसे अधिक अंक वाले खिलाड़ी से शुरू करके।",
"{p0} swims for {p1} BP.": "{p0} {p1} BP देकर तैरता है।",
"{p0} swims again for 0 BP with Speed.": "{p0} तेज़ी से 0 BP में फिर तैरता है।",
"{p0} excretes {p1} at {p2}.": "{p0} {p2} पर {p1} उत्सर्जित करता है।",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} {p2} पर {p1} और एक विष उत्सर्जित करता है।",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} {p3} से {p2} से {p1} लेता है।",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} परजीविता का उपयोग करता है; {p1} 1 BP देता है।",
"{p0} feeds on {p1} at {p2}.": "{p0} {p2} पर {p1} खाता है।",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} फास्ट फूड से {p2} पर {p1} खाता है।",
"{p0} fails to attack {p1}.": "{p0} का {p1} पर हमला विफल होता है।",
"{p0} uses {p1}.": "{p0} {p1} का उपयोग करता है।",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} स्पर्शक से {p1} को {p2} से {p3} तक ले जाता है।",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} पकड़ से {p1} से {p2} तक पीछे जाता है।",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} {p1} से 3 BP देकर एक चोट हटाता है।",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} उपचार II से एक चोट {p1} को देता है।",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} {p2} से 1 BP देकर {p1} पर हमला करता है।",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} कठोर खोल को पार करने के लिए 1 BP देता है।",
"{p0} abandons the attack.": "{p0} हमला छोड़ देता है।",
"{p0} uses {p1} for {p2} BP.": "{p0} {p2} BP देकर {p1} का उपयोग करता है।",
"{p0} retries the attack against {p1} with Persistence.": "{p0} दृढ़ता से {p1} पर फिर हमला करता है।",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} {p1} पर सूप में लौटता है; भोजन: {p2}।",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} धमाके के साथ बाहर जाओ से {p1} को एक चोट देता है।",
"Tie — roll again.": "बराबरी — फिर पासा फेंकें।",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} {p1} खाने बढ़कर {p2} पर पहुँचता है (अमीबा से {p3} + जीन से {p4})।",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} {p1} छोड़ देता है; शेष कमी: {p2} BP।",
"{p0} returns {p1} to the gene pool.": "{p0} {p1} को जीन पूल में लौटाता है।",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} {p2} से {p1} को {p3} BP में लेता है।",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} जनसंख्या विस्फोट का उपयोग करके {p1} BP छोड़ देता है और {p2} अमीबा तक बढ़ने का लक्ष्य रखता है।",
"{p0} swims with {p1} for {p2} BP.": "{p0} {p1} से {p2} BP देकर तैरता है।",
"{p0} evolves {p1} for {p2} BP.": "{p0} {p2} BP के लिए {p1} विकसित करता है।",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} {p2} से {p3} BP देकर {p1} पर हमला करता है।",
"{p0} buys {p1} for {p2} BP.": "{p0} {p1} को {p2} BP में खरीदता है।",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} {p2} से {p1} को {p3} BP में खरीदता है।",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} {p1} त्यागता है; शेष कमी: {p2} BP।",
"{p0} didn't buy any genes.": "{p0} ने कोई जीन नहीं खरीदा।"
}

View file

@ -62,6 +62,9 @@ export function mountLocalization(target, locale) {
source,
JSON.parse(node.getAttribute("data-journal-players")),
translate,
node.hasAttribute("data-journal-omit-subject")
? JSON.parse(node.getAttribute("data-journal-omit-subject"))
: undefined,
)
: renderRichText(source, translate),
);

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "non rivelato · +2 per round",
"Buyable": "Acquistabili",
"Show only genes you can buy or exchange now.": "Mostra solo i geni che puoi acquistare o ottenere con uno scambio adesso.",
"No genes available to buy.": "Nessun gene disponibile per l’acquisto."
"No genes available to buy.": "Nessun gene disponibile per l’acquisto.",
"1. Movement & feeding · Lowest scorer first.": "1. Movimento e nutrimento · Inizia chi ha meno punti.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Ambiente · Rivela una nuova carta ambiente (corrente e ozono), poi verifica la sensibilità. · Inizia chi ha più punti.",
"3. New genes · Highest scorer first.": "3. Nuovi geni · Inizia chi ha più punti.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Divisione cellulare · Ricevi {p0} punti biologici · Inizia chi ha più punti.",
"5. Survival · Highest scorer first.": "5. Sopravvivenza · Inizia chi ha più punti.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Evoluzione · Punteggio automatico, iniziando da chi ha più punti.",
"{p0} swims for {p1} BP.": "{p0} nuota per {p1} PB.",
"{p0} swims again for 0 BP with Speed.": "{p0} nuota di nuovo per 0 PB con Velocità.",
"{p0} excretes {p1} at {p2}.": "{p0} espelle {p1} in {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} espelle {p1} e una tossina in {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} prende {p1} da {p2} con {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} usa Parassitismo; {p1} paga 1 PB.",
"{p0} feeds on {p1} at {p2}.": "{p0} mangia {p1} in {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} mangia {p1} in {p2} con Fast Food.",
"{p0} fails to attack {p1}.": "L’attacco di {p0} contro {p1} fallisce.",
"{p0} uses {p1}.": "{p0} usa {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} trasporta {p1} da {p2} a {p3} con Tentacolo.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} segue da {p1} a {p2} con Adesione.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} rimuove una ferita con {p1} per 3 PB.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} trasferisce una ferita a {p1} con Guarigione II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} attacca {p1} con {p2} per 1 PB.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} paga 1 PB per superare Crosta dura.",
"{p0} abandons the attack.": "{p0} abbandona l’attacco.",
"{p0} uses {p1} for {p2} BP.": "{p0} usa {p1} per {p2} PB.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} riprova l’attacco contro {p1} con Persistenza.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} ritorna nella zuppa in {p1}; cibo: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} infligge una ferita a {p1} con Uscire col botto.",
"Tie — roll again.": "Pareggio — tirare di nuovo.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} avanza di {p1} caselle fino a {p2} ({p3} dalle amebe + {p4} dai geni).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} rinuncia a {p1}; deficit rimanente: {p2} PB.",
"{p0} returns {p1} to the gene pool.": "{p0} restituisce {p1} alla riserva dei geni.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} acquisisce {p1} da {p2} per {p3} PB.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} usa Esplosione Demografica, rinuncia a {p1} PB e punta a {p2} amebe.",
"{p0} swims with {p1} for {p2} BP.": "{p0} nuota con {p1} per {p2} PB.",
"{p0} evolves {p1} for {p2} BP.": "{p0} evolve {p1} per {p2} PB.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} attacca {p1} con {p2} per {p3} PB.",
"{p0} buys {p1} for {p2} BP.": "{p0} compra {p1} per {p2} PB.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} compra {p1} da {p2} per {p3} PB.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} scarta {p1}; deficit rimanente: {p2} PB.",
"{p0} didn't buy any genes.": "{p0} non ha comprato alcun gene."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "미공개 · 라운드당 +2",
"Buyable": "구매 가능",
"Show only genes you can buy or exchange now.": "지금 구매하거나 교환으로 얻을 수 있는 유전자만 표시합니다.",
"No genes available to buy.": "구매할 수 있는 유전자가 없습니다."
"No genes available to buy.": "구매할 수 있는 유전자가 없습니다.",
"1. Movement & feeding · Lowest scorer first.": "1. 이동 및 섭식 · 점수가 가장 낮은 플레이어부터 진행합니다.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. 환경 · 새 환경 카드(물살과 오존)를 공개한 뒤 민감도를 확인합니다. · 점수가 가장 높은 플레이어부터 진행합니다.",
"3. New genes · Highest scorer first.": "3. 새 유전자 · 점수가 가장 높은 플레이어부터 진행합니다.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. 세포 분열 · 생물학 점수 {p0}점 받기 · 점수가 가장 높은 플레이어부터 진행합니다.",
"5. Survival · Highest scorer first.": "5. 생존 · 점수가 가장 높은 플레이어부터 진행합니다.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. 진화 · 점수가 가장 높은 플레이어부터 자동으로 점수를 계산합니다.",
"{p0} swims for {p1} BP.": "{p0} 이(가) {p1} BP로 수영합니다.",
"{p0} swims again for 0 BP with Speed.": "{p0} 이(가) 속도으로 0 BP에 다시 수영합니다.",
"{p0} excretes {p1} at {p2}.": "{p0} 이(가) {p2} 에 {p1} 을(를) 배설합니다.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} 이(가) {p2} 에 {p1} 및 독소 1개를 배설합니다.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} 이(가) {p3} 으로 {p2} 에서 {p1} 을(를) 가져옵니다.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} 이(가) 기생을(를) 사용하고 {p1} 이(가) 1 BP를 냅니다.",
"{p0} feeds on {p1} at {p2}.": "{p0} 이(가) {p2} 에서 {p1} 을(를) 먹습니다.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} 이(가) 패스트푸드으로 {p2} 에서 {p1} 을(를) 먹습니다.",
"{p0} fails to attack {p1}.": "{p0} 의 {p1} 공격이 실패합니다.",
"{p0} uses {p1}.": "{p0} 이(가) {p1} 을(를) 사용합니다.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} 이(가) 촉수으로 {p1} 을(를) {p2} 에서 {p3} (으)로 운반합니다.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} 이(가) 달라붙기으로 {p1} 에서 {p2} (으)로 따라갑니다.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} 이(가) {p1} 으로 3 BP에 부상 하나를 제거합니다.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} 이(가) 치유 II로 부상 하나를 {p1} 에게 옮깁니다.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} 이(가) {p2} 으로 1 BP에 {p1} 을(를) 공격합니다.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} 이(가) 단단한 껍질을(를) 뚫기 위해 1 BP를 냅니다.",
"{p0} abandons the attack.": "{p0} 이(가) 공격을 포기합니다.",
"{p0} uses {p1} for {p2} BP.": "{p0} 이(가) {p2} BP로 {p1} 을(를) 사용합니다.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} 이(가) 끈기으로 {p1} 에게 다시 공격합니다.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} 이(가) {p1} 에서 수프로 돌아갑니다. 먹이: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} 이(가) 화려한 퇴장으로 {p1} 에게 부상 하나를 줍니다.",
"Tie — roll again.": "무승부 — 다시 굴립니다.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} 이(가) {p1} 칸 전진하여 {p2} 에 도착합니다(아메바 {p3} + 유전자 {p4}).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} 이(가) {p1} 을(를) 포기합니다. 남은 부족분: {p2} BP.",
"{p0} returns {p1} to the gene pool.": "{p0} 이(가) {p1} 을(를) 유전자 풀에 돌려놓습니다.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} 이(가) {p2} 에게서 {p1} 을(를) {p3} BP에 얻습니다.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} 이(가) 개체수 폭발을(를) 사용하여 {p1} BP를 포기하고 아메바 {p2} 마리를 목표로 늘립니다.",
"{p0} swims with {p1} for {p2} BP.": "{p0} 이(가) {p1} 으로 {p2} BP에 수영합니다.",
"{p0} evolves {p1} for {p2} BP.": "{p0}이(가) {p2} BP로 {p1}을(를) 진화시킴.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} 이(가) {p2} 으로 {p3} BP에 {p1} 을(를) 공격합니다.",
"{p0} buys {p1} for {p2} BP.": "{p0} 이(가) {p1} 을(를) {p2} BP에 구매합니다.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} 이(가) {p2} 에게서 {p1} 을(를) {p3} BP에 구매합니다.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} 이(가) {p1} 을(를) 버립니다. 남은 부족분: {p2} BP.",
"{p0} didn't buy any genes.": "{p0} 은(는) 유전자를 구매하지 않았습니다."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "niet onthuld · +2 per ronde",
"Buyable": "Te koop",
"Show only genes you can buy or exchange now.": "Toon alleen genen die je nu kunt kopen of via ruil kunt krijgen.",
"No genes available to buy.": "Er zijn geen genen die je kunt kopen."
"No genes available to buy.": "Er zijn geen genen die je kunt kopen.",
"1. Movement & feeding · Lowest scorer first.": "1. Beweging & voeding · De speler met de minste punten begint.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Omgeving · Draai een nieuwe omgevingskaart om (stroming en ozon) en controleer daarna de gevoeligheid. · De speler met de meeste punten begint.",
"3. New genes · Highest scorer first.": "3. Nieuwe genen · De speler met de meeste punten begint.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Celdeling · Ontvang {p0} biologische punten · De speler met de meeste punten begint.",
"5. Survival · Highest scorer first.": "5. Overleving · De speler met de meeste punten begint.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Evolutie · Automatische puntentelling, beginnend bij de speler met de meeste punten.",
"{p0} swims for {p1} BP.": "{p0} zwemt voor {p1} BP.",
"{p0} swims again for 0 BP with Speed.": "{p0} zwemt opnieuw voor 0 BP met Snelheid.",
"{p0} excretes {p1} at {p2}.": "{p0} scheidt {p1} uit op {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} scheidt {p1} en één gifstof uit op {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} neemt {p1} van {p2} met {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} gebruikt Parasitisme; {p1} betaalt 1 BP.",
"{p0} feeds on {p1} at {p2}.": "{p0} eet {p1} op {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} eet {p1} op {p2} met Fastfood.",
"{p0} fails to attack {p1}.": "De aanval van {p0} op {p1} mislukt.",
"{p0} uses {p1}.": "{p0} gebruikt {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} draagt {p1} van {p2} naar {p3} met Tentakel.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} volgt van {p1} naar {p2} met Vasthouden.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} verwijdert één verwonding met {p1} voor 3 BP.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} draagt één verwonding over aan {p1} met Genezing II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} valt {p1} aan met {p2} voor 1 BP.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} betaalt 1 BP om Harde korst te overwinnen.",
"{p0} abandons the attack.": "{p0} staakt de aanval.",
"{p0} uses {p1} for {p2} BP.": "{p0} gebruikt {p1} voor {p2} BP.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} probeert de aanval op {p1} opnieuw met Volharding.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} keert terug naar de soep op {p1}; voedsel: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} geeft {p1} één verwonding met Met een knal eindigen.",
"Tie — roll again.": "Gelijkspel — gooi opnieuw.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} gaat {p1} vakken vooruit naar {p2} ({p3} van amoeben + {p4} van genen).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} geeft {p1} op; resterend tekort: {p2} BP.",
"{p0} returns {p1} to the gene pool.": "{p0} legt {p1} terug in de genenvoorraad.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} verkrijgt {p1} van {p2} voor {p3} BP.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} gebruikt Populatie-explosie, geeft {p1} BP op en streeft naar {p2} amoeben.",
"{p0} swims with {p1} for {p2} BP.": "{p0} zwemt met {p1} voor {p2} BP.",
"{p0} evolves {p1} for {p2} BP.": "{p0} evolueert {p1} voor {p2} BP.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} valt {p1} aan met {p2} voor {p3} BP.",
"{p0} buys {p1} for {p2} BP.": "{p0} koopt {p1} voor {p2} BP.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} koopt {p1} van {p2} voor {p3} BP.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} legt {p1} af; resterend tekort: {p2} BP.",
"{p0} didn't buy any genes.": "{p0} heeft geen genen gekocht."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "nieodkryte · +2 na rundę",
"Buyable": "Do kupienia",
"Show only genes you can buy or exchange now.": "Pokaż tylko geny, które możesz teraz kupić lub uzyskać w wymianie.",
"No genes available to buy.": "Brak genów możliwych do kupienia."
"No genes available to buy.": "Brak genów możliwych do kupienia.",
"1. Movement & feeding · Lowest scorer first.": "1. Ruch i jedzenie · Zaczyna gracz z najmniejszą liczbą punktów.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Środowisko · Odkryj nową kartę środowiska (prąd i ozon), a następnie sprawdź wrażliwość. · Zaczyna gracz z największą liczbą punktów.",
"3. New genes · Highest scorer first.": "3. Nowe geny · Zaczyna gracz z największą liczbą punktów.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Podział komórki · Otrzymaj {p0} punktów biologicznych · Zaczyna gracz z największą liczbą punktów.",
"5. Survival · Highest scorer first.": "5. Przetrwanie · Zaczyna gracz z największą liczbą punktów.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Ewolucja · Automatyczne punktowanie, zaczynając od gracza z największą liczbą punktów.",
"{p0} swims for {p1} BP.": "{p0} pływa za {p1} PB.",
"{p0} swims again for 0 BP with Speed.": "{p0} pływa ponownie za 0 PB dzięki Szybkość.",
"{p0} excretes {p1} at {p2}.": "{p0} wydala {p1} na {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} wydala {p1} i jedną toksynę na {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} pobiera {p1} z {p2} dzięki {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} używa Pasożytnictwo; {p1} płaci 1 PB.",
"{p0} feeds on {p1} at {p2}.": "{p0} zjada {p1} na {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} zjada {p1} na {p2} dzięki Fast food.",
"{p0} fails to attack {p1}.": "Atak {p0} na {p1} nie powiódł się.",
"{p0} uses {p1}.": "{p0} używa {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} przenosi {p1} z {p2} na {p3} dzięki Macka.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} podąża z {p1} na {p2} dzięki Przyczepność.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} usuwa jedną ranę za 3 PB dzięki {p1}.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} przenosi jedną ranę na {p1} dzięki Leczenie II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} atakuje {p1} za 1 PB dzięki {p2}.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} płaci 1 PB, aby pokonać Twarda skorupa.",
"{p0} abandons the attack.": "{p0} rezygnuje z ataku.",
"{p0} uses {p1} for {p2} BP.": "{p0} używa {p1} za {p2} PB.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} ponawia atak na {p1} dzięki Wytrwałość.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} wraca do zupy na {p1}; pokarm: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} zadaje {p1} jedną ranę dzięki Odejdź z hukiem.",
"Tie — roll again.": "Remis — rzuć ponownie.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} przesuwa się o {p1} pól na {p2} ({p3} za ameby + {p4} za geny).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} oddaje {p1}; pozostały niedobór: {p2} PB.",
"{p0} returns {p1} to the gene pool.": "{p0} zwraca {p1} do puli genów.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} nabywa {p1} od {p2} za {p3} PB.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} używa Eksplozja populacji, oddaje {p1} PB i dąży do {p2} ameb.",
"{p0} swims with {p1} for {p2} BP.": "{p0} pływa dzięki {p1} za {p2} PB.",
"{p0} evolves {p1} for {p2} BP.": "{p0} ewoluuje {p1} za {p2} PB.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} atakuje {p1} za {p3} PB dzięki {p2}.",
"{p0} buys {p1} for {p2} BP.": "{p0} kupuje {p1} za {p2} PB.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} kupuje {p1} od {p2} za {p3} PB.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} odrzuca {p1}; pozostały niedobór: {p2} PB.",
"{p0} didn't buy any genes.": "{p0} nie kupuje żadnych genów."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "não revelado · +2 por rodada",
"Buyable": "Compráveis",
"Show only genes you can buy or exchange now.": "Mostrar apenas genes que você pode comprar ou obter por troca agora.",
"No genes available to buy.": "Nenhum gene disponível para compra."
"No genes available to buy.": "Nenhum gene disponível para compra.",
"1. Movement & feeding · Lowest scorer first.": "1. Movimento e alimentação · Começa quem tem menos pontos.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Ambiente · Revele uma nova carta de ambiente (corrente e ozônio) e depois verifique a sensibilidade. · Começa quem tem mais pontos.",
"3. New genes · Highest scorer first.": "3. Novos genes · Começa quem tem mais pontos.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Divisão celular · Receber {p0} pontos biológicos · Começa quem tem mais pontos.",
"5. Survival · Highest scorer first.": "5. Sobrevivência · Começa quem tem mais pontos.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Evolução · Pontuação automática, começando por quem tem mais pontos.",
"{p0} swims for {p1} BP.": "{p0} nada por {p1} PB.",
"{p0} swims again for 0 BP with Speed.": "{p0} nada novamente por 0 PB com Velocidade.",
"{p0} excretes {p1} at {p2}.": "{p0} excreta {p1} em {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} excreta {p1} e uma toxina em {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} pega {p1} de {p2} com {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} usa Parasitismo; {p1} paga 1 PB.",
"{p0} feeds on {p1} at {p2}.": "{p0} come {p1} em {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} come {p1} em {p2} com Comida Rápida.",
"{p0} fails to attack {p1}.": "O ataque de {p0} contra {p1} falha.",
"{p0} uses {p1}.": "{p0} usa {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} leva {p1} de {p2} para {p3} com Tentáculo.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} segue de {p1} para {p2} com Aderência.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} remove um ferimento com {p1} por 3 PB.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} transfere um ferimento para {p1} com Cura II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} ataca {p1} com {p2} por 1 PB.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} paga 1 PB para superar Casca Dura.",
"{p0} abandons the attack.": "{p0} abandona o ataque.",
"{p0} uses {p1} for {p2} BP.": "{p0} usa {p1} por {p2} PB.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} tenta novamente o ataque contra {p1} com Persistência.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} retorna à sopa em {p1}; alimento: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} causa um ferimento a {p1} com Sair com Estilo.",
"Tie — roll again.": "Empate — role novamente.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} avança {p1} casas até {p2} ({p3} pelas amebas + {p4} pelos genes).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} devolve {p1}; déficit restante: {p2} PB.",
"{p0} returns {p1} to the gene pool.": "{p0} devolve {p1} à reserva de genes.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} adquire {p1} de {p2} por {p3} PB.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} usa Explosão Populacional, abre mão de {p1} PB e visa atingir {p2} amebas.",
"{p0} swims with {p1} for {p2} BP.": "{p0} nada com {p1} por {p2} PB.",
"{p0} evolves {p1} for {p2} BP.": "{p0} evolui {p1} por {p2} PB.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} ataca {p1} com {p2} por {p3} PB.",
"{p0} buys {p1} for {p2} BP.": "{p0} compra {p1} por {p2} PB.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} compra {p1} de {p2} por {p3} PB.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} descarta {p1}; déficit restante: {p2} PB.",
"{p0} didn't buy any genes.": "{p0} não comprou nenhum gene."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "nedezvăluit · +2 pe rundă",
"Buyable": "Disponibile pentru cumpărare",
"Show only genes you can buy or exchange now.": "Arată doar genele pe care le poți cumpăra sau obține prin schimb acum.",
"No genes available to buy.": "Nu există gene pe care le poți cumpăra."
"No genes available to buy.": "Nu există gene pe care le poți cumpăra.",
"1. Movement & feeding · Lowest scorer first.": "1. Mișcare și hrănire · Începe jucătorul cu cele mai puține puncte.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Mediu · Dezvăluie o nouă carte de mediu (curent și ozon), apoi verifică sensibilitatea. · Începe jucătorul cu cele mai multe puncte.",
"3. New genes · Highest scorer first.": "3. Gene noi · Începe jucătorul cu cele mai multe puncte.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Diviziune celulară · Primește {p0} puncte biologice · Începe jucătorul cu cele mai multe puncte.",
"5. Survival · Highest scorer first.": "5. Supraviețuire · Începe jucătorul cu cele mai multe puncte.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Evoluție · Punctaj automat, începând cu jucătorul cu cele mai multe puncte.",
"{p0} swims for {p1} BP.": "{p0} înoată pentru {p1} PB.",
"{p0} swims again for 0 BP with Speed.": "{p0} înoată din nou pentru 0 PB cu Viteză.",
"{p0} excretes {p1} at {p2}.": "{p0} excretă {p1} la {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} excretă {p1} și o toxină la {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} ia {p1} de la {p2} cu {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} folosește Parazitism; {p1} plătește 1 PB.",
"{p0} feeds on {p1} at {p2}.": "{p0} consumă {p1} la {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} consumă {p1} la {p2} cu Fast Food.",
"{p0} fails to attack {p1}.": "Atacul lui {p0} împotriva lui {p1} eșuează.",
"{p0} uses {p1}.": "{p0} folosește {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} transportă {p1} de la {p2} la {p3} cu Tentacul.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} urmează de la {p1} la {p2} cu Aderență.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} elimină o rană cu {p1} pentru 3 PB.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} transferă o rană către {p1} cu Vindecare II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} atacă {p1} cu {p2} pentru 1 PB.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} plătește 1 PB pentru a depăși Crustă tare.",
"{p0} abandons the attack.": "{p0} abandonează atacul.",
"{p0} uses {p1} for {p2} BP.": "{p0} folosește {p1} pentru {p2} PB.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} reîncearcă atacul împotriva lui {p1} cu Persistență.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} revine în supă la {p1}; hrană: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} provoacă o rană lui {p1} cu Ieși cu bubuit.",
"Tie — roll again.": "Egalitate — aruncați din nou.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} avansează {p1} spații până la {p2} ({p3} din amibe + {p4} din gene).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} renunță la {p1}; deficit rămas: {p2} PB.",
"{p0} returns {p1} to the gene pool.": "{p0} returnează {p1} în rezerva de gene.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} obține {p1} de la {p2} pentru {p3} PB.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} folosește Explozie demografică, renunță la {p1} PB și urmărește să ajungă la {p2} amibe.",
"{p0} swims with {p1} for {p2} BP.": "{p0} înoată cu {p1} pentru {p2} PB.",
"{p0} evolves {p1} for {p2} BP.": "{p0} evoluează {p1} pentru {p2} PB.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} atacă {p1} cu {p2} pentru {p3} PB.",
"{p0} buys {p1} for {p2} BP.": "{p0} cumpără {p1} pentru {p2} PB.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} cumpără {p1} de la {p2} pentru {p3} PB.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} decartează {p1}; deficit rămas: {p2} PB.",
"{p0} didn't buy any genes.": "{p0} nu a cumpărat niciun gen."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "нераскрыто · +2 за раунд",
"Buyable": "Можно купить",
"Show only genes you can buy or exchange now.": "Показать только гены, которые можно сейчас купить или получить обменом.",
"No genes available to buy.": "Нет генов, доступных для покупки."
"No genes available to buy.": "Нет генов, доступных для покупки.",
"1. Movement & feeding · Lowest scorer first.": "1. Движение и кормление · Первым ходит игрок с наименьшим числом очков.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Окружающая среда · Откройте новую карту среды (течение и озон), затем проверьте чувствительность. · Первым ходит игрок с наибольшим числом очков.",
"3. New genes · Highest scorer first.": "3. Новые гены · Первым ходит игрок с наибольшим числом очков.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Деление клетки · Получить {p0} биологических очков · Первым ходит игрок с наибольшим числом очков.",
"5. Survival · Highest scorer first.": "5. Выживание · Первым ходит игрок с наибольшим числом очков.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Эволюция · Автоматический подсчёт, начиная с игрока с наибольшим числом очков.",
"{p0} swims for {p1} BP.": "{p0} плывёт за {p1} БО.",
"{p0} swims again for 0 BP with Speed.": "{p0} плывёт снова за 0 БО с Скорость.",
"{p0} excretes {p1} at {p2}.": "{p0} выделяет {p1} на {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} выделяет {p1} и один токсин на {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} берёт {p1} с {p2} с помощью {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} использует Паразитизм; {p1} платит 1 БО.",
"{p0} feeds on {p1} at {p2}.": "{p0} съедает {p1} на {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} съедает {p1} на {p2} с Быстрая еда.",
"{p0} fails to attack {p1}.": "Атака {p0} на {p1} не удалась.",
"{p0} uses {p1}.": "{p0} использует {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} переносит {p1} с {p2} на {p3} с помощью Щупальце.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} следует с {p1} на {p2} с помощью Удержание.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} снимает одну рану с помощью {p1} за 3 БО.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} передаёт одну рану {p1} с помощью Лечение II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} атакует {p1} с помощью {p2} за 1 БО.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} платит 1 БО, чтобы преодолеть Твёрдая корка.",
"{p0} abandons the attack.": "{p0} прекращает атаку.",
"{p0} uses {p1} for {p2} BP.": "{p0} использует {p1} за {p2} БО.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} повторяет атаку на {p1} с помощью Настойчивость.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} возвращается в суп на {p1}; пища: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} наносит {p1} одну рану с помощью Уйти с треском.",
"Tie — roll again.": "Ничья — повторите бросок.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} продвигается на {p1} клеток до {p2} ({p3} за амёб + {p4} за гены).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} отдаёт {p1}; оставшийся дефицит: {p2} БО.",
"{p0} returns {p1} to the gene pool.": "{p0} возвращает {p1} в запас генов.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} приобретает {p1} у {p2} за {p3} БО.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} использует Демографический взрыв, отдаёт {p1} БО и стремится к {p2} амёбам.",
"{p0} swims with {p1} for {p2} BP.": "{p0} плывёт с {p1} за {p2} БО.",
"{p0} evolves {p1} for {p2} BP.": "{p0} эволюционирует {p1} за {p2} БО.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} атакует {p1} с помощью {p2} за {p3} БО.",
"{p0} buys {p1} for {p2} BP.": "{p0} покупает {p1} за {p2} БО.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} покупает {p1} у {p2} за {p3} БО.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} сбрасывает {p1}; оставшийся дефицит: {p2} БО.",
"{p0} didn't buy any genes.": "{p0} не покупает ни одного гена."
}

View file

@ -41,6 +41,8 @@ export function resolveLocale(value) {
}
const normalize = (text) => text.replace(/\s+/g, " ").trim();
const nutrient = String.raw`\d+ (?:green|coral|red|blue|gold|yellow|black|burgundy) nutrients?`;
const nutrientList = new RegExp(`^${nutrient}(?:,\\s*${nutrient}){1,5}$`, "i");
export function createTranslator(
catalogs,
@ -95,6 +97,13 @@ export function createTranslator(
let translated = Object.prototype.hasOwnProperty.call(catalog, text)
? catalog[text]
: undefined;
// Treat multi-colour meals and cargo as a list of resource phrases. A generic
// two-placeholder pattern would otherwise partially translate the whole list.
if (translated === undefined && nutrientList.test(text))
translated = text
.split(/,\s*/)
.map((part) => translate(part, 1))
.join(", ");
if (translated === undefined && text === text.toLocaleUpperCase()) {
translated = upperCase.get(text);
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "chưa lộ · +2 mỗi vòng",
"Buyable": "Có thể mua",
"Show only genes you can buy or exchange now.": "Chỉ hiển thị các gen bạn có thể mua hoặc nhận qua trao đổi ngay bây giờ.",
"No genes available to buy.": "Không có gen nào có thể mua."
"No genes available to buy.": "Không có gen nào có thể mua.",
"1. Movement & feeding · Lowest scorer first.": "1. Di chuyển & kiếm ăn · Người chơi ít điểm nhất đi trước.",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. Môi trường · Lật một lá bài môi trường mới (dòng chảy và ôzôn), sau đó kiểm tra độ nhạy. · Người chơi nhiều điểm nhất đi trước.",
"3. New genes · Highest scorer first.": "3. Gen mới · Người chơi nhiều điểm nhất đi trước.",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. Phân bào · Nhận {p0} điểm sinh học · Người chơi nhiều điểm nhất đi trước.",
"5. Survival · Highest scorer first.": "5. Sinh tồn · Người chơi nhiều điểm nhất đi trước.",
"6. Evolution · Automatic scoring, highest scorer first.": "6. Tiến hóa · Tự động tính điểm, bắt đầu từ người chơi nhiều điểm nhất.",
"{p0} swims for {p1} BP.": "{p0} bơi với giá {p1} BP.",
"{p0} swims again for 0 BP with Speed.": "{p0} bơi lần nữa với giá 0 BP bằng Tốc độ.",
"{p0} excretes {p1} at {p2}.": "{p0} bài tiết {p1} tại {p2}.",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} bài tiết {p1} và một độc tố tại {p2}.",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} lấy {p1} từ {p2} bằng {p3}.",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} dùng Ký sinh; {p1} trả 1 BP.",
"{p0} feeds on {p1} at {p2}.": "{p0} ăn {p1} tại {p2}.",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} ăn {p1} tại {p2} bằng Thức ăn nhanh.",
"{p0} fails to attack {p1}.": "{p0} tấn công {p1} thất bại.",
"{p0} uses {p1}.": "{p0} dùng {p1}.",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} mang {p1} từ {p2} đến {p3} bằng Xúc tu.",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} đi theo từ {p1} đến {p2} bằng Bám giữ.",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} bỏ một thương tích bằng {p1} với giá 3 BP.",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} chuyển một thương tích sang {p1} bằng Hồi phục II.",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} tấn công {p1} bằng {p2} với giá 1 BP.",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} trả 1 BP để vượt qua Vỏ cứng.",
"{p0} abandons the attack.": "{p0} bỏ cuộc tấn công.",
"{p0} uses {p1} for {p2} BP.": "{p0} dùng {p1} với giá {p2} BP.",
"{p0} retries the attack against {p1} with Persistence.": "{p0} thử tấn công lại {p1} bằng Bền bỉ.",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} trở về súp tại {p1}; thức ăn: {p2}.",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} gây một thương tích cho {p1} bằng Ra đi hoành tráng.",
"Tie — roll again.": "Hòa — gieo lại xúc xắc.",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} tiến {p1} ô đến {p2} ({p3} từ amip + {p4} từ gen).",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} bỏ {p1}; thiếu hụt còn lại: {p2} BP.",
"{p0} returns {p1} to the gene pool.": "{p0} trả {p1} về kho gen.",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} nhận {p1} từ {p2} với giá {p3} BP.",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} dùng Bùng nổ dân số, bỏ {p1} BP và hướng tới {p2} amip.",
"{p0} swims with {p1} for {p2} BP.": "{p0} bơi bằng {p1} với giá {p2} BP.",
"{p0} evolves {p1} for {p2} BP.": "{p0} tiến hóa {p1} với {p2} BP.",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} tấn công {p1} bằng {p2} với giá {p3} BP.",
"{p0} buys {p1} for {p2} BP.": "{p0} mua {p1} với giá {p2} BP.",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} mua {p1} từ {p2} với giá {p3} BP.",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} loại bỏ {p1}; thiếu hụt còn lại: {p2} BP.",
"{p0} didn't buy any genes.": "{p0} không mua gen nào."
}

View file

@ -1159,5 +1159,45 @@
"unrevealed · +2 per round": "未揭示 · 每輪 +2",
"Buyable": "可購買",
"Show only genes you can buy or exchange now.": "僅顯示目前可以購買或交換取得的基因。",
"No genes available to buy.": "目前沒有可購買的基因。"
"No genes available to buy.": "目前沒有可購買的基因。",
"1. Movement & feeding · Lowest scorer first.": "1. 移動與進食 · 分數最低的玩家先行動。",
"2. Environment · Reveal a new environment card (current and ozone), then check sensitivity. · Highest scorer first.": "2. 環境 · 翻開新的環境卡(水流與臭氧),然後檢查敏感度。 · 分數最高的玩家先行動。",
"3. New genes · Highest scorer first.": "3. 新基因 · 分數最高的玩家先行動。",
"4. Cell division · Receive {p0} biological points · Highest scorer first.": "4. 細胞分裂 · 獲得 {p0} 生物點數 · 分數最高的玩家先行動。",
"5. Survival · Highest scorer first.": "5. 生存 · 分數最高的玩家先行動。",
"6. Evolution · Automatic scoring, highest scorer first.": "6. 演化 · 自動計分,從分數最高的玩家開始。",
"{p0} swims for {p1} BP.": "{p0} 花費 {p1} BP游泳。",
"{p0} swims again for 0 BP with Speed.": "{p0} 使用速度再次游泳,花費0 BP。",
"{p0} excretes {p1} at {p2}.": "{p0} 在 {p2} 排出 {p1} 。",
"{p0} excretes {p1} and one toxin at {p2}.": "{p0} 在 {p2} 排出 {p1} 和一個毒素。",
"{p0} takes {p1} from {p2} with {p3}.": "{p0} 使用 {p3} 從 {p2} 取走 {p1} 。",
"{p0} uses Parasitism; {p1} pays 1 BP.": "{p0} 使用寄生; {p1} 支付1 BP。",
"{p0} feeds on {p1} at {p2}.": "{p0} 在 {p2} 吃掉 {p1} 。",
"{p0} feeds on {p1} at {p2} with Fast Food.": "{p0} 使用速食在 {p2} 吃掉 {p1} 。",
"{p0} fails to attack {p1}.": "{p0} 對 {p1} 的攻擊失敗。",
"{p0} uses {p1}.": "{p0} 使用 {p1} 。",
"{p0} carries {p1} from {p2} to {p3} with Tentacle.": "{p0} 使用觸手將 {p1} 從 {p2} 帶到 {p3} 。",
"{p0} follows from {p1} to {p2} with Holding.": "{p0} 使用附著從 {p1} 跟隨到 {p2} 。",
"{p0} removes one injury with {p1} for 3 BP.": "{p0} 使用 {p1} 花費3 BP移除一個傷害。",
"{p0} transfers one injury to {p1} with Healing II.": "{p0} 使用治療II將一個傷害轉移給 {p1} 。",
"{p0} attacks {p1} with {p2} for 1 BP.": "{p0} 使用 {p2} 花費1 BP攻擊 {p1} 。",
"{p0} pays 1 BP to overcome Hard Crust.": "{p0} 支付1 BP突破硬殼。",
"{p0} abandons the attack.": "{p0} 放棄攻擊。",
"{p0} uses {p1} for {p2} BP.": "{p0} 使用 {p1} ,花費 {p2} BP。",
"{p0} retries the attack against {p1} with Persistence.": "{p0} 使用堅持再次攻擊 {p1} 。",
"{p0} returns to the soup at {p1}; food: {p2}.": "{p0} 在 {p1} 回到原始湯;食物:{p2}。",
"{p0} gives {p1} one injury with Go Out With a Bang.": "{p0} 使用轟轟烈烈地離去對 {p1} 造成一個傷害。",
"Tie — roll again.": "平手 — 重新擲骰。",
"{p0} advances {p1} spaces to {p2} ({p3} from amoebas + {p4} from genes).": "{p0} 前進 {p1} 格至 {p2}(變形蟲 {p3} + 基因 {p4})。",
"{p0} gives up {p1}; remaining deficit: {p2} BP.": "{p0} 放棄 {p1};剩餘差額:{p2} BP。",
"{p0} returns {p1} to the gene pool.": "{p0} 將 {p1} 放回基因庫。",
"{p0} acquires {p1} from {p2} for {p3} BP.": "{p0} 花費 {p3} BP從 {p2} 取得 {p1}。",
"{p0} uses Population Explosion, gives up {p1} BP and grows toward {p2} amoebas.": "{p0} 使用族群爆炸,放棄 {p1} BP並以 {p2} 隻變形蟲為目標增殖。",
"{p0} swims with {p1} for {p2} BP.": "{p0} 使用 {p1} 游泳,花費 {p2} BP。",
"{p0} evolves {p1} for {p2} BP.": "{p0}以{p2} BP演化{p1}。",
"{p0} attacks {p1} with {p2} for {p3} BP.": "{p0} 使用 {p2} 花費{p3} BP攻擊 {p1} 。",
"{p0} buys {p1} for {p2} BP.": "{p0} 花費 {p2} BP購買 {p1}。",
"{p0} buys {p1} from {p2} for {p3} BP.": "{p0} 花費 {p3} BP向 {p2} 購買 {p1}。",
"{p0} discards {p1}; remaining deficit: {p2} BP.": "{p0} 棄掉 {p1};剩餘差額:{p2} BP。",
"{p0} didn't buy any genes.": "{p0} 沒有購買任何基因。"
}

View file

@ -1,11 +1,11 @@
import { COLORS, COLOR_NAMES } from "../engine/catalog.js";
import { icon, colonySymbol } from "./art.js";
import { icon, colonySymbol, colors, displayColorName } from "./art.js";
import { geneText } from "./gene-label.js";
export const food = (p, n = 1) => {
const label =
`${n ?? ""} ${COLOR_NAMES[p].toLowerCase()} nutrient${n === 1 ? "" : "s"}`.trim();
return `<span class="food-amount" role="img" aria-label="${label}" title="${label}"><span class="food ${COLORS[p]}" aria-hidden="true">${colonySymbol(COLORS[p])}</span>${n === null ? "" : `<span>${n}</span>`}</span>`;
`${n ?? ""} ${displayColorName(p, COLOR_NAMES[p]).toLowerCase()} nutrient${n === 1 ? "" : "s"}`.trim();
return `<span class="food-amount" role="img" aria-label="${label}" title="${label}"><span class="food ${COLORS[p]}" style="background:${colors[COLORS[p]].shade};border-color:${colors[COLORS[p]].stroke}" aria-hidden="true">${colonySymbol(COLORS[p])}</span>${n === null ? "" : `<span>${n}</span>`}</span>`;
};
const amount = (kind, n, label, symbol) =>
`<span class="resource-amount ${kind}-amount" role="img" aria-label="${label}" title="${label}">${icon(symbol)}<span>${n}</span></span>`;

View file

@ -747,7 +747,11 @@
.phase-income .bp-amount {
color: inherit;
}
.phase-division {
.phase-environment svg {
width: 18px;
height: 18px;
}
.phase-detail {
display: inline-flex;
align-items: center;
border-left: 1px solid currentColor;
@ -2097,3 +2101,12 @@
padding: 4px 5px;
}
}
.soup .supporter-badge {
display: inline-block;
width: 14px;
height: 14px;
margin-left: 4px;
vertical-align: -2px;
flex-shrink: 0;
}

View file

@ -22,7 +22,15 @@ import {
divisionCost,
amoeba as findAmoeba,
} from "../engine/index.js";
import { amoeba, icon, colors, colonyTraits, PHASE_ICONS } from "./art.js";
import {
amoeba,
icon,
colors,
colonyTraits,
PHASE_ICONS,
setPlayerColors,
displayColorName,
} from "./art.js";
import { geneArt } from "./gene-art.js";
import { geneSummary } from "./gene-summary.js";
import { geneFamilies } from "./gene-pool.js";
@ -177,7 +185,7 @@ function instruction(s, seat) {
case "direction":
return `Amoeba #${a.n} · ${s.players[a.p].genes.some((g) => g.id === "movement2") ? "Choose your direction." : `Rolled ${t.dice.join(" / ")}. Click a highlighted destination.`}`;
case "feeding":
return `Amoeba #${a.n} · ${s.moves.some((m) => m.type === "eat") ? `Choose a meal, then leave two ${COLOR_NAMES[s.actor].toLowerCase()} nutrients.` : "Not enough food here. This amoeba will take an injury unless it can hunt."}`;
return `Amoeba #${a.n} · ${s.moves.some((m) => m.type === "eat") ? `Choose a meal, then leave two ${displayColorName(s.actor, COLOR_NAMES[s.actor]).toLowerCase()} nutrients.` : "Not enough food here. This amoeba will take an injury unless it can hunt."}`;
case "speed":
return "Speed lets you swim once more, for free, before feeding.";
case "carry":
@ -223,6 +231,13 @@ export function mountGame(
) {
const root = document.createElement("div");
root.className = "soup game-shell";
let appearance = {};
const playerBadge = (i) => {
const badge = appearance.players?.[i]?.pro && appearance.supporterBadge;
return badge
? `<img class="supporter-badge" src="${esc(badge.url)}" alt="${esc(badge.label)}" title="${esc(badge.label)}">`
: "";
};
let colonySymbols = onColorBlindChange ? false : readLocalColorBlindMode();
root.classList.toggle("colony-symbols", colonySymbols);
target.append(root);
@ -317,7 +332,7 @@ export function mountGame(
$(".players").innerHTML = state.players
.map(
(p, i) =>
`<button class="player ${i === actor ? "active" : ""}" data-player="${i}" data-bgs-player="${i}" style="--player:${colors[p.color].shade}"><span class="player-color"></span><span class="player-portrait">${amoeba(p.color, i, colonyTraits(p.genes))}</span><span class="player-info"><span class="player-name">${esc(p.name)}${i === seat && p.name !== "You" ? '<span class="you-tag">You</span>' : ""}</span><span class="player-stat"><span class="resource-amount player-population" role="img" aria-label="${colony(state, i).length} living amoebas" title="Living amoebas">${amoeba(p.color)}<span>${colony(state, i).length}</span></span><span aria-hidden="true">·</span><span class="resource-amount" role="img" aria-label="${geneCount(state, i)} genes" title="Genes">${icon("gene")}${geneCount(state, i)}</span></span></span><span class="player-balances"><span class="player-bp">${bp(p.bp)}</span><span class="player-sensitivity ${mutation(state, i) < 0 ? "protective" : ""}" role="img" aria-label="Total sensitivity ${mutation(state, i)}" title="${SENSITIVITY_HELP}">${icon("sun")}<b>${mutation(state, i)}</b></span><span class="player-score-group"><span class="player-score" title="Evolution points">${icon("spark")}${p.score}</span>${state.closed ? "" : `<span class="player-income" role="img" aria-label="${evolution(state, i)} evolution points per round with the current colony" title="Projected evolution points per round with the current amoebas and genes. Occupied score spaces are skipped in addition."><b>+${evolution(state, i)}</b><span class="income-unit"> / round</span></span>`}</span></span></button>`,
`<button class="player ${i === actor ? "active" : ""}" data-player="${i}" data-bgs-player="${i}" style="--player:${colors[p.color].shade}"><span class="player-color"></span><span class="player-portrait">${amoeba(p.color, i, colonyTraits(p.genes))}</span><span class="player-info"><span class="player-name">${esc(p.name)}${playerBadge(i)}${i === seat && p.name !== "You" ? '<span class="you-tag">You</span>' : ""}</span><span class="player-stat"><span class="resource-amount player-population" role="img" aria-label="${colony(state, i).length} living amoebas" title="Living amoebas">${amoeba(p.color)}<span>${colony(state, i).length}</span></span><span aria-hidden="true">·</span><span class="resource-amount" role="img" aria-label="${geneCount(state, i)} genes" title="Genes">${icon("gene")}${geneCount(state, i)}</span></span></span><span class="player-balances"><span class="player-bp">${bp(p.bp)}</span><span class="player-sensitivity ${mutation(state, i) < 0 ? "protective" : ""}" role="img" aria-label="Total sensitivity ${mutation(state, i)}" title="${SENSITIVITY_HELP}">${icon("sun")}<b>${mutation(state, i)}</b></span><span class="player-score-group"><span class="player-score" title="Evolution points">${icon("spark")}${p.score}</span>${state.closed ? "" : `<span class="player-income" role="img" aria-label="${evolution(state, i)} evolution points per round with the current colony" title="Projected evolution points per round with the current amoebas and genes. Occupied score spaces are skipped in addition."><b>+${evolution(state, i)}</b><span class="income-unit"> / round</span></span>`}</span></span></button>`,
)
.join("");
const positions = actions().filter((m) =>
@ -438,8 +453,23 @@ export function mountGame(
: richText(prompt);
$(".phase-steps").innerHTML = PHASES.map((p, i) => {
const income = i === 3 ? roundIncome(state.players.length) : undefined;
const label = `${i + 1}. ${p}${income ? ` · Receive ${income} biological points` : ""}`;
return `<li tabindex="0" title="${esc(label)}" aria-label="${esc(label)}" ${!state.closed && state.phase === i ? 'aria-current="step"' : ""} class="${typeof state.phase === "number" && i < state.phase ? "complete" : ""}"><span aria-hidden="true">${i + 1}</span>${income ? `<span class="phase-income">${bp(`+${income}`)}</span><span class="phase-division" aria-hidden="true">${icon(PHASE_ICONS[i])}</span>` : icon(PHASE_ICONS[i])}</li>`;
const turnOrder =
i === 0
? "Lowest scorer first."
: i === 5
? "Automatic scoring, highest scorer first."
: "Highest scorer first.";
const label = `${i + 1}. ${p}${i === 1 ? " · Reveal a new environment card (current and ozone), then check sensitivity." : income ? ` · Receive ${income} biological points` : ""} · ${turnOrder}`;
const automatic =
i === 1
? `<span class="phase-environment" aria-hidden="true">${icon("environment-card")}</span>`
: income
? `<span class="phase-income">${bp(`+${income}`)}</span>`
: "";
const symbols = automatic
? `${automatic}<span class="phase-detail" aria-hidden="true">${icon(PHASE_ICONS[i])}</span>`
: icon(PHASE_ICONS[i]);
return `<li tabindex="0" title="${esc(label)}" aria-label="${esc(label)}" ${!state.closed && state.phase === i ? 'aria-current="step"' : ""} class="${typeof state.phase === "number" && i < state.phase ? "complete" : ""}"><span aria-hidden="true">${i + 1}</span>${symbols}</li>`;
}).join("");
const meals = actions().filter((m) => m.type === "eat");
const sources = [...new Set(meals.map((m) => m.source ?? "local"))];
@ -582,7 +612,7 @@ export function mountGame(
.sort((a, b) => b.score - a.score)
.map(
(p) =>
`<li>${amoeba(p.color)}<strong>${esc(p.name)}</strong><b>${p.score}</b></li>`,
`<li>${amoeba(p.color)}<strong>${esc(p.name)}${playerBadge(p.index)}</strong><b>${p.score}</b></li>`,
)
.join(
"",
@ -708,6 +738,14 @@ export function mountGame(
return {
root,
guide: $(".tutorial-slot"),
setPlayerAppearance(preferences) {
appearance = preferences.bgs ?? {};
setPlayerColors(
preferences.bgs?.playerColors ?? [],
preferences.colorBlind !== true,
);
render();
},
setColorBlind,
render(s) {
state = viewerState(s);