diff options
| author | Daniel Harding <corrnondacqb@yahoo.com> | 2015-07-18 12:29:05 -0500 |
|---|---|---|
| committer | Daniel Harding <corrnondacqb@yahoo.com> | 2015-07-18 12:29:05 -0500 |
| commit | 54c1893d579cdf6853c6a64953bae281a6075fe3 (patch) | |
| tree | 11717604336caa83ddcdb1bd8b1c765d54cf708b /engine/items/tm_prices.asm | |
| parent | Clean up map connections (diff) | |
| parent | fix variable naming (diff) | |
| download | pokeyellow-54c1893d579cdf6853c6a64953bae281a6075fe3.tar.gz pokeyellow-54c1893d579cdf6853c6a64953bae281a6075fe3.tar.xz pokeyellow-54c1893d579cdf6853c6a64953bae281a6075fe3.zip | |
Merge pull request #104 from YamaArashi/master
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" |
