diff options
| author | Idain <luiscarlosholguinperez@outlook.com> | 2021-06-22 22:24:16 -0400 |
|---|---|---|
| committer | Idain <luiscarlosholguinperez@outlook.com> | 2021-06-22 22:24:16 -0400 |
| commit | 054f528d4677b841f369f2558ed10453696bbeb4 (patch) | |
| tree | 4a33dc8512fa47ac2ef480103653700435debb90 | |
| parent | f3490d7ec36df07b656ef57f3e3359aded66a956 (diff) | |
Fixed step 6 adding another place where data needs to be deleted.
| -rw-r--r-- | Add-a-new-TM-or-HM.md | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/Add-a-new-TM-or-HM.md b/Add-a-new-TM-or-HM.md index 44f25e7..6d354e3 100644 --- a/Add-a-new-TM-or-HM.md +++ b/Add-a-new-TM-or-HM.md @@ -107,7 +107,7 @@ Notice how the `ItemNames` and `ItemAttributes` both already had the maximum 256 ## 3. Update the TM/HM move table -NOTE: This step is no longer required in current versions of pokecrystal. +**NOTE:** This step is no longer required in current versions of pokecrystal. Edit [data/moves/tmhm_moves.asm](../blob/master/data/moves/tmhm_moves.asm): ```diff @@ -210,8 +210,48 @@ Then edit [wram.asm](../blob/master/wram.asm): -wBaseUnusedBackpic:: dw wBaseGrowthRate:: db wBaseEggGroups:: db - wBaseTMHM:: flag_array NUM_TM_HM_TUTOR ; d24e + wBaseTMHM:: flag_array NUM_TM_HM_TUTOR wCurBaseDataEnd:: + assert wCurBaseDataEnd - wCurBaseData == BASE_DATA_SIZE + ++ ds 6 + ... +``` +And also [constants/pokemon_data_constants.asm](../blob/master/constants/pokemon_data_constants.asm): + +```diff + ; base data struct members (see data/pokemon/base_stats/*.asm) + rsreset + BASE_DEX_NO rb + BASE_STATS rb NUM_STATS + rsset BASE_STATS + BASE_HP rb + BASE_ATK rb + BASE_DEF rb + BASE_SPD rb + BASE_SAT rb + BASE_SDF rb + BASE_TYPES rw + rsset BASE_TYPES + BASE_TYPE_1 rb + BASE_TYPE_2 rb + BASE_CATCH_RATE rb + BASE_EXP rb + BASE_ITEMS rw + rsset BASE_ITEMS + BASE_ITEM_1 rb + BASE_ITEM_2 rb + BASE_GENDER rb +- rb_skip + BASE_EGG_STEPS rb +- rb_skip + BASE_PIC_SIZE rb +-BASE_FRONTPIC rw +-BASE_BACKPIC rw + BASE_GROWTH_RATE rb + BASE_EGG_GROUPS rb + BASE_TMHM rb (NUM_TM_HM_TUTOR + 7) / 8 + BASE_DATA_SIZE EQU _RS ``` Additionally, the label wBaseUnusedFrontpic is used once in [home/pokemon.asm](../blob/master/home/pokemon.asm), but this reference is safe to comment out or delete entirely as it is only used in the Spaceworld Demo for Pokemon Gold. |
