From eb4d313c1dcbdc879c153918d1dd3b258ded2171 Mon Sep 17 00:00:00 2001 From: Rolf Date: Mon, 4 Oct 2021 20:53:15 +0200 Subject: [PATCH] =?UTF-8?q?Added=20Pok=C3=A9mon=20Home=20images=20support.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/v2/build.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/data/v2/build.py b/data/v2/build.py index 35ae4a36..721dd224 100644 --- a/data/v2/build.py +++ b/data/v2/build.py @@ -1381,6 +1381,7 @@ def _build_pokemons(): 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/" @@ -1412,6 +1413,20 @@ def _build_pokemons(): 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"