mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-26 05:10:21 +00:00
Merge pull request #658 from WOTstorm/add_pokemon_home_images_support
This commit is contained in:
commit
a5ac3fc7e1
1 changed files with 15 additions and 0 deletions
|
@ -1381,6 +1381,7 @@ def _build_pokemons():
|
||||||
def csv_record_to_objects(info):
|
def csv_record_to_objects(info):
|
||||||
poke_sprites = "pokemon/"
|
poke_sprites = "pokemon/"
|
||||||
dream_world = "other/dream-world/"
|
dream_world = "other/dream-world/"
|
||||||
|
home = "other/home/"
|
||||||
official_art = "other/official-artwork/"
|
official_art = "other/official-artwork/"
|
||||||
gen_i = "versions/generation-i/"
|
gen_i = "versions/generation-i/"
|
||||||
gen_ii = "versions/generation-ii/"
|
gen_ii = "versions/generation-ii/"
|
||||||
|
@ -1412,6 +1413,20 @@ def _build_pokemons():
|
||||||
poke_sprites + dream_world + "female/", info, "svg"
|
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": {
|
"official-artwork": {
|
||||||
"front_default": try_image_names(
|
"front_default": try_image_names(
|
||||||
poke_sprites + official_art, info, "png"
|
poke_sprites + official_art, info, "png"
|
||||||
|
|
Loading…
Reference in a new issue