summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
Diffstat (limited to 'constants')
-rw-r--r--constants/item_constants.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/constants/item_constants.asm b/constants/item_constants.asm
index bf99ec9b..4cbc8534 100644
--- a/constants/item_constants.asm
+++ b/constants/item_constants.asm
@@ -219,9 +219,11 @@ 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__
; used for Time Capsule held item compatibility