pokerogue/main/functions/data_challenge.applyChallenges.html
2025-04-01 06:57:46 +00:00

72 lines
49 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>applyChallenges | 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><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">pokemon-rogue-battle</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/data_challenge.html">data/challenge</a></li><li><a href="" aria-current="page">applyChallenges</a></li></ul><h1>Function applyChallenges</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#starter_choice" class="tsd-signature-type tsd-kind-enum-member">STARTER_CHOICE</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/data_pokemon-species.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">valid</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">dexAttr</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/system_game-data.DexAttrProps.html" class="tsd-signature-type tsd-kind-interface">DexAttrProps</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify starter choice.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#starter_choice" class="tsd-signature-type tsd-kind-enum-member">STARTER_CHOICE</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_CHOICE</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/data_pokemon-species.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/data_pokemon-species.default.html" class="tsd-kind-class">PokemonSpecies</a> The pokemon to check the validity of.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">valid</span>: <a href="../classes/utils.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../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><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">dexAttr</span>: <a href="../interfaces/system_game-data.DexAttrProps.html" class="tsd-signature-type tsd-kind-interface">DexAttrProps</a></span><div class="tsd-comment tsd-typography"><p><a href="../interfaces/system_game-data.DexAttrProps.html" class="tsd-kind-interface">DexAttrProps</a> The dex attributes of the pokemon.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L981">src/data/challenge.ts:981</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-1"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#starter_points" class="tsd-signature-type tsd-kind-enum-member">STARTER_POINTS</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">points</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify available total starter points.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#starter_points" class="tsd-signature-type tsd-kind-enum-member">STARTER_POINTS</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_POINTS</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">points</span>: <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils.NumberHolder.html" class="tsd-kind-class">Utils.NumberHolder</a> The amount of points you have available.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L993">src/data/challenge.ts:993</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-2"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#starter_cost" class="tsd-signature-type tsd-kind-enum-member">STARTER_COST</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">species</span><span class="tsd-signature-symbol">:</span> <a href="../enums/enums_species.Species.html" class="tsd-signature-type tsd-kind-enum">Species</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">cost</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify the cost of a starter.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#starter_cost" class="tsd-signature-type tsd-kind-enum-member">STARTER_COST</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_COST</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">species</span>: <a href="../enums/enums_species.Species.html" class="tsd-signature-type tsd-kind-enum">Species</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/enums_species.Species.html" class="tsd-kind-enum">Species</a> The pokemon to change the cost of.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">cost</span>: <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1001">src/data/challenge.ts:1001</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-3"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#starter_modify" class="tsd-signature-type tsd-kind-enum-member">STARTER_MODIFY</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify a starter after selection.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#starter_modify" class="tsd-signature-type tsd-kind-enum-member">STARTER_MODIFY</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_MODIFY</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.default.html" class="tsd-kind-class">Pokemon</a> The starter pokemon to modify.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1012">src/data/challenge.ts:1012</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-4"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#pokemon_in_battle" class="tsd-signature-type tsd-kind-enum-member">POKEMON_IN_BATTLE</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">valid</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that what pokemon you can have in battle.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#pokemon_in_battle" class="tsd-signature-type tsd-kind-enum-member">POKEMON_IN_BATTLE</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.POKEMON_IN_BATTLE</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.default.html" class="tsd-kind-class">Pokemon</a> The pokemon to check the validity of.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">valid</span>: <a href="../classes/utils.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../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><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1020">src/data/challenge.ts:1020</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-5"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#fixed_battles" class="tsd-signature-type tsd-kind-enum-member">FIXED_BATTLES</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">waveIndex</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">battleConfig</span><span class="tsd-signature-symbol">:</span> <a href="../classes/battle.FixedBattleConfig.html" class="tsd-signature-type tsd-kind-class">FixedBattleConfig</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-5" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify what fixed battles there are.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#fixed_battles" class="tsd-signature-type tsd-kind-enum-member">FIXED_BATTLES</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.FIXED_BATTLES</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">waveIndex</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>Number The current wave index.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">battleConfig</span>: <a href="../classes/battle.FixedBattleConfig.html" class="tsd-signature-type tsd-kind-class">FixedBattleConfig</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/battle.FixedBattleConfig.html" class="tsd-kind-class">FixedBattleConfig</a> The battle config to modify.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1032">src/data/challenge.ts:1032</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-6"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#type_effectiveness" class="tsd-signature-type tsd-kind-enum-member">TYPE_EFFECTIVENESS</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">effectiveness</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-6" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify type effectiveness.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#type_effectiveness" class="tsd-signature-type tsd-kind-enum-member">TYPE_EFFECTIVENESS</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum"><code>ChallengeType</code></a> ChallengeType.TYPE_EFFECTIVENESS</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">effectiveness</span>: <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils.NumberHolder.html" class="tsd-kind-class"><code>Utils.NumberHolder</code></a> The current effectiveness of the move.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1043">src/data/challenge.ts:1043</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-7"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#ai_level" class="tsd-signature-type tsd-kind-enum-member">AI_LEVEL</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">level</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">levelCap</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">isTrainer</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">isBoss</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-7" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify what level AI are.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#ai_level" class="tsd-signature-type tsd-kind-enum-member">AI_LEVEL</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.AI_LEVEL</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">level</span>: <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils.NumberHolder.html" class="tsd-kind-class">Utils.NumberHolder</a> The generated level of the pokemon.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">levelCap</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>Number The maximum level cap for the current wave.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">isTrainer</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Boolean Whether this is a trainer pokemon.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">isBoss</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Boolean Whether this is a non-trainer boss pokemon.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1056">src/data/challenge.ts:1056</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-8"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#ai_move_slots" class="tsd-signature-type tsd-kind-enum-member">AI_MOVE_SLOTS</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">moveSlots</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-8" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify how many move slots the AI has.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#ai_move_slots" class="tsd-signature-type tsd-kind-enum-member">AI_MOVE_SLOTS</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.AI_MOVE_SLOTS</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.default.html" class="tsd-kind-class">Pokemon</a> The pokemon being considered.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">moveSlots</span>: <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils.NumberHolder.html" class="tsd-kind-class">Utils.NumberHolder</a> The amount of move slots.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1070">src/data/challenge.ts:1070</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-9"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#passive_access" class="tsd-signature-type tsd-kind-enum-member">PASSIVE_ACCESS</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">hasPassive</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-9" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify whether a pokemon has its passive.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#passive_access" class="tsd-signature-type tsd-kind-enum-member">PASSIVE_ACCESS</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.PASSIVE_ACCESS</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.default.html" class="tsd-kind-class">Pokemon</a> The pokemon to modify.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">hasPassive</span>: <a href="../classes/utils.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils.BooleanHolder.html" class="tsd-kind-class">Utils.BooleanHolder</a> Whether it has its passive.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1082">src/data/challenge.ts:1082</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-10"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#game_mode_modify" class="tsd-signature-type tsd-kind-enum-member">GAME_MODE_MODIFY</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-10" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify the game modes settings.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#game_mode_modify" class="tsd-signature-type tsd-kind-enum-member">GAME_MODE_MODIFY</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.GAME_MODE_MODIFY</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1092">src/data/challenge.ts:1092</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-11"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#move_access" class="tsd-signature-type tsd-kind-enum-member">MOVE_ACCESS</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">moveSource</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.MoveSourceType.html" class="tsd-signature-type tsd-kind-enum">MoveSourceType</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">move</span><span class="tsd-signature-symbol">:</span> <a href="../enums/enums_moves.Moves.html" class="tsd-signature-type tsd-kind-enum">Moves</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">level</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-11" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify what level a pokemon can access a move.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#move_access" class="tsd-signature-type tsd-kind-enum-member">MOVE_ACCESS</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.MOVE_ACCESS</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.default.html" class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">moveSource</span>: <a href="../enums/data_challenge.MoveSourceType.html" class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.MoveSourceType.html" class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">move</span>: <a href="../enums/enums_moves.Moves.html" class="tsd-signature-type tsd-kind-enum">Moves</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/enums_moves.Moves.html" class="tsd-kind-enum">Moves</a> The move in question.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">level</span>: <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils.NumberHolder.html" class="tsd-kind-class">Utils.NumberHolder</a> The level threshold for access.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1102">src/data/challenge.ts:1102</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-12"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#move_weight" class="tsd-signature-type tsd-kind-enum-member">MOVE_WEIGHT</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">moveSource</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.MoveSourceType.html" class="tsd-signature-type tsd-kind-enum">MoveSourceType</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">move</span><span class="tsd-signature-symbol">:</span> <a href="../enums/enums_moves.Moves.html" class="tsd-signature-type tsd-kind-enum">Moves</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">weight</span><span class="tsd-signature-symbol">:</span> <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-12" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify what weight a pokemon gives to move generation</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#move_weight" class="tsd-signature-type tsd-kind-enum-member">MOVE_WEIGHT</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.MOVE_WEIGHT</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.default.html" class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">moveSource</span>: <a href="../enums/data_challenge.MoveSourceType.html" class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.MoveSourceType.html" class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">move</span>: <a href="../enums/enums_moves.Moves.html" class="tsd-signature-type tsd-kind-enum">Moves</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/enums_moves.Moves.html" class="tsd-kind-enum">Moves</a> The move in question.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">weight</span>: <a href="../classes/utils.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils.NumberHolder.html" class="tsd-kind-class">Utils.NumberHolder</a> The weight of the move.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1118">src/data/challenge.ts:1118</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-13"><span class="tsd-kind-call-signature">applyChallenges</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/data_challenge.ChallengeType.html#flip_stat" class="tsd-signature-type tsd-kind-enum-member">FLIP_STAT</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">baseStats</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-13" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Apply all challenges that modify starter choice.</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">challengeType</span>: <a href="../enums/data_challenge.ChallengeType.html#flip_stat" class="tsd-signature-type tsd-kind-enum-member">FLIP_STAT</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/data_challenge.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_CHOICE</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/data_pokemon-species.default.html" class="tsd-kind-class">PokemonSpecies</a> The pokemon to check the validity of.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">baseStats</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/7d6b375f6fddcf00262bf391f176bd6d6e15c448/src/data/challenge.ts#L1126">src/data/challenge.ts:1126</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>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></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">pokemon-rogue-battle</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>