Add past type efficacy information to README

This commit is contained in:
Julian Lawrance 2019-12-01 13:12:17 +00:00
parent 0c73b169e5
commit 0dac8286f7

View file

@ -2849,36 +2849,68 @@ Types are properties for Pokémon and their moves. Each type has three propertie
```json
{
"id": 5,
"name": "ground",
"id": 8,
"name": "ghost",
"damage_relations": {
"no_damage_to": [{
"name": "flying",
"url": "http://pokeapi.co/api/v2/type/3/"
"name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/"
}],
"half_damage_to": [{
"name": "bug",
"url": "http://pokeapi.co/api/v2/type/7/"
"name": "dark",
"url": "http://pokeapi.co/api/v2/type/17/"
}],
"double_damage_to": [{
"name": "poison",
"url": "http://pokeapi.co/api/v2/type/4/"
"name": "ghost",
"url": "http://pokeapi.co/api/v2/type/8/"
}],
"no_damage_from": [{
"name": "electric",
"url": "http://pokeapi.co/api/v2/type/13/"
"name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/"
}],
"half_damage_from": [{
"name": "poison",
"url": "http://pokeapi.co/api/v2/type/4/"
}],
"double_damage_from": [{
"name": "water",
"url": "http://pokeapi.co/api/v2/type/11/"
"name": "ghost",
"url": "http://pokeapi.co/api/v2/type/8/"
}]
},
"past_damage_relations": [{
"generation": {
"name": "generation-v",
"url": "http://pokeapi.co/api/v2/generation/5/"
},
"damage_relations": {
"no_damage_to": [{
"name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/"
}],
"half_damage_to": [{
"name": "steel",
"url": "http://pokeapi.co/api/v2/type/9/"
}],
"double_damage_to": [{
"name": "ghost",
"url": "http://pokeapi.co/api/v2/type/8/"
}],
"no_damage_from": [{
"name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/"
}],
"half_damage_from": [{
"name": "poison",
"url": "http://pokeapi.co/api/v2/type/4/"
}],
"double_damage_from": [{
"name": "ghost",
"url": "http://pokeapi.co/api/v2/type/8/"
}]
}
}],
"game_indices": [{
"game_index": 4,
"game_index": 8,
"generation": {
"name": "generation-i",
"url": "http://pokeapi.co/api/v2/generation/1/"
@ -2893,22 +2925,22 @@ Types are properties for Pokémon and their moves. Each type has three propertie
"url": "http://pokeapi.co/api/v2/move-damage-class/2/"
},
"names": [{
"name": "じめん",
"name": "ゴースト",
"language": {
"name": "ja",
"name": "ja-Hrkt",
"url": "http://pokeapi.co/api/v2/language/1/"
}
}],
"pokemon": [{
"slot": 1,
"pokemon": {
"name": "sandshrew",
"url": "http://pokeapi.co/api/v2/pokemon/27/"
"name": "gastly",
"url": "http://pokeapi.co/api/v2/pokemon/92/"
}
}],
"moves": [{
"name": "sand-attack",
"url": "http://pokeapi.co/api/v2/move/28/"
"name": "night-shade",
"url": "http://pokeapi.co/api/v2/move/101/"
}]
}
```
@ -2919,15 +2951,16 @@ Types are properties for Pokémon and their moves. Each type has three propertie
| Name | Description | Data Type |
| ---- | ----------- | --------- |
| id | The identifier for this type resource | integer |
| name | The name for this type resource | string |
| damage_relations | A detail of how effective this type is toward others and vice versa | [TypeRelations](#typerelations) |
| game_indices | A list of game indices relevent to this item by generation | list [GenerationGameIndex](#generationgameindex) |
| generation | The generation this type was introduced in | [NamedAPIResource](#namedapiresource) ([Generation](#generations)) |
| move_damage_class | The class of damage inflicted by this type | [NamedAPIResource](#namedapiresource) ([MoveDamageClass](#move-damage-classes)) |
| names | The name of this type listed in different languages | list [Name](#resourcename) |
| pokemon | A list of details of pokemon that have this type | [TypePokemon](#typepokemon) |
| moves | A list of moves that have this type | list [NamedAPIResource](#namedapiresource) ([Move](#moves)) |
| id | The identifier for this type resource | integer |
| name | The name for this type resource | string |
| damage_relations | A detail of how effective this type is toward others and vice versa | [TypeRelations](#typerelations) |
| past_damage_relations | A list of details of how effective this type was toward others and vice versa in previous generations | list [TypeRelationsPast](#typerelationspast) |
| game_indices | A list of game indices relevent to this item by generation | list [GenerationGameIndex](#generationgameindex) |
| generation | The generation this type was introduced in | [NamedAPIResource](#namedapiresource) ([Generation](#generations)) |
| move_damage_class | The class of damage inflicted by this type | [NamedAPIResource](#namedapiresource) ([MoveDamageClass](#move-damage-classes)) |
| names | The name of this type listed in different languages | list [Name](#resourcename) |
| pokemon | A list of details of pokemon that have this type | [TypePokemon](#typepokemon) |
| moves | A list of moves that have this type | list [NamedAPIResource](#namedapiresource) ([Move](#moves)) |
#### TypePokemon
@ -2947,6 +2980,13 @@ Types are properties for Pokémon and their moves. Each type has three propertie
| half_damage_from | A list of types that are not very effective against this type | list [NamedAPIResource](#namedapiresource) ([Type](#types)) |
| double_damage_from | A list of types that are very effective against this type | list [NamedAPIResource](#namedapiresource) ([Type](#types)) |
#### TypeRelationsPast
| Name | Description | Data Type |
| ---- | ----------- | --------- |
| generation | The last generation in which the referenced type had the listed damage relations | [NamedAPIResource](#namedapiresource) ([Generation](#generations)) |
| damage_relations | The damage relations the referenced type had up to and including the listed generation | list [TypeRelations](#typerelations) |
<h1 id="utility-section">Utility</h1>