-
- Wily Trader / Merchant House: click one of your
- {store.exchangeOfferTypes.map((t) => RESOURCE_LABELS[t] ?? t).join("/")}
- cards to offer, then a player to trade with. They must hand back a higher-valued card of the same type if they
- have one.
-
+
The chosen player returns a higher-valued card of the same resource, if they have one.
+
+
@@ -497,6 +539,79 @@
gap: 8px;
flex-wrap: wrap;
}
+ .exchange-heading {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ width: 100%;
+ min-width: 0;
+ min-height: 28px;
+ }
+ .exchange-resources,
+ .exchange-offer,
+ .exchange-confirm {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ flex-shrink: 0;
+ }
+ .exchange-heading > .hint {
+ min-width: 0;
+ overflow-wrap: anywhere;
+ }
+ .exchange-resources > span {
+ display: flex;
+ color: var(--res);
+ }
+ .exchange-offer {
+ color: var(--res);
+ font-size: 13px;
+ font-variant-numeric: tabular-nums;
+ }
+ .exchange-arrow {
+ flex-shrink: 0;
+ color: var(--text-dim);
+ }
+ .exchange-help {
+ position: relative;
+ margin-inline-start: auto;
+ flex-shrink: 0;
+ }
+ .exchange-help summary {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 28px;
+ height: 28px;
+ color: var(--text-dim);
+ cursor: pointer;
+ list-style: none;
+ }
+ .exchange-help summary::-webkit-details-marker {
+ display: none;
+ }
+ .exchange-help summary:hover,
+ .exchange-help[open] summary {
+ color: var(--text);
+ }
+ .exchange-help summary:focus-visible {
+ outline: 2px solid var(--gold);
+ }
+ .exchange-help p {
+ position: absolute;
+ inset-inline-end: 0;
+ top: 100%;
+ z-index: 10;
+ width: min(260px, 70vw);
+ margin: 4px 0 0;
+ padding: 10px 12px;
+ border: 1px solid var(--line);
+ background: var(--bg-panel);
+ box-shadow: 0 4px 12px #0006;
+ color: var(--text-mid);
+ font-size: 12px;
+ line-height: 1.5;
+ }
.hint {
color: var(--text);
font-size: 13px;
diff --git a/packages/viewer/src/lib/store.svelte.ts b/packages/viewer/src/lib/store.svelte.ts
index 882350a..20127b4 100644
--- a/packages/viewer/src/lib/store.svelte.ts
+++ b/packages/viewer/src/lib/store.svelte.ts
@@ -564,7 +564,7 @@ export class ViewerStore {
}
/** Resource types I may offer, from the Wily Trader / Merchant House I own. */
- get exchangeOfferTypes(): string[] {
+ get exchangeOfferTypes(): Resource[] {
const me = this.me;
return me ? exchangeResources(me) : [];
}
diff --git a/packages/viewer/src/localization/da.json b/packages/viewer/src/localization/da.json
index aadb2e9..0e59bf0 100644
--- a/packages/viewer/src/localization/da.json
+++ b/packages/viewer/src/localization/da.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Køb {p0} alligevel · ◈ {p1}",
"Undo my move": "Fortryd mit træk",
"Maximum Megas (ask if over limit)": "Flest mulige Megaer (spørg ved håndgrænsen)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Automatiske Megaer sat på pause: Produktionen overskrider din håndgrænse. Vælg for denne runde."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Automatiske Megaer sat på pause: Produktionen overskrider din håndgrænse. Vælg for denne runde.",
+ "Choose a card": "Vælg et kort",
+ "Choose a player": "Vælg en spiller",
+ "Trade rules": "Bytteregler",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "Den valgte spiller giver et kort af samme ressource med en højere værdi tilbage, hvis de har et."
}
diff --git a/packages/viewer/src/localization/de.json b/packages/viewer/src/localization/de.json
index 5ae3c74..bc2a1dd 100644
--- a/packages/viewer/src/localization/de.json
+++ b/packages/viewer/src/localization/de.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "{p0} trotzdem kaufen · ◈ {p1}",
"Undo my move": "Zug zurücknehmen",
"Maximum Megas (ask if over limit)": "Maximale Megas (bei Handlimit nachfragen)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Auto-Megas pausiert: Die Produktion überschreitet dein Handlimit. Wähle für diese Runde."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Auto-Megas pausiert: Die Produktion überschreitet dein Handlimit. Wähle für diese Runde.",
+ "Choose a card": "Wähle eine Karte",
+ "Choose a player": "Wähle einen Spieler",
+ "Trade rules": "Tauschregeln",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "Der gewählte Spieler gibt eine höherwertige Karte derselben Ressource zurück, sofern er eine hat."
}
diff --git a/packages/viewer/src/localization/el.json b/packages/viewer/src/localization/el.json
index 3545c95..636a218 100644
--- a/packages/viewer/src/localization/el.json
+++ b/packages/viewer/src/localization/el.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Αγορά {p0} ούτως ή άλλως · ◈ {p1}",
"Undo my move": "Αναίρεση κίνησης",
"Maximum Megas (ask if over limit)": "Μέγιστα Mega (ερώτηση αν ξεπεραστεί το όριο)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Τα αυτόματα Mega τέθηκαν σε παύση: η παραγωγή υπερβαίνει το όριο καρτών σας. Επιλέξτε για αυτόν τον γύρο."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Τα αυτόματα Mega τέθηκαν σε παύση: η παραγωγή υπερβαίνει το όριο καρτών σας. Επιλέξτε για αυτόν τον γύρο.",
+ "Choose a card": "Επιλέξτε κάρτα",
+ "Choose a player": "Επιλέξτε παίκτη",
+ "Trade rules": "Κανόνες ανταλλαγής",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "Ο επιλεγμένος παίκτης επιστρέφει μια κάρτα του ίδιου πόρου με μεγαλύτερη αξία, αν έχει."
}
diff --git a/packages/viewer/src/localization/en.json b/packages/viewer/src/localization/en.json
index 3b5db5d..0c1f20d 100644
--- a/packages/viewer/src/localization/en.json
+++ b/packages/viewer/src/localization/en.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Buy {p0} anyway · ◈ {p1}",
"Undo my move": "Undo my move",
"Maximum Megas (ask if over limit)": "Maximum Megas (ask if over limit)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Auto Megas paused: production exceeds your hand limit. Choose this round."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Auto Megas paused: production exceeds your hand limit. Choose this round.",
+ "Choose a card": "Choose a card",
+ "Choose a player": "Choose a player",
+ "Trade rules": "Trade rules",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "The chosen player returns a higher-valued card of the same resource, if they have one."
}
diff --git a/packages/viewer/src/localization/fa.json b/packages/viewer/src/localization/fa.json
index 44e7088..19549c4 100644
--- a/packages/viewer/src/localization/fa.json
+++ b/packages/viewer/src/localization/fa.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "به هر حال {p0} بخرید · ◈ {p1}",
"Undo my move": "بازگرداندن حرکت",
"Maximum Megas (ask if over limit)": "بیشترین مگا (پرسش در صورت عبور از حد دست)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "انتخاب خودکار مگا متوقف شد: تولید از حد کارتهای دست شما بیشتر است. برای این دور انتخاب کنید."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "انتخاب خودکار مگا متوقف شد: تولید از حد کارتهای دست شما بیشتر است. برای این دور انتخاب کنید.",
+ "Choose a card": "یک کارت انتخاب کنید",
+ "Choose a player": "یک بازیکن انتخاب کنید",
+ "Trade rules": "قوانین مبادله",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "بازیکن انتخابشده، اگر کارتی از همان منبع با ارزش بالاتر داشته باشد، آن را در مقابل میدهد."
}
diff --git a/packages/viewer/src/localization/fr.json b/packages/viewer/src/localization/fr.json
index 4c6365f..e018974 100644
--- a/packages/viewer/src/localization/fr.json
+++ b/packages/viewer/src/localization/fr.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Acheter {p0} quand même · ◈ {p1}",
"Undo my move": "Annuler mon coup",
"Maximum Megas (ask if over limit)": "Maximum de Megas (demander si limite dépassée)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Megas automatiques en pause : la production dépasse votre limite de main. Choisissez pour ce tour."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Megas automatiques en pause : la production dépasse votre limite de main. Choisissez pour ce tour.",
+ "Choose a card": "Choisissez une carte",
+ "Choose a player": "Choisissez un joueur",
+ "Trade rules": "Règles de l’échange",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "Le joueur choisi rend une carte de la même ressource de valeur supérieure, s’il en possède une."
}
diff --git a/packages/viewer/src/localization/hi.json b/packages/viewer/src/localization/hi.json
index 5fc2f72..6b9bfa8 100644
--- a/packages/viewer/src/localization/hi.json
+++ b/packages/viewer/src/localization/hi.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "फिर भी {p0} खरीदें · ◈ {p1}",
"Undo my move": "अपनी चाल वापस लें",
"Maximum Megas (ask if over limit)": "अधिकतम मेगा (सीमा पार होने पर पूछें)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "स्वचालित मेगा चयन रुका है: उत्पादन से हाथ में कार्ड की सीमा पार हो जाएगी। इस दौर के लिए चुनें।"
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "स्वचालित मेगा चयन रुका है: उत्पादन से हाथ में कार्ड की सीमा पार हो जाएगी। इस दौर के लिए चुनें।",
+ "Choose a card": "एक कार्ड चुनें",
+ "Choose a player": "एक खिलाड़ी चुनें",
+ "Trade rules": "विनिमय के नियम",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "चुना गया खिलाड़ी उसी संसाधन का अधिक मूल्य वाला कार्ड लौटाता है, यदि उसके पास ऐसा कार्ड हो।"
}
diff --git a/packages/viewer/src/localization/it.json b/packages/viewer/src/localization/it.json
index 1248902..ead9c9c 100644
--- a/packages/viewer/src/localization/it.json
+++ b/packages/viewer/src/localization/it.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Compra comunque {p0} · ◈ {p1}",
"Undo my move": "Annulla la mossa",
"Maximum Megas (ask if over limit)": "Massimo di Mega (chiedi oltre il limite)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Mega automatiche in pausa: la produzione supera il limite della mano. Scegli per questo turno."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Mega automatiche in pausa: la produzione supera il limite della mano. Scegli per questo turno.",
+ "Choose a card": "Scegli una carta",
+ "Choose a player": "Scegli un giocatore",
+ "Trade rules": "Regole dello scambio",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "Il giocatore scelto restituisce una carta della stessa risorsa di valore superiore, se ne possiede una."
}
diff --git a/packages/viewer/src/localization/ko.json b/packages/viewer/src/localization/ko.json
index be2f85a..c87b784 100644
--- a/packages/viewer/src/localization/ko.json
+++ b/packages/viewer/src/localization/ko.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "그래도 {p0} 구매 · ◈ {p1}",
"Undo my move": "내 수 되돌리기",
"Maximum Megas (ask if over limit)": "최대 메가 (한도 초과 시 확인)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "메가 자동 선택 일시 중지: 생산량이 손패 한도를 초과합니다. 이번 라운드의 생산 방식을 선택하세요."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "메가 자동 선택 일시 중지: 생산량이 손패 한도를 초과합니다. 이번 라운드의 생산 방식을 선택하세요.",
+ "Choose a card": "카드를 선택하세요",
+ "Choose a player": "플레이어를 선택하세요",
+ "Trade rules": "교환 규칙",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "선택한 플레이어는 같은 자원의 더 높은 가치 카드를 가지고 있다면 그 카드를 돌려줍니다."
}
diff --git a/packages/viewer/src/localization/nl.json b/packages/viewer/src/localization/nl.json
index 4e0d3ef..8bf3e36 100644
--- a/packages/viewer/src/localization/nl.json
+++ b/packages/viewer/src/localization/nl.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Koop toch {p0} · ◈ {p1}",
"Undo my move": "Zet ongedaan maken",
"Maximum Megas (ask if over limit)": "Maximale Mega’s (vragen bij overschrijding)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Automatische Mega’s gepauzeerd: de productie overschrijdt je handlimiet. Kies voor deze ronde."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Automatische Mega’s gepauzeerd: de productie overschrijdt je handlimiet. Kies voor deze ronde.",
+ "Choose a card": "Kies een kaart",
+ "Choose a player": "Kies een speler",
+ "Trade rules": "Ruilregels",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "De gekozen speler geeft een kaart van dezelfde grondstof met een hogere waarde terug, als die er een heeft."
}
diff --git a/packages/viewer/src/localization/pl.json b/packages/viewer/src/localization/pl.json
index c67661c..f60736a 100644
--- a/packages/viewer/src/localization/pl.json
+++ b/packages/viewer/src/localization/pl.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Kup {p0} mimo to · ◈ {p1}",
"Undo my move": "Cofnij ruch",
"Maximum Megas (ask if over limit)": "Maksimum Mega (zapytaj po przekroczeniu limitu)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Automatyczny wybór Mega wstrzymany: produkcja przekracza limit kart w ręce. Wybierz w tej rundzie."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Automatyczny wybór Mega wstrzymany: produkcja przekracza limit kart w ręce. Wybierz w tej rundzie.",
+ "Choose a card": "Wybierz kartę",
+ "Choose a player": "Wybierz gracza",
+ "Trade rules": "Zasady wymiany",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "Wybrany gracz oddaje kartę tego samego surowca o wyższej wartości, jeśli taką posiada."
}
diff --git a/packages/viewer/src/localization/pt-BR.json b/packages/viewer/src/localization/pt-BR.json
index 98a8ffd..23bbbc9 100644
--- a/packages/viewer/src/localization/pt-BR.json
+++ b/packages/viewer/src/localization/pt-BR.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Comprar {p0} mesmo assim · ◈ {p1}",
"Undo my move": "Desfazer jogada",
"Maximum Megas (ask if over limit)": "Máximo de Megas (perguntar se exceder o limite)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Megas automáticas pausadas: a produção excede seu limite de mão. Escolha nesta rodada."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Megas automáticas pausadas: a produção excede seu limite de mão. Escolha nesta rodada.",
+ "Choose a card": "Escolha uma carta",
+ "Choose a player": "Escolha um jogador",
+ "Trade rules": "Regras de troca",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "O jogador escolhido devolve uma carta do mesmo recurso de valor maior, se tiver uma."
}
diff --git a/packages/viewer/src/localization/ro.json b/packages/viewer/src/localization/ro.json
index 0b64125..3c8cb6a 100644
--- a/packages/viewer/src/localization/ro.json
+++ b/packages/viewer/src/localization/ro.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Cumpără totuși {p0} · ◈ {p1}",
"Undo my move": "Anulează mutarea",
"Maximum Megas (ask if over limit)": "Maximum de Mega (întreabă dacă depășești limita)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Alegerea automată a cărților Mega este oprită: producția depășește limita mâinii. Alege pentru această rundă."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Alegerea automată a cărților Mega este oprită: producția depășește limita mâinii. Alege pentru această rundă.",
+ "Choose a card": "Alege o carte",
+ "Choose a player": "Alege un jucător",
+ "Trade rules": "Reguli de schimb",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "Jucătorul ales oferă în schimb o carte din aceeași resursă, cu o valoare mai mare, dacă are una."
}
diff --git a/packages/viewer/src/localization/ru.json b/packages/viewer/src/localization/ru.json
index ecb4bdb..bd59d23 100644
--- a/packages/viewer/src/localization/ru.json
+++ b/packages/viewer/src/localization/ru.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Всё равно купить {p0} · ◈ {p1}",
"Undo my move": "Отменить ход",
"Maximum Megas (ask if over limit)": "Максимум Мега (спросить при превышении лимита)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Автовыбор Мега приостановлен: производство превышает лимит карт в руке. Сделайте выбор на этот раунд."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Автовыбор Мега приостановлен: производство превышает лимит карт в руке. Сделайте выбор на этот раунд.",
+ "Choose a card": "Выберите карту",
+ "Choose a player": "Выберите игрока",
+ "Trade rules": "Правила обмена",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "Выбранный игрок возвращает карту того же ресурса с большей ценностью, если она у него есть."
}
diff --git a/packages/viewer/src/localization/vi.json b/packages/viewer/src/localization/vi.json
index 83b1c0f..8c51163 100644
--- a/packages/viewer/src/localization/vi.json
+++ b/packages/viewer/src/localization/vi.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "Vẫn mua {p0} · ◈ {p1}",
"Undo my move": "Hoàn tác nước đi",
"Maximum Megas (ask if over limit)": "Tối đa Mega (hỏi nếu vượt giới hạn)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Tạm dừng tự chọn Mega: sản xuất vượt giới hạn bài trên tay. Hãy chọn cho vòng này."
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "Tạm dừng tự chọn Mega: sản xuất vượt giới hạn bài trên tay. Hãy chọn cho vòng này.",
+ "Choose a card": "Chọn một lá bài",
+ "Choose a player": "Chọn một người chơi",
+ "Trade rules": "Quy tắc trao đổi",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "Người chơi được chọn trả lại một lá cùng loại tài nguyên có giá trị cao hơn, nếu họ có."
}
diff --git a/packages/viewer/src/localization/zh-CN.json b/packages/viewer/src/localization/zh-CN.json
index a8a824c..7e763d6 100644
--- a/packages/viewer/src/localization/zh-CN.json
+++ b/packages/viewer/src/localization/zh-CN.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "仍购买 {p0} · ◈ {p1}",
"Undo my move": "撤销我的行动",
"Maximum Megas (ask if over limit)": "最多巨型牌(超限时询问)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "自动巨型牌已暂停:产出超过手牌上限。请为本轮手动选择。"
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "自动巨型牌已暂停:产出超过手牌上限。请为本轮手动选择。",
+ "Choose a card": "选择一张卡牌",
+ "Choose a player": "选择一名玩家",
+ "Trade rules": "交换规则",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "所选玩家若持有同种资源且价值更高的卡牌,就必须用该卡牌交换。"
}
diff --git a/packages/viewer/src/localization/zh-TW.json b/packages/viewer/src/localization/zh-TW.json
index 4209773..081f474 100644
--- a/packages/viewer/src/localization/zh-TW.json
+++ b/packages/viewer/src/localization/zh-TW.json
@@ -1214,5 +1214,9 @@
"Buy {p0} anyway · ◈ {p1}": "仍然購買 {p0} · ◈ {p1}",
"Undo my move": "撤回我的行動",
"Maximum Megas (ask if over limit)": "最多 Mega(超過手牌上限時詢問)",
- "Auto Megas paused: production exceeds your hand limit. Choose this round.": "已暫停自動選擇 Mega:本輪產出將超過手牌上限。請選擇本輪的生產方式。"
+ "Auto Megas paused: production exceeds your hand limit. Choose this round.": "已暫停自動選擇 Mega:本輪產出將超過手牌上限。請選擇本輪的生產方式。",
+ "Choose a card": "選擇一張卡牌",
+ "Choose a player": "選擇一名玩家",
+ "Trade rules": "交換規則",
+ "The chosen player returns a higher-valued card of the same resource, if they have one.": "所選玩家若持有同種資源且價值更高的卡牌,就必須用該卡牌交換。"
}