Connect Sapho first and last battle-choice order
Juice of Sapho can change the remaining Battle-phase chooser order at clean boundaries. A chooser may occupy the physical defender slot and select the actual other combatant. Physical storm order, attackers, defenders and tie advantage remain intact. Full-roster phase priority survives aftermath, newly eligible Face Dancers and saved continuation. Controls and all four AI profiles consume the same projected choices. Independent review verified private options, public geometry, exact physical disposal, rejected-action immutability, phase expiry and boundary-bound saved chooser integrity. Actual Basic/Advanced Face Dance regressions verify later replacement priority. Authenticated SQLite tests cover duplicate concurrent card requests, private restore and battle completion. Chooser/aggressor separation and phase duration remain explicit implementation interpretations; the separate aggressor mode and unresolved timing stay gated. Reinforcements remains disabled pending the documented reserve-cost question. Types, lint, 4792 offline tests, build and 43 HTTP tests pass with unchanged source. Six fixed genuine Basic/Advanced faction samples finish in 3672 accepted actions and 97 periodic private JSON restores. They retain 82 rejected candidates at existing guarded arrival combinations; subsequent legal candidates finish. This is bounded playability evidence, not complete compliance or AI calibration. The browser used Sapho first from a later physical circle, chose Emperor, sealed and resolved a battle, then refreshed into its next choice. Emperor retained the tie win. All 9 accepted actions replay exactly using the recorded random battle event; physical custody, all private JSON views and the original seat row pass. A private harness initially needed random-event replay binding and SQLite-row prototype normalization; no production fix or game reset was required. After the reported outage, the server responded and the staged QA game restored exactly. All 970 opening games and their original seat/recovery records remain preserved (1004 after checks), including all 971 rooms present immediately before checks. SQLite integrity and foreign keys pass. No restart, database reset or recurring automation was needed. Verified source tree: b699f80600f8e297595a8e756edf367a607ddd99707474c03231e6479bd2f389
This commit is contained in:
1 parent
04501567d0
commit
cb691e1b14
20 files changed
+1759
-35
No files matched your search
@@ -4254,6 +4254,13 @@ export function GameTable({
|
||||
to ship and move.
|
||||
</p>
|
||||
))}
|
||||
{g.phase === 6 && !g.battle && g.battleOrder && g.battleOrder.uses.length > 0 && (
|
||||
<p className="notice">
|
||||
Remaining battle-choice order: {g.battleOrder.remaining.map(id =>
|
||||
g.players.find(player => player.id === id)?.name ?? id).join(' → ')}.
|
||||
{' '}Only unresolved battles can be chosen. Each battle keeps its own aggressor and tie rules.
|
||||
</p>
|
||||
)}
|
||||
{g.phase === 6 && !g.battle && g.active === me.id && (
|
||||
<>
|
||||
<p className="muted">
|
||||
|
||||
@@ -21,7 +21,11 @@ function unavailableReason(game: GameView) {
|
||||
}
|
||||
if (game.phase === 5)
|
||||
return 'Movement order can change only before the current combined shipment and movement turn begins. First requires all remaining turns to be unstarted and the Advanced Guild to have finished or be absent. Completed turns stay completed. Already-held positions and committed cards are unavailable.';
|
||||
return 'These controls support Once Around bidding and movement order. Battle aggressor and other phase or auction modes remain unfinished.';
|
||||
if (game.phase === 6)
|
||||
return game.battle
|
||||
? 'Finish the current battle and its aftermath before changing the order of remaining battle choices. This does not change the current battle’s aggressor.'
|
||||
: 'You need an unresolved battle and an available first or last position. Completed battles stay resolved, and a card committed elsewhere cannot be used.';
|
||||
return 'These controls support Once Around bidding, movement order and remaining battle-choice order. Battle aggressor and other phase or auction modes remain unfinished.';
|
||||
}
|
||||
|
||||
export function JuiceOfSapho({
|
||||
@@ -48,12 +52,13 @@ export function JuiceOfSapho({
|
||||
<div className="flex min-w-0 flex-col gap-4 py-3">
|
||||
<p>
|
||||
Choose one available order change, then discard Juice of Sapho. This
|
||||
does not grant an extra bid, shipment or movement.
|
||||
does not grant an extra bid, shipment, movement or battle.
|
||||
</p>
|
||||
<CardInspector card={card} />
|
||||
{options.length ? (
|
||||
options.map((option) => {
|
||||
const once = option.scope === 'onceAround';
|
||||
const battle = option.scope === 'battleOrder';
|
||||
return (
|
||||
<div
|
||||
key={`${option.scope}-${option.event}-${option.mode}`}
|
||||
@@ -62,6 +67,8 @@ export function JuiceOfSapho({
|
||||
<p>
|
||||
{once
|
||||
? `Bid ${option.mode} in the current Once Around lot. Each eligible player still has only one bidding opportunity.`
|
||||
: battle
|
||||
? `Choose your remaining battles ${option.mode}. Completed battles stay resolved. This changes who chooses next, not the aggressor or tie advantage of a battle. Other players may still choose battles against you before your turn.`
|
||||
: `Take the ${option.mode} remaining combined shipment and movement turn. Completed turns stay completed${option.mode === 'last' ? ', and the Guild cannot move behind you' : ''}.`}
|
||||
</p>
|
||||
<Button
|
||||
@@ -71,7 +78,7 @@ export function JuiceOfSapho({
|
||||
if (!busy) act({ type: 'card', card: card.id, ...option });
|
||||
}}
|
||||
>
|
||||
{once ? 'Bid' : 'Take your movement turn'} {option.mode} and
|
||||
{once ? 'Bid' : battle ? 'Choose battles' : 'Take your movement turn'} {option.mode} and
|
||||
discard Juice of Sapho
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user