pokerogue/main/classes/system_pokemon_data.default.html

48 lines
60 KiB
HTML
Raw Normal View History

2024-09-28 19:23:37 +01:00
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | pokemon-rogue-battle</title><meta name="description" content="Documentation for pokemon-rogue-battle"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></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><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">pokemon-rogue-battle</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">pokemon-rogue-battle</a></li><li><a href="../modules/system_pokemon_data.html">system/pokemon-data</a></li><li><a href="system_pokemon_data.default.html">default</a></li></ul><h1>Class default</h1></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L17">src/system/pokemon-data.ts:17</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="system_pokemon_data.default.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
2024-05-31 14:57:14 +01:00
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="system_pokemon_data.default.html#abilityIndex" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ability<wbr/>Index</span></a>
<a href="system_pokemon_data.default.html#boss" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>boss</span></a>
2024-06-26 18:20:46 +01:00
<a href="system_pokemon_data.default.html#bossSegments" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>boss<wbr/>Segments?</span></a>
2024-09-27 22:52:07 +01:00
<a href="system_pokemon_data.default.html#evoCounter" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>evo<wbr/>Counter</span></a>
2024-05-31 14:57:14 +01:00
<a href="system_pokemon_data.default.html#exp" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>exp</span></a>
<a href="system_pokemon_data.default.html#formIndex" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>form<wbr/>Index</span></a>
<a href="system_pokemon_data.default.html#friendship" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>friendship</span></a>
<a href="system_pokemon_data.default.html#fusionAbilityIndex" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fusion<wbr/>Ability<wbr/>Index</span></a>
<a href="system_pokemon_data.default.html#fusionFormIndex" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fusion<wbr/>Form<wbr/>Index</span></a>
<a href="system_pokemon_data.default.html#fusionGender" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fusion<wbr/>Gender</span></a>
<a href="system_pokemon_data.default.html#fusionLuck" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fusion<wbr/>Luck</span></a>
2024-09-27 22:52:07 +01:00
<a href="system_pokemon_data.default.html#fusionMysteryEncounterPokemonData" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fusion<wbr/>Mystery<wbr/>Encounter<wbr/>Pokemon<wbr/>Data</span></a>
2024-05-31 14:57:14 +01:00
<a href="system_pokemon_data.default.html#fusionShiny" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fusion<wbr/>Shiny</span></a>
<a href="system_pokemon_data.default.html#fusionSpecies" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fusion<wbr/>Species</span></a>
<a href="system_pokemon_data.default.html#fusionVariant" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fusion<wbr/>Variant</span></a>
<a href="system_pokemon_data.default.html#gender" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>gender</span></a>
<a href="system_pokemon_data.default.html#hp" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>hp</span></a>
<a href="system_pokemon_data.default.html#id" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>id</span></a>
<a href="system_pokemon_data.default.html#ivs" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ivs</span></a>
<a href="system_pokemon_data.default.html#level" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>level</span></a>
<a href="system_pokemon_data.default.html#levelExp" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>level<wbr/>Exp</span></a>
<a href="system_pokemon_data.default.html#luck" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>luck</span></a>
<a href="system_pokemon_data.default.html#metBiome" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>met<wbr/>Biome</span></a>
<a href="system_pokemon_data.default.html#metLevel" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>met<wbr/>Level</span></a>
2024-08-17 18:01:18 +01:00
<a href="system_pokemon_data.default.html#metSpecies" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>met<wbr/>Species</span></a>
2024-09-27 22:52:07 +01:00
<a href="system_pokemon_data.default.html#metWave" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>met<wbr/>Wave</span></a>
2024-05-31 14:57:14 +01:00
<a href="system_pokemon_data.default.html#moveset" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>moveset</span></a>
2024-09-27 22:52:07 +01:00
<a href="system_pokemon_data.default.html#mysteryEncounterPokemonData" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>mystery<wbr/>Encounter<wbr/>Pokemon<wbr/>Data</span></a>
2024-05-31 14:57:14 +01:00
<a href="system_pokemon_data.default.html#nature" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>nature</span></a>
<a href="system_pokemon_data.default.html#natureOverride" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>nature<wbr/>Override</span></a>
2024-07-28 00:48:18 +01:00
<a href="system_pokemon_data.default.html#nickname" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>nickname</span></a>
2024-05-31 14:57:14 +01:00
<a href="system_pokemon_data.default.html#passive" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>passive</span></a>
<a href="system_pokemon_data.default.html#pauseEvolutions" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>pause<wbr/>Evolutions</span></a>
<a href="system_pokemon_data.default.html#player" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>player</span></a>
<a href="system_pokemon_data.default.html#pokeball" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>pokeball</span></a>
<a href="system_pokemon_data.default.html#pokerus" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>pokerus</span></a>
<a href="system_pokemon_data.default.html#shiny" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>shiny</span></a>
<a href="system_pokemon_data.default.html#species" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>species</span></a>
<a href="system_pokemon_data.default.html#stats" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>stats</span></a>
<a href="system_pokemon_data.default.html#status" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>status</span></a>
<a href="system_pokemon_data.default.html#summonData" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>summon<wbr/>Data</span></a>
2024-09-10 23:07:25 +01:00
<a href="system_pokemon_data.default.html#usedTMs" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>usedTMs</span></a>
2024-05-31 14:57:14 +01:00
<a href="system_pokemon_data.default.html#variant" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>variant</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="system_pokemon_data.default.html#toPokemon" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>to<wbr/>Pokemon</span></a>
2024-09-28 19:23:37 +01:00
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Constructors</h2></summary><section><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_default" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">source</span>, <span class="tsd-kind-parameter">forHistory</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="system_pokemon_data.default.html" class="tsd-signature-type tsd-kind-class">default</a><a href="#constructor.new_default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">source</span>: <span class="tsd-signature-type">any</span></span></li><li><span><span class="tsd-kind-parameter">forHistory</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="system_pokemon_data.default.html" class="tsd-signature-type tsd-kind-class">default</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L66">src/system/pokemon-data.ts:66</a></li></ul></aside></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><section class="tsd-panel tsd-member"><a id="abilityIndex" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>ability<wbr/>Index</span><a href="#abilityIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">ability<wbr/>Index</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L23">src/system/pokemon-data.ts:23</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="boss" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>boss</span><a href="#boss" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">boss</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L59">src/system/pokemon-data.ts:59</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="bossSegments" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>boss<wbr/>Segments</span><a href="#bo
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L64">src/system/pokemon-data.ts:64</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="nature" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>nature</span><a href="#nature" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">nature</span><span class="tsd-signature-symbol">:</span> <a href="../enums/enums_nature.Nature.html" class="tsd-signature-type tsd-kind-enum">Nature</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L35">src/system/pokemon-data.ts:35</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="natureOverride" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>nature<wbr/>Override</span><a href="#natureOverride" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">nature<wbr/>Override</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">-1</span><span class="tsd-signature-symbol"> | </span><a href="../enums/enums_nature.Nature.html" class="tsd-signature-type tsd-kind-enum">Nature</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L36">src/system/pokemon-data.ts:36</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="nickname" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>nickname</span><a href="#nickname" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">nickname</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L21">src/system/pokemon-data.ts:21</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="passive" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>passive</span><a href="#passive" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">passive</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L24">src/system/pokemon-data.ts:24</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="pauseEvolutions" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>pause<wbr/>Evolutions</span><a href="#pauseEvolutions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">pause<wbr/>Evolutions</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/771b0edcb08b9794fe7c0b4868d23872fedb5cc3/src/system/pokemon-data.ts#L45">src/system/pokemon-data.ts:45</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="player" class="tsd-anchor"></a><h3 class="tsd-anc