Nature
Nature is a trait that each individual Pokémon has which influences how their stats grow and determines their flavor preferences. The mechanic was introduced in Generation III. A Pokémon's Nature usually affects the value of two of its stats, ultimately increasing one of its non-HP stats (Attack, Defense, Special Attack, Special Defense, or Speed) by 10% and decreasing another by 10%.
For more info about Pokémon Natures, visit Bulbapedia.
Methods
getNatureName
Returns Pokémon Nature regarding increased and decreased stats. Valid stats are only Attack, Defense, Special Attack, Special Defense, and Speed.
Signature
getNatureName(increase: GetNatureNameParam, decrease: GetNatureNameParam) => NatureName
Parameter | Type | Required | Description |
---|---|---|---|
increase | GetNatureNameParam | Yes | Increased stat of nature. |
decrease | GetNatureNameParam | Yes | Decreased stat of nature. |
Returns
A string from NatureName
enum.
Example
getNatureName({
increase: PokemonStatName.ATTACK,
decrease: PokemonStatName.SPECIAL_ATTACK,
}); // returns 'Adamant'
Type Definitions
GetNatureNameParam
An enumeration of stats from PokemonStatId and PokemonStatName, excluding HP, Accuracy, and Evasion.
Name | Value |
---|---|
PokemonStatId.ATTACK | 2 |
PokemonStatId.DEFENSE | 3 |
PokemonStatId.SPECIAL_ATTACK | 4 |
PokemonStatId.SPECIAL_DEFENSE | 5 |
PokemonStatId.SPEED | 6 |
PokemonStatName.ATTACK | 'attack' |
PokemonStatName.DEFENSE | 'defense' |
PokemonStatName.SPECIAL_ATTACK | 'special-attack' |
PokemonStatName.SPECIAL_DEFENSE | 'special-defense' |
PokemonStatName.SPEED | 'speed' |
NatureName
An enumeration of all Pokémon natures.
Name | Value |
---|---|
NatureName.ADAMANT | 'Adamant' |
NatureName.BASHFUL | 'Bashful' |
NatureName.BOLD | 'Bold' |
NatureName.BRAVE | 'Brave' |
NatureName.CALM | 'Calm' |
NatureName.CAREFUL | 'Careful' |
NatureName.DOCILE | 'Docile' |
NatureName.GENTLE | 'Gentle' |
NatureName.HARDY | 'Hardy' |
NatureName.HASTY | 'Hasty' |
NatureName.IMPISH | 'Impish' |
NatureName.JOLLY | 'Jolly' |
NatureName.LAX | 'Lax' |
NatureName.LONELY | 'Lonely' |
NatureName.MILD | 'Mild' |
NatureName.MODEST | 'Modest' |
NatureName.NAIVE | 'Naive' |
NatureName.NAUGHTY | 'Naughty' |
NatureName.QUIET | 'Quiet' |
NatureName.QUIRKY | 'Quirky' |
NatureName.RASH | 'Rash' |
NatureName.RELAXED | 'Relaxed' |
NatureName.SASSY | 'Sassy' |
NatureName.SERIOUS | 'Serious' |
NatureName.TIMID | 'Timid' |