From fbca38dcc38e031779210a6b3a5994260e9a4a7b Mon Sep 17 00:00:00 2001 From: Idain Date: Mon, 7 Mar 2022 00:56:16 -0400 Subject: Add extra step to edit the Pokered_MonIndices table --- "Add-a-new-Pok\303\251mon.md" | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git "a/Add-a-new-Pok\303\251mon.md" "b/Add-a-new-Pok\303\251mon.md" index b9c5595..46879a3 100644 --- "a/Add-a-new-Pok\303\251mon.md" +++ "b/Add-a-new-Pok\303\251mon.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. -- cgit v1.2.3