Clarify ending division while placements remain
This commit is contained in:
parent
efdc0532e8
commit
ef98c0a458
19 changed files with 44 additions and 20 deletions
|
|
@ -326,9 +326,9 @@ try {
|
|||
const activate = (locator) =>
|
||||
width <= 390 ? locator.tap() : locator.click();
|
||||
const finishDivision = page.getByRole("button", {
|
||||
name: "Finish division",
|
||||
exact: true,
|
||||
name: /^(End division early|Finish division)$/,
|
||||
});
|
||||
assert.equal(await finishDivision.textContent(), "End division early");
|
||||
assert.match(await finishDivision.getAttribute("class"), /secondary/);
|
||||
const beforeSelection = await page.evaluate(() => moves.length);
|
||||
await activate(page.locator('[data-amoeba="0-1"]'));
|
||||
|
|
@ -371,7 +371,9 @@ try {
|
|||
/Tap a highlighted space/,
|
||||
);
|
||||
// Passing remains a single deliberate action; it never confirms a selection.
|
||||
const beforeFinish = await page.evaluate(() => moves.length);
|
||||
await activate(finishDivision);
|
||||
assert.equal(await page.evaluate(() => moves.length), beforeFinish + 1);
|
||||
assert.deepEqual(await page.evaluate(() => moves.at(-1)), { type: "done" });
|
||||
s = E.move(s, { type: "done" }, 0);
|
||||
await show(s);
|
||||
|
|
@ -388,6 +390,7 @@ try {
|
|||
await page.locator(".colony-heading h2").textContent(),
|
||||
"Maya",
|
||||
);
|
||||
assert.equal(await finishDivision.textContent(), "Finish division");
|
||||
assert.match(await finishDivision.getAttribute("class"), /primary/);
|
||||
|
||||
// Six overlapping colonies, with their number badges above every neighbour.
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Tryk på et fremhævet felt for at placere en amøbe · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Du kan skabe så mange amøber, som du har råd til, op til syv. Afslut med Afslut deling for at beholde dine resterende 2 BP.",
|
||||
"Hide amoeba numbers": "Skjul amøbernes numre",
|
||||
"Show amoeba numbers": "Vis amøbernes numre"
|
||||
"Show amoeba numbers": "Vis amøbernes numre",
|
||||
"End division early": "Afslut deling tidligt"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Tippe auf ein markiertes Feld, um eine Amöbe zu platzieren · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Du darfst so viele Amöben erstellen, wie du dir leisten kannst, bis zu sieben. Schließe mit Teilung beenden ab, um deine restlichen 2 BP zu behalten.",
|
||||
"Hide amoeba numbers": "Amöbennummern ausblenden",
|
||||
"Show amoeba numbers": "Amöbennummern anzeigen"
|
||||
"Show amoeba numbers": "Amöbennummern anzeigen",
|
||||
"End division early": "Teilung vorzeitig beenden"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Πάτησε σε μια επισημασμένη θέση για να τοποθετήσεις μια αμοιβάδα · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Μπορείς να δημιουργήσεις όσες αμοιβάδες μπορείς να αντέξεις οικονομικά, έως επτά. Τελείωσε με Ολοκλήρωση διαίρεσης για να κρατήσεις τους υπόλοιπους 2 ΒΠ.",
|
||||
"Hide amoeba numbers": "Απόκρυψη αριθμών αμοιβάδων",
|
||||
"Show amoeba numbers": "Εμφάνιση αριθμών αμοιβάδων"
|
||||
"Show amoeba numbers": "Εμφάνιση αριθμών αμοιβάδων",
|
||||
"End division early": "Πρόωρη λήξη διαίρεσης"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Tap a highlighted space to place an amoeba · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.",
|
||||
"Hide amoeba numbers": "Hide amoeba numbers",
|
||||
"Show amoeba numbers": "Show amoeba numbers"
|
||||
"Show amoeba numbers": "Show amoeba numbers",
|
||||
"End division early": "End division early"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "برای قرار دادن آمیب، خانهٔ مشخصشده را لمس کنید · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "تا جایی که پول دارید، حداکثر هفت آمیب بسازید. «پایان تقسیم» را بزنید تا ۲ امتیاز زیستی باقی بماند.",
|
||||
"Hide amoeba numbers": "پنهان کردن شمارهٔ آمیبها",
|
||||
"Show amoeba numbers": "نمایش شمارهٔ آمیبها"
|
||||
"Show amoeba numbers": "نمایش شمارهٔ آمیبها",
|
||||
"End division early": "پایان زودهنگام تقسیم"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Touchez une case en surbrillance pour placer une amibe · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Tu peux créer autant d'amibes que tu peux te le permettre, jusqu'à sept. Termine avec Terminer la division pour conserver tes 2 PB restants.",
|
||||
"Hide amoeba numbers": "Masquer les numéros des amibes",
|
||||
"Show amoeba numbers": "Afficher les numéros des amibes"
|
||||
"Show amoeba numbers": "Afficher les numéros des amibes",
|
||||
"End division early": "Terminer la division maintenant"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "अमीबा रखने के लिए हाइलाइट किए गए स्थान पर टैप करें · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "आप जितने अमीबा खरीद सकते हैं उतने बना सकते हैं, अधिकतम सात तक। अपने बचे हुए 2 BP रखने के लिए विभाजन समाप्त करें के साथ समाप्त करें।",
|
||||
"Hide amoeba numbers": "अमीबा के नंबर छिपाएँ",
|
||||
"Show amoeba numbers": "अमीबा के नंबर दिखाएँ"
|
||||
"Show amoeba numbers": "अमीबा के नंबर दिखाएँ",
|
||||
"End division early": "विभाजन जल्दी समाप्त करें"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Tocca una casella evidenziata per posizionare un’ameba · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Puoi creare tutte le amebe che puoi permetterti, fino a sette. Concludi con Termina divisione per mantenere i tuoi 2 PB rimanenti.",
|
||||
"Hide amoeba numbers": "Nascondi i numeri delle amebe",
|
||||
"Show amoeba numbers": "Mostra i numeri delle amebe"
|
||||
"Show amoeba numbers": "Mostra i numeri delle amebe",
|
||||
"End division early": "Termina la divisione in anticipo"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "강조된 칸을 눌러 아메바를 배치하세요 · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "감당할 수 있는 만큼 아메바를 최대 7개까지 만들 수 있습니다. 분열 종료를 눌러 남은 BP 2를 지키세요.",
|
||||
"Hide amoeba numbers": "아메바 번호 숨기기",
|
||||
"Show amoeba numbers": "아메바 번호 표시"
|
||||
"Show amoeba numbers": "아메바 번호 표시",
|
||||
"End division early": "분열 조기 종료"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Tik op een gemarkeerd vak om een amoebe te plaatsen · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Je mag zoveel amoeben maken als je kunt betalen, tot zeven. Eindig met Deling beëindigen om je resterende 2 BP te behouden.",
|
||||
"Hide amoeba numbers": "Amoebenummers verbergen",
|
||||
"Show amoeba numbers": "Amoebenummers tonen"
|
||||
"Show amoeba numbers": "Amoebenummers tonen",
|
||||
"End division early": "Deling voortijdig beëindigen"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Dotknij podświetlonego pola, aby umieścić amebę · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Możesz stworzyć tyle ameb, na ile cię stać, maksymalnie siedem. Zakończ przyciskiem Zakończ podział, aby zachować pozostałe 2 PB.",
|
||||
"Hide amoeba numbers": "Ukryj numery ameb",
|
||||
"Show amoeba numbers": "Pokaż numery ameb"
|
||||
"Show amoeba numbers": "Pokaż numery ameb",
|
||||
"End division early": "Zakończ podział wcześniej"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Toque em um espaço destacado para colocar uma ameba · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Você pode criar quantas amebas puder pagar, até sete. Termine com Encerrar divisão para manter seus 2 PB restantes.",
|
||||
"Hide amoeba numbers": "Ocultar números das amebas",
|
||||
"Show amoeba numbers": "Mostrar números das amebas"
|
||||
"Show amoeba numbers": "Mostrar números das amebas",
|
||||
"End division early": "Encerrar divisão antecipadamente"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Atinge un spațiu evidențiat pentru a plasa o amibă · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Poți crea atâtea amibe câte îți permiți, până la șapte. Termină cu Încheie diviziunea pentru a-ți păstra restul de 2 PB.",
|
||||
"Hide amoeba numbers": "Ascunde numerele amibelor",
|
||||
"Show amoeba numbers": "Arată numerele amibelor"
|
||||
"Show amoeba numbers": "Arată numerele amibelor",
|
||||
"End division early": "Încheie diviziunea mai devreme"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Нажмите на подсвеченную клетку, чтобы разместить амёбу · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Ты можешь создать столько амёб, сколько можешь себе позволить, до семи. Заверши ход кнопкой «Завершить деление», чтобы сохранить оставшиеся 2 БО.",
|
||||
"Hide amoeba numbers": "Скрыть номера амёб",
|
||||
"Show amoeba numbers": "Показать номера амёб"
|
||||
"Show amoeba numbers": "Показать номера амёб",
|
||||
"End division early": "Завершить деление досрочно"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "Chạm vào ô được đánh dấu để đặt một amip · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "Bạn có thể tạo bao nhiêu amip tùy khả năng chi trả, tối đa bảy con. Kết thúc bằng Kết thúc phân chia để giữ 2 BP còn lại.",
|
||||
"Hide amoeba numbers": "Ẩn số của amip",
|
||||
"Show amoeba numbers": "Hiện số của amip"
|
||||
"Show amoeba numbers": "Hiện số của amip",
|
||||
"End division early": "Kết thúc phân chia sớm"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "点击高亮格子放置一只变形虫 · {p0}。",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "只要生物点数足够,你就可以创建变形虫,最多七只。选择“结束分裂”以保留剩余的 2 BP。",
|
||||
"Hide amoeba numbers": "隐藏变形虫编号",
|
||||
"Show amoeba numbers": "显示变形虫编号"
|
||||
"Show amoeba numbers": "显示变形虫编号",
|
||||
"End division early": "提前结束分裂"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1205,5 +1205,6 @@
|
|||
"Tap a highlighted space to place an amoeba · {p0}.": "點擊高亮格子放置變形蟲 · {p0}.",
|
||||
"You may create as many amoebas as you can afford, up to seven. Choose Finish division to keep your remaining 2 BP.": "你可以創造任意數量的變形蟲,最多七隻,只要點數足夠。完成後點擊「結束分裂」以保留剩餘的 2 點生物點數。",
|
||||
"Hide amoeba numbers": "隱藏變形蟲編號",
|
||||
"Show amoeba numbers": "顯示變形蟲編號"
|
||||
"Show amoeba numbers": "顯示變形蟲編號",
|
||||
"End division early": "提前結束分裂"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,7 +149,11 @@ export function moveLabel(m, s) {
|
|||
case "divide":
|
||||
return `New amoeba #${m.n} · ${placementPrice(s)}`;
|
||||
case "done":
|
||||
return t?.kind === "division" ? "Finish division" : "Done";
|
||||
return t?.kind === "division"
|
||||
? s.moves?.some((move) => move.type === "divide")
|
||||
? "End division early"
|
||||
: "Finish division"
|
||||
: "Done";
|
||||
case "attack":
|
||||
return `${m.attacker ? ref(m.attacker) + " → " : "Attack "}${ref(m.victim)} · ${bp(1)}`;
|
||||
case "accept-attack":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue