Summary

Description
Growth rate of a Pokémon, i.e. the EXP to level function.
Data path
resources/data/growth_rate/
Schema
https://poketools.gamestuff.info/data/schema/growth_rate.json

Filename

Growth Rate 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

formula

The user-facing representation of the growth rate formula as a Presentation MathML document, including surrounding <math> tags.

type
string
required

expression

The computed representation of the growth rate formula, as a Symfony Expression. In addition to the standard Expression functions, all PHP Math functions are available.

type
string
required

JSON Schema

View raw

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://poketools.gamestuff.info/data/schema/growth_rate.json",
  "title": "Growth Rate",
  "description": "Growth rate of a Pokémon, i.e. the EXP to level function.",
  "type": "object",
  "properties": {
    "name": {
      "$ref": "types/name.json"
    },
    "formula": {
      "title": "Formula",
      "description": "The user-facing representation of the growth rate formula as a [Presentation MathML](https://en.wikipedia.org/wiki/MathML) document, including surrounding `` tags.",
      "type": "string",
      "contentMediaType": "application/mathml+xml"
    },
    "expression": {
      "title": "Expression",
      "description": "This is the computed representation of the growth rate formula, as a [Symfony Expression](https://symfony.com/doc/current/components/expression_language/syntax.html).  In addition to the standard Expression functions, all [PHP Math functions](https://www.php.net/manual/en/ref.math.php) are also available.",
      "type": "string",
      "$filters": {
        "$func": "expression",
        "$vars": {
          "vars": [
            "level"
          ]
        }
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "name",
    "formula",
    "expression"
  ]
}