diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-01-06 10:20:37 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-01-06 10:20:37 -0500 |
commit | 94daf57156f34cf95885ba8e6f32ee0f69436bb1 (patch) | |
tree | 268f083188efd2b9d97a5881b2f9352eb49ce1a3 /constants | |
parent | 21908ba30a8bae5c5e1c86b1164402ec95da0220 (diff) |
The 'tmhm' macro adjusts to the number of TMs/HMs
Diffstat (limited to 'constants')
-rw-r--r-- | constants/item_constants.asm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/constants/item_constants.asm b/constants/item_constants.asm index 67416600..d0c25202 100644 --- a/constants/item_constants.asm +++ b/constants/item_constants.asm @@ -219,7 +219,9 @@ ENDM add_tm SUBSTITUTE ; $FA assert NUM_TMS == const_value - TM01, "NUM_TMS ({d:NUM_TMS}) does not match the number of add_tm definitions" +NUM_TM_HM EQU NUM_TMS + NUM_HMS + ; 50 TMs + 5 HMs = 55 learnable TM/HM flags per Pokémon. ; These fit in 7 bytes, with one unused bit left over. -__tmhm_value__ = NUM_TMS + NUM_HMS + 1 +__tmhm_value__ = NUM_TM_HM + 1 UNUSED_TMNUM EQU __tmhm_value__ |