Clarify export costs, rewards and tutorial prerequisites
This commit is contained in:
parent
bf60a0edc4
commit
31040102fc
21 changed files with 183 additions and 44 deletions
|
|
@ -21,3 +21,6 @@ export const IMPOSSIBLE =
|
|||
|
||||
export const EXTEND_RULE =
|
||||
"The first player places both revealed tiles in either order. Each tile must touch at least two placed tiles. Islands cannot touch each other; an ocean tile must touch an island.";
|
||||
|
||||
export const EXPORT_RULE =
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.";
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Hvilebrik valgt",
|
||||
"Free": "Gratis",
|
||||
"Location": "Placering",
|
||||
"Ship completed (+2 included)": "Skib fyldt (+2 inkluderet)"
|
||||
"Ship completed (+2 included)": "Skib fyldt (+2 inkluderet)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Køb en vare fra en ø ved siden af din båd, og send den direkte til det første skib, der mangler den. Betal vatu, og få velstand. Du behøver hverken en hytte eller plads i lasten.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Sælg fisk ved siden af en af dine hytter {p0}: fiskenes værdi × markedsprisen. Prisen falder efter hvert salg.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Når et skib fyldes, får du {p0} ud over varens belønning.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Betalte vatu: {p0}. Optjent velstand: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Inklusive {p0} velstand for at fylde skibe."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Ruheplättchen gewählt",
|
||||
"Free": "Kostenlos",
|
||||
"Location": "Ort",
|
||||
"Ship completed (+2 included)": "Schiff vollständig (+2 enthalten)"
|
||||
"Ship completed (+2 included)": "Schiff vollständig (+2 enthalten)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Kaufe eine Ware von einer Insel neben deinem Boot und liefere sie direkt an das erste Schiff, das sie benötigt. Zahle Vatu und erhalte Wohlstand. Du brauchst weder eine Hütte noch Platz im Laderaum.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Verkaufe Fisch neben einer deiner Hütten {p0}: Fischwerte × Marktpreis. Der Preis sinkt nach jedem Verkauf.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Ein vollständig beladenes Schiff bringt zusätzlich {p0} zum Ertrag der Ware.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Gezahlte Vatu: {p0}. Gewonnener Wohlstand: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Enthält {p0} Wohlstand für vollständig beladene Schiffe."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Επιλέχθηκε πλακίδιο ανάπαυσης",
|
||||
"Free": "Δωρεάν",
|
||||
"Location": "Θέση",
|
||||
"Ship completed (+2 included)": "Πλοίο ολοκληρώθηκε (περιλαμβάνει +2)"
|
||||
"Ship completed (+2 included)": "Πλοίο ολοκληρώθηκε (περιλαμβάνει +2)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Αγόρασε ένα αγαθό από ένα νησί δίπλα στο σκάφος σου και στείλε το απευθείας στο πρώτο πλοίο που το χρειάζεται. Πληρώνεις βατού και κερδίζεις ευημερία. Δεν χρειάζεσαι καλύβα ή χώρο στο αμπάρι.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Πούλησε ψάρια δίπλα σε μία από τις καλύβες σου {p0}: αξία ψαριών × τιμή αγοράς. Η τιμή πέφτει μετά από κάθε πώληση.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Η συμπλήρωση ενός πλοίου προσθέτει {p0} στην ανταμοιβή του αγαθού.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Βατού που πληρώθηκαν: {p0}. Ευημερία που κερδήθηκε: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Περιλαμβάνει {p0} ευημερία για τη συμπλήρωση πλοίων."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Rest token chosen",
|
||||
"Free": "Free",
|
||||
"Location": "Location",
|
||||
"Ship completed (+2 included)": "Ship completed (+2 included)"
|
||||
"Ship completed (+2 included)": "Ship completed (+2 included)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Completing a ship adds {p0} to the good's reward.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Vatus paid: {p0}. Prosperity gained: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Includes {p0} prosperity for completing ships."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "نشان استراحت انتخاب شد",
|
||||
"Free": "رایگان",
|
||||
"Location": "مکان",
|
||||
"Ship completed (+2 included)": "کشتی تکمیل شد (شامل ۲+ امتیاز)"
|
||||
"Ship completed (+2 included)": "کشتی تکمیل شد (شامل ۲+ امتیاز)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "یک کالا از جزیرهٔ کنار قایقتان بخرید و آن را مستقیماً به نخستین کشتیای بفرستید که به آن نیاز دارد. واتو میپردازید و رفاه میگیرید. به کلبه یا فضای بار نیاز ندارید.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "کنار یکی از کلبههایتان {p0} ماهی بفروشید: ارزش ماهیها × قیمت بازار. قیمت پس از هر فروش کاهش مییابد.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "پر کردن یک کشتی، {p0} به پاداش کالا اضافه میکند.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "واتوی پرداختشده: {p0}. رفاه بهدستآمده: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "شامل {p0} رفاه بابت پر کردن کشتیهاست."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Jeton Repos choisi",
|
||||
"Free": "Gratuit",
|
||||
"Location": "Emplacement",
|
||||
"Ship completed (+2 included)": "Bateau complété (+2 inclus)"
|
||||
"Ship completed (+2 included)": "Bateau complété (+2 inclus)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Achetez une marchandise sur une île voisine de votre bateau et livrez-la directement au premier navire qui en a besoin. Payez en vatus ; gagnez de la prospérité. Aucune cabane ni place en cale n’est nécessaire.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Vendez du poisson près d’une de vos cabanes {p0} : valeur des poissons × cours du marché. Le cours baisse après chaque vente.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Compléter un navire ajoute {p0} au gain de la marchandise.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Vatus payés : {p0}. Prospérité gagnée : {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Dont {p0} de prospérité pour les navires complétés."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "विश्राम टोकन चुना",
|
||||
"Free": "मुफ़्त",
|
||||
"Location": "स्थान",
|
||||
"Ship completed (+2 included)": "जहाज़ पूरा हुआ (+2 शामिल)"
|
||||
"Ship completed (+2 included)": "जहाज़ पूरा हुआ (+2 शामिल)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "अपनी नाव के पास के द्वीप से एक वस्तु खरीदें और उसे सीधे उस पहले जहाज़ पर भेजें जिसे उसकी ज़रूरत है। वातु चुकाएँ और समृद्धि पाएँ। झोपड़ी या माल रखने की जगह की ज़रूरत नहीं है।",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "अपनी किसी झोपड़ी {p0} के पास मछली बेचें: मछलियों का मूल्य × बाज़ार का भाव। हर बिक्री के बाद भाव घटता है।",
|
||||
"Completing a ship adds {p0} to the good's reward.": "जहाज़ पूरा भरने पर वस्तु के पुरस्कार के अलावा {p0} मिलता है।",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "चुकाए गए वातु: {p0}। मिली समृद्धि: {p1}।",
|
||||
"Includes {p0} prosperity for completing ships.": "इसमें जहाज़ पूरे भरने के लिए {p0} समृद्धि शामिल है।"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Gettone riposo scelto",
|
||||
"Free": "Gratis",
|
||||
"Location": "Posizione",
|
||||
"Ship completed (+2 included)": "Nave completata (+2 inclusi)"
|
||||
"Ship completed (+2 included)": "Nave completata (+2 inclusi)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Compra una merce da un'isola accanto alla tua barca e inviala direttamente alla prima nave che ne ha bisogno. Paghi vatu e guadagni prosperità. Non servono capanne né spazio nella stiva.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Vendi pesce accanto a una delle tue capanne {p0}: valore dei pesci × prezzo di mercato. Il prezzo scende dopo ogni vendita.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Completare una nave aggiunge {p0} alla ricompensa della merce.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Vatu pagati: {p0}. Prosperità guadagnata: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Include {p0} prosperità per le navi completate."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "휴식 토큰 선택",
|
||||
"Free": "무료",
|
||||
"Location": "위치",
|
||||
"Ship completed (+2 included)": "배 완성 (+2 포함)"
|
||||
"Ship completed (+2 included)": "배 완성 (+2 포함)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "자신의 배에 인접한 섬에서 상품 하나를 사서 그 상품이 필요한 첫 번째 무역선으로 바로 보냅니다. 바투를 지불하고 번영을 얻습니다. 오두막이나 화물칸은 필요하지 않습니다.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "자신의 오두막 {p0} 옆에서 물고기를 팝니다: 물고기 가치 × 시장 가격. 판매할 때마다 가격이 내려갑니다.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "무역선을 가득 채우면 상품 보상에 {p0}을 추가로 받습니다.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "지불한 바투: {p0}. 얻은 번영: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "무역선을 가득 채운 보상으로 받은 번영 {p0}이 포함됩니다."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Rustfiche gekozen",
|
||||
"Free": "Gratis",
|
||||
"Location": "Locatie",
|
||||
"Ship completed (+2 included)": "Schip voltooid (+2 inbegrepen)"
|
||||
"Ship completed (+2 included)": "Schip voltooid (+2 inbegrepen)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Koop één goed van een eiland naast je boot en stuur het rechtstreeks naar het eerste schip dat het nodig heeft. Betaal vatu en ontvang welvaart. Je hebt geen hut of ruimte in je laadruim nodig.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Verkoop vis naast een van je hutten {p0}: viswaarde × marktprijs. De prijs daalt na elke verkoop.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Een schip vullen levert {p0} extra op bovenop de beloning voor het goed.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Betaalde vatu: {p0}. Verdiende welvaart: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Inclusief {p0} welvaart voor het vullen van schepen."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Wybrano żeton odpoczynku",
|
||||
"Free": "Za darmo",
|
||||
"Location": "Miejsce",
|
||||
"Ship completed (+2 included)": "Statek zapełniony (+2 wliczone)"
|
||||
"Ship completed (+2 included)": "Statek zapełniony (+2 wliczone)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Kup jeden towar z wyspy obok swojej łodzi i dostarcz go bezpośrednio na pierwszy statek, który go potrzebuje. Płacisz vatu, zyskujesz dobrobyt. Nie potrzebujesz chaty ani miejsca w ładowni.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Sprzedaj ryby obok jednej ze swoich chat {p0}: wartość ryb × cena rynkowa. Cena spada po każdej sprzedaży.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Zapełnienie statku dodaje {p0} do nagrody za towar.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Zapłacone vatu: {p0}. Zdobyty dobrobyt: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "W tym {p0} dobrobytu za zapełnienie statków."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Ficha de descanso escolhida",
|
||||
"Free": "Grátis",
|
||||
"Location": "Local",
|
||||
"Ship completed (+2 included)": "Navio completo (+2 incluídos)"
|
||||
"Ship completed (+2 included)": "Navio completo (+2 incluídos)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Compre uma mercadoria de uma ilha ao lado do seu barco e envie-a diretamente ao primeiro navio que precisa dela. Pague vatus e ganhe prosperidade. Não é preciso ter cabana nem espaço no porão.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Venda peixe ao lado de uma das suas cabanas {p0}: valor dos peixes × preço de mercado. O preço cai após cada venda.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Completar um navio acrescenta {p0} à recompensa da mercadoria.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Vatus pagos: {p0}. Prosperidade obtida: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Inclui {p0} de prosperidade por completar navios."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Jeton de odihnă ales",
|
||||
"Free": "Gratuit",
|
||||
"Location": "Loc",
|
||||
"Ship completed (+2 included)": "Nava completată (+2 incluse)"
|
||||
"Ship completed (+2 included)": "Nava completată (+2 incluse)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Cumpără o marfă de pe o insulă de lângă barca ta și trimite-o direct primei nave care are nevoie de ea. Plătești vatu; câștigi prosperitate. Nu ai nevoie de colibă sau de loc în cală.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Vinde pește lângă una dintre colibele tale {p0}: valoarea peștilor × prețul pieței. Prețul scade după fiecare vânzare.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Completarea unei nave adaugă {p0} la recompensa mărfii.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Vatu plătiți: {p0}. Prosperitate câștigată: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Include {p0} prosperitate pentru completarea navelor."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Выбран жетон отдыха",
|
||||
"Free": "Бесплатно",
|
||||
"Location": "Место",
|
||||
"Ship completed (+2 included)": "Корабль заполнен (+2 учтены)"
|
||||
"Ship completed (+2 included)": "Корабль заполнен (+2 учтены)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Купите один товар на острове рядом с вашей лодкой и сразу отправьте его на первый корабль, которому он нужен. Платите вату и получайте процветание. Ни хижина, ни место в трюме не нужны.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Продайте рыбу рядом с одной из своих хижин {p0}: ценность рыбы × рыночная цена. После каждой продажи цена падает.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Полная загрузка корабля добавляет {p0} к награде за товар.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Уплачено вату: {p0}. Получено процветания: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Включает {p0} процветания за полную загрузку кораблей."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "Đã chọn thẻ nghỉ ngơi",
|
||||
"Free": "Miễn phí",
|
||||
"Location": "Vị trí",
|
||||
"Ship completed (+2 included)": "Tàu đã đầy (đã tính +2)"
|
||||
"Ship completed (+2 included)": "Tàu đã đầy (đã tính +2)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "Mua một hàng hóa từ hòn đảo cạnh thuyền của bạn và chuyển thẳng đến con tàu đầu tiên cần nó. Trả vatu để nhận thịnh vượng. Không cần túp lều hay chỗ trong khoang hàng.",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "Bán cá cạnh một túp lều của bạn {p0}: giá trị cá × giá thị trường. Giá giảm sau mỗi lần bán.",
|
||||
"Completing a ship adds {p0} to the good's reward.": "Lấp đầy một tàu được thêm {p0} ngoài phần thưởng của hàng hóa.",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "Vatu đã trả: {p0}. Thịnh vượng nhận được: {p1}.",
|
||||
"Includes {p0} prosperity for completing ships.": "Bao gồm {p0} thịnh vượng từ việc lấp đầy tàu."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -859,5 +859,10 @@
|
|||
"Rest token chosen": "已選擇休息標記",
|
||||
"Free": "免費",
|
||||
"Location": "位置",
|
||||
"Ship completed (+2 included)": "船隻 已裝滿(含 +2)"
|
||||
"Ship completed (+2 included)": "船隻 已裝滿(含 +2)",
|
||||
"Buy one good from an island beside your boat and send it straight to the first ship that needs it. Pay vatus; gain prosperity. No hut or cargo space is needed.": "從船隻相鄰的島嶼購買一件貨物,直接送到第一艘需要它的商船。支付瓦圖,獲得繁榮。不需要小屋或貨艙空間。",
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.": "在自己的一間小屋 {p0} 旁出售魚:魚的價值 × 市價。每次出售後市價都會下降。",
|
||||
"Completing a ship adds {p0} to the good's reward.": "裝滿一艘商船可在貨物獎勵之外額外獲得 {p0}。",
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.": "支付瓦圖:{p0}。獲得繁榮:{p1}。",
|
||||
"Includes {p0} prosperity for completing ships.": "包含裝滿商船獲得的 {p0} 繁榮。"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import {
|
||||
EXPORT_RULE,
|
||||
EXTEND_TITLE,
|
||||
EXTEND_RULE,
|
||||
ROUND_TITLE,
|
||||
|
|
@ -12,6 +13,7 @@ import {
|
|||
iconLabel,
|
||||
esc,
|
||||
} from "./art.js";
|
||||
import { PRICES, VALUES } from "../engine/catalog.js";
|
||||
import { translateText } from "./localization/index.js";
|
||||
export function rulesHtml(lang = "en", colorBlind = false) {
|
||||
const t = (text) => translateText(text, lang);
|
||||
|
|
@ -67,20 +69,27 @@ export function rulesHtml(lang = "en", colorBlind = false) {
|
|||
),
|
||||
],
|
||||
[
|
||||
"Trade",
|
||||
"Sell fish",
|
||||
message(
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale. Pay {p4} to export {p1} / {p2} / {p3}, earning {p5} when a ship needs them. Completing a ship earns {p6}.",
|
||||
[
|
||||
icon("build"),
|
||||
icon("kava"),
|
||||
icon("copra"),
|
||||
icon("beef"),
|
||||
token("coin", "1 / 2 / 3"),
|
||||
token("point", "1 / 3 / 5"),
|
||||
token("point", 2),
|
||||
],
|
||||
"Sell fish beside one of your huts {p0}: fish values × the market price. The price falls after each sale.",
|
||||
[icon("build")],
|
||||
),
|
||||
],
|
||||
[
|
||||
"Export",
|
||||
esc(t(EXPORT_RULE)) +
|
||||
'<span class="export-prices" role="list">' +
|
||||
Object.keys(PRICES)
|
||||
.map(
|
||||
(good) =>
|
||||
`<span role="listitem"><strong>${icon(good)} ${esc(t({ kava: "Kava", copra: "Copra", beef: "Beef" }[good]))}</strong><span>${esc(t("Cost"))} ${token("coin", `−${PRICES[good]}`)} → ${token("point", `+${VALUES[good]}`)}</span></span>`,
|
||||
)
|
||||
.join("") +
|
||||
"</span>" +
|
||||
message("Completing a ship adds {p0} to the good's reward.", [
|
||||
token("point", "+2"),
|
||||
]),
|
||||
],
|
||||
[
|
||||
"Develop the islands",
|
||||
message(
|
||||
|
|
@ -163,7 +172,8 @@ export function rulesHtml(lang = "en", colorBlind = false) {
|
|||
"Five markers, up to five actions": "marker",
|
||||
"Retrieve markers": "undo",
|
||||
"Be in the right place": "sail",
|
||||
Trade: "sell",
|
||||
"Sell fish": "sell",
|
||||
Export: "buy",
|
||||
"Develop the islands": "build",
|
||||
Rest: "rest",
|
||||
"Final scoring": "point",
|
||||
|
|
|
|||
|
|
@ -1718,3 +1718,26 @@ body:has(.vanuatu) {
|
|||
.vanuatu .event-list .round-divider {
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.vanuatu .export-prices {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
margin: 9px 0;
|
||||
}
|
||||
.vanuatu .export-prices > span {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 4px 12px;
|
||||
padding: 5px 9px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: #f0eddd;
|
||||
}
|
||||
.vanuatu .export-prices strong,
|
||||
.vanuatu .export-prices > span > span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { LESSON } from "./tutorial-copy.js";
|
||||
import { FIRST_HELP } from "./learning.js";
|
||||
import { FIRST_HELP, EXPORT_RULE } from "./learning.js";
|
||||
import {
|
||||
EXTEND_TITLE,
|
||||
EXTEND_WHO,
|
||||
|
|
@ -27,7 +27,7 @@ export const chapterMetadata = [
|
|||
title: "An island economy",
|
||||
description: "Build a hut, draw in the sand and welcome a tourist.",
|
||||
},
|
||||
{ id: "trade", version: 2, title: "Trade", description: LESSON.tradeStart },
|
||||
{ id: "trade", version: 3, title: "Trade", description: LESSON.tradeStart },
|
||||
{ id: "rest", version: 1, title: "Rest", description: LESSON.restStart },
|
||||
{ id: "expansion", version: 2, title: EXTEND_TITLE, description: EXTEND_WHO },
|
||||
{
|
||||
|
|
@ -328,7 +328,7 @@ export const chapters = {
|
|||
trade: {
|
||||
game: "vanuatu",
|
||||
id: "trade",
|
||||
version: 2,
|
||||
version: 3,
|
||||
initialState: () => {
|
||||
const s = prepared();
|
||||
s.players[0].boat = "0,1";
|
||||
|
|
@ -365,6 +365,7 @@ export const chapters = {
|
|||
validateMove: (s, m) =>
|
||||
m.type === "treasure" ? undefined : LESSON.sellTreasure,
|
||||
},
|
||||
{ id: "buy-and-ship", title: "Export", text: EXPORT_RULE },
|
||||
{ id: "compare", title: "Export", text: LESSON.tradeCompare },
|
||||
{
|
||||
id: "export",
|
||||
|
|
|
|||
48
viewer/ui.js
48
viewer/ui.js
|
|
@ -9,6 +9,7 @@ import {
|
|||
PRICES,
|
||||
VALUES,
|
||||
} from "../engine/catalog.js";
|
||||
import { goodsAvailable } from "../engine/index.js";
|
||||
import { assets } from "./assets.js";
|
||||
import {
|
||||
icon as renderIcon,
|
||||
|
|
@ -159,18 +160,8 @@ export function mountGame(target, options = {}) {
|
|||
if (m.action === "build")
|
||||
return `${m.hut ? token("build", 1) : ""}${m.dike ? token("dike", 1) : ""} · ${token("coin", (m.hut ? (m.bonus ? 1 : 3) : 0) + (m.dike ? 1 : 0))}${m.dike ? ` <small>${coastArrow(m.cell, m.dike)}</small>` : ""}`;
|
||||
if (m.action === "buy") {
|
||||
let gain = 0;
|
||||
const ships = s.demands.map((d) => ({ ...d, filled: [...d.filled] }));
|
||||
for (let n = 0; n < (m.bonus ? 2 : 1); n++) {
|
||||
const d = ships.find((d) =>
|
||||
d.goods.some((g, i) => g === m.good && !d.filled[i]),
|
||||
);
|
||||
if (!d) continue;
|
||||
d.filled[d.goods.findIndex((g, i) => g === m.good && !d.filled[i])] =
|
||||
true;
|
||||
gain += VALUES[m.good] + (d.filled.every(Boolean) ? 2 : 0);
|
||||
}
|
||||
return `${token(m.good, m.bonus ? 2 : 1)} · ${token("coin", PRICES[m.good])} → ${token("point", gain)}`;
|
||||
const { gain, count } = exportPreview(m);
|
||||
return `${token(m.good, count)} · ${esc(translateText("Cost", lang))} ${token("coin", `−${PRICES[m.good]}`)} → ${token("point", `+${gain}`)}`;
|
||||
}
|
||||
if (m.action === "draw")
|
||||
return `${icon("draw")} → ${token("point", m.bonus ? 5 : 3)}`;
|
||||
|
|
@ -178,11 +169,42 @@ export function mountGame(target, options = {}) {
|
|||
return `${icon("tourist")} → ${token("coin", s.board[m.cell].huts.length)}${m.bonus ? " + " + token("point", s.board[m.cell].drawings * 2) : ""}`;
|
||||
return `${icon(m.action)} ${t(m.action)}`;
|
||||
}
|
||||
function exportPreview(m) {
|
||||
let gain = 0,
|
||||
count = 0,
|
||||
completed = 0;
|
||||
const ships = s.demands.map((d) => ({ ...d, filled: [...d.filled] }));
|
||||
const quantity = m.bonus && goodsAvailable(s, m.good) > 0 ? 2 : 1;
|
||||
for (let n = 0; n < quantity; n++) {
|
||||
const d = ships.find((d) =>
|
||||
d.goods.some((g, i) => g === m.good && !d.filled[i]),
|
||||
);
|
||||
if (!d) break;
|
||||
d.filled[d.goods.findIndex((g, i) => g === m.good && !d.filled[i])] =
|
||||
true;
|
||||
count++;
|
||||
gain += VALUES[m.good] + (d.filled.every(Boolean) ? 2 : 0);
|
||||
if (d.filled.every(Boolean)) completed++;
|
||||
}
|
||||
return { gain, count, completed };
|
||||
}
|
||||
function exportHelp(m) {
|
||||
const { gain, completed } = exportPreview(m);
|
||||
const help = translateText(
|
||||
"Vatus paid: {p0}. Prosperity gained: {p1}.",
|
||||
lang,
|
||||
)
|
||||
.replace("{p0}", PRICES[m.good])
|
||||
.replace("{p1}", gain);
|
||||
return `${translateText(iconLabel(m.good), lang)}. ${help}${completed ? " " + translateText("Includes {p0} prosperity for completing ships.", lang).replace("{p0}", completed * 2) : ""}`;
|
||||
}
|
||||
function moveButton(m, primary = false) {
|
||||
const idx = (s.legal ?? []).indexOf(m);
|
||||
const exportLabel =
|
||||
m.action === "buy" && m.type === "act" ? exportHelp(m) : "";
|
||||
return btn(
|
||||
actionDetail(m),
|
||||
`title="${esc(m.type === "discard" ? translateText("Retrieve without acting", lang) : m.action ? translateText(actionHelp[m.action], lang) : t(m.type === "plan" || m.type === "neutral" ? "plan" : m.type))}" data-move="${idx}" ${m.type === "discard" ? `aria-label="${esc(translateText("Retrieve without acting", lang))} — ${esc(translateText(t(m.action), lang))}"` : ""} ${pending ? "disabled" : ""}`,
|
||||
`title="${esc(exportLabel || (m.type === "discard" ? translateText("Retrieve without acting", lang) : m.action ? translateText(actionHelp[m.action], lang) : t(m.type === "plan" || m.type === "neutral" ? "plan" : m.type)))}" ${exportLabel ? `aria-label="${esc(exportLabel)}"` : ""} data-move="${idx}" ${m.type === "discard" ? `aria-label="${esc(translateText("Retrieve without acting", lang))} — ${esc(translateText(t(m.action), lang))}"` : ""} ${pending ? "disabled" : ""}`,
|
||||
m.type === "discard"
|
||||
? "move-option retrieve-warning"
|
||||
: primary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue