mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 22:52:15 +13:00
TM/HM constants named after moves
This commit is contained in:
parent
66ebe56adc
commit
405889193e
203 changed files with 330 additions and 302 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue