From cd1d15f73745d4ecdf74a88c7f027e8bfff325bf Mon Sep 17 00:00:00 2001 From: coyotte508 Date: Thu, 1 Oct 2026 14:43:02 +0200 Subject: [PATCH] Fold automation into action footer and remove buying help --- packages/viewer/package.json | 2 +- packages/viewer/src/lib/ActionBar.svelte | 466 ++++++++++---------- packages/viewer/src/localization/da.json | 3 +- packages/viewer/src/localization/de.json | 3 +- packages/viewer/src/localization/el.json | 3 +- packages/viewer/src/localization/en.json | 3 +- packages/viewer/src/localization/fa.json | 3 +- packages/viewer/src/localization/fr.json | 3 +- packages/viewer/src/localization/hi.json | 3 +- packages/viewer/src/localization/it.json | 3 +- packages/viewer/src/localization/ko.json | 3 +- packages/viewer/src/localization/nl.json | 3 +- packages/viewer/src/localization/pl.json | 3 +- packages/viewer/src/localization/pt-BR.json | 3 +- packages/viewer/src/localization/ro.json | 3 +- packages/viewer/src/localization/ru.json | 3 +- packages/viewer/src/localization/vi.json | 3 +- packages/viewer/src/localization/zh-TW.json | 3 +- 18 files changed, 257 insertions(+), 259 deletions(-) diff --git a/packages/viewer/package.json b/packages/viewer/package.json index 22ea43f..f4cf422 100644 --- a/packages/viewer/package.json +++ b/packages/viewer/package.json @@ -1,6 +1,6 @@ { "name": "outpost-viewer", - "version": "0.1.11", + "version": "0.1.12", "description": "Browser viewer for the Outpost game on boardgamers.space", "license": "AGPL-3.0", "files": [ diff --git a/packages/viewer/src/lib/ActionBar.svelte b/packages/viewer/src/lib/ActionBar.svelte index e2c372c..bfabb52 100644 --- a/packages/viewer/src/lib/ActionBar.svelte +++ b/packages/viewer/src/lib/ActionBar.svelte @@ -102,245 +102,251 @@ }); -{#if state && !state.ended && !store.replay.active && !store.myBidTurn} +{#if state && !state.ended && !store.replay.active}
- {#if store.myMega && me} -
- - Production: choose Mega cards before drawing. Each Mega replaces the production of 4 staffed factories; other - factories produce single cards. - - Choices stay hidden until everyone has confirmed. - {#each Object.entries(store.megaEligible) as [resource, groups] (resource)} - {@const mega = MEGA_CARDS[resource as keyof typeof MEGA_CARDS]} - {@const taking = store.megaTake[resource] ?? 0} -
- - Mega {RESOURCE_LABELS[resource] ?? resource} - {#if mega} - (◈ {mega.value}){/if} - - - - {taking}/{groups} - - -
- {/each} - -
- {:else if store.iMustDiscard && me} -
- - {`Hand limit exceeded. Cards still to discard: ${store.discardExcess} (selected: ${pickCount}; Research and Microbiotics do not count).`} - - -
- {:else if store.myPayment && me} -
- - You won {auctionName}: select hand cards worth at least ◈ {store.myPaymentDue} - (selected ◈ {total}). - - -
- {:else if store.myExchange && me} -
- - 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. - - - -
- {:else if store.myActionTurn && me} - {#if store.manning} + {#if !store.myBidTurn} + {#if store.myMega && me} +
+ + Production: choose Mega cards before drawing. Each Mega replaces the production of 4 staffed factories; + other factories produce single cards. + + Choices stay hidden until everyone has confirmed. + {#each Object.entries(store.megaEligible) as [resource, groups] (resource)} + {@const mega = MEGA_CARDS[resource as keyof typeof MEGA_CARDS]} + {@const taking = store.megaTake[resource] ?? 0} +
+ + Mega {RESOURCE_LABELS[resource] ?? resource} + {#if mega} + (◈ {mega.value}){/if} + + + + {taking}/{groups} + + +
+ {/each} + +
+ {:else if store.iMustDiscard && me} +
+ + {`Hand limit exceeded. Cards still to discard: ${store.discardExcess} (selected: ${pickCount}; Research and Microbiotics do not count).`} + + +
+ {:else if store.myPayment && me}
- Assign operators — click the glowing factory chips in your panel to toggle them. - {`Factories staffed: ${store.manningPick.length}/${me.factories.length}.`} - {#if idleOperators > 0 && idleFactories > 0} - - Assign {Math.min(idleOperators, idleFactories)} more before ending your turn. - - {/if} - {#if staged.length > 0} - Also confirms: {staged.join(", ")}. - {/if} + You won {auctionName}: select hand cards worth at least ◈ {store.myPaymentDue} + (selected ◈ {total}). + + +
+ {:else if store.myExchange && me} +
+ + 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. store.confirmExchange()} > - -
- {:else if pending} -
- - {#if pending.kind === "factory"} - {`Building ${pending.count} ${RESOURCE_LABELS[pending.factory]} ${pending.count === 1 ? "factory" : "factories"} (produces ◈ ${MIN_CARD_VALUE[pending.factory]}–${MAX_CARD_VALUE[pending.factory]} per round when manned):`} - {:else if pending.kind === "population"} - {`Colonists to recruit: ${pending.count}`} - {:else} - {`Robots to buy: ${pending.count}`} - {/if} - selected ◈ {total} / ◈ {pending.cost}. - {#if needsResearch && !hasResearch} - Payment must include a research card{pending.kind === "factory" && pending.count > 1 - ? ` per factory (◈ ${pending.count} research)` - : ""}. - {/if} - - {#if pending.kind === "factory" || pending.kind === "population" || pending.kind === "robots"} - - - {/if} - - +
- {:else} -
- Your turn. Credits: ◈ {store.myHandValue} -
-
New factory
-
- {#each FACTORY_TYPES as type (type)} - {@const spec = FACTORIES[type]} - {@const reason = factoryReason[type]} - - {/each} -
-
-
- Operators: - - {#if me.upgrades.robots > 0} - - {/if} - -
-
- {#if staged.length > 0} + {:else if store.myActionTurn && me} + {#if store.manning}
- Staged this turn: {staged.join(", ")} (undo to open an auction). + Assign operators — click the glowing factory chips in your panel to toggle them. + {`Factories staffed: ${store.manningPick.length}/${me.factories.length}.`} + {#if idleOperators > 0 && idleFactories > 0} + + Assign {Math.min(idleOperators, idleFactories)} more before ending your turn. + + {/if} + {#if staged.length > 0} + Also confirms: {staged.join(", ")}. + {/if} - + +
+ {:else if pending} +
+ + {#if pending.kind === "factory"} + {`Building ${pending.count} ${RESOURCE_LABELS[pending.factory]} ${pending.count === 1 ? "factory" : "factories"} (produces ◈ ${MIN_CARD_VALUE[pending.factory]}–${MAX_CARD_VALUE[pending.factory]} per round when manned):`} + {:else if pending.kind === "population"} + {`Colonists to recruit: ${pending.count}`} + {:else} + {`Robots to buy: ${pending.count}`} + {/if} + selected ◈ {total} / ◈ {pending.cost}. + {#if needsResearch && !hasResearch} + Payment must include a research card{pending.kind === "factory" && pending.count > 1 + ? ` per factory (◈ ${pending.count} research)` + : ""}. + {/if} + + {#if pending.kind === "factory" || pending.kind === "population" || pending.kind === "robots"} + + + {/if} + + +
+ {:else} +
+ Your turn. Credits: ◈ {store.myHandValue} +
+
New factory
+
+ {#each FACTORY_TYPES as type (type)} + {@const spec = FACTORIES[type]} + {@const reason = factoryReason[type]} + + {/each} +
+
+
+ Operators: + + {#if me.upgrades.robots > 0} + + {/if} + +
+
+ {#if staged.length > 0} +
+ + Staged this turn: {staged.join(", ")} (undo to open an auction). + + +
+ {/if} {/if} -
- How to buy -

- Click a market upgrade to auction it, or a buy button and then the hand cards to pay with. -

-
+ {:else} +
+ {#if state?.phase === "mega" && me?.megaChoice !== undefined} + Production choice locked. + Choices stay hidden until everyone has confirmed. + {/if} + {waitingOn} +
{/if} - {:else} -
- {#if state?.phase === "mega" && me?.megaChoice !== undefined} - Production choice locked. - Choices stay hidden until everyone has confirmed. - {/if} - {waitingOn} + {/if} + + {#if me && store.settings !== null} +
+ +
{/if}
{/if} -{#if state && !state.ended && !store.replay.active && me && store.settings !== null} -
- - -

Automatically submits each round, including this round if you haven't chosen yet.

-
-{/if} -