diff options
author | IIMarckus <iimarckus@gmail.com> | 2015-02-04 00:51:25 -0700 |
---|---|---|
committer | IIMarckus <iimarckus@gmail.com> | 2015-02-04 00:51:25 -0700 |
commit | 01e314f4f5b7de2f5ad00dd017ad44514ba71e48 (patch) | |
tree | e8653c548dcc82d34d5dd79bff0a1f243855ccac /home.asm | |
parent | a53b3ca5614855ab9be5991230a73f1f3d6cc442 (diff) | |
parent | c3a5bb70d2c65b7fe6033ee9bfb8fe89b6a3e431 (diff) |
Merge branch 'master' of /tmp/a/pokered
Diffstat (limited to 'home.asm')
-rw-r--r-- | home.asm | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -3335,6 +3335,8 @@ GetName:: ; 376b (0:376b) ret GetItemPrice:: ; 37df (0:37df) +; Stores item's price as BCD in [H_DOWNARROWBLINKCNT1] and [[H_DOWNARROWBLINKCNT2] +; Input: [wcf91] = item id ld a, [H_LOADEDROMBANK] push af ld a, [wListMenuID] ; wListMenuID @@ -3349,9 +3351,9 @@ GetItemPrice:: ; 37df (0:37df) ld a, [hli] ld h, [hl] ld l, a - ld a, [wcf91] + ld a, [wcf91] ; a contains item id cp HM_01 - jr nc, .asm_3812 + jr nc, .getTMPrice ld bc, $3 .asm_3802 add hl, bc @@ -3365,7 +3367,7 @@ GetItemPrice:: ; 37df (0:37df) ld a, [hl] ld [H_DOWNARROWBLINKCNT1], a ; $ff8b jr .asm_381c -.asm_3812 +.getTMPrice ld a, Bank(GetMachinePrice) ld [H_LOADEDROMBANK], a ld [$2000], a |