diff options
| author | Idain <luiscarlosholguinperez@outlook.com> | 2021-06-21 13:23:41 -0400 |
|---|---|---|
| committer | Idain <luiscarlosholguinperez@outlook.com> | 2021-06-21 13:23:41 -0400 |
| commit | 73f61aef99430abaee0156c3ddc37bf38b475c5b (patch) | |
| tree | 5940cd902a78e61b3f705eeeb994711c6c6e5890 | |
| parent | a571b88190f801c3ec57e78f6cc9d1e7d3d3d95c (diff) | |
Deleted some extra code to make example more readable
| -rw-r--r-- | Add-a-new-TM-or-HM.md | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/Add-a-new-TM-or-HM.md b/Add-a-new-TM-or-HM.md index 88473a8..339a1b5 100644 --- a/Add-a-new-TM-or-HM.md +++ b/Add-a-new-TM-or-HM.md @@ -18,16 +18,7 @@ This tutorial is for how to add a new TM or HM. As an example, we'll add TM51 Ae Edit [constants/item_constants.asm](../blob/master/constants/item_constants.asm): ```diff - add_tm: MACRO - ; Defines three constants: - ; - TM_\1: the item id, starting at $bf - ; - \1_TMNUM: the learnable TM/HM flag, starting at 1 - ; - TM##_MOVE: alias for the move id, equal to the value of \1 - const TM_\1 - TM{02d:__tmhm_value__}_MOVE = \1 - add_tmnum \1 - ENDM - + ... ; see data/moves/tmhm_moves.asm for moves TM01 EQU const_value add_tm DYNAMICPUNCH ; bf @@ -36,18 +27,8 @@ Edit [constants/item_constants.asm](../blob/master/constants/item_constants.asm) + add_tm AEROBLAST NUM_TMS EQU __tmhm_value__ - 1 - add_hm: MACRO - ; Defines three constants: - ; - HM_\1: the item id, starting at $f3 - ; - \1_TMNUM: the learnable TM/HM flag, starting at 51 - ; - HM##_MOVE: alias for the move id, equal to the value of \1 - const HM_\1 - HM_VALUE = __tmhm_value__ - NUM_TMS - HM{02d:HM_VALUE}_MOVE = \1 - add_tmnum \1 - ENDM - - HM01 EQU const_value + ... + add_hm CUT ; f3 ... add_hm WATERFALL ; f9 |
