Extend pokemon sprites to include gen-vii and gen-viii icons

This commit is contained in:
Christian Garza 2020-08-23 20:05:22 -07:00
parent 089a5e3947
commit 4e8b0da539

View file

@ -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)
)
),
}
},
},