</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L88">src/battle.ts:88</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="enemyFaintsHistory"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>enemy<wbr/>Faints<wbr/>History</span><ahref="#enemyFaintsHistory"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">enemy<wbr/>Faints<wbr/>History</span><spanclass="tsd-signature-symbol">:</span><ahref="../interfaces/battle.FaintLogEntry.html"class="tsd-signature-type tsd-kind-interface">FaintLogEntry</a><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol"> = []</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L90">src/battle.ts:90</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="enemyLevels"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>enemy<wbr/>Levels</span><ahref="#enemyLevels"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">enemy<wbr/>Levels</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">undefined</span><spanclass="tsd-signature-symbol"> | </span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">[]</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L68">src/battle.ts:68</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="enemyParty"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>enemy<wbr/>Party</span><ahref="#enemyParty"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">enemy<wbr/>Party</span><spanclass="tsd-signature-symbol">:</span><ahref="field_pokemon.EnemyPokemon.html"class="tsd-signature-type tsd-kind-class">EnemyPokemon</a><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol"> = []</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L69">src/battle.ts:69</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="enemySwitchCounter"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>enemy<wbr/>Switch<wbr/>Counter</span><ahref="#enemySwitchCounter"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">enemy<wbr/>Switch<wbr/>Counter</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = 0</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L73">src/battle.ts:73</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="escapeAttempts"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>escape<wbr/>Attempts</span><ahref="#escapeAttempts"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">escape<wbr/>Attempts</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signatu
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L94">src/battle.ts:94</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="mysteryEncounterType"class="tsd-anchor"></a><h3class="tsd-anchor-link"><codeclass="tsd-tag">Optional</code><span>mystery<wbr/>Encounter<wbr/>Type</span><ahref="#mysteryEncounterType"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">mystery<wbr/>Encounter<wbr/>Type</span><spanclass="tsd-signature-symbol">?:</span><ahref="../enums/enums_mystery_encounter_type.MysteryEncounterType.html"class="tsd-signature-type tsd-kind-enum">MysteryEncounterType</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L92">src/battle.ts:92</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="playerFaints"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>player<wbr/>Faints</span><ahref="#playerFaints"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">player<wbr/>Faints</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = 0</span></div><divclass="tsd-comment tsd-typography"><p>The number of times a Pokemon on the player's side has fainted this battle</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L86">src/battle.ts:86</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="playerFaintsHistory"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>player<wbr/>Faints<wbr/>History</span><ahref="#playerFaintsHistory"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">player<wbr/>Faints<wbr/>History</span><spanclass="tsd-signature-symbol">:</span><ahref="../interfaces/battle.FaintLogEntry.html"class="tsd-signature-type tsd-kind-interface">FaintLogEntry</a><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol"> = []</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L89">src/battle.ts:89</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="playerParticipantIds"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>player<wbr/>Participant<wbr/>Ids</span><ahref="#playerParticipantIds"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">player<wbr/>Participant<wbr/>Ids</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">Set</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">></span><spanclass="tsd-signature-symbol"> = ...</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L76">src/battle.ts:76</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="postBattleLoot"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>post<wbr/>Battle<wbr/>Loot</span><ahref="#postBattleLoot"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">post<wbr/>Battle<wbr/>Loot</span><spanclass="tsd-signature-symbol">:</span><ahref="modifier_modifier.PokemonHeldItemModifier.html"class="tsd-signature-type tsd-kind-class">PokemonHeldItemModifier</a><spanclass="tsd-signature-symbol">[]</span><spanclass="tsd-signature-symbol"> = []</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L78">src/battle.ts:78</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="seenEnemyPartyMemberIds"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>seen<wbr/>Enemy<wbr/>Party<wbr/>Member<wbr/>Ids</span><ahref="#seenEnemyPartyMemberIds"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">seen<wbr/>Enemy<wbr/>Party<wbr/>Member<wbr/>Ids</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">Set</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">></span><spanclass="tsd-signature-symbol"> = ...</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/2e7f6a2f4f3e68bd58a1af35a16a4ca9b517d973/src/battle.ts#L70">src/battle.ts:70</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="started"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>started</span><ahref="#started"aria-label="Permalink"class="ts
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">scene</span>: <ahref="battle_scene.default.html"class="tsd-signature-type tsd-kind-class">default</a></span></li><li><span><spanclass="tsd-kind-parameter">range</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>How large of a range of random numbers to choose from. If range <= 1, returns min</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">number</span></h4><p>A random integer between min and (min + range - 1)</p>