Prototype Emperor Nexus battle betrayal response

This commit is contained in:
Quintine committed 2026-09-27 19:29:50 +10:00
1 parent 361a1def43
commit 22a81c6f7a
10 files changed
+329 -6

No files matched your search

+8
View File
@@ -13,6 +13,7 @@ export function nexusSardaukarFixture(
opponentFaction?: 'guild' | 'atreides' | 'fremen';
normal?: number;
starred?: number;
emperorCardHolder?: string;
} = {},
): Game {
let g = nexusTraitorFixture({
@@ -35,6 +36,13 @@ export function nexusSardaukarFixture(
assert.ok(index >= 0);
cards.deck[index] = cards.hands[owner.id]!;
cards.hands[owner.id] = 'emperor';
if (options.emperorCardHolder) {
const holder = g.players.find((p) => p.id === options.emperorCardHolder);
assert.ok(holder && holder.id !== owner.id);
if (cards.hands[holder.id]) cards.deck.push(cards.hands[holder.id]!);
cards.hands[holder.id] = cards.hands[owner.id];
cards.hands[owner.id] = null;
}
for (const p of g.players) {
p.forces = {};
p.reserves = 20;