diff --git a/engine/index.js b/engine/index.js index 5a5e9ba..f3d76ec 100644 --- a/engine/index.js +++ b/engine/index.js @@ -189,7 +189,7 @@ function initialize(count, expansions, options, seed, boardLayout) { ? shuffle(s, Object.keys(CHARACTERS)).slice(0, 5) : Object.keys(CHARACTERS); startSelection(s); - say(s, "start", { p: s.first }); + say(s, "start", { p: s.first, tourists: s.tourists }); saveFrame(s); return s; } @@ -837,7 +837,7 @@ function endRound(s) { s.planningPass = 0; s.neutral = emptyMarkers(); s.neutralPlaced = 0; - say(s, "round", { round: s.round, first: s.first }); + say(s, "round", { round: s.round, first: s.first, tourists: s.tourists }); } function finish(s) { for (const [p, a] of s.players.entries()) { @@ -1061,12 +1061,24 @@ function publicFrame(frame, p, finished = false) { ); return out; } +function withTouristDraw(s, event) { + if (["start", "round"].includes(event.type) && event.tourists === undefined) { + // Older saves keep the revealed tile in the first public frame of each + // round. Later frames only have the remaining, possibly depleted supply. + const tourists = s._frames.find( + (frame) => frame.round === event.round, + )?.tourists; + if (tourists !== undefined) return { ...event, tourists }; + } + return event; +} export function stripSecret(s, p) { const out = publicFrame(capture(s), p, s.finished); + out.lastEvents = out.lastEvents.map((e) => withTouristDraw(s, e)); out.events = copy(s.events).map((e) => e.type === "rest" && e.p !== p && !s.finished ? { ...e, token: "hidden" } - : e, + : withTouristDraw(s, e), ); out.historyLength = logLength(s); out.legal = p === undefined ? [] : availableMoves(s, p); @@ -1080,9 +1092,11 @@ export function logSlice( { player, start = 0, end = s._frames.length - 1 } = {}, ) { return { - frames: s._frames - .slice(start, end + 1) - .map((f) => publicFrame(f, player, s.finished)), + frames: s._frames.slice(start, end + 1).map((f) => { + const frame = publicFrame(f, player, s.finished); + frame.lastEvents = frame.lastEvents.map((e) => withTouristDraw(s, e)); + return frame; + }), start, end: Math.min(end, s._frames.length - 1), length: logLength(s), diff --git a/package.json b/package.json index 43f17dd..9b2da42 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@boardgamers/vanuatu", - "version": "0.1.6", + "version": "0.1.7", "private": true, "type": "module", "main": "dist/engine.js", diff --git a/test/journal-browser.mjs b/test/journal-browser.mjs index d4c14be..c1b4c20 100644 --- a/test/journal-browser.mjs +++ b/test/journal-browser.mjs @@ -7,7 +7,7 @@ const s = E.stripSecret(E.init(3, [], {}, "journal-browser"), 0); s.players.forEach((p, i) => (p.name = ["Coyote", "Spock", "AlphaZero"][i])); s.round = 2; s.events = [ - { type: "start", p: 0 }, + { type: "start", p: 0, tourists: 3 }, { type: "character", p: 0, character: "vendor" }, { type: "character", p: 1, character: "artist" }, { type: "character", p: 2, character: "buyer" }, @@ -64,7 +64,7 @@ s.events = [ { type: "rest", p: 1, token: "hidden" }, { type: "discard", p: 0, action: "sail", markers: 2 }, { type: "restBonus", p: 1, token: "both" }, - { type: "round", round: 2, first: 1 }, + { type: "round", round: 2, first: 1, tourists: 0 }, ].map((e, i) => ({ round: 1, step: i + 1, ...e })); const server = createServer(async (req, res) => { const name = req.url.slice(1); @@ -120,6 +120,17 @@ try { assert.equal(await list.locator(".round-divider").count(), 2); assert.equal(await list.locator(".phase-divider").count(), 6); assert.equal(await list.locator(".event-plan").count(), 9); + assert.deepEqual( + await list + .locator(".round-divider + .event-touristDraw .token b") + .allTextContents(), + ["3", "0"], + "the tourist tile is shown immediately after each round heading, including zero", + ); + assert.equal( + await list.locator(".event-touristDraw .event-player").count(), + 0, + ); assert.ok( await list .locator("li") @@ -201,6 +212,11 @@ try { assert.ok( (await list.innerText()).includes(c["Ship completed (+2 included)"]), ); + assert.ok( + (await list.locator(".event-touristDraw").first().innerText()).includes( + c["Tourist tile"], + ), + ); assert.equal( await list.locator(".event-action .resource-symbol").count(), 1, @@ -211,6 +227,15 @@ try { ); } await page.evaluate(() => host.emit("preferences", { locale: "fr" })); + await page.waitForFunction(() => + document + .querySelector(".event-touristDraw") + ?.textContent.includes("Tuile Touristes"), + ); + await list.evaluate((e) => (e.scrollTop = e.scrollHeight)); + await list.screenshot({ + path: `.local/qa/journal-tourist-draw-${width}.png`, + }); await list.scrollIntoViewIfNeeded(); await list .locator(".event-plan") diff --git a/test/journal.test.js b/test/journal.test.js index 9d4607b..ca582a0 100644 --- a/test/journal.test.js +++ b/test/journal.test.js @@ -3,6 +3,44 @@ import assert from "node:assert/strict"; import * as E from "../engine/index.js"; import { journalRows } from "../viewer/journal.js"; +test("each round logs its tourist draw, including zero, and old saves retain the original counts", () => { + let s = E.init(3, [], {}, "journal-tourist-draws"); + const draws = [s.tourists]; + for (let i = 0; i < 700 && !s.finished; i++) { + const round = s.round; + s = E.moveAI(s, s.actor); + if (s.round !== round) draws.push(s.tourists); + } + assert.ok(s.finished); + assert.deepEqual([...draws].sort(), [0, 1, 1, 2, 2, 2, 3, 3]); + const drawRows = (state) => + journalRows(state) + .filter((row) => row.event?.type === "touristDraw") + .map((row) => [row.event.round, row.event.tourists]); + const expected = draws.map((n, i) => [i + 1, n]); + assert.deepEqual(drawRows(E.stripSecret(s, 0)), expected); + + const old = structuredClone(s); + for (const e of [...old.events, ...old._frames.flatMap((f) => f.lastEvents)]) + delete e.tourists; + // The current supply cannot tell us how many arrived earlier in the round. + old.tourists = 0; + const before = structuredClone(old); + assert.deepEqual(drawRows(E.stripSecret(old, 0)), expected); + assert.deepEqual( + E.logSlice(old) + .frames.flatMap((f) => f.lastEvents) + .filter((e) => e.type === "round") + .map((e) => [e.round, e.tourists]), + expected.slice(1), + ); + assert.deepEqual( + old, + before, + "reading the journal does not mutate a saved game", + ); +}); + function fixture(action, options = {}) { const s = E.init(3, ["rising-waters"], {}, "journal"); s.phase = "actions"; diff --git a/viewer/activity.js b/viewer/activity.js index 88b7a10..97ac3ee 100644 --- a/viewer/activity.js +++ b/viewer/activity.js @@ -166,6 +166,11 @@ export function mountActivity( function eventHtml(e) { const d = e.details ?? {}; switch (e.type) { + case "touristDraw": + return ( + heading(e, text("Tourist tile")) + + details(chip(token("tourist", e.tourists))) + ); case "action": { const parts = []; if (d.cost !== undefined) parts.push(cost(d.cost)); diff --git a/viewer/journal.js b/viewer/journal.js index 9fd0be1..acbde4c 100644 --- a/viewer/journal.js +++ b/viewer/journal.js @@ -41,7 +41,19 @@ export function journalRows(state) { neutral = emptyMarkers(); players.forEach((p) => (p.markers = emptyMarkers())); } - if (["start", "round"].includes(e.type)) continue; + if (["start", "round"].includes(e.type)) { + if (Number.isInteger(e.tourists)) + rows.push({ + kind: "event", + event: { + type: "touristDraw", + round: e.round, + step: e.step, + tourists: e.tourists, + }, + }); + continue; + } const player = players[e.p]; let nextPhase = { place: "expand", diff --git a/viewer/localization/da.json b/viewer/localization/da.json index 980618e..0618732 100644 --- a/viewer/localization/da.json +++ b/viewer/localization/da.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "Den sidste stak tillod ingen handling og blev derfor taget tilbage automatisk. Hvilebonusserne er nu udbetalt; Mayas startspillerbrik lader hende starte næste runde.", "A complete round": "En hel runde", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Du spillede en hel runde: Hvile → Fiskeri → Salg og tog derefter to ubrugelige stakke tilbage. Din hvilebonus er udbetalt. Planlæg alternativer: en markør reserverer hverken en handling, dens ressourcer eller dens plads i rækkefølgen.", - "No tourists available this round.": "Ingen turister til rådighed i denne runde." + "No tourists available this round.": "Ingen turister til rådighed i denne runde.", + "Tourist tile": "Turistbrik" } diff --git a/viewer/localization/de.json b/viewer/localization/de.json index ea81847..ea4e376 100644 --- a/viewer/localization/de.json +++ b/viewer/localization/de.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "Der letzte Stapel erlaubte keine Aktion und wurde automatisch zurückgenommen. Die Ruheboni werden ausgezahlt; Mayas Startspieler-Plättchen lässt sie die nächste Runde beginnen.", "A complete round": "Eine ganze Runde", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Du hast eine ganze Runde gespielt: Ausruhen → Fischen → Verkaufen, dann zwei unbrauchbare Stapel zurückgenommen. Dein Ruhebonus ist ausgezahlt. Plane Alternativen: Ein Marker reserviert weder eine Aktion noch ihre Ressourcen oder ihre Position in deiner Reihenfolge.", - "No tourists available this round.": "In dieser Runde sind keine Touristen verfügbar." + "No tourists available this round.": "In dieser Runde sind keine Touristen verfügbar.", + "Tourist tile": "Touristenplättchen" } diff --git a/viewer/localization/el.json b/viewer/localization/el.json index 690872d..15b72e2 100644 --- a/viewer/localization/el.json +++ b/viewer/localization/el.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "Η τελευταία στοίβα δεν επέτρεπε καμία ενέργεια και ανακτήθηκε αυτόματα. Τα μπόνους Ανάπαυσης αποδόθηκαν· το πλακίδιο Πρώτου παίκτη της Maya την κάνει να αρχίσει τον επόμενο γύρο.", "A complete round": "Ένας ολόκληρος γύρος", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Παίξατε ολόκληρο γύρο: Ανάπαυση → Ψάρεμα → Πώληση και ανακτήσατε δύο άχρηστες στοίβες. Το μπόνους Ανάπαυσης αποδόθηκε. Σχεδιάστε εναλλακτικές: ένας δείκτης δεν δεσμεύει ενέργεια, πόρους ή θέση στην ακολουθία σας.", - "No tourists available this round.": "Δεν υπάρχουν διαθέσιμοι τουρίστες σε αυτόν τον γύρο." + "No tourists available this round.": "Δεν υπάρχουν διαθέσιμοι τουρίστες σε αυτόν τον γύρο.", + "Tourist tile": "Πλακίδιο τουριστών" } diff --git a/viewer/localization/en.json b/viewer/localization/en.json index f46b6e3..0ccd0c5 100644 --- a/viewer/localization/en.json +++ b/viewer/localization/en.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.", "A complete round": "A complete round", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.", - "No tourists available this round.": "No tourists available this round." + "No tourists available this round.": "No tourists available this round.", + "Tourist tile": "Tourist tile" } diff --git a/viewer/localization/fa.json b/viewer/localization/fa.json index 0a0d08e..2efcb4a 100644 --- a/viewer/localization/fa.json +++ b/viewer/localization/fa.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "آخرین دسته هیچ اقدام ممکنی نداشت، پس خودکار پس گرفته شد. پاداش‌های استراحت پرداخت شدند؛ توکن بازیکن اول مایا باعث می‌شود او دور بعد را آغاز کند.", "A complete round": "یک دور کامل", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "یک دور کامل بازی کردید: استراحت، سپس ماهیگیری و فروش، و بعد پس گرفتن دو دستهٔ بی‌استفاده. پاداش استراحت پرداخت شد. گزینه‌های جایگزین داشته باشید: نشانگر، اقدام یا منابع یا جای آن در ترتیب شما را رزرو نمی‌کند.", - "No tourists available this round.": "در این دور هیچ گردشگری در دسترس نیست." + "No tourists available this round.": "در این دور هیچ گردشگری در دسترس نیست.", + "Tourist tile": "کاشی گردشگران" } diff --git a/viewer/localization/fr.json b/viewer/localization/fr.json index 65050db..99f846d 100644 --- a/viewer/localization/fr.json +++ b/viewer/localization/fr.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "La dernière pile ne permettait aucune action : elle a donc été retirée automatiquement. Les bonus Repos sont versés ; le jeton Premier joueur de Maya lui fera commencer la prochaine manche.", "A complete round": "Une manche complète", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Vous avez joué une manche entière : Se reposer → Pêcher → Vendre, puis retiré deux piles inutilisables. Votre bonus Repos est versé. Prévoyez des alternatives utiles : un marqueur ne réserve ni une action, ni ses ressources, ni sa place dans votre enchaînement.", - "No tourists available this round.": "Aucun touriste disponible pour cette manche." + "No tourists available this round.": "Aucun touriste disponible pour cette manche.", + "Tourist tile": "Tuile Touristes" } diff --git a/viewer/localization/hi.json b/viewer/localization/hi.json index cbe1cde..12e0b88 100644 --- a/viewer/localization/hi.json +++ b/viewer/localization/hi.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "आखिरी ढेर से कोई क्रिया संभव नहीं थी, इसलिए वह अपने-आप वापस आ गया। आराम के बोनस मिल गए हैं; माया का पहला खिलाड़ी टोकन उसे अगला राउंड शुरू करने देगा।", "A complete round": "एक पूरा राउंड", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "आपने पूरा राउंड खेला: आराम → मछली पकड़ना → बेचना, फिर दो अनुपयोगी ढेर वापस लिए। आराम का बोनस मिल गया है। उपयोगी विकल्प रखें: मार्कर किसी क्रिया, उसके संसाधनों या उसके क्रम को आरक्षित नहीं करता।", - "No tourists available this round.": "इस दौर में कोई पर्यटक उपलब्ध नहीं है।" + "No tourists available this round.": "इस दौर में कोई पर्यटक उपलब्ध नहीं है।", + "Tourist tile": "पर्यटक टाइल" } diff --git a/viewer/localization/it.json b/viewer/localization/it.json index a8c4bfd..617526c 100644 --- a/viewer/localization/it.json +++ b/viewer/localization/it.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "L'ultima pila non permetteva alcuna azione, quindi è stata ritirata automaticamente. I bonus Riposo vengono assegnati; il gettone Primo giocatore di Maya le farà iniziare il prossimo round.", "A complete round": "Un round completo", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Hai giocato un round intero: Riposare → Pescare → Vendere, poi hai ritirato due pile inutilizzabili. Il bonus Riposo è stato assegnato. Prevedi alternative: un segnalino non riserva un'azione, le sue risorse o il suo posto nella sequenza.", - "No tourists available this round.": "Nessun turista disponibile in questo round." + "No tourists available this round.": "Nessun turista disponibile in questo round.", + "Tourist tile": "Tessera Turisti" } diff --git a/viewer/localization/ko.json b/viewer/localization/ko.json index 4442abb..f0ddfd2 100644 --- a/viewer/localization/ko.json +++ b/viewer/localization/ko.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "마지막 더미로 가능한 행동이 없으므로 자동으로 회수됐습니다. 휴식 보너스가 지급됐으며 선 플레이어 토큰을 가진 Maya가 다음 라운드를 시작합니다.", "A complete round": "한 라운드 완료", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "휴식 → 낚시 → 판매 후 사용할 수 없는 두 더미를 회수하며 한 라운드를 마쳤습니다. 휴식 보너스도 받았습니다. 대안을 준비하세요. 마커는 행동, 자원, 실행 순서를 예약하지 않습니다.", - "No tourists available this round.": "이번 라운드에 남은 관광객이 없습니다." + "No tourists available this round.": "이번 라운드에 남은 관광객이 없습니다.", + "Tourist tile": "관광객 타일" } diff --git a/viewer/localization/nl.json b/viewer/localization/nl.json index 8716772..cb9483c 100644 --- a/viewer/localization/nl.json +++ b/viewer/localization/nl.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "De laatste stapel had geen mogelijke actie en werd automatisch teruggenomen. De rustbonussen zijn nu toegekend; dankzij haar startspelertoken begint Maya de volgende ronde.", "A complete round": "Een volledige ronde", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Je speelde een hele ronde: Rusten → Vissen → Verkopen, daarna nam je twee onbruikbare stapels terug. Je rustbonus is toegekend. Plan alternatieven: een marker reserveert geen actie, grondstoffen of plek in je volgorde.", - "No tourists available this round.": "Deze ronde zijn er geen toeristen beschikbaar." + "No tourists available this round.": "Deze ronde zijn er geen toeristen beschikbaar.", + "Tourist tile": "Toeristentegel" } diff --git a/viewer/localization/pl.json b/viewer/localization/pl.json index 0b8ccf0..91ee709 100644 --- a/viewer/localization/pl.json +++ b/viewer/localization/pl.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "Ostatni stos nie umożliwiał żadnej akcji, więc zabrano go automatycznie. Premie Odpoczynku zostały wypłacone; żeton Pierwszego gracza pozwoli Mayi rozpocząć kolejną rundę.", "A complete round": "Cała runda", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Rozegrałeś całą rundę: Odpoczynek → Łowienie → Sprzedaż, potem zabrałeś dwa bezużyteczne stosy. Premia Odpoczynku została wypłacona. Planuj alternatywy: znacznik nie rezerwuje akcji, jej zasobów ani miejsca w kolejności.", - "No tourists available this round.": "W tej rundzie nie ma dostępnych turystów." + "No tourists available this round.": "W tej rundzie nie ma dostępnych turystów.", + "Tourist tile": "Żeton turystów" } diff --git a/viewer/localization/pt-BR.json b/viewer/localization/pt-BR.json index a54e1d7..72d5599 100644 --- a/viewer/localization/pt-BR.json +++ b/viewer/localization/pt-BR.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "A última pilha não permitia nenhuma ação e foi retirada automaticamente. Os bônus de descanso foram pagos; a ficha de Primeiro jogador de Maya faz com que ela comece a próxima rodada.", "A complete round": "Uma rodada completa", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Você jogou uma rodada inteira: Descansar → Pescar → Vender, depois retirou duas pilhas inutilizáveis. Seu bônus de descanso foi pago. Planeje alternativas: um marcador não reserva uma ação, seus recursos ou sua posição na sequência.", - "No tourists available this round.": "Nenhum turista disponível nesta rodada." + "No tourists available this round.": "Nenhum turista disponível nesta rodada.", + "Tourist tile": "Peça de turistas" } diff --git a/viewer/localization/ro.json b/viewer/localization/ro.json index cc15185..5ef9182 100644 --- a/viewer/localization/ro.json +++ b/viewer/localization/ro.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "Ultimul teanc nu permitea nicio acțiune, așa că a fost retras automat. Bonusurile de Odihnă sunt acordate; jetonul Primul jucător al Mayei o face să înceapă runda următoare.", "A complete round": "O rundă completă", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Ai jucat o rundă întreagă: Odihnă → Pescuit → Vânzare, apoi ai retras două teancuri inutilizabile. Bonusul de Odihnă este acordat. Planifică alternative: un jeton nu rezervă o acțiune, resursele ei sau locul ei în secvență.", - "No tourists available this round.": "Nu sunt turiști disponibili în această rundă." + "No tourists available this round.": "Nu sunt turiști disponibili în această rundă.", + "Tourist tile": "Jeton de turiști" } diff --git a/viewer/localization/ru.json b/viewer/localization/ru.json index bb60325..3ebca0e 100644 --- a/viewer/localization/ru.json +++ b/viewer/localization/ru.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "Последняя стопка не позволяла выполнить действие и была убрана автоматически. Бонусы Отдыха выплачены; жетон Первого игрока Майи позволит ей начать следующий раунд.", "A complete round": "Полный раунд", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Вы сыграли весь раунд: Отдых → Рыбалка → Продажа, затем забрали две бесполезные стопки. Бонус Отдыха выплачен. Планируйте альтернативы: маркер не резервирует действие, его ресурсы или место в вашей цепочке.", - "No tourists available this round.": "В этом раунде нет доступных туристов." + "No tourists available this round.": "В этом раунде нет доступных туристов.", + "Tourist tile": "Жетон туристов" } diff --git a/viewer/localization/vi.json b/viewer/localization/vi.json index 3b5bbfb..034f3ed 100644 --- a/viewer/localization/vi.json +++ b/viewer/localization/vi.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "Chồng dấu cuối không có hành động khả thi nên được thu tự động. Thưởng Nghỉ ngơi đã được trao; thẻ Người đi đầu của Maya giúp cô ấy bắt đầu vòng tiếp theo.", "A complete round": "Một vòng hoàn chỉnh", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "Bạn đã chơi trọn vòng: Nghỉ ngơi → Câu cá → Bán, rồi thu hai chồng dấu không dùng được. Thưởng Nghỉ ngơi đã được trao. Hãy có phương án khác: dấu không giữ trước hành động, tài nguyên hay thứ tự thực hiện.", - "No tourists available this round.": "Không còn khách du lịch trong vòng này." + "No tourists available this round.": "Không còn khách du lịch trong vòng này.", + "Tourist tile": "Thẻ khách du lịch" } diff --git a/viewer/localization/zh-TW.json b/viewer/localization/zh-TW.json index 9013d50..b3ef779 100644 --- a/viewer/localization/zh-TW.json +++ b/viewer/localization/zh-TW.json @@ -892,5 +892,6 @@ "The last stack had no possible action, so it was retrieved automatically. Rest bonuses are now paid; Maya's First player token makes her start the next round.": "最後一堆標記沒有可執行的行動,因此自動收回。休息獎勵已發放;Maya 的起始玩家標記讓她開始下一回合。", "A complete round": "一個完整回合", "You played a whole round: Rest → Fish → Sell, then retrieved two unusable stacks. Your Rest bonus is now paid. Plan useful alternatives: a marker does not reserve an action, its resources or its place in your sequence.": "你玩完了一整個回合:休息 → 捕魚 → 賣魚,接著收回兩堆無法使用的標記。休息獎勵已發放。規劃有用的替代方案:標記不會預留行動、資源或執行順序。", - "No tourists available this round.": "本回合沒有可用的遊客。" + "No tourists available this round.": "本回合沒有可用的遊客。", + "Tourist tile": "遊客板塊" } diff --git a/viewer/tutorials.js b/viewer/tutorials.js index dbd7d5b..d5b0fe9 100644 --- a/viewer/tutorials.js +++ b/viewer/tutorials.js @@ -60,6 +60,7 @@ function prepared(phase = "actions") { "1,1": E.tileState("startBoat"), }; s.tourists = 2; + s.events[0].tourists = s.tourists; return s; } function play(s, m, opponentMove = E.moveAI) {