Open Tleilaxu special Karama throughout Revival
Permit native Advanced quiet any-player declarations alongside the original target-bound pending request. Preserve completed returns and charges. Adopt explicit provisional Ghola inclusion during the remaining Revival and phase expiry; keep printed Emperor special immunity and the existing low-Homeworld guard. Connect persistent controls and minimal legal bots through the shared quote. Validation: 14 related files148/148, types/lint/build, six actual native control/engine/GameTable SSR journeys and four existing-profile continuations. Private-driver-only feedback reuses passed source-identical checks. Native111/113-action setup, paid shipment and battle sources earn originals. No saved-room/D1/restart/deployment operation; full modes and browser/deployed acceptance remain open.
This commit is contained in:
1 parent
6ea691255a
commit
1a505525a8
18 files changed
+977
-59
No files matched your search
@@ -0,0 +1,32 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import { quoteTleilaxuSpecialKarama as quote, type TleilaxuSpecialKaramaContext } from '../game/tleilaxu-special-karama';
|
||||
|
||||
function context(): TleilaxuSpecialKaramaContext {
|
||||
return { status: 'playing', phase: 4, advanced: true, owner: { id: 't', faction: 'tleilaxu' },
|
||||
players: [{ id: 't' }, { id: 'a' }, { id: 'e' }], cards: ['original-karama'],
|
||||
pendingPlayer: null, blocked: null };
|
||||
}
|
||||
void test('quiet targets use only seated identities and preserve independent target restrictions', () => {
|
||||
const source = context(), before = structuredClone(source);
|
||||
source.targetBlocks = { e: 'Unresolved low-population Homeworld overlap.' };
|
||||
const offered = quote(source);
|
||||
assert.equal(offered.blocked, null);
|
||||
assert.deepEqual(offered.targets, [{ player: 't', blocked: null }, { player: 'a', blocked: null },
|
||||
{ player: 'e', blocked: source.targetBlocks.e }]);
|
||||
offered.cards.pop();
|
||||
assert.deepEqual(source.cards, before.cards);
|
||||
});
|
||||
void test('pending original recipient is the only target, and an absent recipient cannot silently retarget', () => {
|
||||
assert.deepEqual(quote({ ...context(), pendingPlayer: 'a' }).targets, [{ player: 'a', blocked: null }]);
|
||||
assert.match(quote({ ...context(), pendingPlayer: 'missing' }).blocked!, /Choose a player/);
|
||||
});
|
||||
void test('mode, native owner, phase, use, priority and spendable card each gate permission', () => {
|
||||
const source = context();
|
||||
for (const change of [
|
||||
{ advanced: false }, { owner: { id: 't', faction: 'guild' as const } },
|
||||
{ status: 'finished' }, { phase: 5 }, { owner: { ...source.owner, specialKaramaUsed: true } },
|
||||
{ blocked: 'Finish the response first.' }, { cards: [] },
|
||||
]) assert.ok(quote({ ...source, ...change }).blocked);
|
||||
assert.equal(quote(source).blocked, null);
|
||||
});
|
||||
Reference in new issue
Block a user