Summary
- Description
- A nature a Pokémon can have, such as Calm or Brave.
- Data path
- resources/data/nature/
- Schema
- https://poketools.gamestuff.info/data/schema/nature.json
Filename
Nature identifier
A machine-usable name for the entity. This is usually a munged version of the entity name. An identifier must consist only of lowercase ASCII characters, 0-9, and/or a hyphen.
i.e. anything unique to the entity matching the regular expression
^[a-z0-9\-]+$ (Test it here)
- type
- string
- pattern
-
^[a-z0-9\-]+$(Test)
Fields
name
The entity’s user-facing name. All of UTF-8 is valid here, so use “é” where appropriate.
- type
-
string
- required
stat_increased
Identifier for the Stat this Nature increases. A machine-usable name for the entity. This is usually a munged version of the entity name. An identifier must consist only of lowercase ASCII characters, 0-9, and/or a hyphen.
i.e. anything unique to the entity matching the regular expression
^[a-z0-9\-]+$ (Test it here)
- type
-
string
- pattern
-
^[a-z0-9\-]+$(Test) - required
stat_decreased
Identifier for the Stat this Nature decreases. A machine-usable name for the entity. This is usually a munged version of the entity name. An identifier must consist only of lowercase ASCII characters, 0-9, and/or a hyphen.
i.e. anything unique to the entity matching the regular expression
^[a-z0-9\-]+$ (Test it here)
- type
-
string
- pattern
-
^[a-z0-9\-]+$(Test) - required
flavor_likes
Identifier for the Berry flavor Pokémon with this Nature will like. A machine-usable name for the entity. This is usually a munged version of the entity name. An identifier must consist only of lowercase ASCII characters, 0-9, and/or a hyphen.
i.e. anything unique to the entity matching the regular expression
^[a-z0-9\-]+$ (Test it here)
- type
-
string
- pattern
-
^[a-z0-9\-]+$(Test) - required
flavor_hates
Identifier for the Berry flavor Pokémon with this Nature will hate. A machine-usable name for the entity. This is usually a munged version of the entity name. An identifier must consist only of lowercase ASCII characters, 0-9, and/or a hyphen.
i.e. anything unique to the entity matching the regular expression
^[a-z0-9\-]+$ (Test it here)
- type
-
string
- pattern
-
^[a-z0-9\-]+$(Test) - required
battle_style_preferences
How a Pokemon with this nature will behave in the Battle Tent/Battle Palace. Keys are the Battle Style identifier.
- type
- mapping[string: mapping]
- required
low_hp_chance
- type
- integer
- minimum
- 0
- maximum
- 100
- required
high_hp_chance
- type
- integer
- minimum
- 0
- maximum
- 100
- required
pokeathlon_stat_changes
How this nature affects a Pokémon’s Pokéathlon stats. Keys are Pokéathlon Stat identifiers, values are the range of changes.
- type
- mapping[string: int|string]
- required
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://poketools.gamestuff.info/data/schema/nature.json",
"title": "Nature",
"description": "A nature a Pokémon can have, such as Calm or Brave.",
"type": "object",
"properties": {
"name": {
"$ref": "types/name.json"
},
"stat_increased": {
"title": "Stat increased",
"allOf": [
{
"$ref": "types/identifier.json"
},
{
"type": "string",
"$filters": "statIdentifier"
}
]
},
"stat_decreased": {
"title": "Stat decreased",
"allOf": [
{
"$ref": "types/identifier.json"
},
{
"type": "string",
"$filters": "statIdentifier"
}
]
},
"flavor_likes": {
"title": "Berry Flavor likes",
"allOf": [
{
"$ref": "types/identifier.json"
},
{
"type": "string",
"$filters": "berryFlavorIdentifier"
}
]
},
"flavor_hates": {
"title": "Berry Flavor hates",
"allOf": [
{
"$ref": "types/identifier.json"
},
{
"type": "string",
"$filters": "berryFlavorIdentifier"
}
]
},
"battle_style_preferences": {
"title": "Battle Style preferences",
"description": "How a Pokemon with this nature will behave in the Battle Tent/Battle Palace.",
"type": "object",
"propertyNames": {
"title": "Battle Style identifier",
"allOf": [
{
"$ref": "types/identifier.json"
},
{
"type": "string",
"$filters": "battleStyleIdentifier"
}
]
},
"additionalProperties": {
"type": "object",
"properties": {
"low_hp_chance": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"high_hp_chance": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
},
"additionalProperties": false
}
},
"pokeathlon_stat_changes": {
"title": "Pokeathlon stat changes",
"type": "object",
"propertyNames": {
"title": "Pokeathlon stat identifier",
"allOf": [
{
"$ref": "types/identifier.json"
},
{
"type": "string",
"$filters": "pokeathlonStatIdentifier"
}
]
},
"additionalProperties": {
"type": "object",
"properties": {
"max_change": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "types/range.json"
}
]
}
}
}
}
},
"additionalProperties": false
}