Scope Advanced Kull to the attempted Karama effect
Adopt the supplied Advanced specific-effect wording, preserving Basic and legacy phase-wide semantics. Bind signed semantic purposes through ordinary/special activations, counters, feasibility and settlement; retain unrelated human controls and minimal bot actions. Phase expiry remains provisional; prior counter, BG and deferred-overbid choices stay. Validation: frozen12-file111/111, types/lint/build and two original-action/rendered-table programmes. Explicit unopened deal/auction/spice order supports real paid Baliset and shipments; Advanced retains Karama for Baliset cancellation while Basic stays blocked. Four minimal policies remain legal. Correct stale exchange/phase-market/Fremen fixture assumptions. Recovery schema expectations maintained without running deferred SQL assurance. No full modes, browser/deployed acceptance, saved-game/reset/restart or deployment operation.
This commit is contained in:
1 parent
b82441c834
commit
884a09fa92
24 files changed
+951
-64
No files matched your search
@@ -286,8 +286,9 @@ for (const advanced of [false, true])
|
||||
assert.equal(done.nexusChoamHistory![0].stage, 'complete');
|
||||
assert.deepEqual(done.nexusChoamLast, { event: nexusEvent, stage: 'complete' });
|
||||
assert.deepEqual((done.kullRestrictions ?? []).filter(rule => rule.player === actor),
|
||||
[{ player: actor, turn: done.turn, phase: done.phase }]);
|
||||
assert.ok(viewGame(done, actor).karamaBlocked, 'the stamped phase ban is publicly visible');
|
||||
[{ player: actor, turn: done.turn, phase: done.phase, ...(advanced ? {purpose: 'shipment-price'} : {}) }]);
|
||||
assert.equal(!!viewGame(done, actor).karamaBlocked, !advanced);
|
||||
assert.deepEqual(viewGame(done, actor).karamaPurposeBlocks.map(rule => rule.purpose), advanced ? ['shipment-price'] : []);
|
||||
assert.equal(viewGame(done, choam).kullReaction, null);
|
||||
await restored(f, done);
|
||||
|
||||
@@ -590,7 +591,8 @@ void test('SQLite completed Nexus Kull history stays intrinsic after later physi
|
||||
f.writes.length = 0;
|
||||
const views = await restored(f, later);
|
||||
assert.equal(views[0].kullReaction ?? null, null, 'a settled opportunity is never reopened by recycling');
|
||||
assert.ok(views[1].karamaBlocked, 'the stamped phase ban survives the later card movement');
|
||||
assert.equal(views[1].karamaBlocked, null);
|
||||
assert.deepEqual(views[1].karamaPurposeBlocks.map(rule => rule.purpose), ['shipment-price'], 'the effect restriction survives the later card movement');
|
||||
assert.equal(later.nexusChoamHistory!.length, 1, 'history never duplicates an event');
|
||||
assert.equal(later.nexusChoamHistory![0].stage, 'complete');
|
||||
assert.deepEqual(later.nexusChoamLast, { event: nexusEvent, stage: 'complete' });
|
||||
|
||||
Reference in new issue
Block a user