Seal exact native Homeworld Reinforcements costs and plan sources

This commit is contained in:
Quintine committed 2026-10-16 13:07:49 +11:00
1 parent 05c4c8c7fb
commit c64c08af89
32 files changed
+1484 -119

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
import { richeseCards } from './richese-cards';
import { TRUTH_CARD_NAMES } from './truthtrance-card-names';
import type { Plan } from './engine';
import { treacheryDeck, type Card } from './cards';
import type { Card } from './cards';
import { CHEAP_HERO_TRAITOR } from './traitors';
export type PlanClaim =
@@ -67,7 +67,7 @@ export function parsePlanClaim(
if (
v.name !== null &&
(typeof v.name !== 'string' ||
![...treacheryDeck(['ix']), ...richeseCards()].some((c) => c.name === v.name))
!TRUTH_CARD_NAMES.includes(v.name))
)
return fail();
return { kind: v.kind, name: v.name };