TM/HM constants named after moves

This commit is contained in:
Rangi 2020-07-05 22:52:27 -04:00
parent 66ebe56adc
commit 405889193e
203 changed files with 330 additions and 302 deletions

View file

@ -2,8 +2,8 @@ GetMachinePrice::
; Input: [wcf91] = Item Id of a TM
; Output: Stores the TM price at hItemPrice
ld a, [wcf91] ; a contains TM item id
sub TM_01
ret c
sub TM01 ; underflows below 0 for HM items (before TM items)
ret c ; HMs are priceless
ld d, a
ld hl, TechnicalMachinePrices
srl a