Connect Leader Skill battle effects and private Rihani exchanges

Prototype Mentat/Bureaucrat score effects, automatic Sandmaster board spice, and Rihani inspection plus committed exchange. Preserve private views, physical custody, saved winner cleanup and captive/Suk sequencing. Remaining normal bands, missing skill families and combined modules remain gated.

Validation: 45 focused tests; typecheck, lint, 4465 offline tests, production build and 43 HTTP tests passed. Independent rules/privacy/persistence review completed. New isolated browser setup exercised inspection, draw, pending refresh, exchange and completed refresh. Two genuine four-profile Basic/Advanced samples completed without rejected candidates but did not trigger Rihani.

Preserved all 393 opening rooms and original seat/recovery rows (427 rooms after QA/HTTP). SQLite integrity and foreign keys passed. Server remained healthy after the reported outage; no restart or reset.

Verified source tree: c64ce9537269de94c0d785bc08b17346e826c5797352a636771e1dc6ce5e4859
This commit is contained in:
Quintine committed 2026-09-13 19:45:29 +10:00
1 parent af360c836b
commit 06f46c6f79
26 files changed
+1230 -122

No files matched your search

+11
View File
@@ -9,6 +9,7 @@ import {
} from '../game/engine';
import type { RoomsClock } from '../db/rooms';
import { unitStore } from './fixture-nexus-room-store';
import { botActions } from '../game/bots';
const clock: RoomsClock = { now: () => 10000, sleep: async () => {} };
@@ -409,6 +410,16 @@ void test('battle death and Ghola revival preserve one private replacement skill
1,
);
assertSkillCustody(game);
// The randomly assigned winning skill can require casualty or Traitor choices
// before card cleanup. Resolve those real choices before testing Ghola revival.
for (let step = 0; step < 3 && ['rihani', 'sukRescue'].includes(game.decision?.kind ?? ''); step++) {
const owner = f.auths.findIndex((auth) => auth.playerId === game.decision!.player);
assert.ok(owner >= 0);
const seat = await f.restart().readSeatView(f.code, f.auths[owner]);
const [choice] = botActions(seat);
assert.ok(choice, 'the winning skill must have a legal saved continuation');
game = await act(f, owner, choice);
}
if (game.decision?.kind === 'battleCards')
game = await act(
f,