<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharset="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>applyChallenges | pokemon-rogue-battle</title><metaname="description"content="Documentation for pokemon-rogue-battle"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="../assets/style.css"/><linkrel="stylesheet"href="../assets/highlight.css"/><scriptdefersrc="../assets/main.js"></script><scriptasyncsrc="../assets/icons.js"id="tsd-icons-script"></script><scriptasyncsrc="../assets/search.js"id="tsd-search-script"></script><scriptasyncsrc="../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><headerclass="tsd-page-toolbar"><divclass="tsd-toolbar-contents container"><divclass="table-cell"id="tsd-search"data-base=".."><divclass="field"><labelfor="tsd-search-field"class="tsd-widget tsd-toolbar-icon search no-caption"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-search"></use></svg></label><inputtype="text"id="tsd-search-field"aria-label="Search"/></div><divclass="field"><divid="tsd-toolbar-links"></div></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="../index.html"class="title">pokemon-rogue-battle</a></div><divclass="table-cell"id="tsd-widgets"><ahref="#"class="tsd-widget tsd-toolbar-icon menu no-caption"data-toggle="menu"aria-label="Menu"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><divclass="container container-main"><divclass="col-content"><divclass="tsd-page-title"><ulclass="tsd-breadcrumb"><li><ahref="../index.html">pokemon-rogue-battle</a></li><li><ahref="../modules/data_challenge.html">data/challenge</a></li><li><ahref="data_challenge.applyChallenges.html">applyChallenges</a></li></ul><h1>Function applyChallenges</h1></div><sectionclass="tsd-panel"><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">valid</span>, <spanclass="tsd-kind-parameter">dexAttr</span>, <spanclass="tsd-kind-parameter">soft</span>, <spanclass="tsd-kind-parameter">checkEvolutions</span><spanclass="tsd-signature-symbol">?</span>, <spanclass="tsd-kind-parameter">checkForms</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify starter choice.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/data_pokemon_species.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/data_pokemon_species.default.html"class="tsd-kind-class">PokemonSpecies</a> The pokemon to check the validity of.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">valid</span>: <ahref="../classes/utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.BooleanHolder.html"class="tsd-kind-class">Utils.BooleanHolder</a> A BooleanHolder, the value gets set to false if the pokemon isn't allowed.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">dexAttr</span>: <ahref="../interfaces/system_game_data.DexAttrProps.html"class="tsd-signature-type tsd-kind-interface">DexAttrProps</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../interfaces/system_game_data.DexAttrProps.html"class="tsd-kind-interface">DexAttrProps</a> The dex attributes of the pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">soft</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>boolean If true, allow it if it could become a valid pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">checkEvolutions</span>: <spanclass="tsd-signature-type">boolean</span></span></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">checkForms</span>: <spanclass="tsd-signature-type">boolean</span></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L752">src/data/challenge.ts:752</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">points</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify available total starter points.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">points</span>: <ahref="../classes/utils.NumberHolder.html"class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.NumberHolder.html"class="tsd-kind-class">Utils.NumberHolder</a> The amount of points you have available.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L760">src/data/challenge.ts:760</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-2"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">species</span>, <spanclass="tsd-kind-parameter">cost</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-2"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify the cost of a starter.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">species</span>: <ahref="../enums/enums_species.Species.html"class="tsd-signature-type tsd-kind-enum">Species</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_species.Species.html"class="tsd-kind-enum">Species</a> The pokemon to change the cost of.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">cost</span>: <ahref="../classes/utils.NumberHolder.html"class="tsd-signature-type tsd-kind-class">NumberHolder</a></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L769">src/data/challenge.ts:769</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-3"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-3"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify a starter after selection.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The starter pokemon to modify.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L777">src/data/challenge.ts:777</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-4"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">valid</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-4"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that what pokemon you can have in battle.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The pokemon to check the validity of.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">valid</span>: <ahref="../classes/utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.BooleanHolder.html"class="tsd-kind-class">Utils.BooleanHolder</a> A BooleanHolder, the value gets set to false if the pokemon isn't allowed.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L786">src/data/challenge.ts:786</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-5"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">waveIndex</span>, <spanclass="tsd-kind-parameter">battleConfig</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-5"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify what fixed battles there are.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">waveIndex</span>: <spanclass="tsd-signature-type">Number</span></span><divclass="tsd-comment tsd-typography"><p>Number The current wave index.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">battleConfig</span>: <ahref="../classes/battle.FixedBattleConfig.html"class="tsd-signature-type tsd-kind-class">FixedBattleConfig</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/battle.FixedBattleConfig.html"class="tsd-kind-class">FixedBattleConfig</a> The battle config to modify.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L795">src/data/challenge.ts:795</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-6"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">level</span>, <spanclass="tsd-kind-parameter">levelCap</span>, <spanclass="tsd-kind-parameter">isTrainer</span>, <spanclass="tsd-kind-parameter">isBoss</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-6"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify what level AI are.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">level</span>: <ahref="../classes/utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The generated level of the pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">levelCap</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>Number The maximum level cap for the current wave.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">isTrainer</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>Boolean Whether this is a trainer pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">isBoss</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>Boolean Whether this is a non-trainer boss pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L806">src/data/challenge.ts:806</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-7"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">moveSlots</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-7"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify how many move slots the AI has.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The pokemon being considered.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">moveSlots</span>: <ahref="../classes/utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The amount of move slots.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L815">src/data/challenge.ts:815</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-8"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">hasPassive</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-8"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify whether a pokemon has its passive.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The pokemon to modify.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">hasPassive</span>: <ahref="../classes/utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.BooleanHolder.html"class="tsd-kind-class">Utils.BooleanHolder</a> Whether it has its passive.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L824">src/data/challenge.ts:824</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-9"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-9"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify the game modes settings.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L831">src/data/challenge.ts:831</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-10"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">moveSource</span>, <spanclass="tsd-kind-parameter">move</span>, <spanclass="tsd-kind-parameter">level</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-10"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify what level a pokemon can access a move.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">moveSource</span>: <ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="../enums/enums_moves.Moves.html"class="tsd-signature-type tsd-kind-enum">Moves</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_moves.Moves.html"class="tsd-kind-enum">Moves</a> The move in question.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">level</span>: <ahref="../classes/utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The level threshold for access.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/8a883ea0795ccebd2dc9ab9aae00e6e96cc6bb6a/src/data/challenge.ts#L842">src/data/challenge.ts:842</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-11"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">moveSource</span>, <spanclass="tsd-kind-parameter">move</span>, <spanclass="tsd-kind-parameter">weight</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-11"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Apply all challenges that modify what weight a pokemon gives to move generation</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">moveSource</span>: <ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="../enums/enums_moves.Moves.html"class="tsd-signature-type tsd-kind-enum">Moves</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_moves.Moves.html"class="tsd-kind-enum">Moves</a> The move in question.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">weight</span>: <ahref="../classes/utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The weight of the move.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>