summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdain <luiscarlosholguinperez@outlook.com>2022-03-07 00:56:16 -0400
committerIdain <luiscarlosholguinperez@outlook.com>2022-03-07 00:56:16 -0400
commitfbca38dcc38e031779210a6b3a5994260e9a4a7b (patch)
tree53acc3b99c483f6387d8a4d4f7b67a5955983298
parent86cb54bdb657c2b94a16a2673071265198a2ff5d (diff)
Add extra step to edit the Pokered_MonIndices table
-rw-r--r--Add-a-new-Pokémon.md28
1 files changed, 26 insertions, 2 deletions
diff --git a/Add-a-new-Pokémon.md b/Add-a-new-Pokémon.md
index b9c5595..46879a3 100644
--- a/Add-a-new-Pokémon.md
+++ b/Add-a-new-Pokémon.md
@@ -14,7 +14,8 @@ This tutorial is for how to add a new species of Pokémon, allowing up to 253 sp
9. [Design its footprint](#9-design-its-footprint)
10. [Design its sprites and animation](#10-design-its-sprites-and-animation)
11. [Include and point to the sprite and animation data](#11-include-and-point-to-the-sprite-and-animation-data)
-12. [Adding up to 253 Pokémon](#12-adding-up-to-253-pokémon)
+12. [Edit more data-related tables](#12-edit-more-data-related-tables)
+13. [Adding up to 253 Pokémon](#13-adding-up-to-253-pokémon)
## 1. Define a species constant
@@ -692,7 +693,30 @@ That's it—we're done! Munchlax works just like every other Pokémon.
![Screenshot](screenshots/munchlax.png)
-## 12. Adding up to 253 Pokémon
+## 12. Edit more data-related tables
+
+There's a table designed to convert Pokémon indices when transferring Pokémon from Red/Blue/Green/Yellow to Gold/Silver/Crystal and viceversa. Probably you don't care about Time Capsule compatibility, but it's good to edit it to maintain the data constant (also, RGBDS will throw an error if you don't do it).
+
+You'll find it in [data/pokemon/gen1_order.asm](../blob/master/data/pokemon/gen1_order.asm), so let's add a new entry:
+
+```
+ Pokered_MonIndices:
+ table_width 1, Pokered_MonIndices
+ db RHYDON
+ db KANGASKHAN
+ db NIDORAN_M
+ db CLEFAIRY
+ ...
+ db GRANBULL
+ db QWILFISH
+ db WOBBUFFET
+ db WOBBUFFET
++ db MUNCHLAX
+ assert_table_length NUM_POKEMON + 1
+```
+
+
+## 13. Adding up to 253 Pokémon
We just added Pokémon #252; adding #253 is basically the same. Note that by adding it before `EGG` (and of course before `NUM_POKEMON`), the constant for #253 is $FD and `EGG` shifts up to $FE.