diff options
| author | Daniel Harding <corrnondacqb@yahoo.com> | 2015-07-17 10:49:54 -0500 |
|---|---|---|
| committer | Daniel Harding <corrnondacqb@yahoo.com> | 2015-07-17 10:49:54 -0500 |
| commit | 6e46ec61f9a324116ef016397cdce9e67f75e77f (patch) | |
| tree | 101d51fea00a852808f2a76d9e45a4b3779cab56 /engine/overworld/hidden_items.asm | |
| parent | More direction constants (diff) | |
| parent | money / coins hram constants (diff) | |
| download | pokeyellow-6e46ec61f9a324116ef016397cdce9e67f75e77f.tar.gz pokeyellow-6e46ec61f9a324116ef016397cdce9e67f75e77f.tar.xz pokeyellow-6e46ec61f9a324116ef016397cdce9e67f75e77f.zip | |
Merge pull request #103 from YamaArashi/master
Misc changes again
Diffstat (limited to 'engine/overworld/hidden_items.asm')
| -rwxr-xr-x | engine/overworld/hidden_items.asm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/overworld/hidden_items.asm b/engine/overworld/hidden_items.asm index 868f118f..910fcf04 100755 --- a/engine/overworld/hidden_items.asm +++ b/engine/overworld/hidden_items.asm @@ -67,9 +67,9 @@ HiddenCoins: ; 76799 (1d:6799) and a ret nz xor a - ld [$ff9f], a - ld [$ffa0], a - ld [$ffa1], a + ld [hCoins - 1], a + ld [hCoins], a + ld [hCoins + 1], a ld a, [wWhichTrade] sub COIN cp 10 @@ -81,22 +81,22 @@ HiddenCoins: ; 76799 (1d:6799) jr .bcd100 .bcd10 ld a, $10 - ld [$ffa1], a + ld [hCoins + 1], a jr .bcddone .bcd20 ld a, $20 - ld [$ffa1], a + ld [hCoins + 1], a jr .bcddone .bcd40 ; due to a typo, this is never used ld a, $40 - ld [$ffa1], a + ld [hCoins + 1], a jr .bcddone .bcd100 ld a, $1 - ld [$ffa0], a + ld [hCoins], a .bcddone ld de, wPlayerCoins + 1 - ld hl, $ffa1 + ld hl, hCoins + 1 ld c, $2 predef AddBCDPredef ld hl, wd6fe |
