Summary
- Description
- Stats applicable in battle
- Data path
- resources/data/stat.csv
- Schema
- https://poketools.gamestuff.info/data/schema/stat.json
Fields
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) - required
name
The entity’s user-facing name. All of UTF-8 is valid here, so use “é” where appropriate.
- type
-
string
- required
damage_class
If this stat plays a part in damage calculations, this is the identifier for the Damage Class it should be involved with. 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)
battle_only
Is stat battle only?
- type
- boolean
- values
-
- 0
- 1
- required
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://poketools.gamestuff.info/data/schema/stat.json",
"title": "Battle Stat",
"description": "Stats applicable in battle",
"type": "object",
"properties": {
"identifier": {
"$ref": "types/identifier.json"
},
"damage_class": {
"title": "Damage Class identifier",
"description": "If this stat plays a part in damage calculations, which damage class it should be involved with.",
"oneOf": [
{
"allOf": [
{
"$ref": "types/identifier.json"
},
{
"type": "string",
"$filters": "damageClassIdentifier"
}
]
},
{
"title": "Blank",
"type": "string",
"minLength": 0,
"maxLength": 0
}
]
},
"battle_only": {
"title": "Is battle only",
"type": "integer",
"enum": [
0,
1
]
},
"name": {
"$ref": "types/name.json"
}
},
"additionalProperties": false,
"required": [
"identifier",
"battle_only",
"name"
]
}