@champions-digital-game/mod-sdk 0.47.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/build.js +1 -1
- package/dist/chunks/{chunk-QM4LCKP5.js → chunk-2XS47E3T.js} +1 -1
- package/dist/chunks/{chunk-SSVC7TJ6.js → chunk-A3WBGQ2N.js} +1 -1
- package/dist/chunks/{chunk-V5MJXIOQ.js → chunk-DKCXOHRM.js} +1 -1
- package/dist/chunks/chunk-HVUCR22H.js +1 -0
- package/dist/chunks/{chunk-EQL5OYKH.js → chunk-JYDEFRIZ.js} +543 -543
- package/dist/chunks/chunk-PB6KXNXP.js +22 -0
- package/dist/chunks/{chunk-Q57JMRMI.js → chunk-URLIN52M.js} +1 -1
- package/dist/import.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mc-pack.js +2 -2
- package/dist/testing.js +1 -1
- package/package.json +1 -1
- package/types/cards/src/core/index.d.ts +1 -1
- package/types/cards/src/core/setup.d.ts +26 -0
- package/types/cards/src/dsl/abilities.d.ts +39 -15
- package/types/cards/src/index.d.ts +2 -2
- package/types/cards/src/playable/custom.d.ts +1 -1
- package/types/cards/src/playable/index.d.ts +11 -2
- package/types/cards/src/playable/scenario-options.d.ts +11 -0
- package/types/cards/src/wave2/trors/crossbones.d.ts +1 -0
- package/types/cards/src/wave9/silk/silk/identity.d.ts +3 -3
- package/types/content/src/index.d.ts +1 -1
- package/types/content/src/schema/cards/encounter-cards.d.ts +7 -1
- package/types/content/src/schema/cards/identity.d.ts +5 -1
- package/types/content/src/schema/cards/player-cards.d.ts +3 -1
- package/types/content/src/schema/cards/villain.d.ts +3 -1
- package/types/content/src/schema/common.d.ts +7 -0
- package/types/content/src/schema/validation.d.ts +5 -0
- package/types/engine/src/actions.d.ts +34 -16
- package/types/engine/src/adjust.d.ts +38 -0
- package/types/engine/src/campaign.d.ts +6 -0
- package/types/engine/src/commands.d.ts +78 -0
- package/types/engine/src/effects.d.ts +14 -0
- package/types/engine/src/events.d.ts +18 -1
- package/types/engine/src/index.d.ts +6 -5
- package/types/engine/src/resolve/attack-ability.d.ts +5 -1
- package/types/engine/src/resolve/eliminated-attack.d.ts +32 -0
- package/types/engine/src/stack.d.ts +14 -0
- package/types/engine/src/trigger-events.d.ts +8 -0
- package/types/engine/src/villain/step-one-threat.d.ts +37 -0
- package/dist/chunks/chunk-6WFYI6O7.js +0 -22
- package/dist/chunks/chunk-C2OAZ3V7.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{builtinGameDeps,validateBuiltinPack}from"./chunks/chunk-C2OAZ3V7.js";import{PACK_ABILITY_ID,REQUIRED_PACK_FILES,SUPPORTED_DSL_FEATURES,campaignDefinitionsOf,checkPackCampaigns,definePackAbilities,dslFeatures,isPlainJson,isUnscriptedAbilityIssue,packCampaignsOf,publishIssues,readPackInput,sha256Hex,splitIssues,validatePack}from"./chunks/chunk-QM4LCKP5.js";import{campaignDepsWithPacks,campaignGameWithPacks,cardPoolWithPack,cardPoolWithPacks,customContentOfPacks,gameDepsWithPack,gameDepsWithPacks,packCampaignDefinitionOf,packCampaignDefinitions,packCampaignRecords,packEncounterSetRecords,packModularSetChoices,packScenarioRecords,scenarioWithPacks}from"./chunks/chunk-SSVC7TJ6.js";import{ANY_ASPECT_CARD,ANY_NUMBER,ANY_RESOURCE,AOA_CAMPAIGN_DEFINITION,AOA_DEFEATED,AOA_MISSIONS,AOA_NOT_DEFEATED,AOA_OVERSEERS,AOA_PROTECT_THE_PROFESSOR,AOS_CAMPAIGN_DEFINITION,AS_DRONE,BUILTIN_PACKS,CAMPAIGNS,CAN_TAKE_THIS_ATTACK,COMMUNITY_DECK_AUTHORS,CORE_ABILITIES,CORE_BUILTIN_PACK,CORE_DEPS,CUSTOM_SCENARIO_FIELDS,ENCOUNTER_CARD,ENCOUNTER_CARD_CATEGORIES,ENCOUNTER_SIDE_SCHEME,ENGINE_ONLY_DSL_EXAMPLES,FRIENDLY_CHARACTER,GMW_BALANCED_FIELD,GMW_BALANCED_TOGGLES,GMW_CAMPAIGN_DEFINITION,INFINITES_GENE_POOL_THREAT_MAX,MOJO_CAMPAIGN_DEFINITION,MTS_CAMPAIGN_DEFINITION,NEXT_EVOL_CAMPAIGN_DEFINITION,NOT_READY_PACK_CODES,PAID_CARDS,PAID_IN_PLAY_CARDS,PLAYABLE_ABILITIES,PLAYABLE_DEPS,PLAYABLE_ENCOUNTER_SETS,PLAYABLE_SCENARIO_RECORDS,PLAYER_SIDE_SCHEME,RANDOM_VILLAIN,SHADOWLAND_CAMPAIGN_DEFINITION,SM_CAMPAIGN_DEFINITION,TEAM_UP_CARD,TRAIT,TRORS_CAMPAIGN_DEFINITION,UNSCRIPTED_ENCOUNTER_SET_IDS,VILLAIN_OR_VILLAINOUS,WAVE10_ABILITIES,WAVE10_BUILTIN_PACKS,WAVE10_CARDS,WAVE10_DEPS,WAVE10_GAME_ENCOUNTER_SETS,WAVE11_ABILITIES,WAVE11_BUILTIN_PACKS,WAVE11_CARDS,WAVE11_DEPS,WAVE11_GAME_ENCOUNTER_SETS,WAVE1_ABILITIES,WAVE1_BUILTIN_PACKS,WAVE1_DEPS,WAVE1_REPRINT_ABILITIES,WAVE2_ABILITIES,WAVE2_BUILTIN_PACKS,WAVE2_DEPS,WAVE2_REPRINT_ABILITIES,WAVE3_ABILITIES,WAVE3_BUILTIN_PACKS,WAVE3_CARDS,WAVE3_DEPS,WAVE3_REPRINT_ABILITIES,WAVE4_BUILTIN_PACKS,WAVE5_BUILTIN_PACKS,WAVE6_BUILTIN_PACKS,WAVE7_ABILITIES,WAVE7_BUILTIN_PACKS,WAVE7_CARDS,WAVE7_DEPS,WAVE8_ABILITIES,WAVE8_BUILTIN_PACKS,WAVE8_CARDS,WAVE8_DEPS,WAVE9_ABILITIES,WAVE9_BUILTIN_PACKS,WAVE9_CARDS,WAVE9_DEPS,YOUR_HERO,YOUR_IDENTITY,aDifferentCard,aScheme,abilitiesForCards,accelerationTokensOn,accusationWrongGuesses,accuse,accusedWrong,actingCharacter,action,activatesBeforeVillain,activatingEnemy,activationIs,activationOrderOf,addAccelerationToken,addCounters,addMainSchemeStageToVictoryDisplay,addToVictoryDisplay,addVillain,additionalAttackCost,additionalCostToPlay,additionalCostToReady,additionalPowerCost,additionalThwartCost,adjustBoostCount,advanceMainScheme,advanceToSetAsideVillain,after,afterNextCardPlayed,agile,allOf,allowUnlabeledAttack,alterEgoAction,alterEgoInterrupt,alterEgoResponse,amount,anAttackableEnemy,anEnemy,andThen,anyIn,anyNumberOfToughStatusCards,anyOf,anyOfCards,anyPlayerEliminated,applyAsBoostCard,applyRuleUntil,areaPlayersDefeated,assignDamage,atEndOfActivation,atEndOfAttack,atEndOfPhase,atEndOfRound,atEndOfThwart,atMost,attachCard,attachCost,attachInstruction,attack,attackAnEnemy,attackDamageDealt,attackExcessAsDealt,attackInProgress,attackInitiatedAgainst,attackPreventedAmount,attackPreventedTotal,attackResolvedLabeled,attackTarget,attackTotalAtk,attackUsedAtk,attackWasPrevented,attackableAsMinion,attackedBy,attackedPlayer,attackedThisPhase,attackingEnemy,attacksDealAdditionalDamage,attacksGainKeywords,attacksLoseKeywords,baseStatOf,baseStatsFromYourHero,basicPowerBy,basicPowerCost,basicPowerIs,basicPowerStatIs,basicThwartOnlyAgainst,basicThwartsIgnore,bindTargets,blankTextBoxForPlayers,blankTextBoxUntil,blanksTextBox,boost,boostAreaIconsOn,boostCardOf,boostCardsFromSet,boostIconsCount,boostIconsOn,buildScenarioDeck,buildWave11Scenario,builtinPackProblems,campaignDefinitionOf,campaignDefinitionProblems,campaignInstructionsOf,campaignLogAtLeast,campaignLogCardCounter,campaignLogCardRecorded,campaignLogCards,campaignLogHas,campaignLogIsSet,campaignLogValue,campaignModularPickProblem,canAttachTo,canAttachToCategory,canChangeForm,canEnterPlay,canFlip,canPayResources,canPlayFromHand,canRemoveThreatFrom,canSpendDifferentResources,canTakeStatus,canUseBasicPower,cancelBoostedActivation,cancelConsequentialDamage,cancelIt,cancelRevealedCard,cancelWhenRevealed,cannotActivate,cannotAttach,cannotBeAttachedUnlessInPlay,cannotBeCanceled,cannotBeDefeated,cannotBeHealed,cannotBeReadiedByPlayerCards,cannotChangeFormUntil,cannotChooseOption,cannotChooseToDiscard,cannotEnterPlay,cannotFlip,cannotHaveStatus,cannotLeavePlay,cannotMakeBasicAttacks,cannotReadyUntil,cannotRecover,cannotResolveTriggeredAbilities,cannotThwart,cardIdsIn,cards,cardsFrom,cardsOfComposedSets,centralMainScheme,changeAdditionalForm,changeForm,changeFormCost,changeToHeroFormNamed,changeToHeroFormWithTrait,changeToOtherHeroForm,changeVillainForm,characterDidThisPhase,checkModularPickCount,checkPlayableDifficultySets,choiceFoundNothing,chooseCardCost,chooseCardType,chooseCards,chooseEncounterCardType,chooseGroup,chooseMainSchemeStages,chooseNumber,chooseOne,chooseOneBy,chooseOptions,choosePlayer,chooseTarget,chooseTargetCost,chosen,chosenGroup,chosenModularSetIds,chosenPlayer,chosenVillain,civilWarGameModes,civilWarModularSets,civilWarSidesOffer,communityDeckUrl,communityDecks,competitiveOnly,competitiveOnlyTexts,completeMainScheme,confuse,consideredToHaveHitPoints,consideredToHaveResourceIcon,constant,controllerOf2 as controllerOf,coreScenario,costIf,costModifier,costsPayableByAnyPlayer,countAmong,countBoostIcons,countOf,countTowardStartingHand,counterLimit,countersAsResource,countersOn,countsAs,coveredByEngineRule,createGameArea,createScenarioArea,createScenarioPlayArea,customContentProblems,customModularPickProblem,customModularSetChoices,customScenarioProblems,damageAnEnemy,damageCardsCost,damageOn,damageSharedVillain,damageThisCardCost,damagedAtLeast,dealAsEncounterCard,dealDamage,dealDamageCost,dealDamageToChosenCost,dealEncounterCard,dealEncounterCardsCost,dealEncounterCardsToChosenPlayerCost,dealHiddenPiles,dealIndirectDamage,dealPoolOneAtATime,dealtEncounterCards,dealtEncounterCount,deckCountOf,deckDiscardIconsCount,declareDefender,defeat,defeatExcessDamage,defeatedWithExcessConsequentialDamage,defeatedWithExcessDamage,defeatingPlayer,defenderDefForAttack,defendingCharacter,defendsWithoutExhausting,defineAbilities,defineBuiltinPack,detach,difficultySetAlternativesFor,discard,discardAtRandom,discardBoostCard,discardCardsCost,discardChosenFromEncounterDeckCost,discardDeckUntil,discardEncounterCards,discardEncounterUntil,discardFacedownBoostCards,discardFromHand,discardFromHandCombinedCost,discardFromHandCost,discardRandomFromHandCost,discardStatusCost,discardStatusesTokensAndAttachments,discardThis,discardTopOfDeckCost,discardTopOfEncounterDeckCost,discardTuckedCost,discardUpToTopOfDeckCost,distinctAspectsOf,distinctTraitsOf,divide,doesNotExhaustToDefend,doubleDamageTaken,doubleNextCardSpent,doubleStat,doublesResourcesGeneratedForThisCard,doublesResourcesWhilePayingFor,draw,drawUpTo,droneFromDeck,duringPlayerPhase,duringTurnOf,duringVillainPhaseStepOne,each,eachGroupInPod,eachPlayer,eachPlayerCost,eachTimeUntil,eitherCost,encounterCard,encounterCards,encounterCardsOf,encounterIconsInPlay,encounterLookDiscardCost,encounterSetAside,encounterSetOf,endGame,enemyActivates,enemyAttack,enemyAttacksEnemy,enemyAttacksYouCost,enemyCanAttackAnother,enemyLeader,enemyScheme,enemyTeam,enemyTeamChooses,enemyToAttack,engage,engagedPlayerOf,engineOnlyDslProblems,entersPlayExhausted,eventAmount,eventDamageTaken,eventDamageTakenBy,eventDealt,eventKindIs,eventPlayer,eventResult,eventSource,eventSourceEnemy,eventTarget,eventTargetsTogether,exactlyDefeated,exactlyDefeatedByPower,excludedFromAllyLimit,excludedFromPlayerSideSchemeLimit,exhaust,exhaustCardsCost,exhaustEachCost,exhaustThis,exhaustYourHero,exists,expertSetReplaceable,extraBoostCardsForVillain,faceNamed,fieldsIn,finalStep,find,findCard,firstAttackThisTurn,firstPlayer,firstPlayerAction,firstPlayerPicksFromHand,firstRevealGainsSurge,firstThisRound,flatten,flipCard,flipThis,focusedMainScheme,forAnIdentityNotInThisGame,forEachCard,forEachPlayer,forEachPlayerInChosenOrder,forcedAction,forcedInterrupt,forcedResponse,formChangeCost,friendlyCharacterAttacks,fromAnyAspect,gainFromHiddenPile,gainKeywordUntil,gainTraitUntil,gainTraitsOfUntil,gainsAbility,gainsIcon,gainsKeyword,gainsKeywordX,gainsKeywordsOf,gainsTrait,gainsTraitsOf,gameAreasSplit,genePoolThreatOffer,generatesAmount,generatesPerCard,gets,giveBasicPowerBoostCard,giveBoostCard,giveBoostCardsCost,giveHeldBoostCard,giveStatus,giveStatusCost,giveTough,gmwBalancedHiddenFields,grantAdditionalMulligans,grantOwnedCards,grantedTo,grantingCard,grantsPreparation,groupPlayerCount,handCountOf,handSizeOf,hasAttachment,hasNamedResource,hasPrintedBoostAbility,hasStatus,hasTaggedAbility,hasTrait,heal,healCost,healYourIdentityCost,heroAction,heroInterrupt,heroNoCharacterIsTitledAs,heroResource,heroResponse,hiddenPileCount,highestStatAmong,hitPointsOf,holdMinion,horsemanSidesOffer,host,identifyMole,identityOf,ifElse,ifThen,ignoreAbilities,ignoreBoost,ignoreBoostAbilities,ignoreBoostForThisAttack,ignores,ignoresRetaliate,inAdditionalForm,inCampaign,inCampaignLogField,inCompetitiveMode,inDiscard,inEncounterSet,inForm,inGroup,inHand,inMode,inPlay,inPlayAreaOf,inScenarioPlayArea,inVictoryDisplay,increaseDamage,increaseDamageTaken,increaseNextCardCost,infinitesGenePoolThreatRecommendation,instead,interrupt,isAlterEgo,isAttached,isBaseEncounterSetId,isBaseScenarioId,isConfused,isHero,isModularChoice,isNotReadyCard,isScenarioSpecificSet,isStunned,joinGameArea,keepsExhausted,lastPlayedThisRound,leavingPlayLoses,limitPerPaidCard,logCardList,logCardRef,logFlag,logNumber,logOption,logText,lookAt,lookAtAndRearrange,lookAtTopOfScenarioDeckThenPlace,loseKeywordUntil,loseTraitUntil,losesIcon,losesKeyword,made,mainSchemeAdvancedBy,mainSchemeMarkedBy,mainSchemePicksOffer,mainSchemeStageGist,mainSchemeStageNumber,mainSchemeStagesOffer,mainSchemeStagesProblem,max,maxDamageTaken,maxOnePerTriggeringInstance,maxSustainedDamage,mayLookAtTopOfEncounterDeckUntil,mergeCosts,mergeRegistries,min,minDamageTaken,modifyAttack,modifyBasicPower,modifyCardEffect,modifyCardEffectsUntil,modifyConsequentialDamage,modifyStat,modifyStatOf,modifyThwart,modularPickCountProblem,modularPickCountRange,modularPickProblem,mojoCheckedOffSets,mojoModularSetPicks,mostCommonHandTypeCount,moveActiveCounterToNextInRow,moveActiveCounterToNextVillain,moveBoostCards,moveCards,moveCardsInto,moveCounters,moveThreat,multiplyStat,named,namedByTeamUpOf,nextAfter,not,notCountedTowardHandSize,notMatching,notOfChosenCardType,obligation,ofChosenCardType,ofClassification,ofIdentitySetTitled,ofTeamUpSet,offersEasierStart,offersGenePoolThreat,on,onChosenMainScheme,oncePerPaidCard,oncePerPhase,oncePerPhasePerEventPlayer,oncePerRound,oncePerRoundPerPlayer,oneCopyOf,onlyCharacterRemovesThreat,onlySourceRemovesThreat,onlyThwartsRemoveThreat,opsOfKind,option,otherFaceOf,otherPlayers,outsideFact,overpaidWhenPlayed,ownScriptsOf,ownerOf,paidCards,paidInPlayCards,paidType,paidTypeCount,paidUsingResourceFrom,paidWith,paidWithCard,paidWithOnly,paidWithResourceCard,pairCards,pairLimit,partOf,passEncounterCard,payPrintedCostOf,payingFor,perHero,placeCountersCost,placeDamage,placeOnTopOrBottom,placeOnTopOrBottomOfPlayerDeck,placeThreat,placeThreatOnSharedScheme,playFromDeckIgnoringCost,playFromDeckReducingCost,playFromHandIgnoringCost,playFromHandReducingCost,playFromSeparateDeck,playNote,playOnlyIf,playSetAside,playTuckedCard,playWithTopOfDeckFaceup,playWithTopOfEncounterDeckFaceup,playableAttachments,playableScenario,playableScenarioOffer,playableScenarioWithCustom,playableStarterDeckSetup,playableTopOfDeck,playableTucked,playedThisPhase,playedThisRound,playedThisTurn,playedVia,playerOrElse,playersCannotDiscard,playersWhere,preparation,preventAllDamageTo,preventConsequentialDamage,preventDamage,preventThreat,printedBoostAreaIconsOn,printedCostAtLeast,printedCostOf,printedForm,printedHpNumeralOf,printedHpOf,printedResourcesInHandAs,printedResourcesOf,printedStatOf,printsAbility,product,putIntoPlay,putIntoPlayAsHost,putIntoPlayFacedown,putIntoPlayFromSetAside,putLinkedAllyIntoPlay,putMainSchemeStageIntoPlay,query,raiseMoment,randomCivilWarScenario,reachableFromPod,reaching,readsAtkOf,readsPaymentTypesOf,ready,readyCardsCost,recordInCampaignLog,reduceCostOfCards,reduceCostToPlay,reduceDamage,reduceDamageTo,reduceNextCardCost,reducesAttackDamageTaken,refCount,refMatches,remainingHpCompare,remainingHpOf,removeAccelerationToken,removeAllCounters,removeAllCountersFrom,removeAnAccelerationToken,removeCounter,removeCountersAmong,removeCountersFrom,removeEachCounterFrom,removeFromCampaign,removeMainSchemeStage,removeMainSchemeStages,removeStatus,removeThreat,removeThreatCost,removeThreatFromAScheme,removeThreatFromChosenCost,removeThreatUpToCost,removeUpToCounters,removeVillain,removedFromGameCards,reorderCards,repeatTimes,repeatWhile,replaceAttachHost,replaceBoostCount,replaceLeaveDestination,replaceNextVillainPhaseWithPlayerPhase,replaceStatus,replaceTuckHost,reportFact,resetHitPoints,resolveAttackAgainst,resolveBoostAbilitiesOf,resolveForcedInterruptOf,resolveForcedResponseCost,resolveForcedResponseOf,resolveModes,resolveOneTagged,resolvePreparationsOf,resolveSetups,resolveSpecialCost,resolveSpecials,resolveSpecialsOf,resolveTagged,resolveWhenDefeatedOf,resolveWhenRevealedOf,resource,resourceTypesOf,resourcesGeneratedAsWild,resourcesPaidBy,response,restrictedLimit,retargetAttack,retargetPlayerAttack,returnEachToHandCost,returnToHandAfterResolving,returnToHandCost,revealCard,revealEncounterCard,revealFromSetAsideModularSet,revealHeldMinion,revealHiddenPile,revealInstead,revealMainSchemeStage,revealNextVillainStage,revealSetAside,revealTopOfScenarioDeck,revealTopOfSeparateDeck,revealedFromEncounterDeck,revealedPileCardCount,rotateEngagement,rule,sameClassificationAs,scaled,scenarioArea,scenarioAreaCount,scenarioDeck,scenarioGameSetIds,scenarioSideClause,scenarioWithVillain,schemeStartedByAttackBoost,schemeThreatOn,searchAndReveal,searchCollection,searchEncounterIntoPlayCost,seedHiddenPiles,selectCards,self,sentence,separateDeckCards,separateDeckCountOf,setActiveVillain,setAside,setAsideDestination,setAsideModularSetCount,setDefeatDestination,setRemainingHitPoints,setVar,setVillainAside,setVillainSide,setup,sharesTitleWith,sharesTraitWith,sharesTraitWithHeroOf,shuffleDeck,shuffleEncounterDeck,shuffleInSetAsideModularSet,shuffleIntoSeparateDeck,shuffleMainSchemeStageGroup,shuffleMainSchemeStages,shuffleSeparateDeck,shuffleTopOfSeparateDeckIntoEncounterDeck,sitOut,skipNextVillainPhase,skippedCommunityDecks,skirmishOffer,special,spend,spendChosen,spendDifferentResources,spendEqualTo,spendPrinted,spendResources,spendSameType,spendUpTo,spendX,spendXResources,spendableForAnyPlayer,spendableForPlayersWhere,spendableFromTucked,standardSetReplaceable,starIconsOn,starterDeckSetup,statCompare,statOf,stateCheck,stateCheckFromEntering,statusCount,statusLimit,staysInHand,stillCountedByDiscarder,stun,sum,superlative,superlativePlayer,surge,swapCards,swapIdentity,swapMainScheme,swapVillain,swapVillainByTrait,tagged,taggedAbilitiesOn,takeAnyDamageCost,takeControl,takeDamage,takeDamageCost,takeIndirectDamageCost,takeIntoHand,takesConsequentialDamage,takesDamageOnlyFrom,takesDamageOnlyFromAttacks,takesFirstTurn,teamUpCharacter,teamUpCharacters,textBoxCannotBeBlanked,thatAttackGainsKeywords,thatPlayer,theAccused,theAffectedCard,theMainScheme,theMole,theVillain,thisCardGenerates,thisGroup,threatAtLeast,threatOn,thwart,thwartAScheme,thwartInProgress,thwartTarget,titled,toScenarioDeck,topOfDeck,topOfDeckIsFaceup,topOfDeckMatches,topOfEncounterDeckIsFaceup,topOfEncounterDeckMatches,topOfEncounterDeckShowsIcons,topOfEncounterDeckShowsNoIcons,topOfYourDeckHas,totalPrintedCost,totalPrintedResources,totalStatOf,traitEncounterDeck,traitNumber,treatAsAlly,treatAsMinion,treatAttachedAllyAsMinion,treatAttachedHeroAsMinion,treatAttachedMinionAsAlly,treatAttachedVillainAsMinion,treatSelfAsAlly,tuckCards,tuckLimit,tuckedCount,tuckedUnder,tuckedUnderRef,turnFacedown,uncancellable,undefendedAttack,upgradesCannotBeRemoved,useThwInsteadOfAtk,usingBasicPower,validateDefinition,valueAtLeast,valueAtMost,valueEquals,varAtLeast,varFor,varOf,victoryCondition,victoryDisplayCards,victoryDisplayCount,villainChoiceOf,villainChoiceOffer,villainOnSide,villainOptionOf,villainStageNumberOf,wave10Scenario,wave10StarterDeckSetup,wave11Scenario,wave11ScenarioRecord,wave11StarterDeckSetup,wave1ReprintPairs,wave1Scenario,wave1StarterDeckSetup,wave2ReprintPairs,wave2Scenario,wave2StarterDeckSetup,wave3ReprintPairs,wave3Scenario,wave3StarterDeckSetup,wave7Scenario,wave7StarterDeckSetup,wave8Scenario,wave8StarterDeckSetup,wave9Scenario,wave9StarterDeckSetup,when,whenCompleted,whenDefeated,whenRevealed,whenRevealedAlterEgo,whenRevealedHero,whenSpentGenerate,whileOnChosenMainScheme,whileTucked,withFewestCounters,withMostCounters,you,youAre,youAreNamed,youHaveTrait,yourIdentity,yourLeader,yourMainScheme,yourTeam,zone,zoneCountOf}from"./chunks/chunk-EQL5OYKH.js";export{ANY_ASPECT_CARD,ANY_NUMBER,ANY_RESOURCE,AOA_CAMPAIGN_DEFINITION,AOA_DEFEATED,AOA_MISSIONS,AOA_NOT_DEFEATED,AOA_OVERSEERS,AOA_PROTECT_THE_PROFESSOR,AOS_CAMPAIGN_DEFINITION,AS_DRONE,BUILTIN_PACKS,CAMPAIGNS,CAN_TAKE_THIS_ATTACK,COMMUNITY_DECK_AUTHORS,CORE_ABILITIES,CORE_BUILTIN_PACK,CORE_DEPS,CUSTOM_SCENARIO_FIELDS,ENCOUNTER_CARD,ENCOUNTER_CARD_CATEGORIES,ENCOUNTER_SIDE_SCHEME,ENGINE_ONLY_DSL_EXAMPLES,FRIENDLY_CHARACTER,GMW_BALANCED_FIELD,GMW_BALANCED_TOGGLES,GMW_CAMPAIGN_DEFINITION,INFINITES_GENE_POOL_THREAT_MAX,MOJO_CAMPAIGN_DEFINITION,MTS_CAMPAIGN_DEFINITION,NEXT_EVOL_CAMPAIGN_DEFINITION,NOT_READY_PACK_CODES,PACK_ABILITY_ID,PAID_CARDS,PAID_IN_PLAY_CARDS,PLAYABLE_ABILITIES,PLAYABLE_DEPS,PLAYABLE_ENCOUNTER_SETS,PLAYABLE_SCENARIO_RECORDS,PLAYER_SIDE_SCHEME,RANDOM_VILLAIN,REQUIRED_PACK_FILES,SHADOWLAND_CAMPAIGN_DEFINITION,SM_CAMPAIGN_DEFINITION,SUPPORTED_DSL_FEATURES,TEAM_UP_CARD,TRAIT,TRORS_CAMPAIGN_DEFINITION,UNSCRIPTED_ENCOUNTER_SET_IDS,VILLAIN_OR_VILLAINOUS,WAVE10_ABILITIES,WAVE10_BUILTIN_PACKS,WAVE10_CARDS,WAVE10_DEPS,WAVE10_GAME_ENCOUNTER_SETS,WAVE11_ABILITIES,WAVE11_BUILTIN_PACKS,WAVE11_CARDS,WAVE11_DEPS,WAVE11_GAME_ENCOUNTER_SETS,WAVE1_ABILITIES,WAVE1_BUILTIN_PACKS,WAVE1_DEPS,WAVE1_REPRINT_ABILITIES,WAVE2_ABILITIES,WAVE2_BUILTIN_PACKS,WAVE2_DEPS,WAVE2_REPRINT_ABILITIES,WAVE3_ABILITIES,WAVE3_BUILTIN_PACKS,WAVE3_CARDS,WAVE3_DEPS,WAVE3_REPRINT_ABILITIES,WAVE4_BUILTIN_PACKS,WAVE5_BUILTIN_PACKS,WAVE6_BUILTIN_PACKS,WAVE7_ABILITIES,WAVE7_BUILTIN_PACKS,WAVE7_CARDS,WAVE7_DEPS,WAVE8_ABILITIES,WAVE8_BUILTIN_PACKS,WAVE8_CARDS,WAVE8_DEPS,WAVE9_ABILITIES,WAVE9_BUILTIN_PACKS,WAVE9_CARDS,WAVE9_DEPS,YOUR_HERO,YOUR_IDENTITY,aDifferentCard,aScheme,abilitiesForCards,accelerationTokensOn,accusationWrongGuesses,accuse,accusedWrong,actingCharacter,action,activatesBeforeVillain,activatingEnemy,activationIs,activationOrderOf,addAccelerationToken,addCounters,addMainSchemeStageToVictoryDisplay,addToVictoryDisplay,addVillain,additionalAttackCost,additionalCostToPlay,additionalCostToReady,additionalPowerCost,additionalThwartCost,adjustBoostCount,advanceMainScheme,advanceToSetAsideVillain,after,afterNextCardPlayed,agile,allOf,allowUnlabeledAttack,alterEgoAction,alterEgoInterrupt,alterEgoResponse,amount,anAttackableEnemy,anEnemy,andThen,anyIn,anyNumberOfToughStatusCards,anyOf,anyOfCards,anyPlayerEliminated,applyAsBoostCard,applyRuleUntil,areaPlayersDefeated,assignDamage,atEndOfActivation,atEndOfAttack,atEndOfPhase,atEndOfRound,atEndOfThwart,atMost,attachCard,attachCost,attachInstruction,attack,attackAnEnemy,attackDamageDealt,attackExcessAsDealt,attackInProgress,attackInitiatedAgainst,attackPreventedAmount,attackPreventedTotal,attackResolvedLabeled,attackTarget,attackTotalAtk,attackUsedAtk,attackWasPrevented,attackableAsMinion,attackedBy,attackedPlayer,attackedThisPhase,attackingEnemy,attacksDealAdditionalDamage,attacksGainKeywords,attacksLoseKeywords,baseStatOf,baseStatsFromYourHero,basicPowerBy,basicPowerCost,basicPowerIs,basicPowerStatIs,basicThwartOnlyAgainst,basicThwartsIgnore,bindTargets,blankTextBoxForPlayers,blankTextBoxUntil,blanksTextBox,boost,boostAreaIconsOn,boostCardOf,boostCardsFromSet,boostIconsCount,boostIconsOn,buildScenarioDeck,buildWave11Scenario,builtinGameDeps,builtinPackProblems,campaignDefinitionOf,campaignDefinitionProblems,campaignDefinitionsOf,campaignDepsWithPacks,campaignGameWithPacks,campaignInstructionsOf,campaignLogAtLeast,campaignLogCardCounter,campaignLogCardRecorded,campaignLogCards,campaignLogHas,campaignLogIsSet,campaignLogValue,campaignModularPickProblem,canAttachTo,canAttachToCategory,canChangeForm,canEnterPlay,canFlip,canPayResources,canPlayFromHand,canRemoveThreatFrom,canSpendDifferentResources,canTakeStatus,canUseBasicPower,cancelBoostedActivation,cancelConsequentialDamage,cancelIt,cancelRevealedCard,cancelWhenRevealed,cannotActivate,cannotAttach,cannotBeAttachedUnlessInPlay,cannotBeCanceled,cannotBeDefeated,cannotBeHealed,cannotBeReadiedByPlayerCards,cannotChangeFormUntil,cannotChooseOption,cannotChooseToDiscard,cannotEnterPlay,cannotFlip,cannotHaveStatus,cannotLeavePlay,cannotMakeBasicAttacks,cannotReadyUntil,cannotRecover,cannotResolveTriggeredAbilities,cannotThwart,cardIdsIn,cardPoolWithPack,cardPoolWithPacks,cards,cardsFrom,cardsOfComposedSets,centralMainScheme,changeAdditionalForm,changeForm,changeFormCost,changeToHeroFormNamed,changeToHeroFormWithTrait,changeToOtherHeroForm,changeVillainForm,characterDidThisPhase,checkModularPickCount,checkPackCampaigns,checkPlayableDifficultySets,choiceFoundNothing,chooseCardCost,chooseCardType,chooseCards,chooseEncounterCardType,chooseGroup,chooseMainSchemeStages,chooseNumber,chooseOne,chooseOneBy,chooseOptions,choosePlayer,chooseTarget,chooseTargetCost,chosen,chosenGroup,chosenModularSetIds,chosenPlayer,chosenVillain,civilWarGameModes,civilWarModularSets,civilWarSidesOffer,communityDeckUrl,communityDecks,competitiveOnly,competitiveOnlyTexts,completeMainScheme,confuse,consideredToHaveHitPoints,consideredToHaveResourceIcon,constant,controllerOf,coreScenario,costIf,costModifier,costsPayableByAnyPlayer,countAmong,countBoostIcons,countOf,countTowardStartingHand,counterLimit,countersAsResource,countersOn,countsAs,coveredByEngineRule,createGameArea,createScenarioArea,createScenarioPlayArea,customContentOfPacks,customContentProblems,customModularPickProblem,customModularSetChoices,customScenarioProblems,damageAnEnemy,damageCardsCost,damageOn,damageSharedVillain,damageThisCardCost,damagedAtLeast,dealAsEncounterCard,dealDamage,dealDamageCost,dealDamageToChosenCost,dealEncounterCard,dealEncounterCardsCost,dealEncounterCardsToChosenPlayerCost,dealHiddenPiles,dealIndirectDamage,dealPoolOneAtATime,dealtEncounterCards,dealtEncounterCount,deckCountOf,deckDiscardIconsCount,declareDefender,defeat,defeatExcessDamage,defeatedWithExcessConsequentialDamage,defeatedWithExcessDamage,defeatingPlayer,defenderDefForAttack,defendingCharacter,defendsWithoutExhausting,defineAbilities,defineBuiltinPack,definePackAbilities,detach,difficultySetAlternativesFor,discard,discardAtRandom,discardBoostCard,discardCardsCost,discardChosenFromEncounterDeckCost,discardDeckUntil,discardEncounterCards,discardEncounterUntil,discardFacedownBoostCards,discardFromHand,discardFromHandCombinedCost,discardFromHandCost,discardRandomFromHandCost,discardStatusCost,discardStatusesTokensAndAttachments,discardThis,discardTopOfDeckCost,discardTopOfEncounterDeckCost,discardTuckedCost,discardUpToTopOfDeckCost,distinctAspectsOf,distinctTraitsOf,divide,doesNotExhaustToDefend,doubleDamageTaken,doubleNextCardSpent,doubleStat,doublesResourcesGeneratedForThisCard,doublesResourcesWhilePayingFor,draw,drawUpTo,droneFromDeck,dslFeatures,duringPlayerPhase,duringTurnOf,duringVillainPhaseStepOne,each,eachGroupInPod,eachPlayer,eachPlayerCost,eachTimeUntil,eitherCost,encounterCard,encounterCards,encounterCardsOf,encounterIconsInPlay,encounterLookDiscardCost,encounterSetAside,encounterSetOf,endGame,enemyActivates,enemyAttack,enemyAttacksEnemy,enemyAttacksYouCost,enemyCanAttackAnother,enemyLeader,enemyScheme,enemyTeam,enemyTeamChooses,enemyToAttack,engage,engagedPlayerOf,engineOnlyDslProblems,entersPlayExhausted,eventAmount,eventDamageTaken,eventDamageTakenBy,eventDealt,eventKindIs,eventPlayer,eventResult,eventSource,eventSourceEnemy,eventTarget,eventTargetsTogether,exactlyDefeated,exactlyDefeatedByPower,excludedFromAllyLimit,excludedFromPlayerSideSchemeLimit,exhaust,exhaustCardsCost,exhaustEachCost,exhaustThis,exhaustYourHero,exists,expertSetReplaceable,extraBoostCardsForVillain,faceNamed,fieldsIn,finalStep,find,findCard,firstAttackThisTurn,firstPlayer,firstPlayerAction,firstPlayerPicksFromHand,firstRevealGainsSurge,firstThisRound,flatten,flipCard,flipThis,focusedMainScheme,forAnIdentityNotInThisGame,forEachCard,forEachPlayer,forEachPlayerInChosenOrder,forcedAction,forcedInterrupt,forcedResponse,formChangeCost,friendlyCharacterAttacks,fromAnyAspect,gainFromHiddenPile,gainKeywordUntil,gainTraitUntil,gainTraitsOfUntil,gainsAbility,gainsIcon,gainsKeyword,gainsKeywordX,gainsKeywordsOf,gainsTrait,gainsTraitsOf,gameAreasSplit,gameDepsWithPack,gameDepsWithPacks,genePoolThreatOffer,generatesAmount,generatesPerCard,gets,giveBasicPowerBoostCard,giveBoostCard,giveBoostCardsCost,giveHeldBoostCard,giveStatus,giveStatusCost,giveTough,gmwBalancedHiddenFields,grantAdditionalMulligans,grantOwnedCards,grantedTo,grantingCard,grantsPreparation,groupPlayerCount,handCountOf,handSizeOf,hasAttachment,hasNamedResource,hasPrintedBoostAbility,hasStatus,hasTaggedAbility,hasTrait,heal,healCost,healYourIdentityCost,heroAction,heroInterrupt,heroNoCharacterIsTitledAs,heroResource,heroResponse,hiddenPileCount,highestStatAmong,hitPointsOf,holdMinion,horsemanSidesOffer,host,identifyMole,identityOf,ifElse,ifThen,ignoreAbilities,ignoreBoost,ignoreBoostAbilities,ignoreBoostForThisAttack,ignores,ignoresRetaliate,inAdditionalForm,inCampaign,inCampaignLogField,inCompetitiveMode,inDiscard,inEncounterSet,inForm,inGroup,inHand,inMode,inPlay,inPlayAreaOf,inScenarioPlayArea,inVictoryDisplay,increaseDamage,increaseDamageTaken,increaseNextCardCost,infinitesGenePoolThreatRecommendation,instead,interrupt,isAlterEgo,isAttached,isBaseEncounterSetId,isBaseScenarioId,isConfused,isHero,isModularChoice,isNotReadyCard,isPlainJson,isScenarioSpecificSet,isStunned,isUnscriptedAbilityIssue,joinGameArea,keepsExhausted,lastPlayedThisRound,leavingPlayLoses,limitPerPaidCard,logCardList,logCardRef,logFlag,logNumber,logOption,logText,lookAt,lookAtAndRearrange,lookAtTopOfScenarioDeckThenPlace,loseKeywordUntil,loseTraitUntil,losesIcon,losesKeyword,made,mainSchemeAdvancedBy,mainSchemeMarkedBy,mainSchemePicksOffer,mainSchemeStageGist,mainSchemeStageNumber,mainSchemeStagesOffer,mainSchemeStagesProblem,max,maxDamageTaken,maxOnePerTriggeringInstance,maxSustainedDamage,mayLookAtTopOfEncounterDeckUntil,mergeCosts,mergeRegistries,min,minDamageTaken,modifyAttack,modifyBasicPower,modifyCardEffect,modifyCardEffectsUntil,modifyConsequentialDamage,modifyStat,modifyStatOf,modifyThwart,modularPickCountProblem,modularPickCountRange,modularPickProblem,mojoCheckedOffSets,mojoModularSetPicks,mostCommonHandTypeCount,moveActiveCounterToNextInRow,moveActiveCounterToNextVillain,moveBoostCards,moveCards,moveCardsInto,moveCounters,moveThreat,multiplyStat,named,namedByTeamUpOf,nextAfter,not,notCountedTowardHandSize,notMatching,notOfChosenCardType,obligation,ofChosenCardType,ofClassification,ofIdentitySetTitled,ofTeamUpSet,offersEasierStart,offersGenePoolThreat,on,onChosenMainScheme,oncePerPaidCard,oncePerPhase,oncePerPhasePerEventPlayer,oncePerRound,oncePerRoundPerPlayer,oneCopyOf,onlyCharacterRemovesThreat,onlySourceRemovesThreat,onlyThwartsRemoveThreat,opsOfKind,option,otherFaceOf,otherPlayers,outsideFact,overpaidWhenPlayed,ownScriptsOf,ownerOf,packCampaignDefinitionOf,packCampaignDefinitions,packCampaignRecords,packCampaignsOf,packEncounterSetRecords,packModularSetChoices,obligation as packObligation,packScenarioRecords,paidCards,paidInPlayCards,paidType,paidTypeCount,paidUsingResourceFrom,paidWith,paidWithCard,paidWithOnly,paidWithResourceCard,pairCards,pairLimit,partOf,passEncounterCard,payPrintedCostOf,payingFor,perHero,placeCountersCost,placeDamage,placeOnTopOrBottom,placeOnTopOrBottomOfPlayerDeck,placeThreat,placeThreatOnSharedScheme,playFromDeckIgnoringCost,playFromDeckReducingCost,playFromHandIgnoringCost,playFromHandReducingCost,playFromSeparateDeck,playNote,playOnlyIf,playSetAside,playTuckedCard,playWithTopOfDeckFaceup,playWithTopOfEncounterDeckFaceup,playableAttachments,playableScenario,playableScenarioOffer,playableScenarioWithCustom,playableStarterDeckSetup,playableTopOfDeck,playableTucked,playedThisPhase,playedThisRound,playedThisTurn,playedVia,playerOrElse,playersCannotDiscard,playersWhere,preparation,preventAllDamageTo,preventConsequentialDamage,preventDamage,preventThreat,printedBoostAreaIconsOn,printedCostAtLeast,printedCostOf,printedForm,printedHpNumeralOf,printedHpOf,printedResourcesInHandAs,printedResourcesOf,printedStatOf,printsAbility,product,publishIssues,putIntoPlay,putIntoPlayAsHost,putIntoPlayFacedown,putIntoPlayFromSetAside,putLinkedAllyIntoPlay,putMainSchemeStageIntoPlay,query,raiseMoment,randomCivilWarScenario,reachableFromPod,reaching,readPackInput,readsAtkOf,readsPaymentTypesOf,ready,readyCardsCost,recordInCampaignLog,reduceCostOfCards,reduceCostToPlay,reduceDamage,reduceDamageTo,reduceNextCardCost,reducesAttackDamageTaken,refCount,refMatches,remainingHpCompare,remainingHpOf,removeAccelerationToken,removeAllCounters,removeAllCountersFrom,removeAnAccelerationToken,removeCounter,removeCountersAmong,removeCountersFrom,removeEachCounterFrom,removeFromCampaign,removeMainSchemeStage,removeMainSchemeStages,removeStatus,removeThreat,removeThreatCost,removeThreatFromAScheme,removeThreatFromChosenCost,removeThreatUpToCost,removeUpToCounters,removeVillain,removedFromGameCards,reorderCards,repeatTimes,repeatWhile,replaceAttachHost,replaceBoostCount,replaceLeaveDestination,replaceNextVillainPhaseWithPlayerPhase,replaceStatus,replaceTuckHost,reportFact,resetHitPoints,resolveAttackAgainst,resolveBoostAbilitiesOf,resolveForcedInterruptOf,resolveForcedResponseCost,resolveForcedResponseOf,resolveModes,resolveOneTagged,resolvePreparationsOf,resolveSetups,resolveSpecialCost,resolveSpecials,resolveSpecialsOf,resolveTagged,resolveWhenDefeatedOf,resolveWhenRevealedOf,resource,resourceTypesOf,resourcesGeneratedAsWild,resourcesPaidBy,response,restrictedLimit,retargetAttack,retargetPlayerAttack,returnEachToHandCost,returnToHandAfterResolving,returnToHandCost,revealCard,revealEncounterCard,revealFromSetAsideModularSet,revealHeldMinion,revealHiddenPile,revealInstead,revealMainSchemeStage,revealNextVillainStage,revealSetAside,revealTopOfScenarioDeck,revealTopOfSeparateDeck,revealedFromEncounterDeck,revealedPileCardCount,rotateEngagement,rule,sameClassificationAs,scaled,scenarioArea,scenarioAreaCount,scenarioDeck,scenarioGameSetIds,scenarioSideClause,scenarioWithPacks,scenarioWithVillain,schemeStartedByAttackBoost,schemeThreatOn,searchAndReveal,searchCollection,searchEncounterIntoPlayCost,seedHiddenPiles,selectCards,self,sentence,separateDeckCards,separateDeckCountOf,setActiveVillain,setAside,setAsideDestination,setAsideModularSetCount,setDefeatDestination,setRemainingHitPoints,setVar,setVillainAside,setVillainSide,setup,sha256Hex,sharesTitleWith,sharesTraitWith,sharesTraitWithHeroOf,shuffleDeck,shuffleEncounterDeck,shuffleInSetAsideModularSet,shuffleIntoSeparateDeck,shuffleMainSchemeStageGroup,shuffleMainSchemeStages,shuffleSeparateDeck,shuffleTopOfSeparateDeckIntoEncounterDeck,sitOut,skipNextVillainPhase,skippedCommunityDecks,skirmishOffer,special,spend,spendChosen,spendDifferentResources,spendEqualTo,spendPrinted,spendResources,spendSameType,spendUpTo,spendX,spendXResources,spendableForAnyPlayer,spendableForPlayersWhere,spendableFromTucked,splitIssues,standardSetReplaceable,starIconsOn,starterDeckSetup,statCompare,statOf,stateCheck,stateCheckFromEntering,statusCount,statusLimit,staysInHand,stillCountedByDiscarder,stun,sum,superlative,superlativePlayer,surge,swapCards,swapIdentity,swapMainScheme,swapVillain,swapVillainByTrait,tagged,taggedAbilitiesOn,takeAnyDamageCost,takeControl,takeDamage,takeDamageCost,takeIndirectDamageCost,takeIntoHand,takesConsequentialDamage,takesDamageOnlyFrom,takesDamageOnlyFromAttacks,takesFirstTurn,teamUpCharacter,teamUpCharacters,textBoxCannotBeBlanked,thatAttackGainsKeywords,thatPlayer,theAccused,theAffectedCard,theMainScheme,theMole,theVillain,thisCardGenerates,thisGroup,threatAtLeast,threatOn,thwart,thwartAScheme,thwartInProgress,thwartTarget,titled,toScenarioDeck,topOfDeck,topOfDeckIsFaceup,topOfDeckMatches,topOfEncounterDeckIsFaceup,topOfEncounterDeckMatches,topOfEncounterDeckShowsIcons,topOfEncounterDeckShowsNoIcons,topOfYourDeckHas,totalPrintedCost,totalPrintedResources,totalStatOf,traitEncounterDeck,traitNumber,treatAsAlly,treatAsMinion,treatAttachedAllyAsMinion,treatAttachedHeroAsMinion,treatAttachedMinionAsAlly,treatAttachedVillainAsMinion,treatSelfAsAlly,tuckCards,tuckLimit,tuckedCount,tuckedUnder,tuckedUnderRef,turnFacedown,uncancellable,undefendedAttack,upgradesCannotBeRemoved,useThwInsteadOfAtk,usingBasicPower,validateBuiltinPack,validateDefinition,validatePack,valueAtLeast,valueAtMost,valueEquals,varAtLeast,varFor,varOf,victoryCondition,victoryDisplayCards,victoryDisplayCount,villainChoiceOf,villainChoiceOffer,villainOnSide,villainOptionOf,villainStageNumberOf,wave10Scenario,wave10StarterDeckSetup,wave11Scenario,wave11ScenarioRecord,wave11StarterDeckSetup,wave1ReprintPairs,wave1Scenario,wave1StarterDeckSetup,wave2ReprintPairs,wave2Scenario,wave2StarterDeckSetup,wave3ReprintPairs,wave3Scenario,wave3StarterDeckSetup,wave7Scenario,wave7StarterDeckSetup,wave8Scenario,wave8StarterDeckSetup,wave9Scenario,wave9StarterDeckSetup,when,whenCompleted,whenDefeated,whenRevealed,whenRevealedAlterEgo,whenRevealedHero,whenSpentGenerate,whileOnChosenMainScheme,whileTucked,withFewestCounters,withMostCounters,you,youAre,youAreNamed,youHaveTrait,yourIdentity,yourLeader,yourMainScheme,yourTeam,zone,zoneCountOf};
|
|
1
|
+
import{builtinGameDeps,validateBuiltinPack}from"./chunks/chunk-HVUCR22H.js";import{PACK_ABILITY_ID,REQUIRED_PACK_FILES,SUPPORTED_DSL_FEATURES,campaignDefinitionsOf,checkPackCampaigns,definePackAbilities,dslFeatures,isPlainJson,isUnscriptedAbilityIssue,packCampaignsOf,publishIssues,readPackInput,sha256Hex,splitIssues,validatePack}from"./chunks/chunk-2XS47E3T.js";import{campaignDepsWithPacks,campaignGameWithPacks,cardPoolWithPack,cardPoolWithPacks,customContentOfPacks,gameDepsWithPack,gameDepsWithPacks,packCampaignDefinitionOf,packCampaignDefinitions,packCampaignRecords,packEncounterSetRecords,packModularSetChoices,packScenarioRecords,scenarioWithPacks}from"./chunks/chunk-A3WBGQ2N.js";import{ANY_ASPECT_CARD,ANY_NUMBER,ANY_RESOURCE,AOA_CAMPAIGN_DEFINITION,AOA_DEFEATED,AOA_MISSIONS,AOA_NOT_DEFEATED,AOA_OVERSEERS,AOA_PROTECT_THE_PROFESSOR,AOS_CAMPAIGN_DEFINITION,AS_DRONE,BUILTIN_PACKS,CAMPAIGNS,CAN_TAKE_THIS_ATTACK,COMMUNITY_DECK_AUTHORS,CORE_ABILITIES,CORE_BUILTIN_PACK,CORE_DEPS,CUSTOM_SCENARIO_FIELDS,ENCOUNTER_CARD,ENCOUNTER_CARD_CATEGORIES,ENCOUNTER_SIDE_SCHEME,ENGINE_ONLY_DSL_EXAMPLES,FRIENDLY_CHARACTER,GMW_BALANCED_FIELD,GMW_BALANCED_TOGGLES,GMW_CAMPAIGN_DEFINITION,INFINITES_GENE_POOL_THREAT_MAX,MOJO_CAMPAIGN_DEFINITION,MTS_CAMPAIGN_DEFINITION,NEXT_EVOL_CAMPAIGN_DEFINITION,NOT_READY_PACK_CODES,PAID_CARDS,PAID_IN_PLAY_CARDS,PLAYABLE_ABILITIES,PLAYABLE_DEPS,PLAYABLE_ENCOUNTER_SETS,PLAYABLE_SCENARIO_RECORDS,PLAYER_SIDE_SCHEME,RANDOM_VILLAIN,SHADOWLAND_CAMPAIGN_DEFINITION,SM_CAMPAIGN_DEFINITION,TEAM_UP_CARD,TRAIT,TRORS_CAMPAIGN_DEFINITION,UNSCRIPTED_ENCOUNTER_SET_IDS,VILLAIN_OR_VILLAINOUS,WAVE10_ABILITIES,WAVE10_BUILTIN_PACKS,WAVE10_CARDS,WAVE10_DEPS,WAVE10_GAME_ENCOUNTER_SETS,WAVE11_ABILITIES,WAVE11_BUILTIN_PACKS,WAVE11_CARDS,WAVE11_DEPS,WAVE11_GAME_ENCOUNTER_SETS,WAVE1_ABILITIES,WAVE1_BUILTIN_PACKS,WAVE1_DEPS,WAVE1_REPRINT_ABILITIES,WAVE2_ABILITIES,WAVE2_BUILTIN_PACKS,WAVE2_DEPS,WAVE2_REPRINT_ABILITIES,WAVE3_ABILITIES,WAVE3_BUILTIN_PACKS,WAVE3_CARDS,WAVE3_DEPS,WAVE3_REPRINT_ABILITIES,WAVE4_BUILTIN_PACKS,WAVE5_BUILTIN_PACKS,WAVE6_BUILTIN_PACKS,WAVE7_ABILITIES,WAVE7_BUILTIN_PACKS,WAVE7_CARDS,WAVE7_DEPS,WAVE8_ABILITIES,WAVE8_BUILTIN_PACKS,WAVE8_CARDS,WAVE8_DEPS,WAVE9_ABILITIES,WAVE9_BUILTIN_PACKS,WAVE9_CARDS,WAVE9_DEPS,YOUR_HERO,YOUR_IDENTITY,aDifferentCard,aScheme,abilitiesForCards,accelerationTokensOn,accusationWrongGuesses,accuse,accusedWrong,actingCharacter,action,activatesBeforeVillain,activatingEnemy,activationIs,activationOrderOf,addAccelerationToken,addCounters,addMainSchemeStageToVictoryDisplay,addToVictoryDisplay,addVillain,additionalAttackCost,additionalCostToPlay,additionalCostToReady,additionalPowerCost,additionalThwartCost,adjustBoostCount,advanceMainScheme,advanceToSetAsideVillain,after,afterNextCardPlayed,agile,allOf,allowUnlabeledAttack,alterEgoAction,alterEgoInterrupt,alterEgoResponse,amount,anAttackableEnemy,anEnemy,andThen,anyIn,anyNumberOfToughStatusCards,anyOf,anyOfCards,anyPlayerEliminated,applyAsBoostCard,applyRuleUntil,areaPlayersDefeated,assignDamage,atEndOfActivation,atEndOfAttack,atEndOfPhase,atEndOfRound,atEndOfThwart,atMost,attachCard,attachCost,attachInstruction,attack,attackAnEnemy,attackDamageDealt,attackExcessAsDealt,attackInProgress,attackInitiatedAgainst,attackPreventedAmount,attackPreventedTotal,attackResolvedLabeled,attackTarget,attackTotalAtk,attackUsedAtk,attackWasPrevented,attackableAsMinion,attackedBy,attackedPlayer,attackedThisPhase,attackingEnemy,attacksDealAdditionalDamage,attacksGainKeywords,attacksLoseKeywords,baseStatOf,baseStatsFromYourHero,basicPowerBy,basicPowerCost,basicPowerIs,basicPowerStatIs,basicThwartOnlyAgainst,basicThwartsIgnore,bindTargets,blankTextBoxForPlayers,blankTextBoxUntil,blanksTextBox,boost,boostAreaIconsOn,boostCardOf,boostCardsFromSet,boostIconsCount,boostIconsOn,buildScenarioDeck,buildWave11Scenario,builtinPackProblems,campaignDefinitionOf,campaignDefinitionProblems,campaignInstructionsOf,campaignLogAtLeast,campaignLogCardCounter,campaignLogCardRecorded,campaignLogCards,campaignLogHas,campaignLogIsSet,campaignLogValue,campaignModularPickProblem,canAttachTo,canAttachToCategory,canChangeForm,canEnterPlay,canFlip,canPayResources,canPlayFromHand,canRemoveThreatFrom,canSpendDifferentResources,canTakeStatus,canUseBasicPower,cancelBoostedActivation,cancelConsequentialDamage,cancelIt,cancelRevealedCard,cancelWhenRevealed,cannotActivate,cannotAttach,cannotBeAttachedUnlessInPlay,cannotBeCanceled,cannotBeDefeated,cannotBeHealed,cannotBeReadiedByPlayerCards,cannotChangeFormUntil,cannotChooseOption,cannotChooseToDiscard,cannotEnterPlay,cannotFlip,cannotHaveStatus,cannotLeavePlay,cannotMakeBasicAttacks,cannotReadyUntil,cannotRecover,cannotResolveTriggeredAbilities,cannotThwart,cardIdsIn,cards,cardsFrom,cardsOfComposedSets,centralMainScheme,changeAdditionalForm,changeForm,changeFormCost,changeToHeroFormNamed,changeToHeroFormWithTrait,changeToOtherHeroForm,changeVillainForm,characterDidThisPhase,checkModularPickCount,checkPlayableDifficultySets,choiceFoundNothing,chooseCardCost,chooseCardType,chooseCards,chooseEncounterCardType,chooseGroup,chooseMainSchemeStages,chooseNumber,chooseOne,chooseOneBy,chooseOptions,choosePlayer,chooseTarget,chooseTargetCost,chosen,chosenGroup,chosenModularSetIds,chosenPlayer,chosenVillain,civilWarGameModes,civilWarModularSets,civilWarSidesOffer,communityDeckUrl,communityDecks,competitiveOnly,competitiveOnlyTexts,completeMainScheme,confuse,consideredToHaveHitPoints,consideredToHaveResourceIcon,constant,controllerOf2 as controllerOf,coreScenario,costIf,costModifier,costsPayableByAnyPlayer,countAmong,countBoostIcons,countOf,countTowardStartingHand,counterLimit,countersAsResource,countersOn,countsAs,coveredByEngineRule,createGameArea,createScenarioArea,createScenarioPlayArea,customContentProblems,customModularPickProblem,customModularSetChoices,customScenarioProblems,damageAnEnemy,damageCardsCost,damageOn,damageSharedVillain,damageThisCardCost,damagedAtLeast,dealAsEncounterCard,dealDamage,dealDamageCost,dealDamageToChosenCost,dealEncounterCard,dealEncounterCardsCost,dealEncounterCardsToChosenPlayerCost,dealHiddenPiles,dealIndirectDamage,dealPoolOneAtATime,dealtEncounterCards,dealtEncounterCount,deckCountOf,deckDiscardIconsCount,declareDefender,defeat,defeatExcessDamage,defeatedWithExcessConsequentialDamage,defeatedWithExcessDamage,defeatingPlayer,defenderDefForAttack,defendingCharacter,defendsWithoutExhausting,defineAbilities,defineBuiltinPack,detach,difficultySetAlternativesFor,discard,discardAtRandom,discardBoostCard,discardCardsCost,discardChosenFromEncounterDeckCost,discardDeckUntil,discardEncounterCards,discardEncounterUntil,discardFacedownBoostCards,discardFromHand,discardFromHandCombinedCost,discardFromHandCost,discardRandomFromHandCost,discardStatusCost,discardStatusesTokensAndAttachments,discardThis,discardTopOfDeckCost,discardTopOfEncounterDeckCost,discardTuckedCost,discardUpToTopOfDeckCost,distinctAspectsOf,distinctTraitsOf,divide,doesNotExhaustToDefend,doubleDamageTaken,doubleNextCardSpent,doubleStat,doublesResourcesGeneratedForThisCard,doublesResourcesWhilePayingFor,draw,drawUpTo,droneFromDeck,duringPlayerPhase,duringTurnOf,duringVillainPhaseStepOne,each,eachGroupInPod,eachPlayer,eachPlayerCost,eachTimeUntil,eitherCost,encounterCard,encounterCards,encounterCardsOf,encounterIconsInPlay,encounterLookDiscardCost,encounterSetAside,encounterSetOf,endGame,enemyActivates,enemyAttack,enemyAttacksEnemy,enemyAttacksYouCost,enemyCanAttackAnother,enemyLeader,enemyScheme,enemyTeam,enemyTeamChooses,enemyToAttack,engage,engagedPlayerOf,engineOnlyDslProblems,entersPlayExhausted,eventAmount,eventDamageTaken,eventDamageTakenBy,eventDealt,eventKindIs,eventPlayer,eventResult,eventSource,eventSourceEnemy,eventTarget,eventTargetsTogether,exactlyDefeated,exactlyDefeatedByPower,excludedFromAllyLimit,excludedFromPlayerSideSchemeLimit,exhaust,exhaustCardsCost,exhaustEachCost,exhaustThis,exhaustYourHero,exists,expertSetReplaceable,extraBoostCardsForVillain,faceNamed,fieldsIn,finalStep,find,findCard,firstAttackThisTurn,firstPlayer,firstPlayerAction,firstPlayerPicksFromHand,firstRevealGainsSurge,firstThisRound,flatten,flipCard,flipThis,focusedMainScheme,forAnIdentityNotInThisGame,forEachCard,forEachPlayer,forEachPlayerInChosenOrder,forcedAction,forcedInterrupt,forcedResponse,formChangeCost,friendlyCharacterAttacks,fromAnyAspect,gainFromHiddenPile,gainKeywordUntil,gainTraitUntil,gainTraitsOfUntil,gainsAbility,gainsIcon,gainsKeyword,gainsKeywordX,gainsKeywordsOf,gainsTrait,gainsTraitsOf,gameAreasSplit,genePoolThreatOffer,generatesAmount,generatesPerCard,gets,giveBasicPowerBoostCard,giveBoostCard,giveBoostCardsCost,giveHeldBoostCard,giveStatus,giveStatusCost,giveTough,gmwBalancedHiddenFields,grantAdditionalMulligans,grantOwnedCards,grantedTo,grantingCard,grantsPreparation,groupPlayerCount,handCountOf,handSizeOf,hasAttachment,hasNamedResource,hasPrintedBoostAbility,hasStatus,hasTaggedAbility,hasTrait,heal,healCost,healYourIdentityCost,heroAction,heroInterrupt,heroNoCharacterIsTitledAs,heroResource,heroResponse,hiddenPileCount,highestStatAmong,hitPointsOf,holdMinion,horsemanSidesOffer,host,identifyMole,identityOf,ifElse,ifThen,ignoreAbilities,ignoreBoost,ignoreBoostAbilities,ignoreBoostForThisAttack,ignores,ignoresRetaliate,inAdditionalForm,inCampaign,inCampaignLogField,inCompetitiveMode,inDiscard,inEncounterSet,inForm,inGroup,inHand,inMode,inPlay,inPlayAreaOf,inScenarioPlayArea,inVictoryDisplay,increaseDamage,increaseDamageTaken,increaseNextCardCost,infinitesGenePoolThreatRecommendation,instead,interrupt,isAlterEgo,isAttached,isBaseEncounterSetId,isBaseScenarioId,isConfused,isHero,isModularChoice,isNotReadyCard,isScenarioSpecificSet,isStunned,joinGameArea,keepsExhausted,lastPlayedThisRound,leavingPlayLoses,limitPerPaidCard,logCardList,logCardRef,logFlag,logNumber,logOption,logText,lookAt,lookAtAndRearrange,lookAtTopOfScenarioDeckThenPlace,loseKeywordUntil,loseTraitUntil,losesIcon,losesKeyword,made,mainSchemeAdvancedBy,mainSchemeMarkedBy,mainSchemePicksOffer,mainSchemeStageGist,mainSchemeStageNumber,mainSchemeStagesOffer,mainSchemeStagesProblem,max,maxDamageTaken,maxOnePerTriggeringInstance,maxSustainedDamage,mayLookAtTopOfEncounterDeckUntil,mergeCosts,mergeRegistries,min,minDamageTaken,modifyAttack,modifyBasicPower,modifyCardEffect,modifyCardEffectsUntil,modifyConsequentialDamage,modifyStat,modifyStatOf,modifyThwart,modularPickCountProblem,modularPickCountRange,modularPickProblem,modularSetContents,mojoCheckedOffSets,mojoModularSetPicks,mostCommonHandTypeCount,moveActiveCounterToNextInRow,moveActiveCounterToNextVillain,moveBoostCards,moveCards,moveCardsInto,moveCounters,moveThreat,multiplyStat,named,namedByTeamUpOf,nextAfter,not,notCountedTowardHandSize,notMatching,notOfChosenCardType,obligation,ofChosenCardType,ofClassification,ofIdentitySetTitled,ofTeamUpSet,offersEasierStart,offersGenePoolThreat,on,onChosenMainScheme,oncePerPaidCard,oncePerPhase,oncePerPhasePerEventPlayer,oncePerRound,oncePerRoundPerPlayer,oneCopyOf,onlyCharacterRemovesThreat,onlySourceRemovesThreat,onlyThwartsRemoveThreat,opsOfKind,option,otherFaceOf,otherPlayers,outsideFact,overpaidWhenPlayed,ownScriptsOf,ownerOf,packScenarioOffer,paidCards,paidInPlayCards,paidType,paidTypeCount,paidUsingResourceFrom,paidWith,paidWithCard,paidWithOnly,paidWithResourceCard,pairCards,pairLimit,partOf,passEncounterCard,payPrintedCostOf,payingFor,perHero,placeCountersCost,placeDamage,placeOnTopOrBottom,placeOnTopOrBottomOfPlayerDeck,placeThreat,placeThreatOnSharedScheme,playFromDeckIgnoringCost,playFromDeckReducingCost,playFromHandIgnoringCost,playFromHandReducingCost,playFromSeparateDeck,playNote,playOnlyIf,playSetAside,playTuckedCard,playWithTopOfDeckFaceup,playWithTopOfEncounterDeckFaceup,playableAttachments,playableScenario,playableScenarioOffer,playableScenarioWithCustom,playableStarterDeckSetup,playableTopOfDeck,playableTucked,playedThisPhase,playedThisRound,playedThisTurn,playedVia,playerOrElse,playersCannotDiscard,playersWhere,preparation,preventAllDamageTo,preventConsequentialDamage,preventDamage,preventThreat,printedBoostAreaIconsOn,printedCostAtLeast,printedCostOf,printedForm,printedHpNumeralOf,printedHpOf,printedResourcesInHandAs,printedResourcesOf,printedStatOf,printsAbility,product,putIntoPlay,putIntoPlayAsHost,putIntoPlayFacedown,putIntoPlayFromSetAside,putLinkedAllyIntoPlay,putMainSchemeStageIntoPlay,query,raiseMoment,randomCivilWarScenario,reachableFromPod,reaching,readsAtkOf,readsPaymentTypesOf,ready,readyCardsCost,recordInCampaignLog,reduceCostOfCards,reduceCostToPlay,reduceDamage,reduceDamageTo,reduceNextCardCost,reducesAttackDamageTaken,refCount,refMatches,remainingHpCompare,remainingHpOf,removeAccelerationToken,removeAllCounters,removeAllCountersFrom,removeAnAccelerationToken,removeCounter,removeCountersAmong,removeCountersFrom,removeEachCounterFrom,removeFromCampaign,removeMainSchemeStage,removeMainSchemeStages,removeStatus,removeThreat,removeThreatCost,removeThreatFromAScheme,removeThreatFromChosenCost,removeThreatUpToCost,removeUpToCounters,removeVillain,removedFromGameCards,reorderCards,repeatTimes,repeatWhile,replaceAttachHost,replaceBoostCount,replaceLeaveDestination,replaceNextVillainPhaseWithPlayerPhase,replaceStatus,replaceTuckHost,reportFact,resetHitPoints,resolveAttackAgainst,resolveBoostAbilitiesOf,resolveForcedInterruptOf,resolveForcedResponseCost,resolveForcedResponseOf,resolveModes,resolveOneTagged,resolvePreparationsOf,resolveSetups,resolveSpecialCost,resolveSpecials,resolveSpecialsOf,resolveTagged,resolveWhenDefeatedOf,resolveWhenRevealedOf,resource,resourceTypesOf,resourcesGeneratedAsWild,resourcesPaidBy,response,restrictedLimit,retargetAttack,retargetPlayerAttack,returnEachToHandCost,returnToHandAfterResolving,returnToHandCost,revealCard,revealEncounterCard,revealFromSetAsideModularSet,revealHeldMinion,revealHiddenPile,revealInstead,revealMainSchemeStage,revealNextVillainStage,revealSetAside,revealTopOfScenarioDeck,revealTopOfSeparateDeck,revealedFromEncounterDeck,revealedPileCardCount,rotateEngagement,rule,sameClassificationAs,scaled,scenarioArea,scenarioAreaCount,scenarioDeck,scenarioGameSetIds,scenarioSideClause,scenarioWithVillain,schemeStartedByAttackBoost,schemeThreatOn,searchAndReveal,searchCollection,searchEncounterIntoPlayCost,seedHiddenPiles,selectCards,self,sentence,separateDeckCards,separateDeckCountOf,setActiveVillain,setAside,setAsideDestination,setAsideModularSetCount,setDefeatDestination,setRemainingHitPoints,setVar,setVillainAside,setVillainSide,setup,sharesTitleWith,sharesTraitWith,sharesTraitWithHeroOf,shuffleDeck,shuffleEncounterDeck,shuffleInSetAsideModularSet,shuffleIntoSeparateDeck,shuffleMainSchemeStageGroup,shuffleMainSchemeStages,shuffleSeparateDeck,shuffleTopOfSeparateDeckIntoEncounterDeck,sitOut,skipNextVillainPhase,skippedCommunityDecks,skirmishOffer,special,spend,spendChosen,spendDifferentResources,spendEqualTo,spendPrinted,spendResources,spendSameType,spendUpTo,spendX,spendXResources,spendableForAnyPlayer,spendableForPlayersWhere,spendableFromTucked,standardSetReplaceable,starIconsOn,starterDeckSetup,statCompare,statOf,stateCheck,stateCheckFromEntering,statusCount,statusLimit,staysInHand,stillCountedByDiscarder,stun,sum,superlative,superlativePlayer,surge,swapCards,swapIdentity,swapMainScheme,swapVillain,swapVillainByTrait,tagged,taggedAbilitiesOn,takeAnyDamageCost,takeControl,takeDamage,takeDamageCost,takeIndirectDamageCost,takeIntoHand,takesConsequentialDamage,takesDamageOnlyFrom,takesDamageOnlyFromAttacks,takesFirstTurn,teamUpCharacter,teamUpCharacters,textBoxCannotBeBlanked,thatAttackGainsKeywords,thatPlayer,theAccused,theAffectedCard,theMainScheme,theMole,theVillain,thisCardGenerates,thisGroup,threatAtLeast,threatOn,thwart,thwartAScheme,thwartInProgress,thwartTarget,titled,toScenarioDeck,topOfDeck,topOfDeckIsFaceup,topOfDeckMatches,topOfEncounterDeckIsFaceup,topOfEncounterDeckMatches,topOfEncounterDeckShowsIcons,topOfEncounterDeckShowsNoIcons,topOfYourDeckHas,totalPrintedCost,totalPrintedResources,totalStatOf,traitEncounterDeck,traitNumber,treatAsAlly,treatAsMinion,treatAttachedAllyAsMinion,treatAttachedHeroAsMinion,treatAttachedMinionAsAlly,treatAttachedVillainAsMinion,treatSelfAsAlly,tuckCards,tuckLimit,tuckedCount,tuckedUnder,tuckedUnderRef,turnFacedown,uncancellable,undefendedAttack,upgradesCannotBeRemoved,useThwInsteadOfAtk,usingBasicPower,validateDefinition,valueAtLeast,valueAtMost,valueEquals,varAtLeast,varFor,varOf,victoryCondition,victoryDisplayCards,victoryDisplayCount,villainChoiceOf,villainChoiceOffer,villainOnSide,villainOptionOf,villainStageNumberOf,wave10Scenario,wave10StarterDeckSetup,wave11Scenario,wave11ScenarioRecord,wave11StarterDeckSetup,wave1ReprintPairs,wave1Scenario,wave1StarterDeckSetup,wave2ReprintPairs,wave2Scenario,wave2StarterDeckSetup,wave3ReprintPairs,wave3Scenario,wave3StarterDeckSetup,wave7Scenario,wave7StarterDeckSetup,wave8Scenario,wave8StarterDeckSetup,wave9Scenario,wave9StarterDeckSetup,when,whenCompleted,whenDefeated,whenRevealed,whenRevealedAlterEgo,whenRevealedHero,whenSpentGenerate,whileOnChosenMainScheme,whileTucked,withFewestCounters,withModularSetContents,withMostCounters,you,youAre,youAreNamed,youHaveTrait,yourIdentity,yourLeader,yourMainScheme,yourTeam,zone,zoneCountOf}from"./chunks/chunk-JYDEFRIZ.js";export{ANY_ASPECT_CARD,ANY_NUMBER,ANY_RESOURCE,AOA_CAMPAIGN_DEFINITION,AOA_DEFEATED,AOA_MISSIONS,AOA_NOT_DEFEATED,AOA_OVERSEERS,AOA_PROTECT_THE_PROFESSOR,AOS_CAMPAIGN_DEFINITION,AS_DRONE,BUILTIN_PACKS,CAMPAIGNS,CAN_TAKE_THIS_ATTACK,COMMUNITY_DECK_AUTHORS,CORE_ABILITIES,CORE_BUILTIN_PACK,CORE_DEPS,CUSTOM_SCENARIO_FIELDS,ENCOUNTER_CARD,ENCOUNTER_CARD_CATEGORIES,ENCOUNTER_SIDE_SCHEME,ENGINE_ONLY_DSL_EXAMPLES,FRIENDLY_CHARACTER,GMW_BALANCED_FIELD,GMW_BALANCED_TOGGLES,GMW_CAMPAIGN_DEFINITION,INFINITES_GENE_POOL_THREAT_MAX,MOJO_CAMPAIGN_DEFINITION,MTS_CAMPAIGN_DEFINITION,NEXT_EVOL_CAMPAIGN_DEFINITION,NOT_READY_PACK_CODES,PACK_ABILITY_ID,PAID_CARDS,PAID_IN_PLAY_CARDS,PLAYABLE_ABILITIES,PLAYABLE_DEPS,PLAYABLE_ENCOUNTER_SETS,PLAYABLE_SCENARIO_RECORDS,PLAYER_SIDE_SCHEME,RANDOM_VILLAIN,REQUIRED_PACK_FILES,SHADOWLAND_CAMPAIGN_DEFINITION,SM_CAMPAIGN_DEFINITION,SUPPORTED_DSL_FEATURES,TEAM_UP_CARD,TRAIT,TRORS_CAMPAIGN_DEFINITION,UNSCRIPTED_ENCOUNTER_SET_IDS,VILLAIN_OR_VILLAINOUS,WAVE10_ABILITIES,WAVE10_BUILTIN_PACKS,WAVE10_CARDS,WAVE10_DEPS,WAVE10_GAME_ENCOUNTER_SETS,WAVE11_ABILITIES,WAVE11_BUILTIN_PACKS,WAVE11_CARDS,WAVE11_DEPS,WAVE11_GAME_ENCOUNTER_SETS,WAVE1_ABILITIES,WAVE1_BUILTIN_PACKS,WAVE1_DEPS,WAVE1_REPRINT_ABILITIES,WAVE2_ABILITIES,WAVE2_BUILTIN_PACKS,WAVE2_DEPS,WAVE2_REPRINT_ABILITIES,WAVE3_ABILITIES,WAVE3_BUILTIN_PACKS,WAVE3_CARDS,WAVE3_DEPS,WAVE3_REPRINT_ABILITIES,WAVE4_BUILTIN_PACKS,WAVE5_BUILTIN_PACKS,WAVE6_BUILTIN_PACKS,WAVE7_ABILITIES,WAVE7_BUILTIN_PACKS,WAVE7_CARDS,WAVE7_DEPS,WAVE8_ABILITIES,WAVE8_BUILTIN_PACKS,WAVE8_CARDS,WAVE8_DEPS,WAVE9_ABILITIES,WAVE9_BUILTIN_PACKS,WAVE9_CARDS,WAVE9_DEPS,YOUR_HERO,YOUR_IDENTITY,aDifferentCard,aScheme,abilitiesForCards,accelerationTokensOn,accusationWrongGuesses,accuse,accusedWrong,actingCharacter,action,activatesBeforeVillain,activatingEnemy,activationIs,activationOrderOf,addAccelerationToken,addCounters,addMainSchemeStageToVictoryDisplay,addToVictoryDisplay,addVillain,additionalAttackCost,additionalCostToPlay,additionalCostToReady,additionalPowerCost,additionalThwartCost,adjustBoostCount,advanceMainScheme,advanceToSetAsideVillain,after,afterNextCardPlayed,agile,allOf,allowUnlabeledAttack,alterEgoAction,alterEgoInterrupt,alterEgoResponse,amount,anAttackableEnemy,anEnemy,andThen,anyIn,anyNumberOfToughStatusCards,anyOf,anyOfCards,anyPlayerEliminated,applyAsBoostCard,applyRuleUntil,areaPlayersDefeated,assignDamage,atEndOfActivation,atEndOfAttack,atEndOfPhase,atEndOfRound,atEndOfThwart,atMost,attachCard,attachCost,attachInstruction,attack,attackAnEnemy,attackDamageDealt,attackExcessAsDealt,attackInProgress,attackInitiatedAgainst,attackPreventedAmount,attackPreventedTotal,attackResolvedLabeled,attackTarget,attackTotalAtk,attackUsedAtk,attackWasPrevented,attackableAsMinion,attackedBy,attackedPlayer,attackedThisPhase,attackingEnemy,attacksDealAdditionalDamage,attacksGainKeywords,attacksLoseKeywords,baseStatOf,baseStatsFromYourHero,basicPowerBy,basicPowerCost,basicPowerIs,basicPowerStatIs,basicThwartOnlyAgainst,basicThwartsIgnore,bindTargets,blankTextBoxForPlayers,blankTextBoxUntil,blanksTextBox,boost,boostAreaIconsOn,boostCardOf,boostCardsFromSet,boostIconsCount,boostIconsOn,buildScenarioDeck,buildWave11Scenario,builtinGameDeps,builtinPackProblems,campaignDefinitionOf,campaignDefinitionProblems,campaignDefinitionsOf,campaignDepsWithPacks,campaignGameWithPacks,campaignInstructionsOf,campaignLogAtLeast,campaignLogCardCounter,campaignLogCardRecorded,campaignLogCards,campaignLogHas,campaignLogIsSet,campaignLogValue,campaignModularPickProblem,canAttachTo,canAttachToCategory,canChangeForm,canEnterPlay,canFlip,canPayResources,canPlayFromHand,canRemoveThreatFrom,canSpendDifferentResources,canTakeStatus,canUseBasicPower,cancelBoostedActivation,cancelConsequentialDamage,cancelIt,cancelRevealedCard,cancelWhenRevealed,cannotActivate,cannotAttach,cannotBeAttachedUnlessInPlay,cannotBeCanceled,cannotBeDefeated,cannotBeHealed,cannotBeReadiedByPlayerCards,cannotChangeFormUntil,cannotChooseOption,cannotChooseToDiscard,cannotEnterPlay,cannotFlip,cannotHaveStatus,cannotLeavePlay,cannotMakeBasicAttacks,cannotReadyUntil,cannotRecover,cannotResolveTriggeredAbilities,cannotThwart,cardIdsIn,cardPoolWithPack,cardPoolWithPacks,cards,cardsFrom,cardsOfComposedSets,centralMainScheme,changeAdditionalForm,changeForm,changeFormCost,changeToHeroFormNamed,changeToHeroFormWithTrait,changeToOtherHeroForm,changeVillainForm,characterDidThisPhase,checkModularPickCount,checkPackCampaigns,checkPlayableDifficultySets,choiceFoundNothing,chooseCardCost,chooseCardType,chooseCards,chooseEncounterCardType,chooseGroup,chooseMainSchemeStages,chooseNumber,chooseOne,chooseOneBy,chooseOptions,choosePlayer,chooseTarget,chooseTargetCost,chosen,chosenGroup,chosenModularSetIds,chosenPlayer,chosenVillain,civilWarGameModes,civilWarModularSets,civilWarSidesOffer,communityDeckUrl,communityDecks,competitiveOnly,competitiveOnlyTexts,completeMainScheme,confuse,consideredToHaveHitPoints,consideredToHaveResourceIcon,constant,controllerOf,coreScenario,costIf,costModifier,costsPayableByAnyPlayer,countAmong,countBoostIcons,countOf,countTowardStartingHand,counterLimit,countersAsResource,countersOn,countsAs,coveredByEngineRule,createGameArea,createScenarioArea,createScenarioPlayArea,customContentOfPacks,customContentProblems,customModularPickProblem,customModularSetChoices,customScenarioProblems,damageAnEnemy,damageCardsCost,damageOn,damageSharedVillain,damageThisCardCost,damagedAtLeast,dealAsEncounterCard,dealDamage,dealDamageCost,dealDamageToChosenCost,dealEncounterCard,dealEncounterCardsCost,dealEncounterCardsToChosenPlayerCost,dealHiddenPiles,dealIndirectDamage,dealPoolOneAtATime,dealtEncounterCards,dealtEncounterCount,deckCountOf,deckDiscardIconsCount,declareDefender,defeat,defeatExcessDamage,defeatedWithExcessConsequentialDamage,defeatedWithExcessDamage,defeatingPlayer,defenderDefForAttack,defendingCharacter,defendsWithoutExhausting,defineAbilities,defineBuiltinPack,definePackAbilities,detach,difficultySetAlternativesFor,discard,discardAtRandom,discardBoostCard,discardCardsCost,discardChosenFromEncounterDeckCost,discardDeckUntil,discardEncounterCards,discardEncounterUntil,discardFacedownBoostCards,discardFromHand,discardFromHandCombinedCost,discardFromHandCost,discardRandomFromHandCost,discardStatusCost,discardStatusesTokensAndAttachments,discardThis,discardTopOfDeckCost,discardTopOfEncounterDeckCost,discardTuckedCost,discardUpToTopOfDeckCost,distinctAspectsOf,distinctTraitsOf,divide,doesNotExhaustToDefend,doubleDamageTaken,doubleNextCardSpent,doubleStat,doublesResourcesGeneratedForThisCard,doublesResourcesWhilePayingFor,draw,drawUpTo,droneFromDeck,dslFeatures,duringPlayerPhase,duringTurnOf,duringVillainPhaseStepOne,each,eachGroupInPod,eachPlayer,eachPlayerCost,eachTimeUntil,eitherCost,encounterCard,encounterCards,encounterCardsOf,encounterIconsInPlay,encounterLookDiscardCost,encounterSetAside,encounterSetOf,endGame,enemyActivates,enemyAttack,enemyAttacksEnemy,enemyAttacksYouCost,enemyCanAttackAnother,enemyLeader,enemyScheme,enemyTeam,enemyTeamChooses,enemyToAttack,engage,engagedPlayerOf,engineOnlyDslProblems,entersPlayExhausted,eventAmount,eventDamageTaken,eventDamageTakenBy,eventDealt,eventKindIs,eventPlayer,eventResult,eventSource,eventSourceEnemy,eventTarget,eventTargetsTogether,exactlyDefeated,exactlyDefeatedByPower,excludedFromAllyLimit,excludedFromPlayerSideSchemeLimit,exhaust,exhaustCardsCost,exhaustEachCost,exhaustThis,exhaustYourHero,exists,expertSetReplaceable,extraBoostCardsForVillain,faceNamed,fieldsIn,finalStep,find,findCard,firstAttackThisTurn,firstPlayer,firstPlayerAction,firstPlayerPicksFromHand,firstRevealGainsSurge,firstThisRound,flatten,flipCard,flipThis,focusedMainScheme,forAnIdentityNotInThisGame,forEachCard,forEachPlayer,forEachPlayerInChosenOrder,forcedAction,forcedInterrupt,forcedResponse,formChangeCost,friendlyCharacterAttacks,fromAnyAspect,gainFromHiddenPile,gainKeywordUntil,gainTraitUntil,gainTraitsOfUntil,gainsAbility,gainsIcon,gainsKeyword,gainsKeywordX,gainsKeywordsOf,gainsTrait,gainsTraitsOf,gameAreasSplit,gameDepsWithPack,gameDepsWithPacks,genePoolThreatOffer,generatesAmount,generatesPerCard,gets,giveBasicPowerBoostCard,giveBoostCard,giveBoostCardsCost,giveHeldBoostCard,giveStatus,giveStatusCost,giveTough,gmwBalancedHiddenFields,grantAdditionalMulligans,grantOwnedCards,grantedTo,grantingCard,grantsPreparation,groupPlayerCount,handCountOf,handSizeOf,hasAttachment,hasNamedResource,hasPrintedBoostAbility,hasStatus,hasTaggedAbility,hasTrait,heal,healCost,healYourIdentityCost,heroAction,heroInterrupt,heroNoCharacterIsTitledAs,heroResource,heroResponse,hiddenPileCount,highestStatAmong,hitPointsOf,holdMinion,horsemanSidesOffer,host,identifyMole,identityOf,ifElse,ifThen,ignoreAbilities,ignoreBoost,ignoreBoostAbilities,ignoreBoostForThisAttack,ignores,ignoresRetaliate,inAdditionalForm,inCampaign,inCampaignLogField,inCompetitiveMode,inDiscard,inEncounterSet,inForm,inGroup,inHand,inMode,inPlay,inPlayAreaOf,inScenarioPlayArea,inVictoryDisplay,increaseDamage,increaseDamageTaken,increaseNextCardCost,infinitesGenePoolThreatRecommendation,instead,interrupt,isAlterEgo,isAttached,isBaseEncounterSetId,isBaseScenarioId,isConfused,isHero,isModularChoice,isNotReadyCard,isPlainJson,isScenarioSpecificSet,isStunned,isUnscriptedAbilityIssue,joinGameArea,keepsExhausted,lastPlayedThisRound,leavingPlayLoses,limitPerPaidCard,logCardList,logCardRef,logFlag,logNumber,logOption,logText,lookAt,lookAtAndRearrange,lookAtTopOfScenarioDeckThenPlace,loseKeywordUntil,loseTraitUntil,losesIcon,losesKeyword,made,mainSchemeAdvancedBy,mainSchemeMarkedBy,mainSchemePicksOffer,mainSchemeStageGist,mainSchemeStageNumber,mainSchemeStagesOffer,mainSchemeStagesProblem,max,maxDamageTaken,maxOnePerTriggeringInstance,maxSustainedDamage,mayLookAtTopOfEncounterDeckUntil,mergeCosts,mergeRegistries,min,minDamageTaken,modifyAttack,modifyBasicPower,modifyCardEffect,modifyCardEffectsUntil,modifyConsequentialDamage,modifyStat,modifyStatOf,modifyThwart,modularPickCountProblem,modularPickCountRange,modularPickProblem,modularSetContents,mojoCheckedOffSets,mojoModularSetPicks,mostCommonHandTypeCount,moveActiveCounterToNextInRow,moveActiveCounterToNextVillain,moveBoostCards,moveCards,moveCardsInto,moveCounters,moveThreat,multiplyStat,named,namedByTeamUpOf,nextAfter,not,notCountedTowardHandSize,notMatching,notOfChosenCardType,obligation,ofChosenCardType,ofClassification,ofIdentitySetTitled,ofTeamUpSet,offersEasierStart,offersGenePoolThreat,on,onChosenMainScheme,oncePerPaidCard,oncePerPhase,oncePerPhasePerEventPlayer,oncePerRound,oncePerRoundPerPlayer,oneCopyOf,onlyCharacterRemovesThreat,onlySourceRemovesThreat,onlyThwartsRemoveThreat,opsOfKind,option,otherFaceOf,otherPlayers,outsideFact,overpaidWhenPlayed,ownScriptsOf,ownerOf,packCampaignDefinitionOf,packCampaignDefinitions,packCampaignRecords,packCampaignsOf,packEncounterSetRecords,packModularSetChoices,obligation as packObligation,packScenarioOffer,packScenarioRecords,paidCards,paidInPlayCards,paidType,paidTypeCount,paidUsingResourceFrom,paidWith,paidWithCard,paidWithOnly,paidWithResourceCard,pairCards,pairLimit,partOf,passEncounterCard,payPrintedCostOf,payingFor,perHero,placeCountersCost,placeDamage,placeOnTopOrBottom,placeOnTopOrBottomOfPlayerDeck,placeThreat,placeThreatOnSharedScheme,playFromDeckIgnoringCost,playFromDeckReducingCost,playFromHandIgnoringCost,playFromHandReducingCost,playFromSeparateDeck,playNote,playOnlyIf,playSetAside,playTuckedCard,playWithTopOfDeckFaceup,playWithTopOfEncounterDeckFaceup,playableAttachments,playableScenario,playableScenarioOffer,playableScenarioWithCustom,playableStarterDeckSetup,playableTopOfDeck,playableTucked,playedThisPhase,playedThisRound,playedThisTurn,playedVia,playerOrElse,playersCannotDiscard,playersWhere,preparation,preventAllDamageTo,preventConsequentialDamage,preventDamage,preventThreat,printedBoostAreaIconsOn,printedCostAtLeast,printedCostOf,printedForm,printedHpNumeralOf,printedHpOf,printedResourcesInHandAs,printedResourcesOf,printedStatOf,printsAbility,product,publishIssues,putIntoPlay,putIntoPlayAsHost,putIntoPlayFacedown,putIntoPlayFromSetAside,putLinkedAllyIntoPlay,putMainSchemeStageIntoPlay,query,raiseMoment,randomCivilWarScenario,reachableFromPod,reaching,readPackInput,readsAtkOf,readsPaymentTypesOf,ready,readyCardsCost,recordInCampaignLog,reduceCostOfCards,reduceCostToPlay,reduceDamage,reduceDamageTo,reduceNextCardCost,reducesAttackDamageTaken,refCount,refMatches,remainingHpCompare,remainingHpOf,removeAccelerationToken,removeAllCounters,removeAllCountersFrom,removeAnAccelerationToken,removeCounter,removeCountersAmong,removeCountersFrom,removeEachCounterFrom,removeFromCampaign,removeMainSchemeStage,removeMainSchemeStages,removeStatus,removeThreat,removeThreatCost,removeThreatFromAScheme,removeThreatFromChosenCost,removeThreatUpToCost,removeUpToCounters,removeVillain,removedFromGameCards,reorderCards,repeatTimes,repeatWhile,replaceAttachHost,replaceBoostCount,replaceLeaveDestination,replaceNextVillainPhaseWithPlayerPhase,replaceStatus,replaceTuckHost,reportFact,resetHitPoints,resolveAttackAgainst,resolveBoostAbilitiesOf,resolveForcedInterruptOf,resolveForcedResponseCost,resolveForcedResponseOf,resolveModes,resolveOneTagged,resolvePreparationsOf,resolveSetups,resolveSpecialCost,resolveSpecials,resolveSpecialsOf,resolveTagged,resolveWhenDefeatedOf,resolveWhenRevealedOf,resource,resourceTypesOf,resourcesGeneratedAsWild,resourcesPaidBy,response,restrictedLimit,retargetAttack,retargetPlayerAttack,returnEachToHandCost,returnToHandAfterResolving,returnToHandCost,revealCard,revealEncounterCard,revealFromSetAsideModularSet,revealHeldMinion,revealHiddenPile,revealInstead,revealMainSchemeStage,revealNextVillainStage,revealSetAside,revealTopOfScenarioDeck,revealTopOfSeparateDeck,revealedFromEncounterDeck,revealedPileCardCount,rotateEngagement,rule,sameClassificationAs,scaled,scenarioArea,scenarioAreaCount,scenarioDeck,scenarioGameSetIds,scenarioSideClause,scenarioWithPacks,scenarioWithVillain,schemeStartedByAttackBoost,schemeThreatOn,searchAndReveal,searchCollection,searchEncounterIntoPlayCost,seedHiddenPiles,selectCards,self,sentence,separateDeckCards,separateDeckCountOf,setActiveVillain,setAside,setAsideDestination,setAsideModularSetCount,setDefeatDestination,setRemainingHitPoints,setVar,setVillainAside,setVillainSide,setup,sha256Hex,sharesTitleWith,sharesTraitWith,sharesTraitWithHeroOf,shuffleDeck,shuffleEncounterDeck,shuffleInSetAsideModularSet,shuffleIntoSeparateDeck,shuffleMainSchemeStageGroup,shuffleMainSchemeStages,shuffleSeparateDeck,shuffleTopOfSeparateDeckIntoEncounterDeck,sitOut,skipNextVillainPhase,skippedCommunityDecks,skirmishOffer,special,spend,spendChosen,spendDifferentResources,spendEqualTo,spendPrinted,spendResources,spendSameType,spendUpTo,spendX,spendXResources,spendableForAnyPlayer,spendableForPlayersWhere,spendableFromTucked,splitIssues,standardSetReplaceable,starIconsOn,starterDeckSetup,statCompare,statOf,stateCheck,stateCheckFromEntering,statusCount,statusLimit,staysInHand,stillCountedByDiscarder,stun,sum,superlative,superlativePlayer,surge,swapCards,swapIdentity,swapMainScheme,swapVillain,swapVillainByTrait,tagged,taggedAbilitiesOn,takeAnyDamageCost,takeControl,takeDamage,takeDamageCost,takeIndirectDamageCost,takeIntoHand,takesConsequentialDamage,takesDamageOnlyFrom,takesDamageOnlyFromAttacks,takesFirstTurn,teamUpCharacter,teamUpCharacters,textBoxCannotBeBlanked,thatAttackGainsKeywords,thatPlayer,theAccused,theAffectedCard,theMainScheme,theMole,theVillain,thisCardGenerates,thisGroup,threatAtLeast,threatOn,thwart,thwartAScheme,thwartInProgress,thwartTarget,titled,toScenarioDeck,topOfDeck,topOfDeckIsFaceup,topOfDeckMatches,topOfEncounterDeckIsFaceup,topOfEncounterDeckMatches,topOfEncounterDeckShowsIcons,topOfEncounterDeckShowsNoIcons,topOfYourDeckHas,totalPrintedCost,totalPrintedResources,totalStatOf,traitEncounterDeck,traitNumber,treatAsAlly,treatAsMinion,treatAttachedAllyAsMinion,treatAttachedHeroAsMinion,treatAttachedMinionAsAlly,treatAttachedVillainAsMinion,treatSelfAsAlly,tuckCards,tuckLimit,tuckedCount,tuckedUnder,tuckedUnderRef,turnFacedown,uncancellable,undefendedAttack,upgradesCannotBeRemoved,useThwInsteadOfAtk,usingBasicPower,validateBuiltinPack,validateDefinition,validatePack,valueAtLeast,valueAtMost,valueEquals,varAtLeast,varFor,varOf,victoryCondition,victoryDisplayCards,victoryDisplayCount,villainChoiceOf,villainChoiceOffer,villainOnSide,villainOptionOf,villainStageNumberOf,wave10Scenario,wave10StarterDeckSetup,wave11Scenario,wave11ScenarioRecord,wave11StarterDeckSetup,wave1ReprintPairs,wave1Scenario,wave1StarterDeckSetup,wave2ReprintPairs,wave2Scenario,wave2StarterDeckSetup,wave3ReprintPairs,wave3Scenario,wave3StarterDeckSetup,wave7Scenario,wave7StarterDeckSetup,wave8Scenario,wave8StarterDeckSetup,wave9Scenario,wave9StarterDeckSetup,when,whenCompleted,whenDefeated,whenRevealed,whenRevealedAlterEgo,whenRevealedHero,whenSpentGenerate,whileOnChosenMainScheme,whileTucked,withFewestCounters,withModularSetContents,withMostCounters,you,youAre,youAreNamed,youHaveTrait,yourIdentity,yourLeader,yourMainScheme,yourTeam,zone,zoneCountOf};
|
package/dist/mc-pack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{src_exports}from"./chunks/chunk-
|
|
2
|
+
import{src_exports}from"./chunks/chunk-HVUCR22H.js";import{formatImportReport,importMarvelCdbPack}from"./chunks/chunk-PB6KXNXP.js";import{PackBuildError,assemblePack,buildPack,loadPackSource}from"./chunks/chunk-URLIN52M.js";import{publishIssues,readPackInput,splitIssues,validatePack}from"./chunks/chunk-2XS47E3T.js";import{SMOKE_BASE_DECK,SMOKE_SCENARIOS,smokeTestPack}from"./chunks/chunk-DKCXOHRM.js";import"./chunks/chunk-A3WBGQ2N.js";import"./chunks/chunk-JYDEFRIZ.js";import{existsSync}from"node:fs";import{join,resolve}from"node:path";import{createJiti}from"jiti";function sdkModuleNames(){let published="@champions-digital-game/mod-sdk";return published&&published!=="@mc/mod-sdk"?["@mc/mod-sdk",published]:["@mc/mod-sdk"]}function packModuleImporter(){let virtualModules=Object.fromEntries(sdkModuleNames().map(name=>[name,src_exports]));return path=>createJiti(path,{virtualModules,fsCache:!1,moduleCache:!1,interopDefault:!1}).import(path)}var EXIT_OK=0,EXIT_PACK_PROBLEM=1,EXIT_USAGE=2,consoleIo={out:line=>process.stdout.write(`${line}
|
|
3
3
|
`),err:line=>process.stderr.write(`${line}
|
|
4
4
|
`)},USAGE=`mc-pack: build, check and test Marvel Champions Digital content packs
|
|
5
5
|
|
|
@@ -23,4 +23,4 @@ validate, build and test run the pack's own code: they import its abilities/inde
|
|
|
23
23
|
user's access to files, the network and the environment. Run them only on a pack you trust, or in a sandbox (a CI
|
|
24
24
|
job with no secrets).
|
|
25
25
|
|
|
26
|
-
Exit codes: 0 success, 1 the pack has a problem, 2 usage error.`,UsageError=class extends Error{},VALUE_FLAGS=new Set(["out","games","scenario","max-commands","id","app"]),BOOLEAN_FLAGS=new Set(["allow-unscripted","publish","help","version"]);function parseArgs(argv){let positional=[],flags=new Map;for(let i=0;i<argv.length;i++){let arg=argv[i];if(arg==="-h")flags.set("help",!0);else if(arg==="-v")flags.set("version",!0);else if(arg.startsWith("--")){let eq=arg.indexOf("="),name=eq<0?arg.slice(2):arg.slice(2,eq);if(BOOLEAN_FLAGS.has(name)){if(eq>=0)throw new UsageError(`--${name} takes no value`);flags.set(name,!0)}else if(VALUE_FLAGS.has(name)){let value2=eq>=0?arg.slice(eq+1):argv[++i];if(value2===void 0||value2==="")throw new UsageError(`--${name} needs a value`);flags.set(name,value2)}else throw new UsageError(`unknown option --${name}`)}else positional.push(arg)}return{positional,flags}}var value=(parsed,name)=>{let v=parsed.flags.get(name);return typeof v=="string"?v:void 0};function positiveInt(parsed,name){let raw=value(parsed,name);if(raw===void 0)return;let n=Number(raw);if(!Number.isInteger(n)||n<1)throw new UsageError(`--${name} must be a whole number of at least 1`);return n}function packDir(parsed,command){let[dir,...extra]=parsed.positional;if(dir===void 0)throw new UsageError(`${command} needs a folder`);if(extra.length>0)throw new UsageError(`${command} takes one folder, got ${parsed.positional.length}`);let full=resolve(dir);if(!existsSync(full))throw new UsageError(`${dir}: no such folder`);return full}function allowOnly(parsed,command,allowed){for(let name of parsed.flags.keys())if(!allowed.includes(name))throw new UsageError(`${command} does not take --${name}`)}var errorText=error=>error instanceof Error?error.message:String(error);async function loadBuilt(dir){let pack=assemblePack(await loadPackSource(dir,{importModule:packModuleImporter()}));return readPackInput(pack.manifest,pack.files)}function formatIssues(issues){let{defects,unscripted}=splitIssues(issues),lines=[];if(defects.length>0){lines.push(`${defects.length} problem${defects.length===1?"":"s"}:`);for(let issue of defects)lines.push(` ${issue.path}: ${issue.message}`)}if(unscripted.length>0){lines.push(`${unscripted.length} unscripted abilit${unscripted.length===1?"y":"ies"} (write them in abilities/):`);for(let issue of unscripted)lines.push(` ${issue.path}: ${issue.message}`)}return lines}async function validateCommand(parsed,io){allowOnly(parsed,"validate",["allow-unscripted","publish"]);let dir=packDir(parsed,"validate"),pack=await loadBuilt(dir),publish=parsed.flags.has("publish"),draft=existsSync(join(dir,"DRAFT"));publish&&draft&&io.out(`${pack.manifest.id}: a DRAFT, never published; the publish check is skipped`);let issues=[...validatePack(pack),...publish&&!draft?publishIssues(pack.manifest):[]],{defects,unscripted}=splitIssues(issues),name=`${pack.manifest.id}@${pack.manifest.version}`;if(issues.length===0)return io.out(`${name}: valid (${pack.cards.length} cards, ${Object.keys(pack.abilities).length} abilities)`),EXIT_OK;let lines=formatIssues(issues);if(defects.length===0&&parsed.flags.has("allow-unscripted")){io.out(`${name}: valid, ${unscripted.length} abilit${unscripted.length===1?"y":"ies"} to script`);for(let line of lines)io.out(line);return EXIT_OK}io.err(`${name}: invalid`);for(let line of lines)io.err(line);return EXIT_PACK_PROBLEM}async function buildCommand(parsed,io){allowOnly(parsed,"build",["out"]);let dir=packDir(parsed,"build"),out=value(parsed,"out");if(out===void 0)throw new UsageError("build needs --out <dir>");try{let result=await buildPack(dir,resolve(out),{importModule:packModuleImporter()}),{manifest}=result;return io.out(`${manifest.id}@${manifest.version}: built ${result.zipPath}`),io.out(` ${result.zipBytes} bytes, sha256 ${result.zipSha256}`),io.out(` ${manifest.files.length} files, ${manifest.totalBytes} bytes unzipped`),io.out(` requires app ${manifest.requires.app}; DSL features: ${manifest.requires.dslFeatures.join(", ")||"none"}`),EXIT_OK}catch(error){if(!(error instanceof PackBuildError))throw error;io.err("build failed: the pack is invalid");for(let line of formatIssues(error.issues))io.err(line);return EXIT_PACK_PROBLEM}}var describeGame=game=>{let where=game.deck===SMOKE_BASE_DECK?` at ${game.campaign?`${game.campaign}/${game.node} (${game.scenario})`:game.scenario}${game.modularSet?` with ${game.modularSet}`:""}${game.difficulty?`, ${game.difficulty}`:""}`:"",head=` ${game.deck}${where} seed ${game.seed}: `;if(!game.ok)return`${head}FAILED: ${game.error??"unknown error"}`;let played=game.packCardsPlayed.length>0?`; pack cards played or revealed: ${game.packCardsPlayed.join(", ")}`:"";return`${head}${game.outcome??"ended"} in round ${game.rounds} (${game.commands} commands)${played}`};async function testCommand(parsed,io){allowOnly(parsed,"test",["games","scenario","max-commands"]);let dir=packDir(parsed,"test"),scenario=value(parsed,"scenario")??"rhino";if(!SMOKE_SCENARIOS.includes(scenario))throw new UsageError(`--scenario must be one of ${SMOKE_SCENARIOS.join(", ")}`);let games=positiveInt(parsed,"games")??3,maxCommands=positiveInt(parsed,"max-commands"),pack=await loadBuilt(dir),issues=validatePack(pack);if(issues.length>0){io.err(`${pack.manifest.id}: not tested, the pack is invalid (run mc-pack validate)`);for(let line of formatIssues(issues))io.err(line);return EXIT_PACK_PROBLEM}io.out(`${pack.manifest.id}@${pack.manifest.version}: ${games} game(s) per deck, scenario and modular set (Core scenario: ${scenario})`);let result=smokeTestPack(pack,{games,scenario,...maxCommands!==void 0?{maxCommands}:{},onGame:game=>(game.ok?io.out:io.err)(describeGame(game))});for(let note of result.notes)io.out(`note: ${note}`);let failed=result.games.filter(g=>!g.ok).length;return failed>0?(io.err(`${failed} of ${result.games.length} game(s) failed`),EXIT_PACK_PROBLEM):(io.out(`all ${result.games.length} game(s) passed`),EXIT_OK)}async function importCommand(parsed,io){allowOnly(parsed,"import-marvelcdb",["out","id","app"]);let src=packDir(parsed,"import-marvelcdb"),out=value(parsed,"out"),packId=value(parsed,"id"),app=value(parsed,"app"),report=await importMarvelCdbPack(src,{...out!==void 0?{outDir:resolve(out)}:{},...packId!==void 0?{packId}:{},...app!==void 0?{app}:{}}),text=formatImportReport(report);if(!report.normalized||report.validationIssues.length>0)return io.err(text),EXIT_PACK_PROBLEM;if(io.out(text),report.unscriptedIssues.length>0){io.out(`${report.unscriptedIssues.length} abilities to script, listed in abilities/index.ts:`);for(let issue of report.unscriptedIssues)io.out(` ${issue.path}: ${issue.message}`)}return io.out(report.outDir?`written to ${report.outDir}`:"dry run: nothing written (pass --out <dir>)"),EXIT_OK}var COMMANDS={validate:validateCommand,build:buildCommand,test:testCommand,"import-marvelcdb":importCommand};async function runCli(argv,io=consoleIo){let[command,...rest]=argv;try{if(command===void 0||command==="--help"||command==="-h"||command==="help")return io.out(USAGE),command===void 0?EXIT_USAGE:EXIT_OK;if(command==="--version"||command==="-v")return io.out("0.
|
|
26
|
+
Exit codes: 0 success, 1 the pack has a problem, 2 usage error.`,UsageError=class extends Error{},VALUE_FLAGS=new Set(["out","games","scenario","max-commands","id","app"]),BOOLEAN_FLAGS=new Set(["allow-unscripted","publish","help","version"]);function parseArgs(argv){let positional=[],flags=new Map;for(let i=0;i<argv.length;i++){let arg=argv[i];if(arg==="-h")flags.set("help",!0);else if(arg==="-v")flags.set("version",!0);else if(arg.startsWith("--")){let eq=arg.indexOf("="),name=eq<0?arg.slice(2):arg.slice(2,eq);if(BOOLEAN_FLAGS.has(name)){if(eq>=0)throw new UsageError(`--${name} takes no value`);flags.set(name,!0)}else if(VALUE_FLAGS.has(name)){let value2=eq>=0?arg.slice(eq+1):argv[++i];if(value2===void 0||value2==="")throw new UsageError(`--${name} needs a value`);flags.set(name,value2)}else throw new UsageError(`unknown option --${name}`)}else positional.push(arg)}return{positional,flags}}var value=(parsed,name)=>{let v=parsed.flags.get(name);return typeof v=="string"?v:void 0};function positiveInt(parsed,name){let raw=value(parsed,name);if(raw===void 0)return;let n=Number(raw);if(!Number.isInteger(n)||n<1)throw new UsageError(`--${name} must be a whole number of at least 1`);return n}function packDir(parsed,command){let[dir,...extra]=parsed.positional;if(dir===void 0)throw new UsageError(`${command} needs a folder`);if(extra.length>0)throw new UsageError(`${command} takes one folder, got ${parsed.positional.length}`);let full=resolve(dir);if(!existsSync(full))throw new UsageError(`${dir}: no such folder`);return full}function allowOnly(parsed,command,allowed){for(let name of parsed.flags.keys())if(!allowed.includes(name))throw new UsageError(`${command} does not take --${name}`)}var errorText=error=>error instanceof Error?error.message:String(error);async function loadBuilt(dir){let pack=assemblePack(await loadPackSource(dir,{importModule:packModuleImporter()}));return readPackInput(pack.manifest,pack.files)}function formatIssues(issues){let{defects,unscripted}=splitIssues(issues),lines=[];if(defects.length>0){lines.push(`${defects.length} problem${defects.length===1?"":"s"}:`);for(let issue of defects)lines.push(` ${issue.path}: ${issue.message}`)}if(unscripted.length>0){lines.push(`${unscripted.length} unscripted abilit${unscripted.length===1?"y":"ies"} (write them in abilities/):`);for(let issue of unscripted)lines.push(` ${issue.path}: ${issue.message}`)}return lines}async function validateCommand(parsed,io){allowOnly(parsed,"validate",["allow-unscripted","publish"]);let dir=packDir(parsed,"validate"),pack=await loadBuilt(dir),publish=parsed.flags.has("publish"),draft=existsSync(join(dir,"DRAFT"));publish&&draft&&io.out(`${pack.manifest.id}: a DRAFT, never published; the publish check is skipped`);let issues=[...validatePack(pack),...publish&&!draft?publishIssues(pack.manifest):[]],{defects,unscripted}=splitIssues(issues),name=`${pack.manifest.id}@${pack.manifest.version}`;if(issues.length===0)return io.out(`${name}: valid (${pack.cards.length} cards, ${Object.keys(pack.abilities).length} abilities)`),EXIT_OK;let lines=formatIssues(issues);if(defects.length===0&&parsed.flags.has("allow-unscripted")){io.out(`${name}: valid, ${unscripted.length} abilit${unscripted.length===1?"y":"ies"} to script`);for(let line of lines)io.out(line);return EXIT_OK}io.err(`${name}: invalid`);for(let line of lines)io.err(line);return EXIT_PACK_PROBLEM}async function buildCommand(parsed,io){allowOnly(parsed,"build",["out"]);let dir=packDir(parsed,"build"),out=value(parsed,"out");if(out===void 0)throw new UsageError("build needs --out <dir>");try{let result=await buildPack(dir,resolve(out),{importModule:packModuleImporter()}),{manifest}=result;return io.out(`${manifest.id}@${manifest.version}: built ${result.zipPath}`),io.out(` ${result.zipBytes} bytes, sha256 ${result.zipSha256}`),io.out(` ${manifest.files.length} files, ${manifest.totalBytes} bytes unzipped`),io.out(` requires app ${manifest.requires.app}; DSL features: ${manifest.requires.dslFeatures.join(", ")||"none"}`),EXIT_OK}catch(error){if(!(error instanceof PackBuildError))throw error;io.err("build failed: the pack is invalid");for(let line of formatIssues(error.issues))io.err(line);return EXIT_PACK_PROBLEM}}var describeGame=game=>{let where=game.deck===SMOKE_BASE_DECK?` at ${game.campaign?`${game.campaign}/${game.node} (${game.scenario})`:game.scenario}${game.modularSet?` with ${game.modularSet}`:""}${game.difficulty?`, ${game.difficulty}`:""}`:"",head=` ${game.deck}${where} seed ${game.seed}: `;if(!game.ok)return`${head}FAILED: ${game.error??"unknown error"}`;let played=game.packCardsPlayed.length>0?`; pack cards played or revealed: ${game.packCardsPlayed.join(", ")}`:"";return`${head}${game.outcome??"ended"} in round ${game.rounds} (${game.commands} commands)${played}`};async function testCommand(parsed,io){allowOnly(parsed,"test",["games","scenario","max-commands"]);let dir=packDir(parsed,"test"),scenario=value(parsed,"scenario")??"rhino";if(!SMOKE_SCENARIOS.includes(scenario))throw new UsageError(`--scenario must be one of ${SMOKE_SCENARIOS.join(", ")}`);let games=positiveInt(parsed,"games")??3,maxCommands=positiveInt(parsed,"max-commands"),pack=await loadBuilt(dir),issues=validatePack(pack);if(issues.length>0){io.err(`${pack.manifest.id}: not tested, the pack is invalid (run mc-pack validate)`);for(let line of formatIssues(issues))io.err(line);return EXIT_PACK_PROBLEM}io.out(`${pack.manifest.id}@${pack.manifest.version}: ${games} game(s) per deck, scenario and modular set (Core scenario: ${scenario})`);let result=smokeTestPack(pack,{games,scenario,...maxCommands!==void 0?{maxCommands}:{},onGame:game=>(game.ok?io.out:io.err)(describeGame(game))});for(let note of result.notes)io.out(`note: ${note}`);let failed=result.games.filter(g=>!g.ok).length;return failed>0?(io.err(`${failed} of ${result.games.length} game(s) failed`),EXIT_PACK_PROBLEM):(io.out(`all ${result.games.length} game(s) passed`),EXIT_OK)}async function importCommand(parsed,io){allowOnly(parsed,"import-marvelcdb",["out","id","app"]);let src=packDir(parsed,"import-marvelcdb"),out=value(parsed,"out"),packId=value(parsed,"id"),app=value(parsed,"app"),report=await importMarvelCdbPack(src,{...out!==void 0?{outDir:resolve(out)}:{},...packId!==void 0?{packId}:{},...app!==void 0?{app}:{}}),text=formatImportReport(report);if(!report.normalized||report.validationIssues.length>0)return io.err(text),EXIT_PACK_PROBLEM;if(io.out(text),report.unscriptedIssues.length>0){io.out(`${report.unscriptedIssues.length} abilities to script, listed in abilities/index.ts:`);for(let issue of report.unscriptedIssues)io.out(` ${issue.path}: ${issue.message}`)}return io.out(report.outDir?`written to ${report.outDir}`:"dry run: nothing written (pass --out <dir>)"),EXIT_OK}var COMMANDS={validate:validateCommand,build:buildCommand,test:testCommand,"import-marvelcdb":importCommand};async function runCli(argv,io=consoleIo){let[command,...rest]=argv;try{if(command===void 0||command==="--help"||command==="-h"||command==="help")return io.out(USAGE),command===void 0?EXIT_USAGE:EXIT_OK;if(command==="--version"||command==="-v")return io.out("0.49.0"),EXIT_OK;let run=COMMANDS[command];if(!run)throw new UsageError(`unknown command "${command}"`);let parsed=parseArgs(rest);return parsed.flags.has("help")?(io.out(USAGE),EXIT_OK):await run(parsed,io)}catch(error){return error instanceof UsageError?(io.err(`mc-pack: ${error.message}`),io.err("run mc-pack --help for usage"),EXIT_USAGE):(io.err(`mc-pack ${command}: ${errorText(error)}`),EXIT_PACK_PROBLEM)}}process.exitCode=await runCli(process.argv.slice(2));
|
package/dist/testing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SMOKE_BASE_DECK,SMOKE_SCENARIOS,playToOutcome,smokeTestPack}from"./chunks/chunk-
|
|
1
|
+
import{SMOKE_BASE_DECK,SMOKE_SCENARIOS,playToOutcome,smokeTestPack}from"./chunks/chunk-DKCXOHRM.js";import"./chunks/chunk-A3WBGQ2N.js";import"./chunks/chunk-JYDEFRIZ.js";export{SMOKE_BASE_DECK,SMOKE_SCENARIOS,playToOutcome,smokeTestPack};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@champions-digital-game/mod-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "The mod SDK for Marvel Champions Digital content packs: the pack schema, the ability DSL, and the mc-pack validate, build, test and import-marvelcdb tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"card-game",
|
|
@@ -4,5 +4,5 @@ export declare const CORE_ABILITIES: AbilityRegistry;
|
|
|
4
4
|
/** Engine dependencies for games that use Core Set content. */
|
|
5
5
|
export declare const CORE_DEPS: EngineDeps;
|
|
6
6
|
export { CORE_BUILTIN_PACK } from "./pack.js";
|
|
7
|
-
export { coreScenario, encounterCardsOf, resolveModes, starterDeckSetup } from "./setup.js";
|
|
7
|
+
export { coreScenario, encounterCardsOf, modularSetContents, resolveModes, starterDeckSetup, withModularSetContents, } from "./setup.js";
|
|
8
8
|
export type { CoreDifficulty, CorePlayer, CoreScenarioOptions } from "./setup.js";
|
|
@@ -38,6 +38,11 @@ export type CorePlayer = {
|
|
|
38
38
|
readonly deck: readonly string[];
|
|
39
39
|
readonly aspects?: readonly CoreAspect[];
|
|
40
40
|
readonly deckId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The deck's name when the game was set up, opaque like `deckId` and never read by setup: kept so the stats and
|
|
43
|
+
* Past games can name the deck a finished game was played with after it is renamed or deleted (#756).
|
|
44
|
+
*/
|
|
45
|
+
readonly deckName?: string;
|
|
41
46
|
};
|
|
42
47
|
export interface CoreScenarioOptions {
|
|
43
48
|
readonly difficulty?: CoreDifficulty;
|
|
@@ -112,6 +117,27 @@ export declare function modularSetupCardIds(setIds: readonly string[], pool: rea
|
|
|
112
117
|
* other scenarios", so every builder asks this of the sets it shuffles in.
|
|
113
118
|
*/
|
|
114
119
|
export declare function setSeparateDecks(setIds: readonly string[]): NonNullable<GameSetupConfig["scenarioDecks"]>;
|
|
120
|
+
/**
|
|
121
|
+
* What a modular set adds to a game, built the way the later waves' builders build a counted modular: its encounter
|
|
122
|
+
* cards with a double-sided card dealt once (its front), the Setup-keyword cards that begin in play
|
|
123
|
+
* (`modularSetupCardIds`), the player-typed cards with an encounter back it owns, and the separate decks it brings
|
|
124
|
+
* (`setSeparateDecks`, the Infinity Stones). The "Allow extra modular sets" house rule (#761) adds sets the builders
|
|
125
|
+
* refuse to count; `playableScenario` adds their contents with this, ahead of its set-dependent setup options.
|
|
126
|
+
*/
|
|
127
|
+
export declare function modularSetContents(setIds: readonly string[], pool?: readonly AnyCard[]): {
|
|
128
|
+
encounterDeck: CardId[];
|
|
129
|
+
scenarioDecks: NonNullable<GameSetupConfig["scenarioDecks"]>;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* `config` with these sets' contents (`modularSetContents`) added: the encounter cards on top of the deck and the
|
|
133
|
+
* separate decks (the Infinity Stones, set aside facedown) merged into `scenarioDecks`. Where a scenario's villains
|
|
134
|
+
* each carry their own deck, the first villain's takes the cards (as a set an added rule shuffles in does); otherwise
|
|
135
|
+
* the deck. The engine shuffles at the deal, so the cards mix in like any others.
|
|
136
|
+
*/
|
|
137
|
+
export declare function withModularSetContents(config: GameSetupConfig, extra: {
|
|
138
|
+
readonly encounterDeck: readonly CardId[];
|
|
139
|
+
readonly scenarioDecks?: GameSetupConfig["scenarioDecks"];
|
|
140
|
+
}): GameSetupConfig;
|
|
115
141
|
/**
|
|
116
142
|
* Refuses an optional setup rule the scenario does not print, rather than building the game without it: a player who
|
|
117
143
|
* asked for Tower Defense's setup damage (MC21 p. 11) at another scenario gets an error, not a silently easier game.
|
|
@@ -2480,7 +2480,6 @@ export declare const on: {
|
|
|
2480
2480
|
readonly what?: TargetQuery;
|
|
2481
2481
|
readonly inDiscard?: boolean;
|
|
2482
2482
|
}) => EventPattern;
|
|
2483
|
-
/** "When/After X is defeated"; `byYou`: "after *you* defeat a minion". */
|
|
2484
2483
|
/**
|
|
2485
2484
|
* "After Abjuration prevents 2 or more damage from a single attack" (docs/phase7-wave4.md §3.20): this card prevented
|
|
2486
2485
|
* damage — by its `preventAllDamageTo` constant or a `preventDamage` effect of its own. `fromAttack`: the damage was an
|
|
@@ -2490,6 +2489,14 @@ export declare const on: {
|
|
|
2490
2489
|
readonly fromAttack?: boolean;
|
|
2491
2490
|
readonly atLeast?: number;
|
|
2492
2491
|
}) => EventPattern;
|
|
2492
|
+
/**
|
|
2493
|
+
* "When/After X is defeated". `byYou`: "after *you* defeat a minion" is the player's own doing: their identity (or an
|
|
2494
|
+
* event, or upgrade not on another friendly character) defeated it, **not** an ally, support or other card (RRG 1.8 "You, Your",
|
|
2495
|
+
* p. 49: a game function "you" perform resolves as if the identity performed it; FFG ruling January 24, 2025
|
|
2496
|
+
* (Change of Fortune): an event a player plays counts as the identity). An ally's attack, thwart or own ability
|
|
2497
|
+
* damage is the ally's, so a card that does mean "a character you control" names its own `sourceIs` (it overrides
|
|
2498
|
+
* this one: `{ ...on.defeated(q, { byYou: true }), sourceIs: ... }`; issue #817).
|
|
2499
|
+
*/
|
|
2493
2500
|
readonly defeated: (what: Who, opts?: {
|
|
2494
2501
|
readonly byYou?: boolean;
|
|
2495
2502
|
/**
|
|
@@ -2518,9 +2525,8 @@ export declare const on: {
|
|
|
2518
2525
|
/**
|
|
2519
2526
|
* "After [X] (or an event you play) defeats a minion or side scheme" (Small but Mighty, 13001a; docs/phase7-
|
|
2520
2527
|
* wave2.md §17.2): matches both `characterDefeated` and `schemeDefeated` by *source* — which card dealt the
|
|
2521
|
-
* defeating damage or removed the last threat — not by player. `on.defeated({ byYou: true })`
|
|
2522
|
-
*
|
|
2523
|
-
* `source` should therefore name the card(s), not just `controller: "you"` alone.
|
|
2528
|
+
* defeating damage or removed the last threat — not by player. `on.defeated({ byYou: true })` is the
|
|
2529
|
+
* identity-or-extension reading of "you defeat" (an ally's defeat is not heard); this one names the card(s) itself.
|
|
2524
2530
|
*/
|
|
2525
2531
|
readonly defeats: (source: TargetQuery) => EventPattern;
|
|
2526
2532
|
/**
|
|
@@ -2528,7 +2534,9 @@ export declare const on: {
|
|
|
2528
2534
|
* distinct trigger event from `defeated`, which is characters only. "When attached scheme is defeated"
|
|
2529
2535
|
* (Followed, `cap` pack): `on.schemeDefeated("host")`.
|
|
2530
2536
|
*/
|
|
2531
|
-
readonly schemeDefeated: (what: Who
|
|
2537
|
+
readonly schemeDefeated: (what: Who, opts?: {
|
|
2538
|
+
readonly byYou?: boolean;
|
|
2539
|
+
}) => EventPattern;
|
|
2532
2540
|
/**
|
|
2533
2541
|
* "After the last threat is removed from this scheme" (docs/phase7-wave7.md §3.34): a removal that took `what` from
|
|
2534
2542
|
* some threat to none. The way a permanent side scheme answers reaching no threat without being defeated: RRG 1.8
|
|
@@ -3411,7 +3419,6 @@ export declare const when: {
|
|
|
3411
3419
|
readonly what?: TargetQuery;
|
|
3412
3420
|
readonly inDiscard?: boolean;
|
|
3413
3421
|
}) => EventPattern;
|
|
3414
|
-
/** "When/After X is defeated"; `byYou`: "after *you* defeat a minion". */
|
|
3415
3422
|
/**
|
|
3416
3423
|
* "After Abjuration prevents 2 or more damage from a single attack" (docs/phase7-wave4.md §3.20): this card prevented
|
|
3417
3424
|
* damage — by its `preventAllDamageTo` constant or a `preventDamage` effect of its own. `fromAttack`: the damage was an
|
|
@@ -3421,6 +3428,14 @@ export declare const when: {
|
|
|
3421
3428
|
readonly fromAttack?: boolean;
|
|
3422
3429
|
readonly atLeast?: number;
|
|
3423
3430
|
}) => EventPattern;
|
|
3431
|
+
/**
|
|
3432
|
+
* "When/After X is defeated". `byYou`: "after *you* defeat a minion" is the player's own doing: their identity (or an
|
|
3433
|
+
* event, or upgrade not on another friendly character) defeated it, **not** an ally, support or other card (RRG 1.8 "You, Your",
|
|
3434
|
+
* p. 49: a game function "you" perform resolves as if the identity performed it; FFG ruling January 24, 2025
|
|
3435
|
+
* (Change of Fortune): an event a player plays counts as the identity). An ally's attack, thwart or own ability
|
|
3436
|
+
* damage is the ally's, so a card that does mean "a character you control" names its own `sourceIs` (it overrides
|
|
3437
|
+
* this one: `{ ...on.defeated(q, { byYou: true }), sourceIs: ... }`; issue #817).
|
|
3438
|
+
*/
|
|
3424
3439
|
readonly defeated: (what: Who, opts?: {
|
|
3425
3440
|
readonly byYou?: boolean;
|
|
3426
3441
|
/**
|
|
@@ -3449,9 +3464,8 @@ export declare const when: {
|
|
|
3449
3464
|
/**
|
|
3450
3465
|
* "After [X] (or an event you play) defeats a minion or side scheme" (Small but Mighty, 13001a; docs/phase7-
|
|
3451
3466
|
* wave2.md §17.2): matches both `characterDefeated` and `schemeDefeated` by *source* — which card dealt the
|
|
3452
|
-
* defeating damage or removed the last threat — not by player. `on.defeated({ byYou: true })`
|
|
3453
|
-
*
|
|
3454
|
-
* `source` should therefore name the card(s), not just `controller: "you"` alone.
|
|
3467
|
+
* defeating damage or removed the last threat — not by player. `on.defeated({ byYou: true })` is the
|
|
3468
|
+
* identity-or-extension reading of "you defeat" (an ally's defeat is not heard); this one names the card(s) itself.
|
|
3455
3469
|
*/
|
|
3456
3470
|
readonly defeats: (source: TargetQuery) => EventPattern;
|
|
3457
3471
|
/**
|
|
@@ -3459,7 +3473,9 @@ export declare const when: {
|
|
|
3459
3473
|
* distinct trigger event from `defeated`, which is characters only. "When attached scheme is defeated"
|
|
3460
3474
|
* (Followed, `cap` pack): `on.schemeDefeated("host")`.
|
|
3461
3475
|
*/
|
|
3462
|
-
readonly schemeDefeated: (what: Who
|
|
3476
|
+
readonly schemeDefeated: (what: Who, opts?: {
|
|
3477
|
+
readonly byYou?: boolean;
|
|
3478
|
+
}) => EventPattern;
|
|
3463
3479
|
/**
|
|
3464
3480
|
* "After the last threat is removed from this scheme" (docs/phase7-wave7.md §3.34): a removal that took `what` from
|
|
3465
3481
|
* some threat to none. The way a permanent side scheme answers reaching no threat without being defeated: RRG 1.8
|
|
@@ -4342,7 +4358,6 @@ export declare const after: {
|
|
|
4342
4358
|
readonly what?: TargetQuery;
|
|
4343
4359
|
readonly inDiscard?: boolean;
|
|
4344
4360
|
}) => EventPattern;
|
|
4345
|
-
/** "When/After X is defeated"; `byYou`: "after *you* defeat a minion". */
|
|
4346
4361
|
/**
|
|
4347
4362
|
* "After Abjuration prevents 2 or more damage from a single attack" (docs/phase7-wave4.md §3.20): this card prevented
|
|
4348
4363
|
* damage — by its `preventAllDamageTo` constant or a `preventDamage` effect of its own. `fromAttack`: the damage was an
|
|
@@ -4352,6 +4367,14 @@ export declare const after: {
|
|
|
4352
4367
|
readonly fromAttack?: boolean;
|
|
4353
4368
|
readonly atLeast?: number;
|
|
4354
4369
|
}) => EventPattern;
|
|
4370
|
+
/**
|
|
4371
|
+
* "When/After X is defeated". `byYou`: "after *you* defeat a minion" is the player's own doing: their identity (or an
|
|
4372
|
+
* event, or upgrade not on another friendly character) defeated it, **not** an ally, support or other card (RRG 1.8 "You, Your",
|
|
4373
|
+
* p. 49: a game function "you" perform resolves as if the identity performed it; FFG ruling January 24, 2025
|
|
4374
|
+
* (Change of Fortune): an event a player plays counts as the identity). An ally's attack, thwart or own ability
|
|
4375
|
+
* damage is the ally's, so a card that does mean "a character you control" names its own `sourceIs` (it overrides
|
|
4376
|
+
* this one: `{ ...on.defeated(q, { byYou: true }), sourceIs: ... }`; issue #817).
|
|
4377
|
+
*/
|
|
4355
4378
|
readonly defeated: (what: Who, opts?: {
|
|
4356
4379
|
readonly byYou?: boolean;
|
|
4357
4380
|
/**
|
|
@@ -4380,9 +4403,8 @@ export declare const after: {
|
|
|
4380
4403
|
/**
|
|
4381
4404
|
* "After [X] (or an event you play) defeats a minion or side scheme" (Small but Mighty, 13001a; docs/phase7-
|
|
4382
4405
|
* wave2.md §17.2): matches both `characterDefeated` and `schemeDefeated` by *source* — which card dealt the
|
|
4383
|
-
* defeating damage or removed the last threat — not by player. `on.defeated({ byYou: true })`
|
|
4384
|
-
*
|
|
4385
|
-
* `source` should therefore name the card(s), not just `controller: "you"` alone.
|
|
4406
|
+
* defeating damage or removed the last threat — not by player. `on.defeated({ byYou: true })` is the
|
|
4407
|
+
* identity-or-extension reading of "you defeat" (an ally's defeat is not heard); this one names the card(s) itself.
|
|
4386
4408
|
*/
|
|
4387
4409
|
readonly defeats: (source: TargetQuery) => EventPattern;
|
|
4388
4410
|
/**
|
|
@@ -4390,7 +4412,9 @@ export declare const after: {
|
|
|
4390
4412
|
* distinct trigger event from `defeated`, which is characters only. "When attached scheme is defeated"
|
|
4391
4413
|
* (Followed, `cap` pack): `on.schemeDefeated("host")`.
|
|
4392
4414
|
*/
|
|
4393
|
-
readonly schemeDefeated: (what: Who
|
|
4415
|
+
readonly schemeDefeated: (what: Who, opts?: {
|
|
4416
|
+
readonly byYou?: boolean;
|
|
4417
|
+
}) => EventPattern;
|
|
4394
4418
|
/**
|
|
4395
4419
|
* "After the last threat is removed from this scheme" (docs/phase7-wave7.md §3.34): a removal that took `what` from
|
|
4396
4420
|
* some threat to none. The way a permanent side scheme answers reaching no threat without being defeated: RRG 1.8
|
|
@@ -11,7 +11,7 @@ export { WAVE8_BUILTIN_PACKS } from "./wave8/index.js";
|
|
|
11
11
|
export { WAVE9_BUILTIN_PACKS } from "./wave9/index.js";
|
|
12
12
|
export { WAVE10_BUILTIN_PACKS } from "./wave10/index.js";
|
|
13
13
|
export { WAVE11_BUILTIN_PACKS } from "./wave11/index.js";
|
|
14
|
-
export { CORE_ABILITIES, CORE_BUILTIN_PACK, CORE_DEPS, coreScenario, encounterCardsOf, resolveModes, starterDeckSetup, } from "./core/index.js";
|
|
14
|
+
export { CORE_ABILITIES, CORE_BUILTIN_PACK, CORE_DEPS, coreScenario, encounterCardsOf, modularSetContents, withModularSetContents, resolveModes, starterDeckSetup, } from "./core/index.js";
|
|
15
15
|
export type { CoreDifficulty, CorePlayer, CoreScenarioOptions } from "./core/index.js";
|
|
16
16
|
export { WAVE1_ABILITIES, WAVE1_BUILTIN_PACKS, WAVE1_DEPS, WAVE1_REPRINT_ABILITIES, wave1ReprintPairs, wave1Scenario, wave1StarterDeckSetup, } from "./wave1/index.js";
|
|
17
17
|
export type { Wave1ScenarioOptions } from "./wave1/index.js";
|
|
@@ -33,7 +33,7 @@ export type { Wave11ScenarioOptions } from "./wave11/setup.js";
|
|
|
33
33
|
export { chooseMainSchemeStages, mainSchemeStageGist, mainSchemeStagesOffer, mainSchemeStagesProblem, } from "./main-scheme-stages.js";
|
|
34
34
|
export type { MainSchemeStageContext, MainSchemeStageOption, MainSchemeStagesOffer } from "./main-scheme-stages.js";
|
|
35
35
|
export { UNSCRIPTED_ENCOUNTER_SET_IDS } from "./playable/unscripted.js";
|
|
36
|
-
export { INFINITES_GENE_POOL_THREAT_MAX, RANDOM_VILLAIN, checkPlayableDifficultySets, civilWarGameModes, civilWarModularSets, civilWarSidesOffer, difficultySetAlternativesFor, expertSetReplaceable, genePoolThreatOffer, horsemanSidesOffer, infinitesGenePoolThreatRecommendation, mainSchemePicksOffer, offersEasierStart, offersGenePoolThreat, playableScenarioOffer, scenarioGameSetIds, skirmishOffer, standardSetReplaceable, villainChoiceOffer, } from "./playable/scenario-options.js";
|
|
36
|
+
export { INFINITES_GENE_POOL_THREAT_MAX, RANDOM_VILLAIN, checkPlayableDifficultySets, civilWarGameModes, civilWarModularSets, civilWarSidesOffer, difficultySetAlternativesFor, expertSetReplaceable, genePoolThreatOffer, horsemanSidesOffer, infinitesGenePoolThreatRecommendation, mainSchemePicksOffer, offersEasierStart, offersGenePoolThreat, packScenarioOffer, playableScenarioOffer, scenarioGameSetIds, skirmishOffer, standardSetReplaceable, villainChoiceOffer, } from "./playable/scenario-options.js";
|
|
37
37
|
export type { CivilWarLeaderOffer, CivilWarSideOffer, DifficultySetAlternatives, GameModeOption, GenePoolThreatOffer, HorsemanSidesOffer, SkirmishOffer, MainSchemePickOption, MainSchemePicksOffer, MainSchemeStagesChoiceOffer, ModularSetCountOffer, ModularSetLegality, PlayableScenarioChoices, PlayableScenarioOffer, VillainChoice, VillainChoiceOffer, } from "./playable/scenario-options.js";
|
|
38
38
|
export { PLAYABLE_ABILITIES, PLAYABLE_DEPS, playableScenario, playableStarterDeckSetup } from "./playable/index.js";
|
|
39
39
|
export { randomCivilWarScenario } from "./playable/random-civil-war.js";
|
|
@@ -53,4 +53,4 @@ export declare function customScenarioProblems(scenario: Scenario, custom: Custo
|
|
|
53
53
|
* (a Civil War leader, a Fear No Evil scenario, a scenario drawing its modular sets from a pool), and a pack scenario
|
|
54
54
|
* option the scenario does not offer.
|
|
55
55
|
*/
|
|
56
|
-
export declare function playableScenarioWithCustom(scenarioId: string,
|
|
56
|
+
export declare function playableScenarioWithCustom(scenarioId: string, rawOptions: PlayableScenarioOptions, custom: CustomContent): GameSetupConfig;
|
|
@@ -7,6 +7,15 @@ import { type Wave6ScenarioOptions } from "../wave6/setup.js";
|
|
|
7
7
|
export declare const PLAYABLE_ABILITIES: AbilityRegistry;
|
|
8
8
|
/** Engine dependencies for a game on the playable pool. */
|
|
9
9
|
export declare const PLAYABLE_DEPS: EngineDeps;
|
|
10
|
+
/**
|
|
11
|
+
* The "Allow extra modular sets" house rule (#761): modular sets beyond the scenario's count. They never count toward
|
|
12
|
+
* the scenario's required number (`checkModularPickCount`), but they are built as a counted modular set is
|
|
13
|
+
* (`withHouseModularSets`), ahead of the set-dependent setup options, so a game that uses Infinites this way offers and
|
|
14
|
+
* builds the threat on Gene Pool as if it were a counted pick (`genePoolThreatOffer`).
|
|
15
|
+
*/
|
|
16
|
+
export interface HouseModularOptions {
|
|
17
|
+
readonly houseModularSetIds?: readonly string[];
|
|
18
|
+
}
|
|
10
19
|
/**
|
|
11
20
|
* Wave 1's options are the widest base (Breakout's `"extreme"` and `villainVersions`); every other builder takes a
|
|
12
21
|
* subset, except wave 4's own `setAsideModularSetIds` (The Hood's seven-of-nine modular choice, docs/phase7-wave4.md
|
|
@@ -14,7 +23,7 @@ export declare const PLAYABLE_DEPS: EngineDeps;
|
|
|
14
23
|
* Q9, Q12): `genePoolThreatPerPlayer` for any game whose sets include Infinites, `horsemanSides` for the Four Horsemen
|
|
15
24
|
* and `easierStart` for Apocalypse on standard. `./scenario-options.ts` says which of them a scenario offers.
|
|
16
25
|
*/
|
|
17
|
-
export type PlayableScenarioOptions = Wave1ScenarioOptions & Pick<Wave4ScenarioOptions, "setAsideModularSetIds"> & Pick<Wave6ScenarioOptions, "extraModularSetIds"> & Pick<Wave8ScenarioOptions, "genePoolThreatPerPlayer" | "horsemanSides" | "easierStart"> & Pick<Wave11ScenarioOptions, "villainSetId" | "villainCardId" | "mainSchemePicks">;
|
|
26
|
+
export type PlayableScenarioOptions = Wave1ScenarioOptions & HouseModularOptions & Pick<Wave4ScenarioOptions, "setAsideModularSetIds"> & Pick<Wave6ScenarioOptions, "extraModularSetIds"> & Pick<Wave8ScenarioOptions, "genePoolThreatPerPlayer" | "horsemanSides" | "easierStart"> & Pick<Wave11ScenarioOptions, "villainSetId" | "villainCardId" | "mainSchemePicks">;
|
|
18
27
|
/** Any starter deck in the playable pool as a player seat (quantities expanded; the identity isn't part of the deck). */
|
|
19
28
|
export declare function playableStarterDeckSetup(starterDeckId: string): PlayerSetup;
|
|
20
29
|
/**
|
|
@@ -23,6 +32,6 @@ export declare function playableStarterDeckSetup(starterDeckId: string): PlayerS
|
|
|
23
32
|
* game's card pool is widened to `PLAYABLE_CARDS` so a seat from another wave is a known card. Starter-deck seats
|
|
24
33
|
* are resolved here first, because a wave's own builder only knows its own starter decks.
|
|
25
34
|
*/
|
|
26
|
-
export declare function playableScenario(scenarioId: string,
|
|
35
|
+
export declare function playableScenario(scenarioId: string, allOptions: PlayableScenarioOptions,
|
|
27
36
|
/** How many of the modular picks are a custom pack's (`./custom.ts`): counted toward the scenario's count, never built here. */
|
|
28
37
|
customModularPicks?: number): GameSetupConfig;
|
|
@@ -204,6 +204,11 @@ export interface PlayableScenarioChoices {
|
|
|
204
204
|
readonly modes?: PlayModes;
|
|
205
205
|
/** The modular sets picked so far; absent is the scenario's recommendation. */
|
|
206
206
|
readonly modularSetIds?: readonly string[];
|
|
207
|
+
/**
|
|
208
|
+
* The "Allow extra modular sets" house rule's picks (`PlayableScenarioOptions.houseModularSetIds`): sets beyond the
|
|
209
|
+
* count that are built as counted ones, so a set-dependent option (the threat on Gene Pool) follows them too.
|
|
210
|
+
*/
|
|
211
|
+
readonly houseModularSetIds?: readonly string[];
|
|
207
212
|
/** The main scheme stages picked so far (`CoreScenarioOptions.mainSchemeStageIds`); absent is the recommendation. */
|
|
208
213
|
readonly mainSchemeStageIds?: readonly string[];
|
|
209
214
|
}
|
|
@@ -252,6 +257,12 @@ export declare function villainChoiceOffer(scenario: Scenario, encounterSets?: r
|
|
|
252
257
|
export declare function mainSchemePicksOffer(scenario: Scenario, expert: boolean): MainSchemePicksOffer | null;
|
|
253
258
|
/** Cooperative and competitive (MC56 pp. 4, 14); the engine does not play a competitive game yet and says so. */
|
|
254
259
|
export declare function civilWarGameModes(): readonly GameModeOption[];
|
|
260
|
+
/**
|
|
261
|
+
* What a pack's scenario offers (`playableScenarioWithCustom` builds it): the difficulty choices a base scenario has,
|
|
262
|
+
* under the same rules (#786): the Standard and Expert set alternatives and skirmish mode (heroic is offered at every
|
|
263
|
+
* scenario). The pack builder refuses every other choice, so nothing else is offered.
|
|
264
|
+
*/
|
|
265
|
+
export declare function packScenarioOffer(scenario: Pick<Scenario, "standardEncounterSetIds" | "expertEncounterSetIds" | "villainStages" | "multipleVillains" | "villainOptions" | "victory" | "victoryCondition">, choices?: Pick<PlayableScenarioChoices, "difficulty" | "modes">): PlayableScenarioOffer;
|
|
255
266
|
/**
|
|
256
267
|
* Every optional setup choice a game of `scenarioId` offers under the choices made so far. Ask again when the
|
|
257
268
|
* difficulty or the modular picks change: the easier start is standard only, the Horsemen's defaults follow the mode,
|
|
@@ -24,6 +24,7 @@ export declare const CROSSBONES_SET: {
|
|
|
24
24
|
readonly "04060.crossbones-constant": import("../../../../engine/src/index.js").AbilityDefinition;
|
|
25
25
|
readonly "04060.when-revealed": import("../../../../engine/src/index.js").AbilityDefinition;
|
|
26
26
|
readonly "04061a.setup": import("../../../../engine/src/index.js").AbilityDefinition;
|
|
27
|
+
readonly "04061b.when-revealed": import("../../../../engine/src/index.js").AbilityDefinition;
|
|
27
28
|
readonly "04062b.when-revealed": import("../../../../engine/src/index.js").AbilityDefinition;
|
|
28
29
|
readonly "04063b.when-revealed": import("../../../../engine/src/index.js").AbilityDefinition;
|
|
29
30
|
readonly "04064.crossbones-machine-gun-forced-interrupt": import("../../../../engine/src/index.js").AbilityDefinition;
|
|
@@ -7,9 +7,9 @@ import type { AbilityRegistry } from "../../../../../engine/src/index.js";
|
|
|
7
7
|
*
|
|
8
8
|
* **52001a.silk-sense** (hero form only, printed on the hero face): "Response: After you defeat a minion or side
|
|
9
9
|
* scheme, or resolve a treachery card, tuck that card under here from the encounter discard pile." An optional
|
|
10
|
-
* response with three triggers ("you defeat":
|
|
11
|
-
* "resolve": a treachery this player revealed, not a boost
|
|
12
|
-
* only if it is in the encounter discard pile when the response resolves: a minion with Victory X sits in the victory
|
|
10
|
+
* response with three triggers ("you defeat": Silk's identity, or an event she plays, not an ally she controls (RRG
|
|
11
|
+
* 1.8 "You, Your", p. 49); "resolve": a treachery this player revealed, not a boost
|
|
12
|
+
* card). The card is bound when the event happens and tucked only if it is in the encounter discard pile when the response resolves: a minion with Victory X sits in the victory
|
|
13
13
|
* display, and a treachery that attached or was shuffled away is elsewhere, so nothing is tucked for them.
|
|
14
14
|
*
|
|
15
15
|
* **52001b.cindy-moon-action** (alter-ego face): "Action: Discard a card tucked here → draw 2 cards. (Limit once per
|
|
@@ -3,7 +3,7 @@ export declare const CONTENT_VERSION = "0.0.0";
|
|
|
3
3
|
* Schema version for the card data shape itself (independent of how many
|
|
4
4
|
* cards/cycles have been ingested). Bump when a breaking shape change lands.
|
|
5
5
|
*/
|
|
6
|
-
export declare const SCHEMA_VERSION = "0.
|
|
6
|
+
export declare const SCHEMA_VERSION = "0.49.0";
|
|
7
7
|
export * from "./schema/index.js";
|
|
8
8
|
export * from "./data/index.js";
|
|
9
9
|
export * from "./import/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CardText, PrintedStat, ResourceIconCounts, Trait } from "../common.js";
|
|
1
|
+
import type { CardText, PrintedStat, ResourceIconCounts, StatStar, Trait } from "../common.js";
|
|
2
2
|
import type { KeywordInstance } from "../keywords.js";
|
|
3
3
|
import type { AbilityReference } from "../abilities.js";
|
|
4
4
|
import type { CardId, EncounterSetId, ImageRef } from "../ids.js";
|
|
@@ -56,6 +56,8 @@ export interface CardFlipSide {
|
|
|
56
56
|
readonly thw?: PrintedStat;
|
|
57
57
|
readonly atk?: PrintedStat;
|
|
58
58
|
readonly hp?: number;
|
|
59
|
+
/** Stats of this face (a back that restates the front's star still lists it) that print a star beside them (see `StatStar`). Absent: none. */
|
|
60
|
+
readonly statStars?: readonly StatStar[];
|
|
59
61
|
/**
|
|
60
62
|
* This face's own printed stat boxes, for a double-sided attachment whose faces print different ones
|
|
61
63
|
* (`AttachmentCard.statModifiers` is the front's): Dense (+1 ATK) flips to Intangible (+1 SCH), `synthezoid`
|
|
@@ -120,6 +122,8 @@ export interface MinionCard extends EncounterCardCommon {
|
|
|
120
122
|
/** `"X"` when the card's ability defines it (Titania); `null` for a printed "—". See `PrintedStat`. */
|
|
121
123
|
readonly atk: PrintedStat;
|
|
122
124
|
readonly sch: PrintedStat;
|
|
125
|
+
/** Stats of the minion's front face (ATK, SCH, HP) that print a star beside them (see `StatStar`). Absent: none. */
|
|
126
|
+
readonly statStars?: readonly StatStar[];
|
|
123
127
|
/** The printed hit point numeral. With `hpPerPlayer`, the number printed before the per player icon. */
|
|
124
128
|
readonly hp: number;
|
|
125
129
|
/**
|
|
@@ -176,6 +180,8 @@ export interface AttachmentCard extends EncounterCardCommon {
|
|
|
176
180
|
readonly playRestrictions?: PlayRestrictions;
|
|
177
181
|
/** Printed stat-box modifiers applied to the host (Charge +3 ATK). */
|
|
178
182
|
readonly statModifiers?: PrintedStatModifiers;
|
|
183
|
+
/** Stats of the attachment's front face, beside its stat boxes (ATK, SCH, THW) that print a star beside them (see `StatStar`). Absent: none. */
|
|
184
|
+
readonly statStars?: readonly StatStar[];
|
|
179
185
|
}
|
|
180
186
|
export interface TreacheryCard extends EncounterCardCommon {
|
|
181
187
|
readonly type: "treachery";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CardText, ResourceIconCounts, ResourceIconType, Trait } from "../common.js";
|
|
1
|
+
import type { CardText, ResourceIconCounts, StatStar, ResourceIconType, Trait } from "../common.js";
|
|
2
2
|
import type { KeywordInstance } from "../keywords.js";
|
|
3
3
|
import type { AbilityReference } from "../abilities.js";
|
|
4
4
|
import type { ArtRef, CardId, EncounterSetId, ImageRef } from "../ids.js";
|
|
@@ -93,6 +93,8 @@ export interface HeroFace {
|
|
|
93
93
|
readonly thw: number;
|
|
94
94
|
readonly def: number;
|
|
95
95
|
readonly handSize: number;
|
|
96
|
+
/** Stats of this hero face that print a star beside them (see `StatStar`). Absent: none. */
|
|
97
|
+
readonly statStars?: readonly StatStar[];
|
|
96
98
|
/** Keywords are per face (Black Panther's Retaliate 1 is hero-side only). */
|
|
97
99
|
readonly keywords: readonly KeywordInstance[];
|
|
98
100
|
readonly text: CardText;
|
|
@@ -113,6 +115,8 @@ export interface AlterEgoFace {
|
|
|
113
115
|
readonly faceName: string;
|
|
114
116
|
readonly rec: number;
|
|
115
117
|
readonly handSize: number;
|
|
118
|
+
/** Stats of this alter-ego face that print a star beside them (see `StatStar`). Absent: none. */
|
|
119
|
+
readonly statStars?: readonly StatStar[];
|
|
116
120
|
readonly keywords: readonly KeywordInstance[];
|
|
117
121
|
readonly text: CardText;
|
|
118
122
|
readonly flavor?: string;
|