mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-15 00:07:09 +00:00
Add past type efficacy information to README
This commit is contained in:
parent
0c73b169e5
commit
0dac8286f7
1 changed files with 68 additions and 28 deletions
|
@ -2849,36 +2849,68 @@ Types are properties for Pokémon and their moves. Each type has three propertie
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": 5,
|
"id": 8,
|
||||||
"name": "ground",
|
"name": "ghost",
|
||||||
"damage_relations": {
|
"damage_relations": {
|
||||||
"no_damage_to": [{
|
"no_damage_to": [{
|
||||||
"name": "flying",
|
"name": "normal",
|
||||||
"url": "http://pokeapi.co/api/v2/type/3/"
|
"url": "http://pokeapi.co/api/v2/type/1/"
|
||||||
}],
|
}],
|
||||||
"half_damage_to": [{
|
"half_damage_to": [{
|
||||||
"name": "bug",
|
"name": "dark",
|
||||||
"url": "http://pokeapi.co/api/v2/type/7/"
|
"url": "http://pokeapi.co/api/v2/type/17/"
|
||||||
}],
|
}],
|
||||||
"double_damage_to": [{
|
"double_damage_to": [{
|
||||||
"name": "poison",
|
"name": "ghost",
|
||||||
"url": "http://pokeapi.co/api/v2/type/4/"
|
"url": "http://pokeapi.co/api/v2/type/8/"
|
||||||
}],
|
}],
|
||||||
"no_damage_from": [{
|
"no_damage_from": [{
|
||||||
"name": "electric",
|
"name": "normal",
|
||||||
"url": "http://pokeapi.co/api/v2/type/13/"
|
"url": "http://pokeapi.co/api/v2/type/1/"
|
||||||
}],
|
}],
|
||||||
"half_damage_from": [{
|
"half_damage_from": [{
|
||||||
"name": "poison",
|
"name": "poison",
|
||||||
"url": "http://pokeapi.co/api/v2/type/4/"
|
"url": "http://pokeapi.co/api/v2/type/4/"
|
||||||
}],
|
}],
|
||||||
"double_damage_from": [{
|
"double_damage_from": [{
|
||||||
"name": "water",
|
"name": "ghost",
|
||||||
"url": "http://pokeapi.co/api/v2/type/11/"
|
"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_indices": [{
|
||||||
"game_index": 4,
|
"game_index": 8,
|
||||||
"generation": {
|
"generation": {
|
||||||
"name": "generation-i",
|
"name": "generation-i",
|
||||||
"url": "http://pokeapi.co/api/v2/generation/1/"
|
"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/"
|
"url": "http://pokeapi.co/api/v2/move-damage-class/2/"
|
||||||
},
|
},
|
||||||
"names": [{
|
"names": [{
|
||||||
"name": "ã˜ã‚ã‚“",
|
"name": "ゴースト",
|
||||||
"language": {
|
"language": {
|
||||||
"name": "ja",
|
"name": "ja-Hrkt",
|
||||||
"url": "http://pokeapi.co/api/v2/language/1/"
|
"url": "http://pokeapi.co/api/v2/language/1/"
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
"pokemon": [{
|
"pokemon": [{
|
||||||
"slot": 1,
|
"slot": 1,
|
||||||
"pokemon": {
|
"pokemon": {
|
||||||
"name": "sandshrew",
|
"name": "gastly",
|
||||||
"url": "http://pokeapi.co/api/v2/pokemon/27/"
|
"url": "http://pokeapi.co/api/v2/pokemon/92/"
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
"moves": [{
|
"moves": [{
|
||||||
"name": "sand-attack",
|
"name": "night-shade",
|
||||||
"url": "http://pokeapi.co/api/v2/move/28/"
|
"url": "http://pokeapi.co/api/v2/move/101/"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -2922,6 +2954,7 @@ Types are properties for Pokémon and their moves. Each type has three propertie
|
||||||
| id | The identifier for this type resource | integer |
|
| id | The identifier for this type resource | integer |
|
||||||
| name | The name for this type resource | string |
|
| 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) |
|
| 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) |
|
| 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)) |
|
| 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)) |
|
| move_damage_class | The class of damage inflicted by this type | [NamedAPIResource](#namedapiresource) ([MoveDamageClass](#move-damage-classes)) |
|
||||||
|
@ -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)) |
|
| 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)) |
|
| 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>
|
<h1 id="utility-section">Utility</h1>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue