<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharset="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>TempExtraModifierModifier | 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/modifier_modifier.html">modifier/modifier</a></li><li><ahref="modifier_modifier.TempExtraModifierModifier.html">TempExtraModifierModifier</a></li></ul><h1>Class TempExtraModifierModifier</h1></div><sectionclass="tsd-panel tsd-comment"><divclass="tsd-comment tsd-typography"><p>Modifier used for timed boosts to the player's shop item rewards.</p>
which will then add the max count of the new item to the existing count of the current item.
If no existing Silver Pokeballs are found, will add a new one.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">modifiers</span>: <ahref="modifier_modifier.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a><spanclass="tsd-signature-symbol">[]</span></span><divclass="tsd-comment tsd-typography"><p><ahref="modifier_modifier.PersistentModifier.html"class="tsd-kind-class"><code>PersistentModifier</code></a> array of the player's modifiers</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">scene</span>: <ahref="battle_scene.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>true if the modifier was successfully added or applied, false otherwise</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Overrides <ahref="modifier_modifier.LapsingPersistentModifier.html">LapsingPersistentModifier</a>.<ahref="modifier_modifier.LapsingPersistentModifier.html#add">add</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/modifier/modifier.ts#L3385">src/modifier/modifier.ts:3385</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="apply"class="tsd-anchor"></a><h3class="tsd-anchor-link"><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">count</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>Increases the current rewards in the battle by the <code>stackCount</code>.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">count</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"><code>NumberHolder</code></a> that holds the resulting shop item reward count</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p><code>true</code> if the shop reward number modifier applies successfully</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><codeclass="tsd-tag">Rest</code><spanclass="tsd-signature-symbol">...</span><spanclass="tsd-kind-parameter">_args</span>: <spanclass="tsd-signature-type">unknown</span><spanclass="tsd-signature-symbol">[]</span></span><divclass="tsd-comment tsd-typography"><p>passed arguments (not in use here)</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p><code>true</code> if the battleCount is greater than 0</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="modifier_modifier.LapsingPersistentModifier.html">LapsingPersistentModifier</a>.<ahref="modifier_modifier.LapsingPersistentModifier.html#lapse">lapse</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/modifier/modifier.ts#L370">src/modifier/modifier.ts:370</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="match"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>match</span><ahref="#match"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="match.match-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">match</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">modifier</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#match.match-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-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">modifier</span>: <ahref="modifier_modifier.Modifier.html"class="tsd-signature-type tsd-kind-class">Modifier</a></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><asideclass="tsd-sources"><p>Overrides <ahref="modifier_modifier.LapsingPersistentModifier.html">LapsingPersistentModifier</a>.<ahref="modifier_modifier.LapsingPersistentModifier.html#match">match</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/modifier/modifier.ts#L3405">src/modifier/modifier.ts:3405</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="resetBattleCount"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>reset<wbr/>Battle<wbr/>Count</span><ahref="#resetBattleCount"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 tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="resetBattleCount.resetBattleCount-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">reset<wbr/>Battle<wbr/>Count</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#resetBattleCount.resetBattleCount-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">void</span></h4><asideclass="tsd-sources"><p>Inherited from <ahref="modifier_modifier.LapsingPersistentModifier.html">LapsingPersistentModifier</a>.<ahref="modifier_modifier.LapsingPersistentModifier.html#resetBattleCount">resetBattleCount</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/modifier/modifier.ts#L405">src/modifier/modifier.ts:405</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="setNewBattleCount"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>set<wbr/>New<wbr/>Battle<wbr/>Count</span><ahref="#setNewBattleCount"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 tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="setNewBattleCount.setNewBattleCo
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">count</span>: <spanclass="tsd-signature-type">number</span></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="modifier_modifier.LapsingPersistentModifier.html">LapsingPersistentModifier</a>.<ahref="modifier_modifier.LapsingPersistentModifier.html#setNewBattleCount">setNewBattleCount</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/modifier/modifier.ts#L412">src/modifier/modifier.ts:412</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="shouldApply"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>should<wbr/>Apply</span><ahref="#shouldApply"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 tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="shouldApply.shouldApply-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">should<wbr/>Apply</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">...</span><spanclass="tsd-kind-parameter">_args</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#shouldApply.shouldApply-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>Checks if <ahref="modifier_modifier.Modifier.html"class="tsd-kind-class"><code>Modifier</code></a> should be applied</p>