Type Chart
A stat refers to any of several parameters pertaining to Pokémon that can affect turn order, move success, and damage output during a battle. With exception to the HP stat, a Pokémon's stat can also be temporarily raised or lowered in stages during battle through various effects.
See more on Bulbapedia.
Methods
getPokemonTypeChartAttack()
Returns types which given type's attack has no effet, is normal, not effective, and super effective. Also, returns an array of PokemonTypesArrayIndex with damage multiples for given type. See more about the TYPES_CHART_MATRIX at PokemonDB. The index 0 stands for NORMAL type, index 1 stands for FIRE type etc.
Signature
getPokemonTypeChartAttack(index: PokemonTypesArrayIndex) => TypeChartReturn
| Parameter | Type | Required | Description |
|---|---|---|---|
index | PokemonTypesArrayIndex | Yes | An index from Pokémon types chart matrix. |
Returns
An object with complete type chart, and normal, no effect, super effective, not effective types against given type.
Examples
getPokemonTypeChartAttack(PokemonTypesArrayIndex.FIRE); // returns 328
getPokemonTypeChartAttackPros()
Returns only types which given type's attack has super effective damage. See more about the TYPES_CHART_MATRIX at PokemonDB. The index 0 stands for NORMAL type, index 1 stands for FIRE type etc.
Signature
getPokemonTypeChartAttackPros(index: PokemonTypesArrayIndex) => PokemonTypesArrayIndex[]
| Parameter | Type | Required | Description |
|---|---|---|---|
index | PokemonTypesArrayIndex | Yes | An index from Pokémon types chart matrix. |
Returns
An array of indexes from Pokémon types chart where given Pokémon type is super effective.
Examples
getPokemonTypeChartAttackPros(PokemonTypesArrayIndex.FIRE); // returns 328
getPokemonTypeChartAttackCons()
Returns only types which given type's attack has no effect or not effective damage. See more about the TYPES_CHART_MATRIX at PokemonDB. The index 0 stands for NORMAL type, index 1 stands for FIRE type etc.
Signature
getPokemonTypeChartAttackCons(index: PokemonTypesArrayIndex) => TypeChartReturnDamageReduction
| Parameter | Type | Required | Description |
|---|---|---|---|
index | PokemonTypesArrayIndex | Yes | An index from Pokémon types chart matrix. |
Returns
An object with array of indexes from Pokémon types chart where given Pokémon type is not effective nor has effect.
Examples
getPokemonTypeChartAttackCons(PokemonTypesArrayIndex.FIRE); // returns 328
getPokemonTypeChartDefense()
Returns types which given type's defense has no effet, is normal, not effective, and super effective. Also, returns an array of PokemonTypesArrayIndex with damage multiples for given type. See more about the TYPES_CHART_MATRIX at PokemonDB. The index 0 stands for NORMAL type, index 1 stands for FIRE type etc.
Signature
getPokemonTypeChartDefense(index: PokemonTypesArrayIndex) => TypeChartReturn
| Parameter | Type | Required | Description |
|---|---|---|---|
index | PokemonTypesArrayIndex | Yes | An index from Pokémon types chart matrix. |
Returns
An object with array of indexes from Pokémon types chart.
Examples
getPokemonTypeChartDefense(PokemonTypesArrayIndex.FIRE); // returns 328
getPokemonTypeChartDefensePros()
Returns only types which given type's defense has resistance. See more about the TYPES_CHART_MATRIX at PokemonDB. The index 0 stands for NORMAL type, index 1 stands for FIRE type etc.