Support Basic Kull and Leader Skills with Ecaz
Verify and publish checkpoint container / container (push) Successful in 10m49s
Verify and publish checkpoint container / container (push) Successful in 10m49s
This commit is contained in:
1 parent
4270b36be7
commit
4fba4860e1
11 files changed
+415
-13
No files matched your search
+24
-6
@@ -102,7 +102,7 @@ import { movementShipmentPreparations } from './movement-shipment-preparation';
|
||||
import { MovementClaimError, liveMovementPromises, movementEventAllowed, movementPromiseModeSupported, movementPromiseTargetAvailable, settleMovementEvent, finishMovementPromises, validMovementClaim, type MovementClaim, type MovementPromise } from './movement-promises';
|
||||
import { findMovementCompletion, type MovementCompletion } from './movement-promise-search';
|
||||
import { classicNexusModulesProfile, mixedE1E2NexusProfile, mixedE3NexusProfile, pairedE3NexusProfile, pairedNexusModulesProfile, singleE1E2NexusProfile, standaloneE3NexusProfile } from './nexus-module-profile';
|
||||
import { independentDiscoveryProfile, independentNexusProfile, nexusCoreProfile, nativeFactionTechProfile, selectedDiscoverySkillsSemutaProfile, selectedDiscoveryWithoutCardsProfile, selectedFactionStrongholdProfile, selectedIndependentCardsProfile, selectedNexusWithoutCardsProfile, selectedPhaseModuleRoster } from './faction-module-profile';
|
||||
import { basicKullLeaderSkillsProfile, independentDiscoveryProfile, independentNexusProfile, nexusCoreProfile, nexusKullLeaderSkillsProfile, nativeFactionTechProfile, selectedDiscoverySkillsSemutaProfile, selectedDiscoveryWithoutCardsProfile, selectedFactionStrongholdProfile, selectedIndependentCardsProfile, selectedNexusWithoutCardsProfile, selectedPhaseModuleRoster } from './faction-module-profile';
|
||||
import { homeworldOccupationLeaderSkillsProfile, homeworldOccupationModulesProfile, homeworldPhaseModulesProfile } from './homeworld-module-profile';
|
||||
import { RevivalPromiseError, revivalPromiseModeSupported, liveRevivalPromises, recordPromisedRevival,
|
||||
revivalPromisesSatisfied, validateRevivalPromises, type RevivalClaim, type RevivalPromise } from './revival-promises';
|
||||
@@ -7285,7 +7285,7 @@ function kullSemutaParentSupported(g: Game, frame?: NonNullable<Game['pendingKul
|
||||
const battle = g.battle;
|
||||
const use = frame?.intent.kind === 'ordinary' ? frame.intent.use : undefined;
|
||||
const nativeResponse = !!frame && !g.advanced &&
|
||||
(bareBasicSemutaProfile(g) || basicNexusKullSemutaProfile(g) ||
|
||||
(bareBasicSemutaProfile(g) || basicNexusKullSemutaProfile(g) || basicKullSkillsSemutaProfile(g) ||
|
||||
g.semutaRecruitsPreview === true && basicIndependentRecruitsSemutaProfile(g)) &&
|
||||
use?.kind === 'cancel' && JSON.stringify(use.response) === JSON.stringify(frame.resume.response) &&
|
||||
!frame.resume.decision && !frame.resume.pendingKarama && !frame.resume.phaseOpening;
|
||||
@@ -8252,6 +8252,9 @@ function basicNexusKullSemutaProfile(g: Game): boolean {
|
||||
return g.advanced === false && g.semutaPreview === true && g.kullPreview === true &&
|
||||
g.nexusKullPreview === true && nexusCoreProfile(g);
|
||||
}
|
||||
function basicKullSkillsSemutaProfile(g: Game): boolean {
|
||||
return g.semutaPreview === true && g.kullPreview === true && basicKullLeaderSkillsProfile(g);
|
||||
}
|
||||
/** Original classic occupation or a focused Advanced Tleilax SEND profile.
|
||||
* Other optional envelopes remain separate; no recorded game is redealt. */
|
||||
function semutaHomeworldRoster(g: Game): boolean {
|
||||
@@ -9944,7 +9947,7 @@ function semutaOfferSupported(
|
||||
!continuation.resume.response && !continuation.resume.decision &&
|
||||
!continuation.resume.pendingKarama && !continuation.resume.phaseOpening;
|
||||
if (continuation.kind === 'kullSuccessDiscard' || continuation.kind === 'kullCounterDiscard')
|
||||
return (g.semutaPreview === true && (bareBasicSemutaProfile(g) || basicNexusKullSemutaProfile(g)) ||
|
||||
return (g.semutaPreview === true && (bareBasicSemutaProfile(g) || basicNexusKullSemutaProfile(g) || basicKullSkillsSemutaProfile(g)) ||
|
||||
g.semutaRecruitsPreview === true && basicIndependentRecruitsSemutaProfile(g) &&
|
||||
(!g.pendingTreacheryDiscard || !!g.pendingTreacheryDiscard.reaction)) && g.advanced === false &&
|
||||
!!byFaction(g, 'richese') && kullSemutaParentSupported(kullSource(g, continuation.frame), continuation.frame) &&
|
||||
@@ -11455,10 +11458,24 @@ function startModules(state: Game): Game {
|
||||
g.players.every(player => player.faction === 'choam' || player.faction === 'richese' || player.faction === 'ixians' ||
|
||||
player.faction === 'tleilaxu' || g.expansions.includes('ecaz') &&
|
||||
(player.faction === 'ecaz' || player.faction === 'moritani') || CLASSIC_FACTIONS[player.faction] === true) &&
|
||||
!options.leaderSkills && !g.nexusCards && !g.discoveryEnabled &&
|
||||
!g.homeworlds && (!g.techTokens || basicKullTechRoster(g) && !options.ecazTreachery) && !g.strongholdCards;
|
||||
!g.nexusCards && !g.discoveryEnabled &&
|
||||
!g.homeworlds && (!g.techTokens || basicKullTechRoster(g) && !options.ecazTreachery && !options.leaderSkills) && !g.strongholdCards;
|
||||
requireRule(supportedBasic || advancedKullLobbyEligible(state),
|
||||
'Kull preview needs CHOAM and Ix decks. Basic supports selected native factions, independent Ecaz Treachery Cards, or Tech Tokens with three to six CHOAM/classic factions. Advanced supports CHOAM and classic factions without optional modules.');
|
||||
if (options.leaderSkills) {
|
||||
requireRule(supportedBasic, 'Kull with Leader Skills currently requires a supported Basic native roster without Tech Tokens.');
|
||||
if (options.ecazTreachery) g.ecazTreachery = true;
|
||||
requireFreshBaseRuntime(g);
|
||||
requireFreshFactionInventory(g);
|
||||
const seed = structuredClone(g);
|
||||
seed.leaderSkills = createLeaderSkills(random);
|
||||
requireRule(basicKullLeaderSkillsProfile(seed), 'This Kull and Leader Skills composition is unavailable.');
|
||||
const initialized = initializeSetupGameForAudit(seed, false, false, false, false, true, false, true, seed.ecazTreachery === true);
|
||||
initialized.kullPreview = true;
|
||||
if (byFaction(initialized, 'richese')) initialized.semutaPreview = true;
|
||||
if (byFaction(initialized, 'ecaz')) initialized.ecazOccupyPreview = true;
|
||||
return initialized;
|
||||
}
|
||||
if (options.ecazTreachery) {
|
||||
requireRule(supportedBasic, 'Kull with independent Ecaz cards currently needs the supported Basic native roster.');
|
||||
const initialized = initializeEcazTreacheryGameForAudit(g);
|
||||
@@ -13742,6 +13759,7 @@ function initializeFactionExpansionsGame(state: Game, semuta = false): Game {
|
||||
return initialized;
|
||||
}
|
||||
function ecazOccupyCompositionSupported(g: Game): boolean {
|
||||
if (byFaction(g, 'ecaz') && (basicKullLeaderSkillsProfile(g) || nexusKullLeaderSkillsProfile(g))) return true;
|
||||
if (homeworldPhaseModulesProfile(g) && byFaction(g, 'ecaz')) return true;
|
||||
// Native Basic uses the same physical coalition and selected decks.
|
||||
// Family/roster checks below remain authoritative; optional configurations
|
||||
@@ -13884,7 +13902,7 @@ function basicIndependentRecruitsSemutaProfile(g: Game): boolean {
|
||||
* Recruits reaction without combining the separate legacy preview markers. */
|
||||
function independentRecruitsSemutaEnabled(g: Game): boolean {
|
||||
return g.semutaRecruitsPreview === true && basicIndependentRecruitsSemutaProfile(g) ||
|
||||
g.ecazTreachery === true && basicNexusKullSemutaProfile(g);
|
||||
g.ecazTreachery === true && (basicNexusKullSemutaProfile(g) || basicKullSkillsSemutaProfile(g));
|
||||
}
|
||||
function semutaCardProducerEnabled(g: Game): boolean {
|
||||
return g.semutaPreview === true || g.semutaRecruitsPreview === true && basicIndependentRecruitsSemutaProfile(g);
|
||||
|
||||
Reference in new issue
Block a user