diff options
author | YamaArashi <shadow962@live.com> | 2015-07-18 08:17:29 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2015-07-18 08:17:46 -0700 |
commit | fc9af362ae65d24c66b39ea7759637cc9c1f9b0a (patch) | |
tree | 37074f79564b1e47b109566dfd9c3c454a4cc226 /engine/items/tm_prices.asm | |
parent | b85d7c65f35e93534a871ed34b1950daf59ab189 (diff) |
fix variable naming
Diffstat (limited to 'engine/items/tm_prices.asm')
-rwxr-xr-x | engine/items/tm_prices.asm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engine/items/tm_prices.asm b/engine/items/tm_prices.asm index 4decc82d..6bb7f711 100755 --- a/engine/items/tm_prices.asm +++ b/engine/items/tm_prices.asm @@ -1,7 +1,6 @@ GetMachinePrice: ; 7bf86 (1e:7f86) ; Input: [wcf91] = Item Id of a TM -; Output: Stores the 2-byte TM price in [H_DOWNARROWBLINKCNT1] and [H_DOWNARROWBLINKCNT2] -; as a BCD +; Output: Stores the TM price at hItemPrice ld a, [wcf91] ; a contains TM item id sub TM_01 ret c @@ -17,10 +16,10 @@ GetMachinePrice: ; 7bf86 (1e:7f86) swap a .highNybbleIsPrice and $f0 - ld [H_DOWNARROWBLINKCNT2], a + ld [hItemPrice + 1], a xor a - ld [H_DOWNARROWBLINKCNT1], a - ld [$ff8d], a + ld [hItemPrice], a + ld [hItemPrice + 2], a ret INCLUDE "data/tm_prices.asm" |