Skip to content

Commit

Permalink
Merge pull request #664 from PokeAPI/home
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Oct 25, 2021
2 parents 4088ad9 + bcd290b commit 2df8f39
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions data/v2/build.py
Expand Up @@ -1381,6 +1381,7 @@ def try_image_names(path, info, extension):
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/"
Expand Down Expand Up @@ -1412,6 +1413,18 @@ def csv_record_to_objects(info):
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"
Expand Down

0 comments on commit 2df8f39

Please sign in to comment.