Compose Advanced Leader Skills and Strongholds with optional Tech

This commit is contained in:
Quintine committed 2026-10-04 09:50:55 +11:00
1 parent 3c7725c3a5
commit f259488a9a
19 files changed
+1570 -54

No files matched your search

+4 -8
View File
@@ -83,14 +83,10 @@ export function nextStrongholdFactionsNativeStep(game: Game): StrongholdFactions
return { actor, action: { type: 'ready' } };
}
if (game.response) {
// Use projected legal responses: an absent Karama does not create a pause.
for (const player of game.players) {
const view = viewGame(game, player.id);
view.players.find(p => p.id === player.id)!.bot = 'Easy';
const action = botActions(view).find(a => a.type === 'passResponse');
if (action) return { actor: player.id, action };
}
throw Error(`No actual eligible counter at ${game.response.kind}`);
// The persisted pass queue defines legality; a policy recommendation is not a legal-action menu.
const actor = game.players.find(player => !game.response!.passed.includes(player.id))?.id;
assert.ok(actor, `No remaining original response at ${game.response.kind}`);
return { actor, action: { type: 'passResponse' } };
}
const decision = game.decision;
if (decision) {