<!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 ts-flagAbstract">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><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">challengeType</span>: <ahref="../enums/data_challenge.ChallengeType.html"class="tsd-signature-type tsd-kind-enum">ChallengeType</a></span><divclass="tsd-comment tsd-typography"><p>The challenge type to add.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L130">src/data/challenge.ts:130</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="apply"class="tsd-anchor"></a><h3class="tsd-anchor-link"><codeclass="tsd-tag ts-flagAbstract">Abstract</code><span>apply</span><ahref="#apply"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="apply.apply-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">args</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#apply.apply-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>Modifies the data or game state in some way to apply the challenge.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">challengeType</span>: <ahref="../enums/data_challenge.ChallengeType.html"class="tsd-signature-type tsd-kind-enum">ChallengeType</a></span><divclass="tsd-comment tsd-typography"><p>Which challenge type this is being applied for.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">args</span>: <spanclass="tsd-signature-type">any</span><spanclass="tsd-signature-symbol">[]</span></span><divclass="tsd-comment tsd-typography"><p>Irrelevant. See the specific challenge's apply function for additional information.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L110">src/data/challenge.ts:110</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>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L202">src/data/challenge.ts:202</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>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L183">src/data/challenge.ts:183</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 ts-flagOptional">Optional</code><spanclass="tsd-kind-parameter">overrideValue</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>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>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/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L160">src/data/challenge.ts:160</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>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L234">src/data/challenge.ts:234</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>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/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L139">src/data/challenge.ts:139</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 ts-flagOptional">Optional</code><spanclass="tsd-kind-parameter">overrideValue</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>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>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/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L148">src/data/challenge.ts:148</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>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L92">src/data/challenge.ts:92</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/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L194">src/data/challenge.ts:194</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>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L214">src/data/challenge.ts:214</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>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L171">src/data/challenge.ts:171</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="isOfType"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>is<wbr/>Of<wbr/>Type</span><ahref="#isOfType"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="isOfType.isOfType-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">is<wbr/>Of<wbr/>Type</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">challengeType</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#isOfType.isOfType-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>If this challenge is of a particular type</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">challengeType</span>: <ahref="../enums/data_challenge.ChallengeType.html"class="tsd-signature-type tsd-kind-enum">ChallengeType</a></span><divclass="tsd-comment tsd-typography"><p>The challenge type to check.</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>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>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/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L101">src/data/challenge.ts:101</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/e2a9f769267a1f8acf5d296f73b2a65243783ce1/src/data/challenge.ts#L83">src/data/challenge.ts:83</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 ts-flagStatic">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>