Merge pull request #664 from PokeAPI/home

This commit is contained in:
Alessandro Pezzè 2021-10-25 19:37:56 +02:00 committed by GitHub
commit 2df8f39732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"