Skip to content

Commit d924c54

Browse files
authored
Merge pull request #173 from jemarq04/add_past_stats
Add Past Stats to documentation
2 parents 404eaff + c9eac1e commit d924c54

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

src/docs/pokemon.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,14 @@
12071207
"of": "PokemonAbilityPast"
12081208
}
12091209
},
1210+
{
1211+
"name": "past_stats",
1212+
"description": "A list of details showing stats this pokémon had in previous generations",
1213+
"type": {
1214+
"type": "list",
1215+
"of": "PokemonStatPast"
1216+
}
1217+
},
12101218
{
12111219
"name": "sprites",
12121220
"description": "A set of sprites used to depict this Pokémon in the game. A visual representation of the various sprites can be found at <a href='https://github.com/PokeAPI/sprites#sprites'>PokeAPI/sprites</a>",
@@ -1344,6 +1352,27 @@
13441352
}
13451353
]
13461354
},
1355+
{
1356+
"name": "PokemonStatPast",
1357+
"fields": [
1358+
{
1359+
"name": "generation",
1360+
"description": "The last generation in which the referenced pokémon had the listed stats.",
1361+
"type": {
1362+
"type": "NamedAPIResource",
1363+
"of": "Generation"
1364+
}
1365+
},
1366+
{
1367+
"name": "stats",
1368+
"description": "The stat the Pokémon had up to and including the listed generation.",
1369+
"type": {
1370+
"type": "list",
1371+
"of": "PokemonStat"
1372+
}
1373+
}
1374+
]
1375+
},
13471376
{
13481377
"name": "PokemonHeldItem",
13491378
"fields": [

0 commit comments

Comments
 (0)