Wire the Tleilaxu Ambassador force return

The last unimplemented Ambassador effect is now reachable. A placed Tleilaxu
token gives its beneficiary — the Ecaz owner or its ally — a private
ecazAmbassador decision at the new revival stage: one to four physical counters
return from the Tanks to reserves at zero cost, quoted by the existing
game/tleilaxu-ambassador-forces.ts, which also enforces the shared
Fedaykin/Sardaukar one-per-turn counter and keeps Ixian cyborgs uncapped.

The player view projects the maximum, Tanks and elite inventory and current
elite usage to the beneficiary only; the entry control offers a per-count
button and an explicit "Return no forces" decline; all four AI profiles choose
a legal return from the decision owner's own view or decline when the Tanks are
empty. Player-facing coverage text now lists Tleilaxu.

Kept gated exactly as recorded: the printed leader alternative, ordinary
force/free/leader allowance accounting around this independent grant,
dead-twice eligibility, and Tleilaxu free-income repeat scope. No ordinary
revival allowance, price, phase or income path changes.

Evidence: tests/tleilaxu-ambassador-engine.test.ts drives a genuine arrival into
a placed token and asserts the beneficiary-only projection, the typed return
with unchanged spice, the shared elite limit, malformed/over-maximum rejection
with immutability, the ordinary-only return, the decline path and the rendered
control. The four-profile ecaz-entry-bots loop now covers tleilaxu, and the
former unsupported-effect and copy-list pins were updated to the supported
behaviour rather than re-pinned. Offline suite 7,797/7,797 with typecheck and
lint clean. No game, seat, saved state or deployment changes.
This commit is contained in:
Quintine committed 2026-10-07 18:28:57 +11:00
1 parent 07c20ae806
commit 0e1a442dca
11 files changed
+503 -27

No files matched your search

+2 -2
View File
@@ -210,7 +210,7 @@ void test('unselected BG copy permits spending its final Ixian discard while a F
.map((choice) => choice.effect)
.sort();
assert.equal(g.pendingAmbassador?.stage, 'copy');
assert.deepEqual(copies(g), ['fremen', 'guild', 'ixians']);
assert.deepEqual(copies(g), ['fremen', 'guild', 'ixians', 'tleilaxu']);
assert.equal(
g.ecazAmbassadors!.tokens.find(
(token) => token.effect === 'beneGesserit',
@@ -249,7 +249,7 @@ void test('unselected BG copy permits spending its final Ixian discard while a F
assert.equal(g.pendingAmbassador?.event, event);
assert.equal(g.pendingAmbassador?.stage, 'copy');
assert.deepEqual(g.players[1].hand, []);
assert.deepEqual(copies(g), ['fremen', 'guild']);
assert.deepEqual(copies(g), ['fremen', 'guild', 'tleilaxu']);
assert.equal(g.discard.filter((held) => held.id === card).length, 1);
if (karama)
assert.equal(g.discard.filter((held) => held.id === karama).length, 1);