mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-10 06:04:18 +00:00
Merge pull request #664 from PokeAPI/home
This commit is contained in:
commit
2df8f39732
1 changed files with 13 additions and 0 deletions
|
@ -1381,6 +1381,7 @@ def _build_pokemons():
|
|||
def csv_record_to_objects(info):
|
||||
poke_sprites = "pokemon/"
|
||||
dream_world = "other/dream-world/"
|
||||
home = "other/home/"
|
||||
official_art = "other/official-artwork/"
|
||||
gen_i = "versions/generation-i/"
|
||||
gen_ii = "versions/generation-ii/"
|
||||
|
@ -1412,6 +1413,18 @@ def _build_pokemons():
|
|||
poke_sprites + dream_world + "female/", info, "svg"
|
||||
),
|
||||
},
|
||||
"home": {
|
||||
"front_default": try_image_names(poke_sprites + home, info, "png"),
|
||||
"front_female": try_image_names(
|
||||
poke_sprites + home + "female/", info, "png"
|
||||
),
|
||||
"front_shiny": try_image_names(
|
||||
poke_sprites + home + "shiny/", info, "png"
|
||||
),
|
||||
"front_shiny_female": try_image_names(
|
||||
poke_sprites + home + "shiny/female/", info, "png"
|
||||
),
|
||||
},
|
||||
"official-artwork": {
|
||||
"front_default": try_image_names(
|
||||
poke_sprites + official_art, info, "png"
|
||||
|
|
Loading…
Reference in a new issue