summaryrefslogtreecommitdiff
path: root/scripts/namerater.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/namerater.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/namerater.asm')
-rwxr-xr-xscripts/namerater.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/namerater.asm b/scripts/namerater.asm
index 6e927667..ca357ad1 100755
--- a/scripts/namerater.asm
+++ b/scripts/namerater.asm
@@ -4,24 +4,24 @@ NameRaterScript: ; 1da12 (7:5a12)
NameRaterScript_1da15: ; 1da15 (7:5a15)
call PrintText
call YesNoChoice
- ld a, [$cc26]
+ ld a, [wCurrentMenuItem]
and a
ret
NameRaterScript_1da20: ; 1da20 (7:5a20)
- ld hl, W_PARTYMON1OT
+ ld hl, wPartyMonOT
ld bc, $000b
ld a, [wWhichPokemon]
call AddNTimes
- ld de, W_PLAYERNAME
+ ld de, wPlayerName
ld c, $b
call .asm_1da47
jr c, .asm_1da52 ; 0x1da34 $1c
- ld hl, $d177
+ ld hl, wPartyMon1OTID
ld bc, $002c
ld a, [wWhichPokemon]
call AddNTimes
- ld de, $d359
+ ld de, wPlayerID
ld c, $2
.asm_1da47
ld a, [de]
@@ -49,9 +49,9 @@ NameRaterText1: ; 1da56 (7:5a56)
ld hl, NameRaterText_1dab8
call PrintText
xor a
- ld [$d07d], a
- ld [$cfcb], a
- ld [$cc35], a
+ ld [wd07d], a
+ ld [wcfcb], a
+ ld [wcc35], a
call DisplayPartyMenu
push af
call GBPalWhiteOutWithDelay3