summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--How-to-add-a-new-Pokémon-species.md26
1 files changed, 19 insertions, 7 deletions
diff --git a/How-to-add-a-new-Pokémon-species.md b/How-to-add-a-new-Pokémon-species.md
index 81eda7e..d0ec363 100644
--- a/How-to-add-a-new-Pokémon-species.md
+++ b/How-to-add-a-new-Pokémon-species.md
@@ -366,26 +366,38 @@ The `_()` underscore function doesn't really exist - it's a convention borrowed
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/pokedex.h](../blob/master/include/constants/pokedex.h):
```diff
+#ifndef GUARD_CONSTANTS_POKEDEX_H
+#define GUARD_CONSTANTS_POKEDEX_H
+
// National Pokedex order
enum {
NATIONAL_DEX_NONE,
// Kanto
NATIONAL_DEX_BULBASAUR,
- ...
+...
NATIONAL_DEX_DEOXYS,
+ NATIONAL_DEX_MEWTHREE,
};
--#define NATIONAL_DEX_COUNT NATIONAL_DEX_DEOXYS
-+#define NATIONAL_DEX_COUNT NATIONAL_DEX_MEWTHREE
- ...
+#define KANTO_DEX_COUNT NATIONAL_DEX_MEW
+#define JOHTO_DEX_COUNT NATIONAL_DEX_CELEBI
+-#define NATIONAL_DEX_COUNT NATIONAL_DEX_DEOXYS
++#define NATIONAL_DEX_COUNT NATIONAL_DEX_MEWTHREE
+
// Hoenn Pokedex order
enum {
HOENN_DEX_NONE,
HOENN_DEX_TREECKO,
- ...
--#define #HOENN_DEX_COUNT_DEOXYS
-+#define #HOENN_DEX_COUNT_MEWTHREE
+...
+ HOENN_DEX_DEOXYS,
++ HOENN_DEX_MEWTHREE,
+};
+
+- #define HOENN_DEX_COUNT HOENN_DEX_DEOXYS
++ #define HOENN_DEX_COUNT HOENN_DEX_MEWTHREE
+
+#endif // GUARD_CONSTANTS_POKEDEX_H
+
```