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:
1 parent
07c20ae806
commit
0e1a442dca
11 files changed
+503
-27
No files matched your search
@@ -374,21 +374,27 @@ void test('unresolved simultaneous Terror or Guild income rejects the complete o
|
||||
}
|
||||
});
|
||||
|
||||
void test('incomplete effect remains visibly unavailable and can be declined without consuming its token', () => {
|
||||
void test('the Tleilaxu effect is offered to an eligible beneficiary and returns forces without consuming its token early', () => {
|
||||
for (const effect of ['tleilaxu'] as const) {
|
||||
const g = enter(ambassadorFixture(effect));
|
||||
assert.match(
|
||||
viewGame(g, 'ec').ambassadorEntry!.beneficiaries[0].blocked!,
|
||||
/implemented/,
|
||||
assert.equal(
|
||||
viewGame(g, 'ec').ambassadorEntry!.beneficiaries[0].blocked,
|
||||
null,
|
||||
);
|
||||
reject(g, 'ec', {
|
||||
type: 'decision',
|
||||
event: g.pendingAmbassador!.event,
|
||||
const offered = decide(g, 'ec', {
|
||||
trigger: true,
|
||||
beneficiary: 'ec',
|
||||
choice: 'effect',
|
||||
});
|
||||
const done = decide(g, 'ec', { decline: true });
|
||||
assert.deepEqual(done.ecazAmbassadors, g.ecazAmbassadors);
|
||||
assert.equal(offered.pendingAmbassador?.stage, 'revival');
|
||||
assert.equal(offered.decision?.player, 'ec');
|
||||
assert.equal(viewGame(offered, 'ec').ambassadorEntry!.revival?.maximum, 0);
|
||||
const done = decide(offered, 'ec', { decline: true });
|
||||
assert.equal(done.pendingAmbassador, null);
|
||||
assert.equal(
|
||||
done.ecazAmbassadors!.tokens.find((t) => t.effect === effect)!.zone,
|
||||
'used',
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user