From 79d7c11f83a30a087e5dcdf739bebc4f38fb7080 Mon Sep 17 00:00:00 2001 From: LucaBGt <32401333+LucaBGt@users.noreply.github.com> Date: Sat, 13 Mar 2021 03:18:56 +0100 Subject: =?UTF-8?q?Updated=20Pok=C3=A9dex=20Definition=20Segment.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "How-to-add-a-new-Pok\303\251mon-species.md" | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git "a/How-to-add-a-new-Pok\303\251mon-species.md" "b/How-to-add-a-new-Pok\303\251mon-species.md" index f2542d5..e31db50 100644 --- "a/How-to-add-a-new-Pok\303\251mon-species.md" +++ "b/How-to-add-a-new-Pok\303\251mon-species.md" @@ -384,7 +384,7 @@ Edit [include/constants/species.h](../blob/master/include/constants/species.h): Edit [src/pokemon.c](../blob/master/src/pokemon.c): ```diff - const u16 gSpeciesToHoennPokedexNum[] = // Assigns all species to the Hoenn Dex Index (Summary No. for Hoenn Dex) + const u16 gSpeciesToHoennPokedexNum[NUM_SPECIES] = // Assigns all species to the Hoenn Dex Index (Summary No. for Hoenn Dex) { SPECIES_TO_HOENN(BULBASAUR), ... @@ -392,14 +392,14 @@ Edit [src/pokemon.c](../blob/master/src/pokemon.c): + SPECIES_TO_HOENN(MEWTHREE), }; - const u16 gSpeciesToNationalPokedexNum[] = // Assigns all species to the National Dex Index (Summary No. for National Dex) + const u16 gSpeciesToNationalPokedexNum[NUM_SPECIES] = // Assigns all species to the National Dex Index (Summary No. for National Dex) { SPECIES_TO_NATIONAL(BULBASAUR), ... + SPECIES_TO_NATIONAL(MEWTHREE), }; - const u16 gHoennToNationalOrder[] = // Assigns Hoenn Dex Pokémon (Using National Dex Index) + const u16 gHoennToNationalOrder[NUM_SPECIES] = // Assigns Hoenn Dex Pokémon (Using National Dex Index) { HOENN_TO_NATIONAL(TREECKO), ... @@ -411,7 +411,7 @@ Edit [src/pokemon.c](../blob/master/src/pokemon.c): }; ... - static const u8 sMonFrontAnimIdsTable[] = + static const u8 sMonFrontAnimIdsTable[NUM_SPECIES] = { [SPECIES_BULBASAUR - 1] = 0x06, ... -- cgit v1.2.3