Merge pull request #658 from WOTstorm/add_pokemon_home_images_support

This commit is contained in:
Alessandro Pezzè 2021-10-25 19:26:25 +02:00 committed by GitHub
commit a5ac3fc7e1
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,20 @@ 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"