114 lines
76 KiB
HTML
114 lines
76 KiB
HTML
<!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/utils_challenge-utils.html">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/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/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/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/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-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/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/enums_challenge-type.ChallengeType.html#starter_choice" class="tsd-kind-enum-member"><code>ChallengeType.STARTER_CHOICE</code></a></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.PokemonSpecies.html" class="tsd-signature-type tsd-kind-class">PokemonSpecies</a></span><div class="tsd-comment tsd-typography"><p>The <a href="../classes/data_pokemon-species.PokemonSpecies.html" class="tsd-kind-class"><code>PokemonSpecies</code></a> 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_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p>A <a href="../classes/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><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>The <a href="../interfaces/system_game-data.DexAttrProps.html" class="tsd-kind-interface"><code>Dex attributes</code></a> of the species</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><code>true</code> 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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L26">src/utils/challenge-utils.ts:26</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/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/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/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/enums_challenge-type.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_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils_common.NumberHolder.html" class="tsd-kind-class">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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L38">src/utils/challenge-utils.ts:38</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/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/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/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/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/enums_challenge-type.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-id.SpeciesId.html" class="tsd-signature-type tsd-kind-enum">SpeciesId</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/enums_species-id.SpeciesId.html" class="tsd-kind-enum">SpeciesId</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_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>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L46">src/utils/challenge-utils.ts:46</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/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/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/_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/system_game-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/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/enums_challenge-type.ChallengeType.html" class="tsd-kind-enum">ChallengeType</a> ChallengeType.STARTER_SELECT_MODIFY</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">speciesId</span>: <a href="../enums/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/enums_species-id.SpeciesId.html" class="tsd-kind-enum">SpeciesId</a> The speciesId of the pokemon</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">dexEntry</span>: <a href="../interfaces/_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/_types_dex-data.DexEntry.html" class="tsd-kind-interface">DexEntry</a> The pokedex data associated to the pokemon.</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">starterDataEntry</span>: <a href="../interfaces/system_game-data.StarterDataEntry.html" class="tsd-signature-type tsd-kind-interface">StarterDataEntry</a></span><div class="tsd-comment tsd-typography"><p><a href="../interfaces/system_game-data.StarterDataEntry.html" class="tsd-kind-interface">StarterDataEntry</a> The starter data associated to 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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L59">src/utils/challenge-utils.ts:59</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/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/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/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/enums_challenge-type.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.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.Pokemon.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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L71">src/utils/challenge-utils.ts:71</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/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/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/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/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/enums_challenge-type.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.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.Pokemon.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_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/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><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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L79">src/utils/challenge-utils.ts:79</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/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/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/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/enums_challenge-type.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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L91">src/utils/challenge-utils.ts:91</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/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/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/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/enums_challenge-type.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_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils_common.NumberHolder.html" class="tsd-kind-class"><code>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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L102">src/utils/challenge-utils.ts:102</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/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/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/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/enums_challenge-type.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_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils_common.NumberHolder.html" class="tsd-kind-class">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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L112">src/utils/challenge-utils.ts:112</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/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/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/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/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/enums_challenge-type.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.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.Pokemon.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_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils_common.NumberHolder.html" class="tsd-kind-class">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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L126">src/utils/challenge-utils.ts:126</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/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/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/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/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/enums_challenge-type.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.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.Pokemon.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_common.BooleanHolder.html" class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils_common.BooleanHolder.html" class="tsd-kind-class">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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L138">src/utils/challenge-utils.ts:138</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/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/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/enums_challenge-type.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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L148">src/utils/challenge-utils.ts:148</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/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/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/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/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/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/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/enums_challenge-type.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.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.Pokemon.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/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/enums_move-source-type.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_move-id.MoveId.html" class="tsd-signature-type tsd-kind-enum">MoveId</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/enums_move-id.MoveId.html" class="tsd-kind-enum">MoveId</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_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils_common.NumberHolder.html" class="tsd-kind-class">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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L158">src/utils/challenge-utils.ts:158</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/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/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/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/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/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/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/enums_challenge-type.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.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/field_pokemon.Pokemon.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/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/enums_move-source-type.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_move-id.MoveId.html" class="tsd-signature-type tsd-kind-enum">MoveId</a></span><div class="tsd-comment tsd-typography"><p><a href="../enums/enums_move-id.MoveId.html" class="tsd-kind-enum">MoveId</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_common.NumberHolder.html" class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><div class="tsd-comment tsd-typography"><p><a href="../classes/utils_common.NumberHolder.html" class="tsd-kind-class">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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L174">src/utils/challenge-utils.ts:174</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/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/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/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/enums_challenge-type.ChallengeType.html#starter_choice" class="tsd-kind-enum-member"><code>ChallengeType.STARTER_CHOICE</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/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/data_pokemon-species.PokemonSpecies.html" class="tsd-kind-class"><code>PokemonSpecies</code></a> 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><code>true</code> 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/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L182">src/utils/challenge-utils.ts:182</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/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/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/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/enums_challenge-type.ChallengeType.html#party_heal" class="tsd-kind-enum-member"><code>ChallengeType.PARTY_HEAL</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/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><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><code>true</code> if any challenge was successfully applied, <code>false</code> otherwise</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L190">src/utils/challenge-utils.ts:190</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/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/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/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/enums_challenge-type.ChallengeType.html#shop" class="tsd-kind-enum-member"><code>ChallengeType.SHOP</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/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><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><code>true</code> if any challenge was successfully applied, <code>false</code> otherwise</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L198">src/utils/challenge-utils.ts:198</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/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/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/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/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/enums_challenge-type.ChallengeType.html#pokemon_add_to_party" class="tsd-kind-enum-member"><code>ChallengeType.POKEMON_ADD_TO_PARTY</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/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><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/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><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><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L207">src/utils/challenge-utils.ts:207</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/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/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/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/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/enums_challenge-type.ChallengeType.html#pokemon_fusion" class="tsd-kind-enum-member"><code>ChallengeType.POKEMON_FUSION</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="../classes/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><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/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><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><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L220">src/utils/challenge-utils.ts:220</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/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/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/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/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/enums_challenge-type.ChallengeType.html#pokemon_move" class="tsd-kind-enum-member"><code>ChallengeType.POKEMON_MOVE</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">moveId</span>: <a href="../enums/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><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/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><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><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L233">src/utils/challenge-utils.ts:233</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/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/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/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/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/enums_challenge-type.ChallengeType.html#shop_item" class="tsd-kind-enum-member"><code>ChallengeType.SHOP_ITEM</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></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/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><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/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><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><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L246">src/utils/challenge-utils.ts:246</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/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/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/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/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/enums_challenge-type.ChallengeType.html#wave_reward" class="tsd-kind-enum-member"><code>ChallengeType.WAVE_REWARD</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></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/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><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/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><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><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L259">src/utils/challenge-utils.ts:259</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/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/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/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/enums_challenge-type.ChallengeType.html#prevent_revive" class="tsd-kind-enum-member"><code>ChallengeType.PREVENT_REVIVE</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">status</span>: <a href="../classes/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><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><code>true</code> if any challenge was sucessfully applied, <code>false</code> otherwise</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8773a0faf962b6a3835c85066445d2fec6b9059c/src/utils/challenge-utils.ts#L271">src/utils/challenge-utils.ts:271</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>
|