mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-10 14:14:17 +00:00
Merge pull request #521 from C-Garza/add-animated-sprites
This commit is contained in:
commit
2d19a8c955
2 changed files with 64 additions and 1 deletions
|
@ -1348,6 +1348,7 @@ def _build_pokemons():
|
|||
|
||||
def csv_record_to_objects(info):
|
||||
file_name_png = "%s.png" % info[0]
|
||||
file_name_gif = "%s.gif" % info[0]
|
||||
file_name_svg = "%s.svg" % info[0]
|
||||
poke_sprites = "pokemon/{0}"
|
||||
dream_world = "other/dream-world/{0}"
|
||||
|
@ -1775,6 +1776,68 @@ def _build_pokemons():
|
|||
)
|
||||
)
|
||||
),
|
||||
"animated": {
|
||||
"front_default": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_v.format(
|
||||
"black-white/animated/" + file_name_gif
|
||||
)
|
||||
)
|
||||
),
|
||||
"front_female": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_v.format(
|
||||
"black-white/animated/female/" + file_name_gif
|
||||
)
|
||||
)
|
||||
),
|
||||
"front_shiny": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_v.format(
|
||||
"black-white/animated/shiny/" + file_name_gif
|
||||
)
|
||||
)
|
||||
),
|
||||
"front_shiny_female": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_v.format(
|
||||
"black-white/animated/shiny/female/"
|
||||
+ file_name_gif
|
||||
)
|
||||
)
|
||||
),
|
||||
"back_default": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_v.format(
|
||||
"black-white/animated/back/" + file_name_gif
|
||||
)
|
||||
)
|
||||
),
|
||||
"back_female": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_v.format(
|
||||
"black-white/animated/back/female/"
|
||||
+ file_name_gif
|
||||
)
|
||||
)
|
||||
),
|
||||
"back_shiny": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_v.format(
|
||||
"black-white/animated/back/shiny/"
|
||||
+ file_name_gif
|
||||
)
|
||||
)
|
||||
),
|
||||
"back_shiny_female": file_path_or_none(
|
||||
poke_sprites.format(
|
||||
gen_v.format(
|
||||
"black-white/animated/back/shiny/female/"
|
||||
+ file_name_gif
|
||||
)
|
||||
)
|
||||
),
|
||||
},
|
||||
}
|
||||
},
|
||||
"generation-vi": {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit b6ef8894693afb8592059eadbdc69b947982b575
|
||||
Subproject commit 6c9d4efd1662ad363a5b2b64b64d048a7f394013
|
Loading…
Reference in a new issue