aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mtmoonpokecenter.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/mtmoonpokecenter.asm
parentPull a lot of engine out of main.asm (diff)
parentUpdate INSTALL.md (diff)
downloadpokeyellow-fb11ff7e55be56cef9234c8443614f04f2157a1e.tar.gz
pokeyellow-fb11ff7e55be56cef9234c8443614f04f2157a1e.tar.xz
pokeyellow-fb11ff7e55be56cef9234c8443614f04f2157a1e.zip
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/mtmoonpokecenter.asm')
-rwxr-xr-xscripts/mtmoonpokecenter.asm21
1 files changed, 10 insertions, 11 deletions
diff --git a/scripts/mtmoonpokecenter.asm b/scripts/mtmoonpokecenter.asm
index 01272c30..94054561 100755
--- a/scripts/mtmoonpokecenter.asm
+++ b/scripts/mtmoonpokecenter.asm
@@ -23,16 +23,16 @@ MtMoonPokecenterText3: ; 492e7 (12:52e7)
MtMoonPokecenterText4: ; 492ec (12:52ec)
db $08 ; asm
- ld a, [$d7c6]
+ ld a, [wd7c6]
add a
jp c, .asm_49353
ld hl, MtMoonPokecenterText_4935c
call PrintText
ld a, $13
- ld [$d125], a
+ ld [wd125], a
call DisplayTextBoxID
call YesNoChoice
- ld a, [$cc26]
+ ld a, [wCurrentMenuItem]
and a
jp nz, .asm_4934e
ldh [$9f], a
@@ -49,18 +49,17 @@ MtMoonPokecenterText4: ; 492ec (12:52ec)
jr nc, .asm_49359 ; 0x49324
xor a
ld [wWhichTrade], a
- ld [$cd3f], a
+ ld [wTrainerFacingDirection], a
ld a, $5
- ld [$cd3e], a
- ld hl, $cd3f
- ld de, $d349
+ ld [wTrainerEngageDistance], a
+ ld hl, wTrainerFacingDirection
+ ld de, wPlayerMoney + 2
ld c, $3
- ld a, $c
- call Predef
+ predef SubBCDPredef
ld a, $13
- ld [$d125], a
+ ld [wd125], a
call DisplayTextBoxID
- ld hl, $d7c6
+ ld hl, wd7c6
set 7, [hl]
jr .asm_49359 ; 0x4934c
.asm_4934e ; 0x4934e