From 246673082be56f3f3887839761f75b0b3e6b75b2 Mon Sep 17 00:00:00 2001 From: danenders <65201358+danenders@users.noreply.github.com> Date: Sat, 5 Mar 2022 11:53:52 -0500 Subject: =?UTF-8?q?Updated=20How=20to=20add=20a=20new=20Pok=C3=A9mon=20spe?= =?UTF-8?q?cies=20(markdown)?= 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" | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 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 480332a..b8b4ad1 100644 --- "a/How-to-add-a-new-Pok\303\251mon-species.md" +++ "b/How-to-add-a-new-Pok\303\251mon-species.md" @@ -364,28 +364,28 @@ The `_()` underscore function doesn't really exist - it's a convention borrowed ## 3. Define its Pokédex entry First, we will need to add new index constants for its Pokédex entry. The index constants are divided into the Hoenn Pokédex, which contains all Pokémon native to the Hoenn region, and the national Pokédex containing all known Pokémon, which can be received after entering the hall of fame for the first time. -Edit [include/constants/species.h](../blob/master/include/constants/species.h): +Edit [include/constants/pokedex.h](../blob/master/include/constants/pokedex.h): ```diff - // National Dex Index Defines - - #define NATIONAL_DEX_NONE 0 - #define NATIONAL_DEX_BULBASAUR 1 +// National Pokedex order +enum { + NATIONAL_DEX_NONE, + // Kanto + NATIONAL_DEX_BULBASAUR, ... - #define NATIONAL_DEX_DEOXYS 386 -+#define NATIONAL_DEX_MEWTHREE 387 + NATIONAL_DEX_DEOXYS, + NATIONAL_DEX_MEWTHREE, -#define NATIONAL_DEX_COUNT NATIONAL_DEX_DEOXYS +#define NATIONAL_DEX_COUNT NATIONAL_DEX_MEWTHREE ... - // Hoenn Dex Index Defines - #define HOENN_DEX_NONE 0 - #define HOENN_DEX_TREECKO 1 +// Hoenn Pokedex order +enum { + HOENN_DEX_NONE, + HOENN_DEX_TREECKO, ... - #define HOENN_DEX_CELEBI 386 -+#define HOENN_DEX_MEWTHREE 387 - --#define HOENN_DEX_OLD_UNOWN_B (HOENN_DEX_CELEBI + 1) -+#define HOENN_DEX_OLD_UNOWN_B (HOENN_DEX_MEWTHREE + 1) + #HOENN_DEX_CELEBI ++#HOENN_DEX_MEWTHREE + ``` Edit [src/pokemon.c](../blob/master/src/pokemon.c): -- cgit v1.2.3