Support mixed Discovery decks with Leader Skills
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-30 17:49:26 +11:00
1 parent 7c1f4b4e09
commit 77eb2392eb
15 files changed
+420 -11

No files matched your search

+9 -1
View File
@@ -1,5 +1,5 @@
import { FACTIONS } from './catalog';
import { independentDiscoveryProfile, mixedE3NexusRosterProfile, selectedNexusWithoutCardsProfile, selectedPhaseModuleRoster, type FactionModuleProfile } from './faction-module-profile';
import { independentDiscoveryProfile, mixedE3NexusRosterProfile, selectedDiscoveryWithoutCardsProfile, selectedNexusWithoutCardsProfile, selectedPhaseModuleRoster, type FactionModuleProfile } from './faction-module-profile';
import type { LeaderSkillProfile } from './leader-skill-profile';
/** Public unused-lobby admission only. The original initializer owns physical
@@ -17,6 +17,7 @@ export function homeworldDiscoveryProfile(game: FactionModuleProfile): boolean {
/** The same roster/module contract during play; live Discovery frames are expected. */
export function discoveryModeSupported(game: FactionModuleProfile): boolean {
if (independentDiscoveryProfile(game)) return true;
if (game.leaderSkills && selectedDiscoveryLeaderSkillsProfile(game)) return true;
if (game.nexusCards) return (game.discoveryEnabled === true && selectedNexusWithoutCardsProfile(game)) || standaloneE3DiscoveryNexusProfile(game) || singleE1E2DiscoveryNexusProfile(game) ||
mixedE3DiscoveryNexusProfile(game) || mixedE1E2DiscoveryNexusProfile(game) || pairedE3DiscoveryNexusProfile(game);
if (typeof game.advanced !== 'boolean' || game.discoveryEnabled !== true ||
@@ -59,6 +60,13 @@ export function discoveryModeSupported(game: FactionModuleProfile): boolean {
return !(game.advanced && moritani && harkonnen);
}
/** Original selected decks with Discovery and Skills are independent of Nexus
* and the separate Ecaz cards. Setup owns physical inventory; this public
* roster contract also remains valid during live Discovery frames. */
export function selectedDiscoveryLeaderSkillsProfile(game: LeaderSkillProfile): boolean {
return selectedDiscoveryWithoutCardsProfile(game);
}
/** The original E3 pair can use selected decks with Discovery without Nexus or cards. */
export function e3DiscoveryOnlyOverlapProfile(game: FactionModuleProfile): boolean {
return !game.nexusCards && !game.ecazTreachery && !game.leaderSkills &&