pokerogue/beta/functions/src_utils_challenge-utils.applyChallenges.html
2025-09-23 13:50:32 +00:00

114 lines
75 KiB
HTML
Raw Permalink 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 | PokéRogue</title><link rel="icon" href="../assets/favicon.ico"/><meta name="description" content="Documentation for PokéRogue"/><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><link rel="stylesheet" href="../assets/typedoc-github-style.css"/></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">PokéRogue</a><div id="tsd-toolbar-links"><a href="https://github.com/pagefaultgames/pokerogue">GitHub</a><a href="https://pagefaultgames.github.io/pokerogue/main">Switch to Main</a></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/src_utils_challenge-utils.html">src/utils/challenge-utils</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/src_enums_challenge-type.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/src_data_pokemon-species.PokemonSpecies.html" class="tsd-signature-type tsd-kind-class">PokemonSpecies</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">valid</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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/src__types_save-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-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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html#starter_choice" class="tsd-kind-enum-member"><code>ChallengeType.STARTER_CHOICE</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_data_pokemon-species.PokemonSpecies.html" class="tsd-signature-type tsd-kind-class">PokemonSpecies</a></span><div class="tsd-comment tsd-typography"><p>The <a href="../classes/src_data_pokemon-species.PokemonSpecies.html" class="tsd-kind-class"><code>PokemonSpecies</code></a> to check the validity of</p>
</div></li><li><span><span class="tsd-kind-parameter">valid</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>A <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-kind-class"><code>BooleanHolder</code></a> holding the checked species' validity;
will be set to <code>false</code> if the species is disallowed</p>
</div></li><li><span><span class="tsd-kind-parameter">dexAttr</span>: <a href="../interfaces/src__types_save-data.DexAttrProps.html" class="tsd-signature-type tsd-kind-interface">DexAttrProps</a></span><div class="tsd-comment tsd-typography"><p>The <a href="../interfaces/src__types_save-data.DexAttrProps.html" class="tsd-kind-interface"><code>Dex attributes</code></a> of the species</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if any challenge was successfully applied</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L28">src/utils/challenge-utils.ts:28</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/src_enums_challenge-type.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/src_utils_common.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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_POINTS</p>
</div></li><li><span><span class="tsd-kind-parameter">points</span>: <a href="../classes/src_utils_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_utils_common.NumberHolder.html" class="tsd-kind-class">NumberHolder</a> The amount of points you have available.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L40">src/utils/challenge-utils.ts:40</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/src_enums_challenge-type.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/src_enums_species-id.SpeciesId.html" class="tsd-signature-type tsd-kind-enum">SpeciesId</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">cost</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_COST</p>
</div></li><li><span><span class="tsd-kind-parameter">species</span>: <a href="../enums/src_enums_species-id.SpeciesId.html" class="tsd-signature-type tsd-kind-enum">SpeciesId</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_species-id.SpeciesId.html" class="tsd-kind-enum">SpeciesId</a> The pokemon to change the cost of.</p>
</div></li><li><span><span class="tsd-kind-parameter">cost</span>: <a href="../classes/src_utils_common.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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L48">src/utils/challenge-utils.ts:48</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><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/src_enums_challenge-type.ChallengeType.html#starter_select_modify" class="tsd-signature-type tsd-kind-enum-member">STARTER_SELECT_MODIFY</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">speciesId</span><span class="tsd-signature-symbol">:</span> <a href="../enums/src_enums_species-id.SpeciesId.html" class="tsd-signature-type tsd-kind-enum">SpeciesId</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">dexEntry</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/src__types_dex-data.DexEntry.html" class="tsd-signature-type tsd-kind-interface">DexEntry</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">starterDataEntry</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/src__types_save-data.StarterDataEntry.html" class="tsd-signature-type tsd-kind-interface">StarterDataEntry</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-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 selectable starter data.</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/src_enums_challenge-type.ChallengeType.html#starter_select_modify" class="tsd-signature-type tsd-kind-enum-member">STARTER_SELECT_MODIFY</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_SELECT_MODIFY</p>
</div></li><li><span><span class="tsd-kind-parameter">speciesId</span>: <a href="../enums/src_enums_species-id.SpeciesId.html" class="tsd-signature-type tsd-kind-enum">SpeciesId</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_species-id.SpeciesId.html" class="tsd-kind-enum">SpeciesId</a> The speciesId of the pokemon</p>
</div></li><li><span><span class="tsd-kind-parameter">dexEntry</span>: <a href="../interfaces/src__types_dex-data.DexEntry.html" class="tsd-signature-type tsd-kind-interface">DexEntry</a></span><div class="tsd-comment tsd-typography"><p><a href="../interfaces/src__types_dex-data.DexEntry.html" class="tsd-kind-interface">DexEntry</a> The pokedex data associated to the pokemon.</p>
</div></li><li><span><span class="tsd-kind-parameter">starterDataEntry</span>: <a href="../interfaces/src__types_save-data.StarterDataEntry.html" class="tsd-signature-type tsd-kind-interface">StarterDataEntry</a></span><div class="tsd-comment tsd-typography"><p><a href="../interfaces/src__types_save-data.StarterDataEntry.html" class="tsd-kind-interface">StarterDataEntry</a> The starter data associated to the pokemon.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L61">src/utils/challenge-utils.ts:61</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><span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/src_enums_challenge-type.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/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_MODIFY</p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-kind-class">Pokemon</a> The starter pokemon to modify.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L73">src/utils/challenge-utils.ts:73</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/src_enums_challenge-type.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/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">valid</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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-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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.POKEMON_IN_BATTLE</p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-kind-class">Pokemon</a> The pokemon to check the validity of.</p>
</div></li><li><span><span class="tsd-kind-parameter">valid</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-kind-class">BooleanHolder</a> A BooleanHolder, the value gets set to false if the pokemon isn't allowed.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L81">src/utils/challenge-utils.ts:81</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/src_enums_challenge-type.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/src_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-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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.FIXED_BATTLES</p>
</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><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a> The current wave index.</p>
</div></li><li><span><span class="tsd-kind-parameter">battleConfig</span>: <a href="../classes/src_battle.FixedBattleConfig.html" class="tsd-signature-type tsd-kind-class">FixedBattleConfig</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_battle.FixedBattleConfig.html" class="tsd-kind-class">FixedBattleConfig</a> The battle config to modify.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L93">src/utils/challenge-utils.ts:93</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/src_enums_challenge-type.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/src_utils_common.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-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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum"><code>ChallengeType</code></a> ChallengeType.TYPE_EFFECTIVENESS</p>
</div></li><li><span><span class="tsd-kind-parameter">effectiveness</span>: <a href="../classes/src_utils_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_utils_common.NumberHolder.html" class="tsd-kind-class"><code>NumberHolder</code></a> The current effectiveness of the move.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L104">src/utils/challenge-utils.ts:104</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/src_enums_challenge-type.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/src_utils_common.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-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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.AI_LEVEL</p>
</div></li><li><span><span class="tsd-kind-parameter">level</span>: <a href="../classes/src_utils_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_utils_common.NumberHolder.html" class="tsd-kind-class">NumberHolder</a> The generated level of the pokemon.</p>
</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><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a> The maximum level cap for the current wave.</p>
</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><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">Boolean</a> Whether this is a trainer pokemon.</p>
</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><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">Boolean</a> Whether this is a non-trainer boss pokemon.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L114">src/utils/challenge-utils.ts:114</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/src_enums_challenge-type.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/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">moveSlots</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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-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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.AI_MOVE_SLOTS</p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-kind-class">Pokemon</a> The pokemon being considered.</p>
</div></li><li><span><span class="tsd-kind-parameter">moveSlots</span>: <a href="../classes/src_utils_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_utils_common.NumberHolder.html" class="tsd-kind-class">NumberHolder</a> The amount of move slots.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L128">src/utils/challenge-utils.ts:128</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><br/>    <span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/src_enums_challenge-type.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/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">hasPassive</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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-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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.PASSIVE_ACCESS</p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-kind-class">Pokemon</a> The pokemon to modify.</p>
</div></li><li><span><span class="tsd-kind-parameter">hasPassive</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-kind-class">BooleanHolder</a> Whether it has its passive.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L140">src/utils/challenge-utils.ts:140</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><span class="tsd-kind-parameter">challengeType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/src_enums_challenge-type.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-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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.GAME_MODE_MODIFY</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L150">src/utils/challenge-utils.ts:150</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/src_enums_challenge-type.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/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">moveSource</span><span class="tsd-signature-symbol">:</span> <a href="../enums/src_enums_move-source-type.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/src_enums_move-id.MoveId.html" class="tsd-signature-type tsd-kind-enum">MoveId</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">level</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.MOVE_ACCESS</p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div></li><li><span><span class="tsd-kind-parameter">moveSource</span>: <a href="../enums/src_enums_move-source-type.MoveSourceType.html" class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_move-source-type.MoveSourceType.html" class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div></li><li><span><span class="tsd-kind-parameter">move</span>: <a href="../enums/src_enums_move-id.MoveId.html" class="tsd-signature-type tsd-kind-enum">MoveId</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_move-id.MoveId.html" class="tsd-kind-enum">MoveId</a> The move in question.</p>
</div></li><li><span><span class="tsd-kind-parameter">level</span>: <a href="../classes/src_utils_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_utils_common.NumberHolder.html" class="tsd-kind-class">NumberHolder</a> The level threshold for access.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L160">src/utils/challenge-utils.ts:160</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/src_enums_challenge-type.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/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">moveSource</span><span class="tsd-signature-symbol">:</span> <a href="../enums/src_enums_move-source-type.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/src_enums_move-id.MoveId.html" class="tsd-signature-type tsd-kind-enum">MoveId</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">weight</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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-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 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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.MOVE_WEIGHT</p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div></li><li><span><span class="tsd-kind-parameter">moveSource</span>: <a href="../enums/src_enums_move-source-type.MoveSourceType.html" class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_move-source-type.MoveSourceType.html" class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div></li><li><span><span class="tsd-kind-parameter">move</span>: <a href="../enums/src_enums_move-id.MoveId.html" class="tsd-signature-type tsd-kind-enum">MoveId</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_move-id.MoveId.html" class="tsd-kind-enum">MoveId</a> The move in question.</p>
</div></li><li><span><span class="tsd-kind-parameter">weight</span>: <a href="../classes/src_utils_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/src_utils_common.NumberHolder.html" class="tsd-kind-class">NumberHolder</a> The weight of the move.</p>
</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>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L176">src/utils/challenge-utils.ts:176</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-14"><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/src_enums_challenge-type.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/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</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-14" 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-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/src_enums_challenge-type.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/src_enums_challenge-type.ChallengeType.html#starter_choice" class="tsd-kind-enum-member"><code>ChallengeType.STARTER_CHOICE</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p>The <a href="../classes/src_data_pokemon-species.PokemonSpecies.html" class="tsd-kind-class"><code>PokemonSpecies</code></a> to check the validity of</p>
</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><code>true</code> if any challenge was successfully applied</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L184">src/utils/challenge-utils.ts:184</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-15"><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/src_enums_challenge-type.ChallengeType.html#party_heal" class="tsd-signature-type tsd-kind-enum-member">PARTY_HEAL</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">status</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-15" 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 conditionally enable or disable automatic party healing during biome transitions</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/src_enums_challenge-type.ChallengeType.html#party_heal" class="tsd-signature-type tsd-kind-enum-member">PARTY_HEAL</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_challenge-type.ChallengeType.html#party_heal" class="tsd-kind-enum-member"><code>ChallengeType.PARTY_HEAL</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>Whether party healing is enabled or not</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if any challenge was successfully applied, <code>false</code> otherwise</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L192">src/utils/challenge-utils.ts:192</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-16"><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/src_enums_challenge-type.ChallengeType.html#shop" class="tsd-signature-type tsd-kind-enum-member">SHOP</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">status</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-16" 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 conditionally enable or disable the shop</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/src_enums_challenge-type.ChallengeType.html#shop" class="tsd-signature-type tsd-kind-enum-member">SHOP</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_challenge-type.ChallengeType.html#shop" class="tsd-kind-enum-member"><code>ChallengeType.SHOP</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>Whether party healing is enabled or not</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if any challenge was successfully applied, <code>false</code> otherwise</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L200">src/utils/challenge-utils.ts:200</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-17"><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/src_enums_challenge-type.ChallengeType.html#pokemon_add_to_party" class="tsd-signature-type tsd-kind-enum-member">POKEMON_ADD_TO_PARTY</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_field_pokemon.EnemyPokemon.html" class="tsd-signature-type tsd-kind-class">EnemyPokemon</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">status</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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-17" 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 validate whether a pokemon can be added to the player's party or not</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/src_enums_challenge-type.ChallengeType.html#pokemon_add_to_party" class="tsd-signature-type tsd-kind-enum-member">POKEMON_ADD_TO_PARTY</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_challenge-type.ChallengeType.html#pokemon_add_to_party" class="tsd-kind-enum-member"><code>ChallengeType.POKEMON_ADD_TO_PARTY</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_field_pokemon.EnemyPokemon.html" class="tsd-signature-type tsd-kind-class">EnemyPokemon</a></span><div class="tsd-comment tsd-typography"><p>The pokemon being caught</p>
</div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>Whether the pokemon can be added to the party or not</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L209">src/utils/challenge-utils.ts:209</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-18"><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/src_enums_challenge-type.ChallengeType.html#pokemon_fusion" class="tsd-signature-type tsd-kind-enum-member">POKEMON_FUSION</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_field_pokemon.PlayerPokemon.html" class="tsd-signature-type tsd-kind-class">PlayerPokemon</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">status</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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-18" 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 validate whether a pokemon is allowed to fuse or not</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/src_enums_challenge-type.ChallengeType.html#pokemon_fusion" class="tsd-signature-type tsd-kind-enum-member">POKEMON_FUSION</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_challenge-type.ChallengeType.html#pokemon_fusion" class="tsd-kind-enum-member"><code>ChallengeType.POKEMON_FUSION</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/src_field_pokemon.PlayerPokemon.html" class="tsd-signature-type tsd-kind-class">PlayerPokemon</a></span><div class="tsd-comment tsd-typography"><p>The pokemon being checked</p>
</div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>Whether the selected pokemon is allowed to fuse or not</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L222">src/utils/challenge-utils.ts:222</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-19"><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/src_enums_challenge-type.ChallengeType.html#pokemon_move" class="tsd-signature-type tsd-kind-enum-member">POKEMON_MOVE</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">moveId</span><span class="tsd-signature-symbol">:</span> <a href="../enums/src_enums_move-id.MoveId.html" class="tsd-signature-type tsd-kind-enum">MoveId</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">status</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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-19" 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 validate whether particular moves can or cannot be used</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/src_enums_challenge-type.ChallengeType.html#pokemon_move" class="tsd-signature-type tsd-kind-enum-member">POKEMON_MOVE</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_challenge-type.ChallengeType.html#pokemon_move" class="tsd-kind-enum-member"><code>ChallengeType.POKEMON_MOVE</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">moveId</span>: <a href="../enums/src_enums_move-id.MoveId.html" class="tsd-signature-type tsd-kind-enum">MoveId</a></span><div class="tsd-comment tsd-typography"><p>The move being checked</p>
</div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>Whether the move can be used or not</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L235">src/utils/challenge-utils.ts:235</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-20"><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/src_enums_challenge-type.ChallengeType.html#shop_item" class="tsd-signature-type tsd-kind-enum-member">SHOP_ITEM</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">shopItem</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="../classes/src_modifier_modifier-type.ModifierTypeOption.html" class="tsd-signature-type tsd-kind-class">ModifierTypeOption</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">status</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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-20" 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 validate whether particular items are or are not sold in the shop</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/src_enums_challenge-type.ChallengeType.html#shop_item" class="tsd-signature-type tsd-kind-enum-member">SHOP_ITEM</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_challenge-type.ChallengeType.html#shop_item" class="tsd-kind-enum-member"><code>ChallengeType.SHOP_ITEM</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">shopItem</span>: <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="../classes/src_modifier_modifier-type.ModifierTypeOption.html" class="tsd-signature-type tsd-kind-class">ModifierTypeOption</a></span><div class="tsd-comment tsd-typography"><p>The item being checked</p>
</div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>Whether the item should be added to the shop or not</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L248">src/utils/challenge-utils.ts:248</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-21"><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/src_enums_challenge-type.ChallengeType.html#wave_reward" class="tsd-signature-type tsd-kind-enum-member">WAVE_REWARD</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">reward</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="../classes/src_modifier_modifier-type.ModifierTypeOption.html" class="tsd-signature-type tsd-kind-class">ModifierTypeOption</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">status</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.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-21" 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 validate whether particular items will be given as a reward after a wave</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/src_enums_challenge-type.ChallengeType.html#wave_reward" class="tsd-signature-type tsd-kind-enum-member">WAVE_REWARD</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_challenge-type.ChallengeType.html#wave_reward" class="tsd-kind-enum-member"><code>ChallengeType.WAVE_REWARD</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">reward</span>: <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="../classes/src_modifier_modifier-type.ModifierTypeOption.html" class="tsd-signature-type tsd-kind-class">ModifierTypeOption</a></span><div class="tsd-comment tsd-typography"><p>The reward being checked</p>
</div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>Whether the reward should be added to the reward options or not</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L261">src/utils/challenge-utils.ts:261</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="applychallenges-22"><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/src_enums_challenge-type.ChallengeType.html#prevent_revive" class="tsd-signature-type tsd-kind-enum-member">PREVENT_REVIVE</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">status</span><span class="tsd-signature-symbol">:</span> <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#applychallenges-22" 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 prevent recovery from fainting</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/src_enums_challenge-type.ChallengeType.html#prevent_revive" class="tsd-signature-type tsd-kind-enum-member">PREVENT_REVIVE</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/src_enums_challenge-type.ChallengeType.html#prevent_revive" class="tsd-kind-enum-member"><code>ChallengeType.PREVENT_REVIVE</code></a></p>
</div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/src_utils_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>Whether fainting is a permanent status or not</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/6766940fa15202c9995f2fed7287bf85939d9816/src/utils/challenge-utils.ts#L273">src/utils/challenge-utils.ts:273</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-private" name="private"/><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>Private</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 id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/pagefaultgames/pokerogue" class="tsd-nav-link">GitHub</a><a href="https://pagefaultgames.github.io/pokerogue/main" class="tsd-nav-link">Switch to Main</a></nav><nav class="tsd-navigation"><a href="../modules.html">PokéRogue</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> with <a href="https://github.com/JulianWowra/typedoc-github-theme" target="_blank">typedoc-github-theme</a></p><p>Copyright <strong>Pagefault Games</strong> 2025</p></footer><div class="overlay"></div></body></html>