summaryrefslogtreecommitdiff
path: root/scripts/fanclub.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-07-12 09:02:49 -0400
committeryenatch <yenatch@gmail.com>2014-07-12 09:02:49 -0400
commitfb11ff7e55be56cef9234c8443614f04f2157a1e (patch)
treea6aa8d0745bd07d0b80090491b5e4b6652de4420 /scripts/fanclub.asm
parent15427f532085846ab6b51719be687951a094cb6c (diff)
parent9f29f21d9d43baa7124991dcf3b093fc6c615706 (diff)
Merge pull request #48 from yenatch/master
Clean up post-split main.asm. Get rid of static wram addresses. Lay out a foundation for Yellow.
Diffstat (limited to 'scripts/fanclub.asm')
-rwxr-xr-xscripts/fanclub.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/fanclub.asm b/scripts/fanclub.asm
index 8ea8d36d..f9a839fa 100755
--- a/scripts/fanclub.asm
+++ b/scripts/fanclub.asm
@@ -3,7 +3,7 @@ FanClubScript: ; 59b70 (16:5b70)
FanClubBikeInBag:
; check if any bike paraphernalia in bag
- ld a, [$d771]
+ ld a, [wd771]
bit 1, a ; got bike voucher?
ret nz
ld b, BICYCLE
@@ -25,18 +25,18 @@ FanClubTextPointers: ; 59b84 (16:5b84)
FanClubText1:
; pikachu fan
db $08 ; asm
- ld a, [$d771]
+ ld a, [wd771]
bit 7, a
jr nz, .mineisbetter
ld hl, .normaltext
call PrintText
- ld hl, $d771
+ ld hl, wd771
set 6, [hl]
jr .done
.mineisbetter
ld hl, .bettertext
call PrintText
- ld hl, $d771
+ ld hl, wd771
res 7, [hl]
.done
jp TextScriptEnd
@@ -52,18 +52,18 @@ FanClubText1:
FanClubText2:
; seel fan
db $08 ; asm
- ld a, [$d771]
+ ld a, [wd771]
bit 6, a
jr nz, .mineisbetter
ld hl, .normaltext
call PrintText
- ld hl, $d771
+ ld hl, wd771
set 7, [hl]
jr .done
.mineisbetter
ld hl, .bettertext
call PrintText
- ld hl, $d771
+ ld hl, wd771
res 6, [hl]
.done
jp TextScriptEnd
@@ -113,7 +113,7 @@ FanClubText5:
ld hl, .meetchairtext
call PrintText
call YesNoChoice
- ld a, [$cc26]
+ ld a, [wCurrentMenuItem]
and a
jr nz, .nothanks
@@ -125,7 +125,7 @@ FanClubText5:
jr nc, .BagFull
ld hl, .receivedvouchertext
call PrintText
- ld hl, $d771
+ ld hl, wd771
set 1, [hl]
jr .done
.BagFull