pokerogue/main/classes/data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html

164 lines
181 KiB
HTML
Raw Normal View History

2024-09-27 22:52:07 +01:00
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>MysteryEncounterBuilder | pokemon-rogue-battle</title><meta name="description" content="Documentation for pokemon-rogue-battle"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">pokemon-rogue-battle</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">pokemon-rogue-battle</a></li><li><a href="../modules/data_mystery_encounters_mystery_encounter.html">data/mystery-encounters/mystery-encounter</a></li><li><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html">MysteryEncounterBuilder</a></li></ul><h1>Class MysteryEncounterBuilder</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Builder class for creating a MysteryEncounter
must call <code>build()</code> at the end after specifying all params for the MysteryEncounter</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel"><h4>Implements</h4><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">&gt;</span></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L527">src/data/mystery-encounters/mystery-encounter.ts:527</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
2024-09-27 22:52:07 +01:00
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#autoHideIntroVisuals" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>auto<wbr/>Hide<wbr/>Intro<wbr/>Visuals</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#catchAllowed" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>catch<wbr/>Allowed</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#continuousEncounter" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>continuous<wbr/>Encounter</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#dialogue" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>dialogue</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#dialogueTokens" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>dialogue<wbr/>Tokens</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#enemyPartyConfigs" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>enemy<wbr/>Party<wbr/>Configs</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#enterIntroVisualsFromRight" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>enter<wbr/>Intro<wbr/>Visuals<wbr/>From<wbr/>Right</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#excludePrimaryFromSupportRequirements" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>exclude<wbr/>Primary<wbr/>From<wbr/>Support<wbr/>Requirements</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#expMultiplier" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>exp<wbr/>Multiplier</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#fleeAllowed" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>flee<wbr/>Allowed</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#hasBattleAnimationsWithoutTargets" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>has<wbr/>Battle<wbr/>Animations<wbr/>Without<wbr/>Targets</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#hideBattleIntroMessage" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>hide<wbr/>Battle<wbr/>Intro<wbr/>Message</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#lockEncounterRewardTiers" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>lock<wbr/>Encounter<wbr/>Reward<wbr/>Tiers</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#maxAllowedEncounters" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>max<wbr/>Allowed<wbr/>Encounters</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#options" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>options</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#primaryPokemonRequirements" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>primary<wbr/>Pokemon<wbr/>Requirements</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#requirements" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>requirements</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#secondaryPokemonRequirements" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>secondary<wbr/>Pokemon<wbr/>Requirements</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#skipEnemyBattleTurns" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>skip<wbr/>Enemy<wbr/>Battle<wbr/>Turns</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#skipToFightInput" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>skip<wbr/>To<wbr/>Fight<wbr/>Input</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#startOfBattleEffectsComplete" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>start<wbr/>Of<wbr/>Battle<wbr/>Effects<wbr/>Complete</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#build" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>build</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withAnimations" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Animations</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withAutoHideIntroVisuals" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Auto<wbr/>Hide<wbr/>Intro<wbr/>Visuals</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withBattleAnimationsWithoutTargets" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Battle<wbr/>Animations<wbr/>Without<wbr/>Targets</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withCatchAllowed" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Catch<wbr/>Allowed</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withContinuousEncounter" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Continuous<wbr/>Encounter</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withDescription" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Description</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withDisallowedChallenges" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Disallowed<wbr/>Challenges</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withDisallowedGameModes" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Disallowed<wbr/>Game<wbr/>Modes</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withEncounterTier" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Encounter<wbr/>Tier</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withEnterIntroVisualsFromRight" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Enter<wbr/>Intro<wbr/>Visuals<wbr/>From<wbr/>Right</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withExp" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Exp</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withFleeAllowed" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Flee<wbr/>Allowed</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withHideWildIntroMessage" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Hide<wbr/>Wild<wbr/>Intro<wbr/>Message</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withIntro" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Intro</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withIntroDialogue" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Intro<wbr/>Dialogue</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withIntroSpriteConfigs" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Intro<wbr/>Sprite<wbr/>Configs</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withMaxAllowedEncounters" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Max<wbr/>Allowed<wbr/>Encounters</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withOnInit" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>On<wbr/>Init</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withOnVisualsStart" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>On<wbr/>Visuals<wbr/>Start</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withOption" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Option</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withOutroDialogue" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Outro<wbr/>Dialogue</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withPrimaryPokemonHealthRatioRequirement" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Primary<wbr/>Pokemon<wbr/>Health<wbr/>Ratio<wbr/>Requirement</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withPrimaryPokemonRequirement" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Primary<wbr/>Pokemon<wbr/>Requirement</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withPrimaryPokemonStatusEffectRequirement" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Primary<wbr/>Pokemon<wbr/>Status<wbr/>Effect<wbr/>Requirement</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withQuery" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Query</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withRewards" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Rewards</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withScenePartySizeRequirement" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Scene<wbr/>Party<wbr/>Size<wbr/>Requirement</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withSceneRequirement" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Scene<wbr/>Requirement</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withSceneWaveRangeRequirement" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Scene<wbr/>Wave<wbr/>Range<wbr/>Requirement</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withSecondaryPokemonRequirement" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Secondary<wbr/>Pokemon<wbr/>Requirement</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withSimpleDexProgressOption" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Simple<wbr/>Dex<wbr/>Progress<wbr/>Option</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withSimpleOption" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Simple<wbr/>Option</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withSkipEnemyBattleTurns" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Skip<wbr/>Enemy<wbr/>Battle<wbr/>Turns</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withSkipToFightInput" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Skip<wbr/>To<wbr/>Fight<wbr/>Input</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withTitle" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Title</span></a>
<a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withEncounterType" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Encounter<wbr/>Type</span></a>
2024-09-29 08:49:44 +01:00
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Constructors</h2></summary><section><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_MysteryEncounterBuilder" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Mystery<wbr/>Encounter<wbr/>Builder</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><a href="#constructor.new_MysteryEncounterBuilder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a></h4></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><section class="tsd-panel tsd-member"><a id="autoHideIntroVisuals" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>auto<wbr/>Hide<wbr/>Intro<wbr/>Visuals</span><a href="#autoHideIntroVisuals" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">auto<wbr/>Hide<wbr/>Intro<wbr/>Visuals</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><p>Implementation of Partial.autoHideIntroVisuals</p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L539">src/data/mystery-encounters/mystery-encounter.ts:539</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="catchAllowed" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>catch<wbr/>Allowed</span><a href="#catchAllowed" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">catch<wbr/>Allowed</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><p>Implementation of Partial.catchAllowed</p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L542">src/data/mystery-encounters/mystery-encounter.ts:542</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="continuousEncounter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>continuous<wbr/>Encounter</span><a href="#continuousEncounter" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">continuous<wbr/
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">this</span>: <a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.default.html" class="tsd-signature-type tsd-kind-class">default</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L994">src/data/mystery-encounters/mystery-encounter.ts:994</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withAnimations" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Animations</span><a href="#withAnimations" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withAnimations.withAnimations-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Animations</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">encounterAnimations</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;encounterAnimations&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withAnimations.withAnimations-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Defines any EncounterAnim animations that are intended to be used during the encounter
2024-09-27 22:52:07 +01:00
EncounterAnims are custom battle animations (think Ice Beam) that can be played at any point during an encounter or callback
They just need to be specified here so that resources are loaded on encounter init</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Rest</code><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">encounterAnimations</span>: <a href="../enums/enums_encounter_anims.EncounterAnim.html" class="tsd-signature-type tsd-kind-enum">EncounterAnim</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;encounterAnimations&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L662">src/data/mystery-encounters/mystery-encounter.ts:662</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withAutoHideIntroVisuals" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Auto<wbr/>Hide<wbr/>Intro<wbr/>Visuals</span><a href="#withAutoHideIntroVisuals" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withAutoHideIntroVisuals.withAutoHideIntroVisuals-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Auto<wbr/>Hide<wbr/>Intro<wbr/>Visuals</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">autoHideIntroVisuals</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;autoHideIntroVisuals&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withAutoHideIntroVisuals.withAutoHideIntroVisuals-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">autoHideIntroVisuals</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>If <code>false</code>, will not hide the intro visuals that are displayed at the beginning of encounter</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;autoHideIntroVisuals&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L905">src/data/mystery-encounters/mystery-encounter.ts:905</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withBattleAnimationsWithoutTargets" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Battle<wbr/>Animations<wbr/>Without<wbr/>Targets</span><a href="#withBattleAnimationsWithoutTargets" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withBattleAnimationsWithoutTargets.withBattleAnimationsWithoutTargets-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Battle<wbr/>Animations<wbr/>Without<wbr/>Targets</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">hasBattleAnimationsWithoutTargets</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;hasBattleAnimationsWithoutTargets&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withBattleAnimationsWithoutTargets.withBattleAnimationsWithoutTargets-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>If true, encounter will not animate the target Pokemon as part of battle animations
2024-09-27 22:52:07 +01:00
Used for encounters where it is not a &quot;real&quot; battle, but still uses battle animations and commands (see FunAndGamesEncounter for an example)
Default false</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">hasBattleAnimationsWithoutTargets</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;hasBattleAnimationsWithoutTargets&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L703">src/data/mystery-encounters/mystery-encounter.ts:703</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withCatchAllowed" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Catch<wbr/>Allowed</span><a href="#withCatchAllowed" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withCatchAllowed.withCatchAllowed-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Catch<wbr/>Allowed</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">catchAllowed</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;catchAllowed&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withCatchAllowed.withCatchAllowed-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Can set whether catching is allowed or not on the encounter
2024-09-27 22:52:07 +01:00
This flag can also be programmatically set inside option event functions or elsewhere</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">catchAllowed</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>If <code>true</code>, allows enemy pokemon to be caught during the encounter</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;catchAllowed&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L880">src/data/mystery-encounters/mystery-encounter.ts:880</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withContinuousEncounter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Continuous<wbr/>Encounter</span><a href="#withContinuousEncounter" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withContinuousEncounter.withContinuousEncounter-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Continuous<wbr/>Encounter</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">continuousEncounter</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;continuousEncounter&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withContinuousEncounter.withContinuousEncounter-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>If true, encounter will continuously run through multiple battles/puzzles/etc. instead of going to next wave
2024-09-27 22:52:07 +01:00
MUST EVENTUALLY BE DISABLED TO CONTINUE TO NEXT WAVE
Default false</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">continuousEncounter</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;continuousEncounter&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L693">src/data/mystery-encounters/mystery-encounter.ts:693</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withDescription" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Description</span><a href="#withDescription" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withDescription.withDescription-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Description</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">description</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span><a href="#withDescription.withDescription-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add a description of the encounter</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">description</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>Description of the encounter</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L944">src/data/mystery-encounters/mystery-encounter.ts:944</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withDisallowedChallenges" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Disallowed<wbr/>Challenges</span><a href="#withDisallowedChallenges" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withDisallowedChallenges.withDisallowedChallenges-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Disallowed<wbr/>Challenges</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">disallowedChallenges</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;disallowedChallenges&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withDisallowedChallenges.withDisallowedChallenges-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Defines any challenges (from Challenge game mode) where the Mystery Encounter should <em>NOT</em> spawn</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Rest</code><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">disallowedChallenges</span>: <a href="../enums/enums_challenges.Challenges.html" class="tsd-signature-type tsd-kind-enum">Challenges</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;disallowedChallenges&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L682">src/data/mystery-encounters/mystery-encounter.ts:682</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withDisallowedGameModes" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Disallowed<wbr/>Game<wbr/>Modes</span><a href="#withDisallowedGameModes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withDisallowedGameModes.withDisallowedGameModes-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Disallowed<wbr/>Game<wbr/>Modes</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">disallowedGameModes</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;disallowedGameModes&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withDisallowedGameModes.withDisallowedGameModes-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Defines any game modes where the Mystery Encounter should <em>NOT</em> spawn</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Rest</code><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">disallowedGameModes</span>: <a href="../enums/game_mode.GameModes.html" class="tsd-signature-type tsd-kind-enum">GameModes</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;disallowedGameModes&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L672">src/data/mystery-encounters/mystery-encounter.ts:672</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withEncounterTier" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Encounter<wbr/>Tier</span><a href="#withEncounterTier" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withEncounterTier.withEncounterTier-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Encounter<wbr/>Tier</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">encounterTier</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;encounterTier&quot;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withEncounterTier.withEncounterTier-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the rarity tier for an encounter
2024-09-27 22:52:07 +01:00
If not specified, defaults to COMMON
Tiers are:
COMMON 32/64 odds
GREAT 16/64 odds
ULTRA 10/64 odds
ROGUE 6/64 odds
ULTRA_RARE Not currently used</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">encounterTier</span>: <a href="../enums/enums_mystery_encounter_tier.MysteryEncounterTier.html" class="tsd-signature-type tsd-kind-enum">MysteryEncounterTier</a></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;encounterTier&quot;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L651">src/data/mystery-encounters/mystery-encounter.ts:651</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withEnterIntroVisualsFromRight" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Enter<wbr/>Intro<wbr/>Visuals<wbr/>From<wbr/>Right</span><a href="#withEnterIntroVisualsFromRight" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withEnterIntroVisualsFromRight.withEnterIntroVisualsFromRight-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Enter<wbr/>Intro<wbr/>Visuals<wbr/>From<wbr/>Right</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">enterIntroVisualsFromRight</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;enterIntroVisualsFromRight&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withEnterIntroVisualsFromRight.withEnterIntroVisualsFromRight-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">enterIntroVisualsFromRight</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>If <code>true</code>, will slide in intro visuals from the right side of the screen. If false, slides in from left, as normal
2024-09-27 22:52:07 +01:00
Default false</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;enterIntroVisualsFromRight&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L914">src/data/mystery-encounters/mystery-encounter.ts:914</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withExp" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Exp</span><a href="#withExp" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withExp.withExp-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Exp</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">doEncounterExp</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;doEncounterExp&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withExp.withExp-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Can set custom encounter exp via this callback function
2024-09-27 22:52:07 +01:00
If exp always deterministic for an encounter, this is a good way to set them</p>
<p>NOTE: If rewards are dependent on options selected, runtime data, etc.,
It may be better to programmatically set doEncounterExp elsewhere.
There is a helper function in mystery-encounter utils, setEncounterExp(), which can be called programmatically to set rewards</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">doEncounterExp</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span><span class="tsd-signature-symbol">: </span><a href="battle_scene.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>Synchronous callback function to perform during rewards phase of the encounter</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">scene</span>: <a href="battle_scene.default.html" class="tsd-signature-type tsd-kind-class">default</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></li></ul></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;doEncounterExp&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L849">src/data/mystery-encounters/mystery-encounter.ts:849</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withFleeAllowed" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Flee<wbr/>Allowed</span><a href="#withFleeAllowed" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withFleeAllowed.withFleeAllowed-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Flee<wbr/>Allowed</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">fleeAllowed</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;fleeAllowed&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withFleeAllowed.withFleeAllowed-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Can set whether fleeing is allowed or not on the encounter</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">fleeAllowed</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>If <code>false</code>, prevents fleeing from a wild battle (trainer battle MEs already have flee disabled)</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;fleeAllowed&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L889">src/data/mystery-encounters/mystery-encounter.ts:889</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withHideWildIntroMessage" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Hide<wbr/>Wild<wbr/>Intro<wbr/>Message</span><a href="#withHideWildIntroMessage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withHideWildIntroMessage.withHideWildIntroMessage-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Hide<wbr/>Wild<wbr/>Intro<wbr/>Message</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">hideBattleIntroMessage</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;hideBattleIntroMessage&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withHideWildIntroMessage.withHideWildIntroMessage-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">hideBattleIntroMessage</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>If <code>true</code>, will not show the trainerAppeared/wildAppeared/bossAppeared message for an encounter</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;hideBattleIntroMessage&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L897">src/data/mystery-encounters/mystery-encounter.ts:897</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withIntro" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Intro</span><a href="#withIntro" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withIntro.withIntro-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Intro</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">__namedParameters</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><a href="#withIntro.withIntro-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">__namedParameters</span>: <span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">dialogue</span><span class="tsd-signature-symbol">?: </span><a href="data_mystery_encounters_mystery_encounter_dialogue.TextDisplay.html" class="tsd-signature-type tsd-kind-class">TextDisplay</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">spriteConfigs</span><span class="tsd-signature-symbol">: </span><a href="field_mystery_encounter_intro.MysteryEncounterSpriteConfig.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterSpriteConfig</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></span><ul class="tsd-parameters"><li class="tsd-parameter"><h5><code class="tsd-tag">Optional</code><span class="tsd-kind-property">dialogue</span><span class="tsd-signature-symbol">?: </span><a href="data_mystery_encounters_mystery_encounter_dialogue.TextDisplay.html" class="tsd-signature-type tsd-kind-class">TextDisplay</a><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">sprite<wbr/>Configs</span><span class="tsd-signature-symbol">: </span><a href="field_mystery_encounter_intro.MysteryEncounterSpriteConfig.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterSpriteConfig</a><span class="tsd-signature-symbol">[]</span></h5></li></ul></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuil
2024-09-27 22:52:07 +01:00
Can be one or more sprites, recommended not to exceed 4</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">spriteConfigs</span>: <a href="field_mystery_encounter_intro.MysteryEncounterSpriteConfig.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterSpriteConfig</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;spriteConfigs&quot;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L622">src/data/mystery-encounters/mystery-encounter.ts:622</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withMaxAllowedEncounters" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Max<wbr/>Allowed<wbr/>Encounters</span><a href="#withMaxAllowedEncounters" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withMaxAllowedEncounters.withMaxAllowedEncounters-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Max<wbr/>Allowed<wbr/>Encounters</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">maxAllowedEncounters</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;maxAllowedEncounters&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withMaxAllowedEncounters.withMaxAllowedEncounters-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the maximum number of times that an encounter can spawn in a given Classic run</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">maxAllowedEncounters</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;maxAllowedEncounters&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L731">src/data/mystery-encounters/mystery-encounter.ts:731</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withOnInit" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>On<wbr/>Init</span><a href="#withOnInit" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withOnInit.withOnInit-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>On<wbr/>Init</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">onInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;onInit&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withOnInit.withOnInit-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Can be used to perform init logic before intro visuals are shown and before the MysteryEncounterPhase begins
2024-09-27 22:52:07 +01:00
Useful for performing things like procedural generation of intro sprites, etc.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">onInit</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span><span class="tsd-signature-symbol">: </span><a href="battle_scene.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>Synchronous callback function to perform as soon as the encounter is selected for the next phase</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">scene</span>: <a href="battle_scene.default.html" class="tsd-signature-type tsd-kind-class">default</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></li></ul></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;onInit&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L860">src/data/mystery-encounters/mystery-encounter.ts:860</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withOnVisualsStart" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>On<wbr/>Visuals<wbr/>Start</span><a href="#withOnVisualsStart" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withOnVisualsStart.withOnVisualsStart-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>On<wbr/>Visuals<wbr/>Start</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">onVisualsStart</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;onVisualsStart&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withOnVisualsStart.withOnVisualsStart-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Can be used to perform some extra logic (usually animations) when the enemy field is finished sliding in</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">onVisualsStart</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span><span class="tsd-signature-symbol">: </span><a href="battle_scene.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>Synchronous callback function to perform as soon as the enemy field finishes sliding in</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">scene</span>: <a href="battle_scene.default.html" class="tsd-signature-type tsd-kind-class">default</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></li></ul></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;onVisualsStart&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L870">src/data/mystery-encounters/mystery-encounter.ts:870</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withOption" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Option</span><a href="#withOption" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withOption.withOption-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Option</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">option</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;options&quot;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withOption.withOption-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Defines an option for the encounter.
2024-09-27 22:52:07 +01:00
Use for complex options.
There should be at least 2 options defined and no more than 4.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">option</span>: <a href="data_mystery_encounters_mystery_encounter_option.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>MysteryEncounterOption to add, can use MysteryEncounterOptionBuilder to create instance</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;options&quot;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L574">src/data/mystery-encounters/mystery-encounter.ts:574</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withOutroDialogue" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Outro<wbr/>Dialogue</span><a href="#withOutroDialogue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withOutroDialogue.withOutroDialogue-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Outro<wbr/>Dialogue</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">dialogue</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span><a href="#withOutroDialogue.withOutroDialogue-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add outro dialogue/s for the encounter</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">dialogue</span>: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="data_mystery_encounters_mystery_encounter_dialogue.TextDisplay.html" class="tsd-signature-type tsd-kind-class">TextDisplay</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></span><div class="tsd-comment tsd-typography"><p>Outro dialogue(s)</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L984">src/data/mystery-encounters/mystery-encounter.ts:984</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withPrimaryPokemonHealthRatioRequirement" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Primary<wbr/>Pokemon<wbr/>Health<wbr/>Ratio<wbr/>Requirement</span><a href="#withPrimaryPokemonHealthRatioRequirement" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withPrimaryPokemonHealthRatioRequirement.withPrimaryPokemonHealthRatioRequirement-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Primary<wbr/>Pokemon<wbr/>Health<wbr/>Ratio<wbr/>Requirement</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">requiredHealthRange</span>, <span class="tsd-kind-parameter">minNumberOfPokemon</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">invertQuery</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;primaryPokemonRequirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withPrimaryPokemonHealthRatioRequirement.withPrimaryPokemonHealthRatioRequirement-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add a primary pokemon health ratio requirement</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">requiredHealthRange</span>: <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></span><div class="tsd-comment tsd-typography"><p>the health range to check</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">minNumberOfPokemon</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></span><div class="tsd-comment tsd-typography"><p>minimum number of pokemon to have the health range</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">invertQuery</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>if true will invert the query</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;primaryPokemonRequirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L808">src/data/mystery-encounters/mystery-encounter.ts:808</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withPrimaryPokemonRequirement" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Primary<wbr/>Pokemon<wbr/>Requirement</span><a href="#withPrimaryPokemonRequirement" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withPrimaryPokemonRequirement.withPrimaryPokemonRequirement-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Primary<wbr/>Pokemon<wbr/>Requirement</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">requirement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;primaryPokemonRequirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withPrimaryPokemonRequirement.withPrimaryPokemonRequirement-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add a primary pokemon requirement</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">requirement</span>: <a href="data_mystery_encounters_mystery_encounter_requirements.EncounterPokemonRequirement.html" class="tsd-signature-type tsd-kind-class">EncounterPokemonRequirement</a></span><div class="tsd-comment tsd-typography"><p><a href="data_mystery_encounters_mystery_encounter_requirements.EncounterPokemonRequirement.html" class="tsd-kind-class"><code>EncounterPokemonRequirement</code></a></p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;primaryPokemonRequirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L779">src/data/mystery-encounters/mystery-encounter.ts:779</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withPrimaryPokemonStatusEffectRequirement" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Primary<wbr/>Pokemon<wbr/>Status<wbr/>Effect<wbr/>Requirement</span><a href="#withPrimaryPokemonStatusEffectRequirement" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withPrimaryPokemonStatusEffectRequirement.withPrimaryPokemonStatusEffectRequirement-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Primary<wbr/>Pokemon<wbr/>Status<wbr/>Effect<wbr/>Requirement</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">statusEffect</span>, <span class="tsd-kind-parameter">minNumberOfPokemon</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">invertQuery</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;primaryPokemonRequirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withPrimaryPokemonStatusEffectRequirement.withPrimaryPokemonStatusEffectRequirement-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add a primary pokemon status effect requirement</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">statusEffect</span>: <a href="../enums/enums_status_effect.StatusEffect.html" class="tsd-signature-type tsd-kind-enum">StatusEffect</a><span class="tsd-signature-symbol"> | </span><a href="../enums/enums_status_effect.StatusEffect.html" class="tsd-signature-type tsd-kind-enum">StatusEffect</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>the status effect/s to check</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">minNumberOfPokemon</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></span><div class="tsd-comment tsd-typography"><p>minimum number of pokemon to have the effect</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">invertQuery</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>if true will invert the query</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;primaryPokemonRequirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L796">src/data/mystery-encounters/mystery-encounter.ts:796</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withQuery" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Query</span><a href="#withQuery" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withQuery.withQuery-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Query</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">query</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span><a href="#withQuery.withQuery-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add a query for the encounter</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">query</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>Query to use for the encounter</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L964">src/data/mystery-encounters/mystery-encounter.ts:964</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withRewards" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Rewards</span><a href="#withRewards" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withRewards.withRewards-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Rewards</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">doEncounterRewards</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;doEncounterRewards&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withRewards.withRewards-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Can set custom encounter rewards via this callback function
2024-09-27 22:52:07 +01:00
If rewards are always deterministic for an encounter, this is a good way to set them</p>
<p>NOTE: If rewards are dependent on options selected, runtime data, etc.,
It may be better to programmatically set doEncounterRewards elsewhere.
There is a helper function in mystery-encounter utils, setEncounterRewards(), which can be called programmatically to set rewards</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">doEncounterRewards</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span><span class="tsd-signature-symbol">: </span><a href="battle_scene.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>Synchronous callback function to perform during rewards phase of the encounter</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">scene</span>: <a href="battle_scene.default.html" class="tsd-signature-type tsd-kind-class">default</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></li></ul></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;doEncounterRewards&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L835">src/data/mystery-encounters/mystery-encounter.ts:835</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withScenePartySizeRequirement" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Scene<wbr/>Party<wbr/>Size<wbr/>Requirement</span><a href="#withScenePartySizeRequirement" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withScenePartySizeRequirement.withScenePartySizeRequirement-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Scene<wbr/>Party<wbr/>Size<wbr/>Requirement</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">min</span>, <span class="tsd-kind-parameter">max</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">excludeDisallowedPokemon</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;requirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withScenePartySizeRequirement.withScenePartySizeRequirement-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Specifies a party size requirement for an encounter.</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">min</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>min wave (or exact size if only min is given)</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">max</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>optional max size. If not given, defaults to min =&gt; exact wave</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">excludeDisallowedPokemon</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>if true, only counts allowed (legal in Challenge/unfainted) mons</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;requirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L769">src/data/mystery-encounters/mystery-encounter.ts:769</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withSceneRequirement" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Scene<wbr/>Requirement</span><a href="#withSceneRequirement" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withSceneRequirement.withSceneRequirement-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Scene<wbr/>Requirement</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">requirement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;requirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withSceneRequirement.withSceneRequirement-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Specifies a requirement for an encounter
2024-09-27 22:52:07 +01:00
For example, passing requirement as &quot;new WaveCountRequirement([2, 180])&quot; would create a requirement that the encounter can only be spawned between waves 2 and 180
Existing Requirement objects are defined in mystery-encounter-requirements.ts, and more can always be created to meet a requirement need</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">requirement</span>: <a href="data_mystery_encounters_mystery_encounter_requirements.EncounterSceneRequirement.html" class="tsd-signature-type tsd-kind-class">EncounterSceneRequirement</a></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;requirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L742">src/data/mystery-encounters/mystery-encounter.ts:742</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withSceneWaveRangeRequirement" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Scene<wbr/>Wave<wbr/>Range<wbr/>Requirement</span><a href="#withSceneWaveRangeRequirement" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withSceneWaveRangeRequirement.withSceneWaveRangeRequirement-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Scene<wbr/>Wave<wbr/>Range<wbr/>Requirement</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">min</span>, <span class="tsd-kind-parameter">max</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;requirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withSceneWaveRangeRequirement.withSceneWaveRangeRequirement-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Specifies a wave range requirement for an encounter.</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">min</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>min wave (or exact wave if only min is given)</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">max</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>optional max wave. If not given, defaults to min =&gt; exact wave</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;requirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L757">src/data/mystery-encounters/mystery-encounter.ts:757</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withSecondaryPokemonRequirement" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Secondary<wbr/>Pokemon<wbr/>Requirement</span><a href="#withSecondaryPokemonRequirement" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withSecondaryPokemonRequirement.withSecondaryPokemonRequirement-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Secondary<wbr/>Pokemon<wbr/>Requirement</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">requirement</span>, <span class="tsd-kind-parameter">excludePrimaryFromSecondaryRequirements</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;secondaryPokemonRequirements&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withSecondaryPokemonRequirement.withSecondaryPokemonRequirement-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">requirement</span>: <a href="data_mystery_encounters_mystery_encounter_requirements.EncounterPokemonRequirement.html" class="tsd-signature-type tsd-kind-class">EncounterPokemonRequirement</a></span></li><li><span><span class="tsd-kind-parameter">excludePrimaryFromSecondaryRequirements</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol
2024-09-27 22:52:07 +01:00
Use for easy/streamlined options.
There should be at least 2 options defined and no more than 4.
If complex use <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withOption" class="tsd-kind-method"><code>MysteryEncounterBuilder.withOption</code></a></p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">dialogue</span>: <a href="data_mystery_encounters_mystery_encounter_dialogue.OptionTextDisplay.html" class="tsd-signature-type tsd-kind-class">OptionTextDisplay</a></span><div class="tsd-comment tsd-typography"><p><a href="data_mystery_encounters_mystery_encounter_dialogue.OptionTextDisplay.html" class="tsd-kind-class"><code>OptionTextDisplay</code></a></p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">callback</span>: <a href="../types/data_mystery_encounters_mystery_encounter_option.OptionPhaseCallback.html" class="tsd-signature-type tsd-kind-type-alias">OptionPhaseCallback</a></span><div class="tsd-comment tsd-typography"><p><a href="../types/data_mystery_encounters_mystery_encounter_option.OptionPhaseCallback.html" class="tsd-kind-type-alias"><code>OptionPhaseCallback</code></a></p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;options&quot;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L608">src/data/mystery-encounters/mystery-encounter.ts:608</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withSimpleOption" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Simple<wbr/>Option</span><a href="#withSimpleOption" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withSimpleOption.withSimpleOption-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Simple<wbr/>Option</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">dialogue</span>, <span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;options&quot;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withSimpleOption.withSimpleOption-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Defines an option + phasefor the encounter.
2024-09-27 22:52:07 +01:00
Use for easy/streamlined options.
There should be at least 2 options defined and no more than 4.
If complex use <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html#withOption" class="tsd-kind-method"><code>MysteryEncounterBuilder.withOption</code></a></p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">dialogue</span>: <a href="data_mystery_encounters_mystery_encounter_dialogue.OptionTextDisplay.html" class="tsd-signature-type tsd-kind-class">OptionTextDisplay</a></span><div class="tsd-comment tsd-typography"><p><a href="data_mystery_encounters_mystery_encounter_dialogue.OptionTextDisplay.html" class="tsd-kind-class"><code>OptionTextDisplay</code></a></p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">callback</span>: <a href="../types/data_mystery_encounters_mystery_encounter_option.OptionPhaseCallback.html" class="tsd-signature-type tsd-kind-type-alias">OptionPhaseCallback</a></span><div class="tsd-comment tsd-typography"><p><a href="../types/data_mystery_encounters_mystery_encounter_option.OptionPhaseCallback.html" class="tsd-kind-type-alias"><code>OptionPhaseCallback</code></a></p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;options&quot;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L594">src/data/mystery-encounters/mystery-encounter.ts:594</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withSkipEnemyBattleTurns" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Skip<wbr/>Enemy<wbr/>Battle<wbr/>Turns</span><a href="#withSkipEnemyBattleTurns" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withSkipEnemyBattleTurns.withSkipEnemyBattleTurns-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Skip<wbr/>Enemy<wbr/>Battle<wbr/>Turns</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">skipEnemyBattleTurns</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;skipEnemyBattleTurns&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withSkipEnemyBattleTurns.withSkipEnemyBattleTurns-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>If true, encounter will not animate the target Pokemon as part of battle animations
2024-09-27 22:52:07 +01:00
Used for encounters where it is not a &quot;real&quot; battle, but still uses battle animations and commands (see FunAndGamesEncounter for an example)
Default false</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">skipEnemyBattleTurns</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;skipEnemyBattleTurns&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L713">src/data/mystery-encounters/mystery-encounter.ts:713</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withSkipToFightInput" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Skip<wbr/>To<wbr/>Fight<wbr/>Input</span><a href="#withSkipToFightInput" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withSkipToFightInput.withSkipToFightInput-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Skip<wbr/>To<wbr/>Fight<wbr/>Input</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">skipToFightInput</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;skipToFightInput&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withSkipToFightInput.withSkipToFightInput-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>If true, will skip COMMAND input and go straight to FIGHT (move select) input menu
2024-09-27 22:52:07 +01:00
Default false</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">skipToFightInput</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Required</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;skipToFightInput&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L722">src/data/mystery-encounters/mystery-encounter.ts:722</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withTitle" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>with<wbr/>Title</span><a href="#withTitle" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withTitle.withTitle-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Title</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">title</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span><a href="#withTitle.withTitle-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add a title for the encounter</p>
2024-09-27 22:52:07 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">title</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>Title of the encounter</p>
2024-09-29 08:49:44 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L924">src/data/mystery-encounters/mystery-encounter.ts:924</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="withEncounterType" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Static</code><span>with<wbr/>Encounter<wbr/>Type</span><a href="#withEncounterType" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withEncounterType.withEncounterType-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Encounter<wbr/>Type</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">encounterType</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;encounterType&quot;</span><span class="tsd-signature-symbol">&gt;</span><a href="#withEncounterType.withEncounterType-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">encounterType</span>: <a href="../enums/enums_mystery_encounter_type.MysteryEncounterType.html" class="tsd-signature-type tsd-kind-enum">MysteryEncounterType</a></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="data_mystery_encounters_mystery_encounter.MysteryEncounterBuilder.html" class="tsd-signature-type tsd-kind-class">MysteryEncounterBuilder</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/data_mystery_encounters_mystery_encounter.IMysteryEncounter.html" class="tsd-signature-type tsd-kind-interface">IMysteryEncounter</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;encounterType&quot;</span><span class="tsd-signature-symbol">&gt;</span></h4><p>this</p>
2024-09-27 22:52:07 +01:00
<div class="tsd-comment tsd-typography"><h4 class="tsd-anchor-link"><a id="Statif" class="tsd-anchor"></a>Statif<a href="#Statif" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>Defines the type of encounter which is used as an identifier, should be tied to a unique MysteryEncounterType
NOTE: if new functions are added to <a href="data_mystery_encounters_mystery_encounter.default.html" class="tsd-kind-class"><code>MysteryEncounter</code></a> class</p>
2024-09-29 08:49:44 +01:00
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6187830de77a8f3d2949e979171723850b2b811e/src/data/mystery-encounters/mystery-encounter.ts#L562">src/data/mystery-encounters/mystery-encounter.ts:562</a></li></ul></aside></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="tsd-otp-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="tsd-otp-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#autoHideIntroVisuals" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>auto<wbr/>Hide<wbr/>Intro<wbr/>Visuals</span></a><a href="#catchAllowed" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>catch<wbr/>Allowed</span></a><a href="#continuousEncounter" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>continuous<wbr/>Encounter</sp