summaryrefslogtreecommitdiff
path: root/engine/pokedex
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2018-01-23 17:39:09 -0500
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2018-01-23 17:39:09 -0500
commita1951cefc09035e11077a433b28ec8c66b3b03db (patch)
tree4de98db5a6edb6d74192028d50893da2b764421f /engine/pokedex
parent79bd48f85c7dd1868264e290b12dad17a6e25b95 (diff)
Prefix wram labels with w, part 2.
Diffstat (limited to 'engine/pokedex')
-rw-r--r--engine/pokedex/newpokedexentry.asm4
-rw-r--r--engine/pokedex/pokedex.asm76
-rw-r--r--engine/pokedex/pokedex_2.asm6
-rw-r--r--engine/pokedex/pokedex_3.asm2
-rwxr-xr-xengine/pokedex/unown_dex.asm6
5 files changed, 47 insertions, 47 deletions
diff --git a/engine/pokedex/newpokedexentry.asm b/engine/pokedex/newpokedexentry.asm
index d6b755200..365cf1b70 100644
--- a/engine/pokedex/newpokedexentry.asm
+++ b/engine/pokedex/newpokedexentry.asm
@@ -42,9 +42,9 @@ NewPokedexEntry: ; fb877
call WaitBGMap2
farcall GetEnemyMonDVs
ld a, [hli]
- ld [TempMonDVs], a
+ ld [wTempMonDVs], a
ld a, [hl]
- ld [TempMonDVs + 1], a
+ ld [wTempMonDVs + 1], a
ld b, SCGB_TRAINER_OR_MON_FRONTPIC_PALS
call GetSGBLayout
call SetPalettes
diff --git a/engine/pokedex/pokedex.asm b/engine/pokedex/pokedex.asm
index e96d0a7d7..70c5c4601 100644
--- a/engine/pokedex/pokedex.asm
+++ b/engine/pokedex/pokedex.asm
@@ -27,14 +27,14 @@ Pokedex: ; 40000
push hl
ld a, [hSCX]
push af
- ld hl, Options
+ ld hl, wOptions
ld a, [hl]
push af
set NO_TEXT_SCROLL, [hl]
- ld a, [VramState]
+ ld a, [wVramState]
push af
xor a
- ld [VramState], a
+ ld [wVramState], a
ld a, [hInMenu]
push af
ld a, $1
@@ -65,9 +65,9 @@ Pokedex: ; 40000
pop af
ld [hInMenu], a
pop af
- ld [VramState], a
+ ld [wVramState], a
pop af
- ld [Options], a
+ ld [wOptions], a
pop af
ld [hSCX], a
pop hl
@@ -163,18 +163,18 @@ Pokedex_InitCursorPosition: ; 400b4
ret
Pokedex_GetLandmark: ; 400ed
- ld a, [MapGroup]
+ ld a, [wMapGroup]
ld b, a
- ld a, [MapNumber]
+ ld a, [wMapNumber]
ld c, a
call GetWorldMapLocation
cp SPECIAL_MAP
jr nz, .load
- ld a, [BackupMapGroup]
+ ld a, [wBackupMapGroup]
ld b, a
- ld a, [BackupMapNumber]
+ ld a, [wBackupMapNumber]
ld c, a
call GetWorldMapLocation
@@ -220,7 +220,7 @@ Pokedex_InitMainScreen: ; 4013c (10:413c)
ld [hBGMapMode], a
call ClearSprites
xor a
- hlcoord 0, 0, AttrMap
+ hlcoord 0, 0, wAttrMap
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
call ByteFill
farcall DrawPokedexListWindow
@@ -249,7 +249,7 @@ Pokedex_InitMainScreen: ; 4013c (10:413c)
call Pokedex_ResetBGMapMode
ld a, -1
- ld [CurPartySpecies], a
+ ld [wCurPartySpecies], a
ld a, SCGB_POKEDEX
call Pokedex_GetSGBLayout
call Pokedex_UpdateCursorOAM
@@ -342,10 +342,10 @@ Pokedex_InitDexEntryScreen: ; 40217 (10:4217)
ld a, $a7
ld [hWX], a
call Pokedex_GetSelectedMon
- ld [CurPartySpecies], a
+ ld [wCurPartySpecies], a
ld a, SCGB_POKEDEX
call Pokedex_GetSGBLayout
- ld a, [CurPartySpecies]
+ ld a, [wCurPartySpecies]
call PlayMonCry
call Pokedex_IncrementDexPointer
ret
@@ -372,11 +372,11 @@ Pokedex_UpdateDexEntryScreen: ; 40258 (10:4258)
jp hl
.return_to_prev_screen
- ld a, [LastVolume]
+ ld a, [wLastVolume]
and a
jr z, .max_volume
ld a, $77
- ld [LastVolume], a
+ ld [wLastVolume], a
.max_volume
call MaxVolume
@@ -411,10 +411,10 @@ Pokedex_ReinitDexEntryScreen: ; 402aa (10:42aa)
call Pokedex_LoadSelectedMonTiles
call WaitBGMap
call Pokedex_GetSelectedMon
- ld [CurPartySpecies], a
+ ld [wCurPartySpecies], a
ld a, SCGB_POKEDEX
call Pokedex_GetSGBLayout
- ld a, [CurPartySpecies]
+ ld a, [wCurPartySpecies]
call PlayMonCry
ld hl, wJumptableIndex
dec [hl]
@@ -460,7 +460,7 @@ DexEntryScreen_MenuActionJumptable: ; 402f2
call Pokedex_LoadSelectedMonTiles
call WaitBGMap
call Pokedex_GetSelectedMon
- ld [CurPartySpecies], a
+ ld [wCurPartySpecies], a
ld a, SCGB_POKEDEX
call Pokedex_GetSGBLayout
ret
@@ -720,7 +720,7 @@ Pokedex_InitSearchResultsScreen: ; 4050a (10:450a)
xor a
ld [hBGMapMode], a
xor a
- hlcoord 0, 0, AttrMap
+ hlcoord 0, 0, wAttrMap
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
call ByteFill
call Pokedex_SetBGMapMode4
@@ -745,7 +745,7 @@ Pokedex_InitSearchResultsScreen: ; 4050a (10:450a)
call Pokedex_PlaceSearchResultsTypeStrings
call Pokedex_UpdateSearchResultsCursorOAM
ld a, -1
- ld [CurPartySpecies], a
+ ld [wCurPartySpecies], a
ld a, SCGB_POKEDEX
call Pokedex_GetSGBLayout
call Pokedex_IncrementDexPointer
@@ -1088,8 +1088,8 @@ Pokedex_DrawMainScreenBG: ; 4074c (10:474c)
hlcoord 1, 11
ld de, String_SEEN
call Pokedex_PlaceString
- ld hl, PokedexSeen
- ld b, EndPokedexSeen - PokedexSeen
+ ld hl, wPokedexSeen
+ ld b, wEndPokedexSeen - wPokedexSeen
call CountSetBits
ld de, wd265
hlcoord 5, 12
@@ -1098,8 +1098,8 @@ Pokedex_DrawMainScreenBG: ; 4074c (10:474c)
hlcoord 1, 14
ld de, String_OWN
call Pokedex_PlaceString
- ld hl, PokedexCaught
- ld b, EndPokedexCaught - PokedexCaught
+ ld hl, wPokedexCaught
+ ld b, wEndPokedexCaught - wPokedexCaught
call CountSetBits
ld de, wd265
hlcoord 5, 15
@@ -1322,7 +1322,7 @@ Pokedex_DrawUnownModeBG: ; 409f1 (10:49f1)
ld b, 0
ld c, 26
.loop
- ld hl, UnownDex
+ ld hl, wUnownDex
add hl, de
ld a, [hl]
and a
@@ -1911,7 +1911,7 @@ Pokedex_SearchForMons: ; 41086
and a
jr z, .next_mon
ld [wd265], a
- ld [CurSpecies], a
+ ld [wCurSpecies], a
call Pokedex_CheckCaught
jr z, .next_mon
push hl
@@ -1921,10 +1921,10 @@ Pokedex_SearchForMons: ; 41086
pop hl
ld a, [wDexConvertedMonType]
ld b, a
- ld a, [BaseType1]
+ ld a, [wBaseType1]
cp b
jr z, .match_found
- ld a, [BaseType2]
+ ld a, [wBaseType2]
cp b
jr nz, .next_mon
@@ -2117,7 +2117,7 @@ Pokedex_UpdateSearchResultsCursorOAM: ; 41281 (10:5281)
db -1
Pokedex_LoadCursorOAM: ; 412f1 (10:52f1)
- ld de, Sprite01
+ ld de, wSprite01
.loop
ld a, [hl]
cp -1
@@ -2366,9 +2366,9 @@ Pokedex_LoadSelectedMonTiles: ; 4143b
call Pokedex_CheckSeen
jr z, .QuestionMark
ld a, [wFirstUnownSeen]
- ld [UnownLetter], a
+ ld [wUnownLetter], a
ld a, [wd265]
- ld [CurPartySpecies], a
+ ld [wCurPartySpecies], a
call GetBaseData
ld de, vTiles2
predef GetMonFrontpic
@@ -2511,22 +2511,22 @@ Pokedex_LoadUnownFont: ; 41a2c
ret
Pokedex_LoadUnownFrontpicTiles: ; 41a58 (10:5a58)
- ld a, [UnownLetter]
+ ld a, [wUnownLetter]
push af
ld a, [wDexCurrentUnownIndex]
ld e, a
ld d, 0
- ld hl, UnownDex
+ ld hl, wUnownDex
add hl, de
ld a, [hl]
- ld [UnownLetter], a
+ ld [wUnownLetter], a
ld a, UNOWN
- ld [CurPartySpecies], a
+ ld [wCurPartySpecies], a
call GetBaseData
ld de, vTiles2 tile $00
predef GetMonFrontpic
pop af
- ld [UnownLetter], a
+ ld [wUnownLetter], a
ret
_NewPokedexEntry: ; 41a7f
@@ -2540,7 +2540,7 @@ _NewPokedexEntry: ; 41a7f
call Pokedex_LoadGFX
call Pokedex_LoadAnyFootprint
ld a, [wd265]
- ld [CurPartySpecies], a
+ ld [wCurPartySpecies], a
call Pokedex_DrawDexEntryScreenBG
call Pokedex_DrawFootprint
hlcoord 0, 17
@@ -2557,7 +2557,7 @@ _NewPokedexEntry: ; 41a7f
predef GetMonFrontpic
ld a, SCGB_POKEDEX
call Pokedex_GetSGBLayout
- ld a, [CurPartySpecies]
+ ld a, [wCurPartySpecies]
call PlayMonCry
ret
diff --git a/engine/pokedex/pokedex_2.asm b/engine/pokedex/pokedex_2.asm
index 4dd608ac0..6f4e27405 100644
--- a/engine/pokedex/pokedex_2.asm
+++ b/engine/pokedex/pokedex_2.asm
@@ -41,7 +41,7 @@ AnimateDexSearchSlowpoke: ; 441cf
DoDexSearchSlowpokeFrame: ; 44207
ld a, [wDexSearchSlowpokeFrame]
ld hl, .SlowpokeSpriteData
- ld de, Sprite01
+ ld de, wSprite01
.loop
ld a, [hli]
cp -1
@@ -107,8 +107,8 @@ DisplayDexEntry: ; 4424d
pop bc
ret z
; Get the height of the Pokemon.
- ld a, [CurPartySpecies]
- ld [CurSpecies], a
+ ld a, [wCurPartySpecies]
+ ld [wCurSpecies], a
inc hl
ld a, b
push af
diff --git a/engine/pokedex/pokedex_3.asm b/engine/pokedex/pokedex_3.asm
index dc52f83d3..f5247f2da 100644
--- a/engine/pokedex/pokedex_3.asm
+++ b/engine/pokedex/pokedex_3.asm
@@ -140,7 +140,7 @@ DrawDexEntryScreenRightEdge: ; 1de247
ld [hl], $3c
xor a
ld b, SCREEN_HEIGHT
- hlcoord 19, 0, AttrMap
+ hlcoord 19, 0, wAttrMap
call Bank77_FillColumn
call WaitBGMap2
pop hl
diff --git a/engine/pokedex/unown_dex.asm b/engine/pokedex/unown_dex.asm
index dc6db9dc6..cc3d4a273 100755
--- a/engine/pokedex/unown_dex.asm
+++ b/engine/pokedex/unown_dex.asm
@@ -1,8 +1,8 @@
UpdateUnownDex: ; fba18
- ld a, [UnownLetter]
+ ld a, [wUnownLetter]
ld c, a
ld b, NUM_UNOWN
- ld hl, UnownDex
+ ld hl, wUnownDex
.loop
ld a, [hli]
and a
@@ -27,7 +27,7 @@ PrintUnownWord: ; fba2e (3e:7a2e)
ld a, [wDexCurrentUnownIndex]
ld e, a
ld d, 0
- ld hl, UnownDex
+ ld hl, wUnownDex
add hl, de
ld a, [hl]
ld e, a