<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharset="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>Challenge | pokemon-rogue-battle</title><metaname="description"content="Documentation for pokemon-rogue-battle"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="../assets/style.css"/><linkrel="stylesheet"href="../assets/highlight.css"/><scriptdefersrc="../assets/main.js"></script><scriptasyncsrc="../assets/icons.js"id="tsd-icons-script"></script><scriptasyncsrc="../assets/search.js"id="tsd-search-script"></script><scriptasyncsrc="../assets/navigation.js"id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme=localStorage.getItem("tsd-theme")||"os";document.body.style.display="none";setTimeout(()=>app?app.showPage():document.body.style.removeProperty("display"),500)</script><headerclass="tsd-page-toolbar"><divclass="tsd-toolbar-contents container"><divclass="table-cell"id="tsd-search"data-base=".."><divclass="field"><labelfor="tsd-search-field"class="tsd-widget tsd-toolbar-icon search no-caption"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-search"></use></svg></label><inputtype="text"id="tsd-search-field"aria-label="Search"/></div><divclass="field"><divid="tsd-toolbar-links"></div></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="../index.html"class="title">pokemon-rogue-battle</a></div><divclass="table-cell"id="tsd-widgets"><ahref="#"class="tsd-widget tsd-toolbar-icon menu no-caption"data-toggle="menu"aria-label="Menu"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><divclass="container container-main"><divclass="col-content"><divclass="tsd-page-title"><ulclass="tsd-breadcrumb"><li><ahref="../index.html">pokemon-rogue-battle</a></li><li><ahref="../modules/data_challenge.html">data/challenge</a></li><li><ahref="data_challenge.Challenge.html">Challenge</a></li></ul><h1>Class Challenge<codeclass="tsd-tag">Abstract</code></h1></div><sectionclass="tsd-panel tsd-comment"><divclass="tsd-comment tsd-typography"><p>A challenge object. Exists only to serve as a base class.</p>
</div></section></div></details></section></section><detailsclass="tsd-panel-group tsd-member-group tsd-accordion"open><summaryclass="tsd-accordion-summary"data-key="section-Constructors"><h2><svgwidth="20"height="20"viewBox="0 0 24 24"fill="none"><usehref="../assets/icons.svg#icon-chevronDown"></use></svg> Constructors</h2></summary><section><sectionclass="tsd-panel tsd-member"><aid="constructor"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>constructor</span><ahref="#constructor"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="constructor.new_Challenge"class="tsd-anchor"></a><spanclass="tsd-kind-constructor-signature">new <wbr/>Challenge</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">id</span>, <spanclass="tsd-kind-parameter">maxValue</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="data_challenge.Challenge.html"class="tsd-signature-type tsd-kind-class">Challenge</a><ahref="#constructor.new_Challenge"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">id</span>: <ahref="../enums/enums_challenges.Challenges.html"class="tsd-signature-type tsd-kind-enum">Challenges</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_challenges.Challenges.html"class="tsd-kind-enum">Challenges</a> The enum value for the challenge</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">maxValue</span>: <spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = Number.MAX_SAFE_INTEGER</span></span></li></ul></div><h4class="tsd-returns-title">Returns <ahref="data_challenge.Challenge.html"class="tsd-signature-type tsd-kind-class">Challenge</a></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L110">src/data/challenge.ts:110</a></li></ul></aside></li></ul></section></section></details><detailsclass="tsd-panel-group tsd-member-group tsd-accordion"open><summaryclass="tsd-accordion-summary"data-key="section-Properties"><h2><svgwidth="20"height="20"viewBox="0 0 24 24"fill="none"><usehref="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><sectionclass="tsd-panel tsd-member"><aid="conditions"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>conditions</span><ahref="#conditions"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">conditions</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">ChallengeCondition</span><spanclass="tsd-signature-symbol">[]</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L105">src/data/challenge.ts:105</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="id"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>id</span><ahref="#id"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">id</span><spanclass="tsd-signature-symbol">:</span><ahref="../enums/enums_challenges.Challenges.html"class="tsd-signature-type tsd-kind-enum">Challenges</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L98">src/data/challenge.ts:98</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="maxSeverity"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>max<wbr/>Severity</span><ahref="#maxSeverity"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">max<wbr/>Severity</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L103">src/data/challenge.ts:103</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="maxValue"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>max<wbr/>Value</span><ahref="#maxValue"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">max<wbr/>Value</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L101">src/data/challenge.ts:101</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="severity"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>severity</span><ahref="#severity"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">waveIndex</span>: <spanclass="tsd-signature-type">Number</span></span><divclass="tsd-comment tsd-typography"><p>Number The current wave index.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">battleConfig</span>: <ahref="battle.FixedBattleConfig.html"class="tsd-signature-type tsd-kind-class">FixedBattleConfig</a></span><divclass="tsd-comment tsd-typography"><p><ahref="battle.FixedBattleConfig.html"class="tsd-kind-class">FixedBattleConfig</a> The battle config to modify.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L325">src/data/challenge.ts:325</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyGameModeModify"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Game<wbr/>Mode<wbr/>Modify</span><ahref="#applyGameModeModify"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyGameModeModify.applyGameModeModify-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Game<wbr/>Mode<wbr/>Modify</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyGameModeModify.applyGameModeModify-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for GAME_MODE_MODIFY challenges. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current game mode.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L366">src/data/challenge.ts:366</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyLevelChange"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Level<wbr/>Change</span><ahref="#applyLevelChange"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyLevelChange.applyLevelChange-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Level<wbr/>Change</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">level</span>, <spanclass="tsd-kind-parameter">levelCap</span>, <spanclass="tsd-kind-parameter">isTrainer</span>, <spanclass="tsd-kind-parameter">isBoss</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyLevelChange.applyLevelChange-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for AI_LEVEL challenges. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">level</span>: <ahref="utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The generated level.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">levelCap</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>Number The current level cap.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">isTrainer</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>Boolean Whether this is a trainer pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">isBoss</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>Boolean Whether this is a non-trainer boss pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L337">src/data/challenge.ts:337</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyMoveAccessLevel"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Move<wbr/>Access<wbr/>Level</span><ahref="#applyMoveAccessLevel"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyMoveAccessLevel.applyMoveAccessLevel-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Move<wbr/>Access<wbr/>Level</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">moveSource</span>, <spanclass="tsd-kind-parameter">move</span>, <spanclass="tsd-kind-parameter">level</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyMoveAccessLevel.applyMoveAccessLevel-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for MOVE_ACCESS. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">moveSource</span>: <ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="../enums/enums_moves.Moves.html"class="tsd-signature-type tsd-kind-enum">Moves</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_moves.Moves.html"class="tsd-kind-enum">Moves</a> The move in question.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">level</span>: <ahref="utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The level threshold for access.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L378">src/data/challenge.ts:378</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyMoveSlot"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Move<wbr/>Slot</span><ahref="#applyMoveSlot"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyMoveSlot.applyMoveSlot-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Move<wbr/>Slot</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">moveSlots</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyMoveSlot.applyMoveSlot-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for AI_MOVE_SLOTS challenges. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The pokemon that is being considered.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">moveSlots</span>: <ahref="utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The amount of move slots.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L347">src/data/challenge.ts:347</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyMoveWeight"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Move<wbr/>Weight</span><ahref="#applyMoveWeight"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyMoveWeight.applyMoveWeight-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Move<wbr/>Weight</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">moveSource</span>, <spanclass="tsd-kind-parameter">move</span>, <spanclass="tsd-kind-parameter">level</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyMoveWeight.applyMoveWeight-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for MOVE_WEIGHT. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">moveSource</span>: <ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="../enums/enums_moves.Moves.html"class="tsd-signature-type tsd-kind-enum">Moves</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_moves.Moves.html"class="tsd-kind-enum">Moves</a> The move in question.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">level</span>: <ahref="utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L390">src/data/challenge.ts:390</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyPassiveAccess"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Passive<wbr/>Access</span><ahref="#applyPassiveAccess"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyPassiveAccess.applyPassiveAccess-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Passive<wbr/>Access</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">hasPassive</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyPassiveAccess.applyPassiveAccess-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for PASSIVE_ACCESS challenges. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The pokemon to change.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">hasPassive</span>: <ahref="utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="utils.BooleanHolder.html"class="tsd-kind-class">Utils.BooleanHolder</a> Whether it should have its passive.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L357">src/data/challenge.ts:357</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyPokemonInBattle"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Pokemon<wbr/>In<wbr/>Battle</span><ahref="#applyPokemonInBattle"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyPokemonInBattle.applyPokemonInBattle-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Pokemon<wbr/>In<wbr/>Battle</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">valid</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyPokemonInBattle.applyPokemonInBattle-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for POKEMON_IN_BATTLE challenges. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The pokemon to check the validity of.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">valid</span>: <ahref="utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="utils.BooleanHolder.html"class="tsd-kind-class">Utils.BooleanHolder</a> A BooleanHolder, the value gets set to false if the pokemon isn't allowed.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L315">src/data/challenge.ts:315</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyStarterChoice"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Starter<wbr/>Choice</span><ahref="#applyStarterChoice"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyStarterChoice.applyStarterChoice-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Starter<wbr/>Choice</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">valid</span>, <spanclass="tsd-kind-parameter">dexAttr</span>, <spanclass="tsd-kind-parameter">soft</span><spanclass="tsd-signature-symbol">?</span>, <spanclass="tsd-kind-parameter">checkEvolutions</span><spanclass="tsd-signature-symbol">?</span>, <spanclass="tsd-kind-parameter">checkForms</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyStarterChoice.applyStarterChoice-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for STARTER_CHOICE challenges. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="data_pokemon_species.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="data_pokemon_species.default.html"class="tsd-kind-class">PokemonSpecies</a> The pokemon to check the validity of.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">valid</span>: <ahref="utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="utils.BooleanHolder.html"class="tsd-kind-class">Utils.BooleanHolder</a> A BooleanHolder, the value gets set to false if the pokemon isn't allowed.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">dexAttr</span>: <ahref="../interfaces/system_game_data.DexAttrProps.html"class="tsd-signature-type tsd-kind-interface">DexAttrProps</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../interfaces/system_game_data.DexAttrProps.html"class="tsd-kind-interface">DexAttrProps</a> The dex attributes of the pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">soft</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = false</span></span><divclass="tsd-comment tsd-typography"><p>boolean If true, allow it if it could become a valid pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">checkEvolutions</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>boolean If true, check the pokemon's future evolutions</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">checkForms</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>boolean If true, check the pokemon's alternative forms</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L277">src/data/challenge.ts:277</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyStarterCost"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Starter<wbr/>Cost</span><ahref="#applyStarterCost"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyStarterCost.applyStarterCost-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Starter<wbr/>Cost</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">species</span>, <spanclass="tsd-kind-parameter">cost</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyStarterCost.applyStarterCost-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for STARTER_COST challenges. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">species</span>: <ahref="../enums/enums_species.Species.html"class="tsd-signature-type tsd-kind-enum">Species</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_species.Species.html"class="tsd-kind-enum">Species</a> The pokemon to change the cost of.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">cost</span>: <ahref="utils.NumberHolder.html"class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="utils.NumberHolder.html"class="tsd-kind-class">Utils.NumberHolder</a> The cost of the starter.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L296">src/data/challenge.ts:296</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyStarterModify"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Starter<wbr/>Modify</span><ahref="#applyStarterModify"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyStarterModify.applyStarterModify-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Starter<wbr/>Modify</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">pokemon</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyStarterModify.applyStarterModify-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for STARTER_MODIFY challenges. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The starter pokemon to modify.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L305">src/data/challenge.ts:305</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyStarterPoints"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Starter<wbr/>Points</span><ahref="#applyStarterPoints"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="applyStarterPoints.applyStarterPoints-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Starter<wbr/>Points</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">points</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyStarterPoints.applyStarterPoints-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>An apply function for STARTER_POINTS challenges. Derived classes should alter this.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">points</span>: <ahref="utils.NumberHolder.html"class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="utils.NumberHolder.html"class="tsd-kind-class">Utils.NumberHolder</a> The amount of points you have available.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this function did anything.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L286">src/data/challenge.ts:286</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="condition"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>condition</span><ahref="#condition"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="condition.condition-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">condition</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">condition</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="data_challenge.Challenge.html"class="tsd-signature-type tsd-kind-class">Challenge</a><ahref="#condition.condition-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Adds an unlock condition to this challenge.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">condition</span>: <spanclass="tsd-signature-type">ChallengeCondition</span></span><divclass="tsd-comment tsd-typography"><p>ChallengeCondition The condition to add.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <ahref="data_challenge.Challenge.html"class="tsd-signature-type tsd-kind-class">Challenge</a></h4><p><ahref="data_challenge.Challenge.html"class="tsd-kind-class">Challenge</a> This challenge</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L150">src/data/challenge.ts:150</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="decreaseSeverity"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>decrease<wbr/>Severity</span><ahref="#decreaseSeverity"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="decreaseSeverity.decreaseSeverity-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">decrease<wbr/>Severity</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#decreaseSeverity.decreaseSeverity-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Decrease the severity of the challenge</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Returns true if the value changed</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L222">src/data/challenge.ts:222</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="decreaseValue"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>decrease<wbr/>Value</span><ahref="#decreaseValue"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="decreaseValue.decreaseValue-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">decrease<wbr/>Value</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#decreaseValue.decreaseValue-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Decrease the value of the challenge</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Returns true if the value changed</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L203">src/data/challenge.ts:203</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="getDescription"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Description</span><ahref="#getDescription"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="getDescription.getDescription-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Description</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">overrideValue</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">string</span><ahref="#getDescription.getDescription-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Returns the description of a challenge's current value.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">overrideValue</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>integer The value to check for. If undefined, gets the current value.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">string</span></h4><p>string The localised description for the current value.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L180">src/data/challenge.ts:180</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="getDifficulty"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Difficulty</span><ahref="#getDifficulty"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="getDifficulty.getDifficulty-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Difficulty</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><ahref="#getDifficulty.getDifficulty-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Gets the "difficulty" value of this challenge.</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">number</span></h4><p>integer The difficulty value.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L246">src/data/challenge.ts:246</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="getMinDifficulty"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Min<wbr/>Difficulty</span><ahref="#getMinDifficulty"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="getMinDifficulty.getMinDifficulty-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Min<wbr/>Difficulty</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><ahref="#getMinDifficulty.getMinDifficulty-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Gets the minimum difficulty added by this challenge.</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">number</span></h4><p>integer The difficulty value.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L254">src/data/challenge.ts:254</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="getName"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Name</span><ahref="#getName"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="getName.getName-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Name</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">string</span><ahref="#getName.getName-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">string</span></h4><p>string The localised name of this challenge.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L159">src/data/challenge.ts:159</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="getValue"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Value</span><ahref="#getValue"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="getValue.getValue-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Value</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">overrideValue</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">string</span><ahref="#getValue.getValue-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Returns the textual representation of a challenge's current value.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">overrideValue</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>integer The value to check for. If undefined, gets the current value.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">string</span></h4><p>string The localised name for the current value.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L168">src/data/challenge.ts:168</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="geti18nKey"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>geti18n<wbr/>Key</span><ahref="#geti18nKey"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="geti18nKey.geti18nKey-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">geti18n<wbr/>Key</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">string</span><ahref="#geti18nKey.geti18nKey-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Gets the localisation key for the challenge</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">string</span></h4><p>string The i18n key for this challenge</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L132">src/data/challenge.ts:132</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="hasSeverity"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>has<wbr/>Severity</span><ahref="#hasSeverity"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="hasSeverity.hasSeverity-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">has<wbr/>Severity</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#hasSeverity.hasSeverity-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Whether to allow choosing this challenge's severity.</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L214">src/data/challenge.ts:214</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="increaseSeverity"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>increase<wbr/>Severity</span><ahref="#increaseSeverity"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="increaseSeverity.increaseSeverity-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">increase<wbr/>Severity</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#increaseSeverity.increaseSeverity-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Increase the severity of the challenge</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Returns true if the value changed</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L234">src/data/challenge.ts:234</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="increaseValue"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>increase<wbr/>Value</span><ahref="#increaseValue"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="increaseValue.increaseValue-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">increase<wbr/>Value</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#increaseValue.increaseValue-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Increase the value of the challenge</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Returns true if the value changed</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L191">src/data/challenge.ts:191</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="isUnlocked"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>is<wbr/>Unlocked</span><ahref="#isUnlocked"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="isUnlocked.isUnlocked-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">is<wbr/>Unlocked</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">data</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#isUnlocked.isUnlocked-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Used for unlockable challenges to check if they're unlocked.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">data</span>: <ahref="system_game_data.GameData.html"class="tsd-signature-type tsd-kind-class">GameData</a></span><divclass="tsd-comment tsd-typography"><p><ahref="system_game_data.GameData.html"class="tsd-kind-class">GameData</a> The save data.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean Whether this challenge is unlocked.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L141">src/data/challenge.ts:141</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="reset"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>reset</span><ahref="#reset"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="reset.reset-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">reset</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#reset.reset-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Reset the challenge to a base state.</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e98ef1c757bf2c79263f25266b2ec9b784e8699c/src/data/challenge.ts#L123">src/data/challenge.ts:123</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="loadChallenge"class="tsd-anchor"></a><h3class="tsd-anchor-link"><codeclass="tsd-tag">Static</code><span>load<wbr/>Challenge</span><ahref="#loadChallenge"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="loadChallenge.loadChallenge-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">load<wbr/>Challenge</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">source</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="data_challenge.Challenge.html"class="tsd-signature-type tsd-kind-class">Challenge</a><ahref="#loadChallenge.loadChallenge-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Clones a challenge, either from another challenge or json. Chainable.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">source</span>: <spanclass="tsd-signature-type">any</span></span><divclass="tsd-comment tsd-typography"><p>The source challenge or json.</p>