Connect Nexus Skills and Advanced Ambassador markers
Verify and publish checkpoint container / container (push) Successful in 10m45s
Verify and publish checkpoint container / container (push) Successful in 10m45s
This commit is contained in:
1 parent
2660b10af0
commit
4270b36be7
14 files changed
+578
-41
No files matched your search
@@ -209,7 +209,7 @@ for (const kind of ['emperor-revival', 'fremen-revival'] as const) {
|
||||
});
|
||||
}
|
||||
|
||||
void test('Fremen prior free returns count toward the quota, exhausted improvement is unavailable, and real Truthtrance blocks both grants', () => {
|
||||
void test('Fremen prior free returns count toward the quota, short returns work, and real Truthtrance blocks both grants', () => {
|
||||
const f = createNexusModulePaymentsFixture({ kind: 'fremen-revival' });
|
||||
const late = advanceNexusModulePaymentsToPhase(applyAction(f.game, f.actor, { type: 'revive', amount: 1 }), 4);
|
||||
const granted = applyAction(late, f.actor, f.paymentAction);
|
||||
@@ -219,8 +219,19 @@ void test('Fremen prior free returns count toward the quota, exhausted improveme
|
||||
assert.equal(returned.players.find(p => p.id === f.actor)!.revived, 3);
|
||||
for (const kind of ['fremen-revival', 'emperor-revival'] as const) {
|
||||
const short = createNexusModulePaymentsFixture({ kind, tanks: 2 });
|
||||
if (kind === 'emperor-revival') rejected(short.game, short.actor, short.paymentAction);
|
||||
else {
|
||||
if (kind === 'emperor-revival') {
|
||||
// The later positive-shortage policy returns the available one or two
|
||||
// forces in addition to the ordinary allowance; it supersedes the
|
||||
// original full-three-only test expectation.
|
||||
const before = short.beforePayment.players.find(p => p.id === short.actor)!;
|
||||
const partial = payNexusModulePaymentsFixture(short);
|
||||
const after = partial.players.find(p => p.id === short.actor)!;
|
||||
assert.equal(after.tanks, 0);
|
||||
assert.equal(after.reserves, before.reserves + 2);
|
||||
assert.equal(after.revived, before.revived);
|
||||
assert.equal(after.freeForcesRevived, before.freeForcesRevived);
|
||||
assert.equal(partial.nexusCards!.cards!.discard.filter(card => card === 'emperor').length, 1);
|
||||
} else {
|
||||
const enabled = applyAction(short.game, short.actor, short.paymentAction);
|
||||
rejected(enabled, short.actor, { type: 'revive', amount: 3 });
|
||||
const partial = advanceNexusModulePaymentsToPhase(applyAction(enabled, short.actor, { type: 'revive', amount: 2 }), 4);
|
||||
@@ -266,14 +277,20 @@ void test('new module admission rejects too few Tech seats, Basic Strongholds, u
|
||||
assert.throws(() => initializeNexusGameForAudit(lobby));
|
||||
assert.deepEqual(lobby, before);
|
||||
}
|
||||
// Selected native-expansion cards/factions are not another path to admission.
|
||||
// A selected Ix deck with classic factions is now a supported Nexus/Tech
|
||||
// setup; it retains both original module selections through initialization.
|
||||
let lobby = createGame('NEXUSMODULEDECK', newPlayer('a', 'Atreides', 'atreides'), false, ['ix']);
|
||||
joinGame(lobby, newPlayer('h', 'Harkonnen', 'harkonnen'));
|
||||
joinGame(lobby, newPlayer('e', 'Emperor', 'emperor'));
|
||||
lobby.nexusCards = { cards: null, phase: null };
|
||||
lobby.techTokens = createTechTokens();
|
||||
for (const player of lobby.players) lobby = applyAction(lobby, player.id, { type: 'ready' });
|
||||
assert.throws(() => initializeNexusGameForAudit(lobby));
|
||||
const before = structuredClone(lobby);
|
||||
const initialized = initializeNexusGameForAudit(lobby);
|
||||
assert.deepEqual(lobby, before);
|
||||
assert.deepEqual(initialized.expansions, ['ix']);
|
||||
assert.ok(initialized.techTokens);
|
||||
assert.ok(initialized.nexusCards);
|
||||
});
|
||||
|
||||
for (const strongholds of [false, true]) {
|
||||
|
||||
Reference in new issue
Block a user