mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-22 19:33:10 +00:00
Extend pokemon sprites to include gen-vii and gen-viii icons
This commit is contained in:
parent
089a5e3947
commit
4e8b0da539
1 changed files with 27 additions and 0 deletions
|
@ -1362,6 +1362,7 @@ def _build_pokemons():
|
|||
gen_v = "versions/generation-v/{0}"
|
||||
gen_vi = "versions/generation-vi/{0}"
|
||||
gen_vii = "versions/generation-vii/{0}"
|
||||
gen_viii = "versions/generation-viii/{0}"
|
||||
sprites = {
|
||||
"front_default": file_path_or_none(poke_sprites.format(file_name_png)),
|
||||
"front_female": file_path_or_none(
|
||||
|
@ -1923,6 +1924,32 @@ def _build_pokemons():
|
|||
)
|
||||
)
|
||||
),
|
||||
},
|
||||
"icons": {
|
||||
"front_default": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_vii.format("icons/" + file_name_png)
|
||||
)
|
||||
),
|
||||
"front_female": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_vii.format("icons/female/" + file_name_png)
|
||||
)
|
||||
),
|
||||
},
|
||||
},
|
||||
"generation-viii": {
|
||||
"icons": {
|
||||
"front_default": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_viii.format("icons/" + file_name_png)
|
||||
)
|
||||
),
|
||||
"front_female": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_viii.format("icons/female/" + file_name_png)
|
||||
)
|
||||
),
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue