aboutsummaryrefslogtreecommitdiffstats
path: root/engine/items/tm_prices.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-05 22:52:27 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-05 22:52:27 -0400
commit405889193ed592174407599df0bfd08a2d707a1b (patch)
tree31da6c7932b28f91990add89e99388941e4400f9 /engine/items/tm_prices.asm
parentPort pokecrystal's base data and tmhm structure (diff)
downloadpokeyellow-405889193ed592174407599df0bfd08a2d707a1b.tar.gz
pokeyellow-405889193ed592174407599df0bfd08a2d707a1b.tar.xz
pokeyellow-405889193ed592174407599df0bfd08a2d707a1b.zip
TM/HM constants named after moves
Diffstat (limited to 'engine/items/tm_prices.asm')
-rwxr-xr-xengine/items/tm_prices.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/items/tm_prices.asm b/engine/items/tm_prices.asm
index 85531bab..502191d5 100755
--- a/engine/items/tm_prices.asm
+++ b/engine/items/tm_prices.asm
@@ -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