diff --git a/constants/wram_constants.asm b/constants/wram_constants.asm index c5bc47650..4d60f6f8d 100644 --- a/constants/wram_constants.asm +++ b/constants/wram_constants.asm @@ -1,7 +1,7 @@ ; wInputType:: ; c2c7 AUTO_INPUT EQU $ff -; wCurrentDexMode:: ; c7d4 +; wCurDexMode:: ; c7d4 const_def const DEXMODE_NEW const DEXMODE_OLD diff --git a/engine/events/celebi.asm b/engine/events/celebi.asm index a34f3935a..cf37eec49 100644 --- a/engine/events/celebi.asm +++ b/engine/events/celebi.asm @@ -32,7 +32,7 @@ CelebiShrineEvent: inc d push de ld a, 36 * SPRITEOAMSTRUCT_LENGTH - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a farcall DoNextFrameForAllSprites call CelebiEvent_CountDown ld c, 2 diff --git a/engine/events/checkforhiddenitems.asm b/engine/events/checkforhiddenitems.asm index 2af9a1a1f..c0d31fe24 100644 --- a/engine/events/checkforhiddenitems.asm +++ b/engine/events/checkforhiddenitems.asm @@ -10,15 +10,15 @@ CheckForHiddenItems: add SCREEN_HEIGHT / 4 ld [wBuffer3], a ; Get the pointer for the first bg_event in the map... - ld hl, wCurrMapBGEventsPointer + ld hl, wCurMapBGEventsPointer ld a, [hli] ld h, [hl] ld l, a ; ... before even checking to see if there are any BG events on this map. - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] and a jr z, .nobgeventitems -; For i = 1:wCurrMapBGEventCount... +; For i = 1:wCurMapBGEventCount... .loop ; Store the counter in wBuffer2, and store the bg_event pointer in the stack. ld [wBuffer2], a diff --git a/engine/events/field_moves.asm b/engine/events/field_moves.asm index 42e8298a7..baba3c7a1 100644 --- a/engine/events/field_moves.asm +++ b/engine/events/field_moves.asm @@ -38,7 +38,7 @@ ShakeHeadbuttTree: add hl, bc ld [hl], FIELDMOVE_TREE ld a, 36 * SPRITEOAMSTRUCT_LENGTH - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a farcall DoNextFrameForAllSprites call HideHeadbuttTree ld a, 32 @@ -53,7 +53,7 @@ ShakeHeadbuttTree: jr z, .done dec [hl] ld a, 36 * SPRITEOAMSTRUCT_LENGTH - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a farcall DoNextFrameForAllSprites call DelayFrame jr .loop @@ -126,7 +126,7 @@ OWCutAnimation: bit 7, a jr nz, .finish ld a, 36 * SPRITEOAMSTRUCT_LENGTH - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a callfar DoNextFrameForAllSprites call OWCutJumptable call DelayFrame @@ -328,7 +328,7 @@ FlyFromAnim: bit 7, a jr nz, .exit ld a, 0 * SPRITEOAMSTRUCT_LENGTH - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a callfar DoNextFrameForAllSprites call FlyFunction_FrameTimer call DelayFrame @@ -365,7 +365,7 @@ FlyToAnim: bit 7, a jr nz, .exit ld a, 0 * SPRITEOAMSTRUCT_LENGTH - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a callfar DoNextFrameForAllSprites call FlyFunction_FrameTimer call DelayFrame diff --git a/engine/events/map_name_sign.asm b/engine/events/map_name_sign.asm index a1700420b..0ec2600d1 100644 --- a/engine/events/map_name_sign.asm +++ b/engine/events/map_name_sign.asm @@ -13,7 +13,7 @@ ReturnFromMapSetupScript:: ld a, [wMapNumber] ld c, a call GetWorldMapLocation - ld [wCurrentLandmark], a + ld [wCurLandmark], a call .CheckNationalParkGate jr z, .nationalparkgate @@ -23,7 +23,7 @@ ReturnFromMapSetupScript:: .nationalparkgate ld a, -1 - ld [wCurrentLandmark], a + ld [wCurLandmark], a .not_gate ld hl, wEnteredMapFromContinue @@ -33,7 +33,7 @@ ReturnFromMapSetupScript:: call .CheckMovingWithinLandmark jr z, .dont_do_map_sign - ld a, [wCurrentLandmark] + ld a, [wCurLandmark] ld [wPreviousLandmark], a call .CheckSpecialMap @@ -48,7 +48,7 @@ ReturnFromMapSetupScript:: ret .dont_do_map_sign - ld a, [wCurrentLandmark] + ld a, [wCurLandmark] ld [wPreviousLandmark], a ld a, $90 ldh [rWY], a @@ -58,7 +58,7 @@ ReturnFromMapSetupScript:: ret .CheckMovingWithinLandmark: - ld a, [wCurrentLandmark] + ld a, [wCurLandmark] ld c, a ld a, [wPreviousLandmark] cp c @@ -140,7 +140,7 @@ InitMapNameFrame: ret PlaceMapNameCenterAlign: - ld a, [wCurrentLandmark] + ld a, [wCurLandmark] ld e, a farcall GetLandmarkName call .GetNameLength diff --git a/engine/events/mom_phone.asm b/engine/events/mom_phone.asm index 154d4440c..8fe887b95 100644 --- a/engine/events/mom_phone.asm +++ b/engine/events/mom_phone.asm @@ -38,7 +38,7 @@ MomTriesToBuySomething:: inc [hl] .ok ld a, PHONE_MOM - ld [wCurrentCaller], a + ld [wCurCaller], a ld bc, wEngineBuffer2 ld hl, 0 add hl, bc diff --git a/engine/games/slot_machine.asm b/engine/games/slot_machine.asm index 72f9c400f..7299a8a32 100644 --- a/engine/games/slot_machine.asm +++ b/engine/games/slot_machine.asm @@ -182,7 +182,7 @@ SlotsLoop: call SlotsJumptable call Slots_SpinReels xor a - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a callfar DoNextFrameForFirst16Sprites call .PrintCoinsAndPayout call .Stubbed_Function927d3 @@ -778,9 +778,9 @@ Slots_UpdateReelPositionAndOAM: ld hl, REEL_X_COORD add hl, bc ld a, [hl] - ld [wCurrReelXCoord], a + ld [wCurReelXCoord], a ld a, 10 * 8 - ld [wCurrReelYCoord], a + ld [wCurReelYCoord], a ld hl, REEL_POSITION add hl, bc ld e, [hl] @@ -813,9 +813,9 @@ Slots_UpdateReelPositionAndOAM: ld h, [hl] ld l, a .loop - ld a, [wCurrReelYCoord] + ld a, [wCurReelYCoord] ld [hli], a ; y - ld a, [wCurrReelXCoord] + ld a, [wCurReelXCoord] ld [hli], a ; x ld a, [de] ld [hli], a ; tile id @@ -824,9 +824,9 @@ Slots_UpdateReelPositionAndOAM: set OAM_PRIORITY, a ld [hli], a ; attributes - ld a, [wCurrReelYCoord] + ld a, [wCurReelYCoord] ld [hli], a ; y - ld a, [wCurrReelXCoord] + ld a, [wCurReelXCoord] add 1 * TILE_WIDTH ld [hli], a ; x ld a, [de] @@ -838,9 +838,9 @@ Slots_UpdateReelPositionAndOAM: set OAM_PRIORITY, a ld [hli], a ; attributes inc de - ld a, [wCurrReelYCoord] + ld a, [wCurReelYCoord] sub 2 * TILE_WIDTH - ld [wCurrReelYCoord], a + ld [wCurReelYCoord], a cp 2 * TILE_WIDTH jr nz, .loop ret @@ -1412,35 +1412,35 @@ Slots_CheckMatchedFirstTwoReels: ret .CheckBottomRow: - ld hl, wCurrReelStopped + ld hl, wCurReelStopped ld a, [wReel1Stopped] cp [hl] call z, .StoreResult ret .CheckUpwardsDiag: - ld hl, wCurrReelStopped + 1 + ld hl, wCurReelStopped + 1 ld a, [wReel1Stopped] cp [hl] call z, .StoreResult ret .CheckMiddleRow: - ld hl, wCurrReelStopped + 1 + ld hl, wCurReelStopped + 1 ld a, [wReel1Stopped + 1] cp [hl] call z, .StoreResult ret .CheckDownwardsDiag: - ld hl, wCurrReelStopped + 1 + ld hl, wCurReelStopped + 1 ld a, [wReel1Stopped + 2] cp [hl] call z, .StoreResult ret .CheckTopRow: - ld hl, wCurrReelStopped + 2 + ld hl, wCurReelStopped + 2 ld a, [wReel1Stopped + 2] cp [hl] call z, .StoreResult @@ -1509,7 +1509,7 @@ Slots_CheckMatchedAllThreeReels: ret .CheckBottomRow: - ld hl, wCurrReelStopped + ld hl, wCurReelStopped ld a, [wReel1Stopped] cp [hl] ret nz @@ -1519,7 +1519,7 @@ Slots_CheckMatchedAllThreeReels: ret .CheckUpwardsDiag: - ld hl, wCurrReelStopped + 2 + ld hl, wCurReelStopped + 2 ld a, [wReel1Stopped] cp [hl] ret nz @@ -1529,7 +1529,7 @@ Slots_CheckMatchedAllThreeReels: ret .CheckMiddleRow: - ld hl, wCurrReelStopped + 1 + ld hl, wCurReelStopped + 1 ld a, [wReel1Stopped + 1] cp [hl] ret nz @@ -1539,7 +1539,7 @@ Slots_CheckMatchedAllThreeReels: ret .CheckDownwardsDiag: - ld hl, wCurrReelStopped + ld hl, wCurReelStopped ld a, [wReel1Stopped + 2] cp [hl] ret nz @@ -1549,7 +1549,7 @@ Slots_CheckMatchedAllThreeReels: ret .CheckTopRow: - ld hl, wCurrReelStopped + 2 + ld hl, wCurReelStopped + 2 ld a, [wReel1Stopped + 2] cp [hl] ret nz @@ -1563,7 +1563,7 @@ Slots_CheckMatchedAllThreeReels: ret Slots_CopyReelState: - ld de, wCurrReelStopped + ld de, wCurReelStopped ld a, [hli] ld [de], a inc de diff --git a/engine/gfx/sprites.asm b/engine/gfx/sprites.asm index f5ae26ba8..76519eb62 100644 --- a/engine/gfx/sprites.asm +++ b/engine/gfx/sprites.asm @@ -22,7 +22,7 @@ PlaySpriteAnimations: push af ld a, LOW(wVirtualOAM) - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a call DoNextFrameForAllSprites pop af @@ -55,11 +55,11 @@ DoNextFrameForAllSprites: dec e jr nz, .loop - ld a, [wCurrSpriteOAMAddr] + ld a, [wCurSpriteOAMAddr] ld l, a ld h, HIGH(wVirtualOAM) -.loop2 ; Clear (wVirtualOAM + [wCurrSpriteOAMAddr] --> wVirtualOAMEnd) +.loop2 ; Clear (wVirtualOAM + [wCurSpriteOAMAddr] --> wVirtualOAMEnd) ld a, l cp LOW(wVirtualOAMEnd) jr nc, .done @@ -94,11 +94,11 @@ DoNextFrameForFirst16Sprites: dec e jr nz, .loop - ld a, [wCurrSpriteOAMAddr] + ld a, [wCurSpriteOAMAddr] ld l, a ld h, HIGH(wVirtualOAMSprite16) -.loop2 ; Clear (wVirtualOAM + [wCurrSpriteOAMAddr] --> Sprites + $40) +.loop2 ; Clear (wVirtualOAM + [wCurSpriteOAMAddr] --> Sprites + $40) ld a, l cp LOW(wVirtualOAMSprite16) jr nc, .done @@ -233,27 +233,27 @@ UpdateAnimFrame: cp -4 jr z, .delete call GetFrameOAMPointer - ; add byte to [wCurrAnimVTile] - ld a, [wCurrAnimVTile] + ; add byte to [wCurAnimVTile] + ld a, [wCurAnimVTile] add [hl] - ld [wCurrAnimVTile], a + ld [wCurAnimVTile], a inc hl ; load pointer into hl ld a, [hli] ld h, [hl] ld l, a push bc - ld a, [wCurrSpriteOAMAddr] + ld a, [wCurSpriteOAMAddr] ld e, a ld d, HIGH(wVirtualOAM) ld a, [hli] ld c, a ; number of objects .loop ; first byte: y (px) - ; [de] = [wCurrAnimYCoord] + [wCurrAnimYOffset] + [wGlobalAnimYOffset] + AddOrSubtractY([hl]) - ld a, [wCurrAnimYCoord] + ; [de] = [wCurAnimYCoord] + [wCurAnimYOffset] + [wGlobalAnimYOffset] + AddOrSubtractY([hl]) + ld a, [wCurAnimYCoord] ld b, a - ld a, [wCurrAnimYOffset] + ld a, [wCurAnimYOffset] add b ld b, a ld a, [wGlobalAnimYOffset] @@ -265,10 +265,10 @@ UpdateAnimFrame: inc hl inc de ; second byte: x (px) - ; [de] = [wCurrAnimXCoord] + [wCurrAnimXOffset] + [wGlobalAnimXOffset] + AddOrSubtractX([hl]) - ld a, [wCurrAnimXCoord] + ; [de] = [wCurAnimXCoord] + [wCurAnimXOffset] + [wGlobalAnimXOffset] + AddOrSubtractX([hl]) + ld a, [wCurAnimXCoord] ld b, a - ld a, [wCurrAnimXOffset] + ld a, [wCurAnimXOffset] add b ld b, a ld a, [wGlobalAnimXOffset] @@ -280,8 +280,8 @@ UpdateAnimFrame: inc hl inc de ; third byte: vtile - ; [de] = [wCurrAnimVTile] + [hl] - ld a, [wCurrAnimVTile] + ; [de] = [wCurAnimVTile] + [hl] + ld a, [wCurAnimVTile] add [hl] ld [de], a inc hl @@ -293,7 +293,7 @@ UpdateAnimFrame: inc hl inc de ld a, e - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a cp LOW(wVirtualOAMEnd) jr nc, .reached_the_end dec c @@ -315,7 +315,7 @@ UpdateAnimFrame: AddOrSubtractY: push hl ld a, [hl] - ld hl, wCurrSpriteAddSubFlags + ld hl, wCurSpriteAddSubFlags bit 6, [hl] jr z, .ok ; 8 - a @@ -330,7 +330,7 @@ AddOrSubtractY: AddOrSubtractX: push hl ld a, [hl] - ld hl, wCurrSpriteAddSubFlags + ld hl, wCurSpriteAddSubFlags bit 5, [hl] ; x flip jr z, .ok ; 8 - a @@ -343,7 +343,7 @@ AddOrSubtractX: ret GetSpriteOAMAttr: - ld a, [wCurrSpriteAddSubFlags] + ld a, [wCurSpriteAddSubFlags] ld b, a ld a, [hl] xor b @@ -356,19 +356,19 @@ GetSpriteOAMAttr: InitSpriteAnimBuffer: xor a - ld [wCurrSpriteAddSubFlags], a + ld [wCurSpriteAddSubFlags], a ld hl, SPRITEANIMSTRUCT_TILE_ID add hl, bc ld a, [hli] - ld [wCurrAnimVTile], a + ld [wCurAnimVTile], a ld a, [hli] - ld [wCurrAnimXCoord], a + ld [wCurAnimXCoord], a ld a, [hli] - ld [wCurrAnimYCoord], a + ld [wCurAnimYCoord], a ld a, [hli] - ld [wCurrAnimXOffset], a + ld [wCurAnimXOffset], a ld a, [hli] - ld [wCurrAnimYOffset], a + ld [wCurAnimYOffset], a ret GetSpriteAnimVTile: @@ -448,7 +448,7 @@ GetSpriteAnimFrame: ld a, [hl] and $c0 srl a - ld [wCurrSpriteAddSubFlags], a + ld [wCurSpriteAddSubFlags], a pop af ret diff --git a/engine/items/pack.asm b/engine/items/pack.asm index 5bdaed37d..9ee425204 100644 --- a/engine/items/pack.asm +++ b/engine/items/pack.asm @@ -26,7 +26,7 @@ Pack: jr .loop .done - ld a, [wCurrPocket] + ld a, [wCurPocket] ld [wLastPocket], a ld hl, wOptions res NO_TEXT_SCROLL, [hl] @@ -63,7 +63,7 @@ Pack: .InitItemsPocket: xor a ; ITEM_POCKET - ld [wCurrPocket], a + ld [wCurPocket], a call ClearPocketList call DrawPocketName call WaitBGMap_DrawPackGFX @@ -91,7 +91,7 @@ Pack: .InitKeyItemsPocket: ld a, KEY_ITEM_POCKET - ld [wCurrPocket], a + ld [wCurPocket], a call ClearPocketList call DrawPocketName call WaitBGMap_DrawPackGFX @@ -119,7 +119,7 @@ Pack: .InitTMHMPocket: ld a, TM_HM_POCKET - ld [wCurrPocket], a + ld [wCurPocket], a call ClearPocketList call DrawPocketName xor a @@ -213,7 +213,7 @@ Pack: .InitBallsPocket: ld a, BALL_POCKET - ld [wCurrPocket], a + ld [wCurPocket], a call ClearPocketList call DrawPocketName call WaitBGMap_DrawPackGFX @@ -500,7 +500,7 @@ TossMenu: ret Unreferenced_ResetPocketCursorPositions: - ld a, [wCurrPocket] + ld a, [wCurPocket] and a ; ITEM_POCKET jr z, .items dec a ; BALL_POCKET @@ -532,7 +532,7 @@ RegisterItem: ld a, [wItemAttributeParamBuffer] and a jr nz, .cant_register - ld a, [wCurrPocket] + ld a, [wCurPocket] rrca rrca and REGISTERED_POCKET @@ -636,7 +636,7 @@ BattlePack: jr .loop .end - ld a, [wCurrPocket] + ld a, [wCurPocket] ld [wLastPocket], a ld hl, wOptions res NO_TEXT_SCROLL, [hl] @@ -673,7 +673,7 @@ BattlePack: .InitItemsPocket: xor a ; ITEM_POCKET - ld [wCurrPocket], a + ld [wCurPocket], a call ClearPocketList call DrawPocketName call WaitBGMap_DrawPackGFX @@ -701,7 +701,7 @@ BattlePack: .InitKeyItemsPocket: ld a, KEY_ITEM_POCKET - ld [wCurrPocket], a + ld [wCurPocket], a call ClearPocketList call DrawPocketName call WaitBGMap_DrawPackGFX @@ -729,7 +729,7 @@ BattlePack: .InitTMHMPocket: ld a, TM_HM_POCKET - ld [wCurrPocket], a + ld [wCurPocket], a call ClearPocketList call DrawPocketName xor a @@ -752,7 +752,7 @@ BattlePack: .InitBallsPocket: ld a, BALL_POCKET - ld [wCurrPocket], a + ld [wCurPocket], a call ClearPocketList call DrawPocketName call WaitBGMap_DrawPackGFX @@ -903,7 +903,7 @@ InitPackBuffers: ; pocket id -> jumptable index ld a, [wLastPocket] maskbits NUM_POCKETS - ld [wCurrPocket], a + ld [wCurPocket], a inc a add a dec a @@ -919,7 +919,7 @@ DepositSellInitPackBuffers: ldh [hBGMapMode], a ld [wJumptableIndex], a ; PACKSTATE_INITGFX ld [wPackJumptableIndex], a ; PACKSTATE_INITGFX - ld [wCurrPocket], a ; ITEM_POCKET + ld [wCurPocket], a ; ITEM_POCKET ld [wPackUsedItem], a ld [wSwitchItem], a call Pack_InitGFX @@ -1004,7 +1004,7 @@ DepositSellPack: ret InitPocket: - ld [wCurrPocket], a + ld [wCurPocket], a call ClearPocketList call DrawPocketName call WaitBGMap_DrawPackGFX @@ -1209,7 +1209,7 @@ Pack_PrintTextNoScroll: WaitBGMap_DrawPackGFX: call WaitBGMap DrawPackGFX: - ld a, [wCurrPocket] + ld a, [wCurPocket] maskbits NUM_POCKETS ld e, a ld d, 0 @@ -1381,7 +1381,7 @@ PlacePackGFX: ret DrawPocketName: - ld a, [wCurrPocket] + ld a, [wCurPocket] ; * 15 ld d, a swap a diff --git a/engine/link/link_trade.asm b/engine/link/link_trade.asm index 95be2817a..1c3b18aae 100644 --- a/engine/link/link_trade.asm +++ b/engine/link/link_trade.asm @@ -250,7 +250,7 @@ LinkTradeMenu: ret .UpdateCursor: - ld hl, wCursorCurrentTile + ld hl, wCursorCurTile ld a, [hli] ld h, [hl] ld l, a @@ -320,9 +320,9 @@ LinkTradeMenu: pop hl .cursor_already_there ld a, l - ld [wCursorCurrentTile], a + ld [wCursorCurTile], a ld a, h - ld [wCursorCurrentTile + 1], a + ld [wCursorCurTile + 1], a ret .TryAnims: diff --git a/engine/menus/menu.asm b/engine/menus/menu.asm index 79ef648f7..7cd52de7f 100644 --- a/engine/menus/menu.asm +++ b/engine/menus/menu.asm @@ -208,8 +208,8 @@ Init2DMenuCursorPosition: ld [wMenuCursorY], a xor a ld [wCursorOffCharacter], a - ld [wCursorCurrentTile], a - ld [wCursorCurrentTile + 1], a + ld [wCursorCurTile], a + ld [wCursorCurTile + 1], a ret .InitFlags_a: @@ -493,7 +493,7 @@ _2DMenuInterpretJoypad: ret Move2DMenuCursor: - ld hl, wCursorCurrentTile + ld hl, wCursorCurTile ld a, [hli] ld h, [hl] ld l, a @@ -549,9 +549,9 @@ Place2DMenuCursor: .cursor_on ld a, l - ld [wCursorCurrentTile], a + ld [wCursorCurTile], a ld a, h - ld [wCursorCurrentTile + 1], a + ld [wCursorCurTile + 1], a ret _PushWindow:: @@ -797,7 +797,7 @@ _InitVerticalMenuCursor:: ; wMenuCursorX ld a, 1 ld [hli], a -; wCursorOffCharacter, wCursorCurrentTile +; wCursorOffCharacter, wCursorCurTile xor a ld [hli], a ld [hli], a diff --git a/engine/menus/naming_screen.asm b/engine/menus/naming_screen.asm index fee38ac26..addaed5a3 100644 --- a/engine/menus/naming_screen.asm +++ b/engine/menus/naming_screen.asm @@ -672,7 +672,7 @@ NamingScreen_TryAddCharacter: MailComposition_TryAddCharacter: ld a, [wNamingScreenMaxNameLength] ld c, a - ld a, [wNamingScreenCurrNameLength] + ld a, [wNamingScreenCurNameLength] cp c ret nc @@ -683,7 +683,7 @@ NamingScreen_LoadNextCharacter: ld [hl], a NamingScreen_AdvanceCursor_CheckEndOfString: - ld hl, wNamingScreenCurrNameLength + ld hl, wNamingScreenCurNameLength inc [hl] call NamingScreen_GetTextCursorPosition ld a, [hl] @@ -698,11 +698,11 @@ NamingScreen_AdvanceCursor_CheckEndOfString: ret ; unused - ld a, [wNamingScreenCurrNameLength] + ld a, [wNamingScreenCurNameLength] and a ret z push hl - ld hl, wNamingScreenCurrNameLength + ld hl, wNamingScreenCurNameLength dec [hl] call NamingScreen_GetTextCursorPosition ld c, [hl] @@ -724,7 +724,7 @@ NamingScreen_AdvanceCursor_CheckEndOfString: INCLUDE "data/text/unused_dakutens.asm" NamingScreen_DeleteCharacter: - ld hl, wNamingScreenCurrNameLength + ld hl, wNamingScreenCurNameLength ld a, [hl] and a ret z @@ -744,7 +744,7 @@ NamingScreen_GetTextCursorPosition: ld a, [hli] ld h, [hl] ld l, a - ld a, [wNamingScreenCurrNameLength] + ld a, [wNamingScreenCurNameLength] ld e, a ld d, 0 add hl, de @@ -874,7 +874,7 @@ LoadNamingScreenGFX: ld [wJumptableIndex], a ld [wNamingScreenLetterCase], a ldh [hBGMapMode], a - ld [wNamingScreenCurrNameLength], a + ld [wNamingScreenCurNameLength], a ld a, $7 ldh [hWX], a ret @@ -1109,7 +1109,7 @@ INCBIN "gfx/icons/mail_big.2bpp" call NamingScreen_GetLastCharacter call MailComposition_TryAddLastCharacter jr c, .start - ld hl, wNamingScreenCurrNameLength + ld hl, wNamingScreenCurNameLength ld a, [hl] cp MAIL_LINE_LENGTH ret nz @@ -1135,7 +1135,7 @@ INCBIN "gfx/icons/mail_big.2bpp" .b call NamingScreen_DeleteCharacter - ld hl, wNamingScreenCurrNameLength + ld hl, wNamingScreenCurNameLength ld a, [hl] cp MAIL_LINE_LENGTH ret nz @@ -1350,20 +1350,20 @@ MailComposition_TryAddLastCharacter: jp MailComposition_TryAddCharacter ; unused - ld a, [wNamingScreenCurrNameLength] + ld a, [wNamingScreenCurNameLength] and a ret z cp $11 jr nz, .asm_121c3 push hl - ld hl, wNamingScreenCurrNameLength + ld hl, wNamingScreenCurNameLength dec [hl] dec [hl] jr .asm_121c8 .asm_121c3 push hl - ld hl, wNamingScreenCurrNameLength + ld hl, wNamingScreenCurNameLength dec [hl] .asm_121c8 diff --git a/engine/menus/save.asm b/engine/menus/save.asm index ad6b85ff1..51acbc485 100644 --- a/engine/menus/save.asm +++ b/engine/menus/save.asm @@ -489,9 +489,9 @@ SavePlayerData: ld de, sPlayerData ld bc, wPlayerDataEnd - wPlayerData call CopyBytes - ld hl, wCurrMapData - ld de, sCurrMapData - ld bc, wCurrMapDataEnd - wCurrMapData + ld hl, wCurMapData + ld de, sCurMapData + ld bc, wCurMapDataEnd - wCurMapData call CopyBytes jp CloseSRAM @@ -550,9 +550,9 @@ SaveBackupPlayerData: ld de, sBackupPlayerData ld bc, wPlayerDataEnd - wPlayerData call CopyBytes - ld hl, wCurrMapData - ld de, sBackupCurrMapData - ld bc, wCurrMapDataEnd - wCurrMapData + ld hl, wCurMapData + ld de, sBackupCurMapData + ld bc, wCurMapDataEnd - wCurMapData call CopyBytes call CloseSRAM ret @@ -724,9 +724,9 @@ LoadPlayerData: ld de, wPlayerData ld bc, wPlayerDataEnd - wPlayerData call CopyBytes - ld hl, sCurrMapData - ld de, wCurrMapData - ld bc, wCurrMapDataEnd - wCurrMapData + ld hl, sCurMapData + ld de, wCurMapData + ld bc, wCurMapDataEnd - wCurMapData call CopyBytes call CloseSRAM ld a, BANK(sBattleTowerChallengeState) @@ -779,9 +779,9 @@ LoadBackupPlayerData: ld de, wPlayerData ld bc, wPlayerDataEnd - wPlayerData call CopyBytes - ld hl, sBackupCurrMapData - ld de, wCurrMapData - ld bc, wCurrMapDataEnd - wCurrMapData + ld hl, sBackupCurMapData + ld de, wCurMapData + ld bc, wCurMapDataEnd - wCurMapData call CopyBytes call CloseSRAM ret diff --git a/engine/menus/scrolling_menu.asm b/engine/menus/scrolling_menu.asm index e47d656bc..3e3b2858b 100644 --- a/engine/menus/scrolling_menu.asm +++ b/engine/menus/scrolling_menu.asm @@ -322,8 +322,8 @@ ScrollingMenu_InitFlags: ld a, 1 ld [wMenuCursorX], a xor a - ld [wCursorCurrentTile], a - ld [wCursorCurrentTile + 1], a + ld [wCursorCurTile], a + ld [wCursorCurTile + 1], a ld [wCursorOffCharacter], a ret diff --git a/engine/overworld/events.asm b/engine/overworld/events.asm index 15a03df30..b3dfc1983 100644 --- a/engine/overworld/events.asm +++ b/engine/overworld/events.asm @@ -401,7 +401,7 @@ Dummy_CheckScriptFlags3Bit5: ret RunSceneScript: - ld a, [wCurrMapSceneScriptCount] + ld a, [wCurMapSceneScriptCount] and a jr z, .nope @@ -412,7 +412,7 @@ RunSceneScript: ld e, a ld d, 0 - ld hl, wCurrMapSceneScriptsPointer + ld hl, wCurMapSceneScriptsPointer ld a, [hli] ld h, [hl] ld l, a diff --git a/engine/overworld/variables.asm b/engine/overworld/variables.asm index da4b18812..c98b9cc56 100644 --- a/engine/overworld/variables.asm +++ b/engine/overworld/variables.asm @@ -61,7 +61,7 @@ _GetVarAction:: dwb wSpecialPhoneCallID, RETVAR_STRBUF2 dwb wNrOfBeatenBattleTowerTrainers, RETVAR_STRBUF2 dwb wKurtApricornQuantity, RETVAR_STRBUF2 - dwb wCurrentCaller, RETVAR_ADDR_DE + dwb wCurCaller, RETVAR_ADDR_DE dwb wBlueCardBalance, RETVAR_ADDR_DE dwb wBuenasPassword, RETVAR_ADDR_DE dwb wKenjiBreakTimer, RETVAR_STRBUF2 diff --git a/engine/overworld/wildmons.asm b/engine/overworld/wildmons.asm index d88e5908f..aa93cdaad 100644 --- a/engine/overworld/wildmons.asm +++ b/engine/overworld/wildmons.asm @@ -738,14 +738,14 @@ JumpRoamMon: ret _BackUpMapIndices: - ld a, [wRoamMons_CurrentMapNumber] + ld a, [wRoamMons_CurMapNumber] ld [wRoamMons_LastMapNumber], a - ld a, [wRoamMons_CurrentMapGroup] + ld a, [wRoamMons_CurMapGroup] ld [wRoamMons_LastMapGroup], a ld a, [wMapNumber] - ld [wRoamMons_CurrentMapNumber], a + ld [wRoamMons_CurMapNumber], a ld a, [wMapGroup] - ld [wRoamMons_CurrentMapGroup], a + ld [wRoamMons_CurMapGroup], a ret INCLUDE "data/wild/roammon_maps.asm" diff --git a/engine/phone/phone.asm b/engine/phone/phone.asm index 39962bed2..f5fc0b610 100644 --- a/engine/phone/phone.asm +++ b/engine/phone/phone.asm @@ -321,7 +321,7 @@ Function90199: jr nz, .OutOfArea ; If the person can't take a call at that time, don't do the call ld a, b - ld [wCurrentCaller], a + ld [wCurCaller], a ld hl, PhoneContacts ld bc, PHONE_TABLE_WIDTH call AddNTimes @@ -389,7 +389,7 @@ LoadCallerScript: nop nop ld a, e - ld [wCurrentCaller], a + ld [wCurCaller], a and a jr nz, .actualcaller ld a, BANK(WrongNumber) @@ -463,7 +463,7 @@ RingTwice_StartCall: ret Phone_CallerTextboxWithName: - ld a, [wCurrentCaller] + ld a, [wCurCaller] ld b, a call Function90363 ret @@ -680,12 +680,12 @@ Phone_GetTrainerClassName: ret GetCallerLocation: - ld a, [wCurrentCaller] + ld a, [wCurCaller] call GetCallerTrainerClass ld d, c ld e, b push de - ld a, [wCurrentCaller] + ld a, [wCurCaller] ld hl, PhoneContacts + PHONE_CONTACT_MAP_GROUP ld bc, PHONE_TABLE_WIDTH call AddNTimes diff --git a/engine/pokedex/pokedex.asm b/engine/pokedex/pokedex.asm index 1cab45c88..77d678e0b 100644 --- a/engine/pokedex/pokedex.asm +++ b/engine/pokedex/pokedex.asm @@ -58,7 +58,7 @@ Pokedex: call PlaySFX call WaitSFX call ClearSprites - ld a, [wCurrentDexMode] + ld a, [wCurDexMode] ld [wLastDexMode], a pop af @@ -96,7 +96,7 @@ InitPokedex: call Pokedex_CheckUnlockedUnownMode ld a, [wLastDexMode] - ld [wCurrentDexMode], a + ld [wCurDexMode], a call Pokedex_OrderMonsByMode call Pokedex_InitCursorPosition @@ -178,7 +178,7 @@ Pokedex_GetLandmark: call GetWorldMapLocation .load - ld [wDexCurrentLocation], a + ld [wDexCurLocation], a ret Pokedex_RunJumptable: @@ -235,7 +235,7 @@ Pokedex_InitMainScreen: ld a, POKEDEX_SCX ldh [hSCX], a - ld a, [wCurrentDexMode] + ld a, [wCurDexMode] cp DEXMODE_OLD ld a, $4a jr z, .okay @@ -442,7 +442,7 @@ DexEntryScreen_MenuActionJumptable: ld a, $90 ldh [hWY], a call Pokedex_GetSelectedMon - ld a, [wDexCurrentLocation] + ld a, [wDexCurLocation] ld e, a predef Pokedex_GetArea call Pokedex_BlackOutBG @@ -513,7 +513,7 @@ Pokedex_InitOptionScreen: call ClearSprites call Pokedex_DrawOptionScreenBG call Pokedex_InitArrowCursor - ld a, [wCurrentDexMode] ; Index of the topmost visible item in a scrolling menu ??? + ld a, [wCurDexMode] ; Index of the topmost visible item in a scrolling menu ??? ld [wDexArrowCursorPosIndex], a call Pokedex_DisplayModeDescription call WaitBGMap @@ -585,12 +585,12 @@ Pokedex_UpdateOptionScreen: ld b, DEXMODE_ABC .ChangeMode: - ld a, [wCurrentDexMode] + ld a, [wCurDexMode] cp b jr z, .skip_changing_mode ; Skip if new mode is same as current. ld a, b - ld [wCurrentDexMode], a + ld [wCurDexMode], a call Pokedex_OrderMonsByMode call Pokedex_DisplayChangingModesMessage xor a @@ -799,7 +799,7 @@ Pokedex_InitUnownMode: call Pokedex_LoadUnownFont call Pokedex_DrawUnownModeBG xor a - ld [wDexCurrentUnownIndex], a + ld [wDexCurUnownIndex], a call Pokedex_LoadUnownFrontpicTiles call Pokedex_UnownModePlaceCursor farcall PrintUnownWord @@ -849,7 +849,7 @@ Pokedex_UnownModeHandleDPadInput: .right ld a, [wDexUnownCount] ld e, a - ld hl, wDexCurrentUnownIndex + ld hl, wDexCurUnownIndex ld a, [hl] inc a cp e @@ -859,7 +859,7 @@ Pokedex_UnownModeHandleDPadInput: jr .update .left - ld hl, wDexCurrentUnownIndex + ld hl, wDexCurUnownIndex ld a, [hl] and a ret z @@ -886,7 +886,7 @@ Pokedex_UnownModeEraseCursor: jr Pokedex_UnownModeUpdateCursorGfx Pokedex_UnownModePlaceCursor: - ld a, [wDexCurrentUnownIndex] + ld a, [wDexCurUnownIndex] ld c, $5a ; diamond cursor Pokedex_UnownModeUpdateCursorGfx: @@ -1460,7 +1460,7 @@ Pokedex_PrintListing: ; Prints the list of Pokémon on the main Pokédex screen. ; This check is completely useless. - ld a, [wCurrentDexMode] + ld a, [wCurDexMode] cp DEXMODE_OLD jr z, .okay ld c, 11 @@ -1522,7 +1522,7 @@ Pokedex_PrintListing: ret Pokedex_PrintNumberIfOldMode: - ld a, [wCurrentDexMode] + ld a, [wCurDexMode] cp DEXMODE_OLD jr z, .printnum ret @@ -1613,7 +1613,7 @@ Pokedex_OrderMonsByMode: ld bc, wPokedexOrderEnd - wPokedexOrder xor a call ByteFill - ld a, [wCurrentDexMode] + ld a, [wCurDexMode] ld hl, .Jumptable call Pokedex_LoadPointer jp hl @@ -1968,7 +1968,7 @@ Pokedex_DisplayTypeNotFoundMessage: next "was not found.@" Pokedex_UpdateCursorOAM: - ld a, [wCurrentDexMode] + ld a, [wCurDexMode] cp DEXMODE_OLD jp z, Pokedex_PutOldModeCursorOAM call Pokedex_PutNewModeABCModeCursorOAM @@ -2070,7 +2070,7 @@ Pokedex_PutNewModeABCModeCursorOAM: db -1 Pokedex_UpdateSearchResultsCursorOAM: - ld a, [wCurrentDexMode] + ld a, [wCurDexMode] cp DEXMODE_OLD jp z, Pokedex_PutOldModeCursorOAM ld hl, .CursorOAM @@ -2498,7 +2498,7 @@ Pokedex_LoadUnownFont: Pokedex_LoadUnownFrontpicTiles: ld a, [wUnownLetter] push af - ld a, [wDexCurrentUnownIndex] + ld a, [wDexCurUnownIndex] ld e, a ld d, 0 ld hl, wUnownDex diff --git a/engine/pokedex/pokedex_3.asm b/engine/pokedex/pokedex_3.asm index 12c204bf5..d7829dd4b 100644 --- a/engine/pokedex/pokedex_3.asm +++ b/engine/pokedex/pokedex_3.asm @@ -43,7 +43,7 @@ DrawPokedexListWindow: ld [hl], $3f hlcoord 5, 16 ld [hl], $40 - ld a, [wCurrentDexMode] + ld a, [wCurDexMode] cp DEXMODE_OLD jr z, .OldMode ; scroll bar diff --git a/engine/pokedex/unown_dex.asm b/engine/pokedex/unown_dex.asm index 054c945cf..1b66a4aca 100644 --- a/engine/pokedex/unown_dex.asm +++ b/engine/pokedex/unown_dex.asm @@ -23,7 +23,7 @@ PrintUnownWord: ld bc, 12 ld a, " " call ByteFill - ld a, [wDexCurrentUnownIndex] + ld a, [wDexCurUnownIndex] ld e, a ld d, 0 ld hl, wUnownDex diff --git a/engine/pokegear/pokegear.asm b/engine/pokegear/pokegear.asm index a341acdd9..580da8014 100644 --- a/engine/pokegear/pokegear.asm +++ b/engine/pokegear/pokegear.asm @@ -1573,7 +1573,7 @@ RadioChannels: LoadStation_OaksPokemonTalk: xor a ; OAKS_POKEMON_TALK - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) ld hl, PlayRadioShow @@ -1583,7 +1583,7 @@ LoadStation_OaksPokemonTalk: LoadStation_PokedexShow: ld a, POKEDEX_SHOW - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) @@ -1594,7 +1594,7 @@ LoadStation_PokedexShow: LoadStation_PokemonMusic: ld a, POKEMON_MUSIC - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) @@ -1605,7 +1605,7 @@ LoadStation_PokemonMusic: LoadStation_LuckyChannel: ld a, LUCKY_CHANNEL - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) @@ -1616,7 +1616,7 @@ LoadStation_LuckyChannel: LoadStation_BuenasPassword: ld a, BUENAS_PASSWORD - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) @@ -1634,7 +1634,7 @@ NotBuenasPasswordName: db "@" LoadStation_UnownRadio: ld a, UNOWN_RADIO - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) @@ -1645,7 +1645,7 @@ LoadStation_UnownRadio: LoadStation_PlacesAndPeople: ld a, PLACES_AND_PEOPLE - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) @@ -1656,7 +1656,7 @@ LoadStation_PlacesAndPeople: LoadStation_LetsAllSing: ld a, LETS_ALL_SING - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) @@ -1667,7 +1667,7 @@ LoadStation_LetsAllSing: LoadStation_RocketRadio: ld a, ROCKET_RADIO - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) @@ -1678,7 +1678,7 @@ LoadStation_RocketRadio: LoadStation_PokeFluteRadio: ld a, POKE_FLUTE_RADIO - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) @@ -1689,7 +1689,7 @@ LoadStation_PokeFluteRadio: LoadStation_EvolutionRadio: ld a, EVOLUTION_RADIO - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld a, BANK(PlayRadioShow) diff --git a/engine/pokegear/radio.asm b/engine/pokegear/radio.asm index 9482f4a3d..6f9d709f8 100644 --- a/engine/pokegear/radio.asm +++ b/engine/pokegear/radio.asm @@ -1,6 +1,6 @@ PlayRadioShow: ; If we're already in the radio program proper, we don't need to be here. - ld a, [wCurrentRadioLine] + ld a, [wCurRadioLine] cp POKE_FLUTE_RADIO jr nc, .ok ; If Team Rocket is not occupying the radio tower, we don't need to be here. @@ -13,10 +13,10 @@ PlayRadioShow: jr nz, .ok ; Team Rocket broadcasts on all stations. ld a, ROCKET_RADIO - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a .ok -; Jump to the currently loaded station. The index to which we need to jump is in wCurrentRadioLine. - ld a, [wCurrentRadioLine] +; Jump to the currently loaded station. The index to which we need to jump is in wCurRadioLine. + ld a, [wCurRadioLine] ld e, a ld d, 0 ld hl, RadioJumptable @@ -145,7 +145,7 @@ PrintRadioLine: call PrintTextBoxText .skip ld a, RADIO_SCROLL - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a ld a, 100 ld [wRadioTextDelay], a ret @@ -175,7 +175,7 @@ RadioScroll: ret .proceed ld a, [wNextRadioLine] - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a ld a, [wNumRadioLinesPrinted] cp 1 call nz, CopyBottomLineToTopLine @@ -592,7 +592,7 @@ OaksPKMNTalk10: ld hl, OPT_PokemonChannelText call PrintText ld a, OAKS_POKEMON_TALK_11 - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a ld a, 100 ld [wRadioTextDelay], a ret @@ -654,7 +654,7 @@ OaksPKMNTalk14: xor a ld [wNumRadioLinesPrinted], a ld a, RADIO_SCROLL - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a ld a, 10 ld [wRadioTextDelay], a ret @@ -663,7 +663,7 @@ OaksPKMNTalk14: db "@" PlaceRadioString: - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a ld a, 100 ld [wRadioTextDelay], a jp PlaceString @@ -1779,7 +1779,7 @@ BuenasPassword20: ld hl, wDailyFlags2 res DAILYFLAGS2_BUENAS_PASSWORD_F, [hl] ld a, BUENAS_PASSWORD - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a ld hl, BuenaOffTheAirText @@ -1788,7 +1788,7 @@ BuenasPassword20: BuenasPassword21: ld a, BUENAS_PASSWORD - ld [wCurrentRadioLine], a + ld [wCurRadioLine], a xor a ld [wNumRadioLinesPrinted], a call BuenasPasswordCheckTime @@ -1911,7 +1911,7 @@ StartRadioStation: call RadioTerminator call PrintText ld hl, RadioChannelSongs - ld a, [wCurrentRadioLine] + ld a, [wCurRadioLine] ld c, a ld b, 0 add hl, bc diff --git a/home/map.asm b/home/map.asm index b04399317..7ecfafc7b 100644 --- a/home/map.asm +++ b/home/map.asm @@ -8,9 +8,9 @@ Clearwc7e8:: ret CheckScenes:: -; Checks wCurrMapSceneScriptPointer. If it's empty, returns -1 in a. Otherwise, returns the active scene ID in a. +; Checks wCurMapSceneScriptPointer. If it's empty, returns -1 in a. Otherwise, returns the active scene ID in a. push hl - ld hl, wCurrMapSceneScriptPointer + ld hl, wCurMapSceneScriptPointer ld a, [hli] ld h, [hl] ld l, a @@ -24,24 +24,24 @@ CheckScenes:: ret GetCurrentMapSceneID:: -; Grabs the wram map scene script pointer for the current map and loads it into wCurrMapSceneScriptPointer. -; If there is no scene, both bytes of wCurrMapSceneScriptPointer are wiped clean. +; Grabs the wram map scene script pointer for the current map and loads it into wCurMapSceneScriptPointer. +; If there is no scene, both bytes of wCurMapSceneScriptPointer are wiped clean. ; Copy the current map group and number into bc. This is needed for GetMapSceneID. ld a, [wMapGroup] ld b, a ld a, [wMapNumber] ld c, a -; Blank out wCurrMapSceneScriptPointer; this is the default scenario. +; Blank out wCurMapSceneScriptPointer; this is the default scenario. xor a - ld [wCurrMapSceneScriptPointer], a - ld [wCurrMapSceneScriptPointer + 1], a + ld [wCurMapSceneScriptPointer], a + ld [wCurMapSceneScriptPointer + 1], a call GetMapSceneID ret c ; The map is not in the scene script table -; Load the scene script pointer from de into wCurrMapSceneScriptPointer +; Load the scene script pointer from de into wCurMapSceneScriptPointer ld a, e - ld [wCurrMapSceneScriptPointer], a + ld [wCurMapSceneScriptPointer], a ld a, d - ld [wCurrMapSceneScriptPointer + 1], a + ld [wCurMapSceneScriptPointer + 1], a xor a ret @@ -254,12 +254,12 @@ GetDestinationWarpNumber:: ld a, [wPlayerStandingMapX] sub 4 ld d, a - ld a, [wCurrMapWarpCount] + ld a, [wCurMapWarpCount] and a ret z ld c, a - ld hl, wCurrMapWarpsPointer + ld hl, wCurMapWarpsPointer ld a, [hli] ld h, [hl] ld l, a @@ -292,7 +292,7 @@ GetDestinationWarpNumber:: call .IncreaseHLTwice ret nc ; never encountered - ld a, [wCurrMapWarpCount] + ld a, [wCurMapWarpCount] inc a sub c ld c, a @@ -319,7 +319,7 @@ CopyWarpData:: .CopyWarpData: push bc - ld hl, wCurrMapWarpsPointer + ld hl, wCurMapWarpsPointer ld a, [hli] ld h, [hl] ld l, a @@ -489,11 +489,11 @@ GetMapConnection:: ReadMapSceneScripts:: ld a, [hli] ; scene script count ld c, a - ld [wCurrMapSceneScriptCount], a ; current map scene script count + ld [wCurMapSceneScriptCount], a ; current map scene script count ld a, l - ld [wCurrMapSceneScriptsPointer], a ; map scene script pointer + ld [wCurMapSceneScriptsPointer], a ; map scene script pointer ld a, h - ld [wCurrMapSceneScriptsPointer + 1], a + ld [wCurMapSceneScriptsPointer + 1], a ld a, c and a ret z @@ -505,11 +505,11 @@ ReadMapSceneScripts:: ReadMapCallbacks:: ld a, [hli] ld c, a - ld [wCurrMapCallbackCount], a + ld [wCurMapCallbackCount], a ld a, l - ld [wCurrMapCallbacksPointer], a + ld [wCurMapCallbacksPointer], a ld a, h - ld [wCurrMapCallbacksPointer + 1], a + ld [wCurMapCallbacksPointer + 1], a ld a, c and a ret z @@ -521,11 +521,11 @@ ReadMapCallbacks:: ReadWarps:: ld a, [hli] ld c, a - ld [wCurrMapWarpCount], a + ld [wCurMapWarpCount], a ld a, l - ld [wCurrMapWarpsPointer], a + ld [wCurMapWarpsPointer], a ld a, h - ld [wCurrMapWarpsPointer + 1], a + ld [wCurMapWarpsPointer + 1], a ld a, c and a ret z @@ -536,11 +536,11 @@ ReadWarps:: ReadCoordEvents:: ld a, [hli] ld c, a - ld [wCurrMapCoordEventCount], a + ld [wCurMapCoordEventCount], a ld a, l - ld [wCurrMapCoordEventsPointer], a + ld [wCurMapCoordEventsPointer], a ld a, h - ld [wCurrMapCoordEventsPointer + 1], a + ld [wCurMapCoordEventsPointer + 1], a ld a, c and a @@ -553,11 +553,11 @@ ReadCoordEvents:: ReadBGEvents:: ld a, [hli] ld c, a - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ld a, l - ld [wCurrMapBGEventsPointer], a + ld [wCurMapBGEventsPointer], a ld a, h - ld [wCurrMapBGEventsPointer + 1], a + ld [wCurMapBGEventsPointer + 1], a ld a, c and a @@ -574,17 +574,17 @@ ReadObjectEvents:: ld hl, wMap1Object ld a, [de] inc de - ld [wCurrMapObjectEventCount], a + ld [wCurMapObjectEventCount], a ld a, e - ld [wCurrMapObjectEventsPointer], a + ld [wCurMapObjectEventsPointer], a ld a, d - ld [wCurrMapObjectEventsPointer + 1], a + ld [wCurMapObjectEventsPointer + 1], a - ld a, [wCurrMapObjectEventCount] + ld a, [wCurMapObjectEventCount] call CopyMapObjectEvents -; get NUM_OBJECTS - [wCurrMapObjectEventCount] - ld a, [wCurrMapObjectEventCount] +; get NUM_OBJECTS - [wCurMapObjectEventCount] + ld a, [wCurMapObjectEventCount] ld c, a ld a, NUM_OBJECTS ; - 1 sub c @@ -971,11 +971,11 @@ RunMapCallback:: ret .FindCallback: - ld a, [wCurrMapCallbackCount] + ld a, [wCurMapCallbackCount] ld c, a and a ret z - ld hl, wCurrMapCallbacksPointer + ld hl, wCurMapCallbacksPointer ld a, [hli] ld h, [hl] ld l, a @@ -1767,7 +1767,7 @@ CheckFacingBGEvent:: sub 4 ld e, a ; If there are no BG events, we don't need to be here. - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] and a ret z @@ -1783,7 +1783,7 @@ CheckFacingBGEvent:: CheckIfFacingTileCoordIsBGEvent:: ; Checks to see if you are facing a BG event. If so, copies it into wEngineBuffer1 and sets carry. - ld hl, wCurrMapBGEventsPointer + ld hl, wCurMapBGEventsPointer ld a, [hli] ld h, [hl] ld l, a @@ -1821,7 +1821,7 @@ CheckIfFacingTileCoordIsBGEvent:: CheckCurrentMapCoordEvents:: ; If there are no coord events, we don't need to be here. - ld a, [wCurrMapCoordEventCount] + ld a, [wCurMapCoordEventCount] and a ret z ; Copy the coord event count into c. @@ -1837,7 +1837,7 @@ CheckCurrentMapCoordEvents:: .CoordEventCheck: ; Checks to see if you are standing on a coord event. If yes, copies the event to wEngineBuffer1 and sets carry. - ld hl, wCurrMapCoordEventsPointer + ld hl, wCurMapCoordEventsPointer ld a, [hli] ld h, [hl] ld l, a diff --git a/home/movement.asm b/home/movement.asm index 4700f48cf..fd93d94cd 100644 --- a/home/movement.asm +++ b/home/movement.asm @@ -176,7 +176,7 @@ GetMenuJoypad:: ret PlaceHollowCursor:: - ld hl, wCursorCurrentTile + ld hl, wCursorCurTile ld a, [hli] ld h, [hl] ld l, a @@ -184,7 +184,7 @@ PlaceHollowCursor:: ret HideCursor:: - ld hl, wCursorCurrentTile + ld hl, wCursorCurTile ld a, [hli] ld h, [hl] ld l, a diff --git a/home/stone_queue.asm b/home/stone_queue.asm index ac920b4b3..b32fc10bd 100644 --- a/home/stone_queue.asm +++ b/home/stone_queue.asm @@ -56,11 +56,11 @@ HandleStoneQueue:: ret .check_on_warp - ld hl, wCurrMapWarpsPointer + ld hl, wCurMapWarpsPointer ld a, [hli] ld h, [hl] ld l, a - ld a, [wCurrMapWarpCount] + ld a, [wCurMapWarpCount] and a jr z, .nope2 @@ -94,7 +94,7 @@ HandleStoneQueue:: .found_warp pop af ld d, a - ld a, [wCurrMapWarpCount] + ld a, [wCurMapWarpCount] sub d inc a scf diff --git a/mobile/mobile_45.asm b/mobile/mobile_45.asm index c3de14d51..fefa145c5 100644 --- a/mobile/mobile_45.asm +++ b/mobile/mobile_45.asm @@ -416,7 +416,7 @@ Function1143b7: pop hl push af ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld a, [hli] @@ -658,7 +658,7 @@ Function1144d1: .asm_11451c pop hl ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld e, [hl] @@ -675,7 +675,7 @@ Function1144d1: .asm_114537 ld hl, $dc06 ld a, [hl] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld hl, $dc09 @@ -686,7 +686,7 @@ Function1144d1: ld a, d or e jr z, .asm_114559 - ld hl, wCurrMapSceneScriptCount + ld hl, wCurMapSceneScriptCount ld e, [hl] inc hl ld d, [hl] @@ -1229,7 +1229,7 @@ Function114843: Function114867: ld hl, $dc06 ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld e, [hl] @@ -1257,7 +1257,7 @@ Function114867: inc e call z, Function1148b9 ld hl, $dc06 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld [hl], e inc hl @@ -1286,7 +1286,7 @@ Function114867: Function1148b9: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret @@ -1294,7 +1294,7 @@ Function1148b9: Function1148c2: ld hl, $dc06 ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld e, [hl] @@ -1347,7 +1347,7 @@ Function1148c2: inc e call z, Function114944 ld hl, $dc06 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld [hl], e inc hl @@ -1384,7 +1384,7 @@ Function1148c2: Function114944: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret @@ -1392,7 +1392,7 @@ Function114944: Function11494d: ld hl, $dc06 ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld e, [hl] @@ -1437,7 +1437,7 @@ Function11494d: inc e call z, Function1149c3 ld hl, $dc06 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld [hl], e inc hl @@ -1474,7 +1474,7 @@ Function11494d: Function1149c3: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret @@ -1482,7 +1482,7 @@ Function1149c3: Function1149cc: ld hl, $dc06 ld a, [hl] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a push de @@ -1501,7 +1501,7 @@ Function1149cc: ld [hl], d dec hl ld [hl], e - ld hl, wCurrMapSceneScriptCount + ld hl, wCurMapSceneScriptCount ld e, [hl] inc hl ld d, [hl] @@ -1514,7 +1514,7 @@ Function1149cc: inc e call z, Function114a0f ld hl, $dc06 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld [hl], e inc hl @@ -1530,7 +1530,7 @@ Function1149cc: Function114a0f: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret @@ -1829,7 +1829,7 @@ endr .asm_114b96 ld hl, $dc06 ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld e, [hl] @@ -1878,7 +1878,7 @@ Function114bbc: jr z, .asm_114bff pop hl ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld a, [hli] @@ -2103,7 +2103,7 @@ endr .asm_114d11 pop hl ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld a, [hli] @@ -2401,7 +2401,7 @@ Function114e62: Function114ea0: ld hl, $dc06 ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld a, [hli] @@ -2426,7 +2426,7 @@ Function114ea0: inc e call z, Function114ee0 ld hl, $dc06 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld a, e ld [hli], a @@ -2446,7 +2446,7 @@ Function114ea0: Function114ee0: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret @@ -2679,7 +2679,7 @@ Function115020: push hl ld hl, $dc06 ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld a, [hli] @@ -2706,7 +2706,7 @@ Function115020: .asm_115046 ld hl, $dc06 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld a, e ld [hli], a @@ -2724,7 +2724,7 @@ Function115020: Function115059: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret @@ -2887,7 +2887,7 @@ Function1150b3: Function115136: ld hl, $dc06 ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld a, [hli] @@ -2914,7 +2914,7 @@ Function115136: .asm_11515d ld hl, $dc06 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld a, e ld [hli], a @@ -2932,7 +2932,7 @@ Function115136: Function115170: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret @@ -2940,7 +2940,7 @@ Function115170: Function115179: ld hl, $dc06 ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld a, [hli] @@ -3035,7 +3035,7 @@ Function115179: inc e call z, Function11520e ld hl, $dc06 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld a, e ld [hli], a @@ -3049,7 +3049,7 @@ Function115179: Function11520e: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret @@ -3058,7 +3058,7 @@ Function115217: push hl ld hl, $dc06 ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld a, [hli] @@ -3097,7 +3097,7 @@ Function115217: .asm_115252 ld hl, $dc06 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld a, e ld [hli], a @@ -3141,7 +3141,7 @@ Function115217: Function115286: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret @@ -3534,7 +3534,7 @@ Function1153d2: ld [de], a ld hl, wDecoRightOrnament ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld e, [hl] @@ -3543,7 +3543,7 @@ Function1153d2: ld hl, $ddc8 call Function115d6a ld hl, wDecoRightOrnament - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [hli], a ld [hl], e inc hl @@ -3765,7 +3765,7 @@ Function1155d1: Function11560a: ld a, [$dc06] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ld a, [$dc17] ld [$dc00], a ldh [hFF8C], a @@ -3774,7 +3774,7 @@ Function11560a: ld c, [hl] inc hl ld b, [hl] - ld a, [wCurrMapCallbackCount] + ld a, [wCurMapCallbackCount] cp b jp c, .asm_1156b1 jr nz, .asm_115631 @@ -3788,7 +3788,7 @@ Function11560a: jr z, .asm_1156a9 ld a, [$dc09] ld l, a - ld a, [wCurrMapCallbackCount] + ld a, [wCurMapCallbackCount] ld h, a ld a, c cpl @@ -3801,7 +3801,7 @@ Function11560a: ld a, l ld [$dc09], a ld a, h - ld [wCurrMapCallbackCount], a + ld [wCurMapCallbackCount], a .asm_11564d ld a, $3 cp b @@ -3840,16 +3840,16 @@ Function11560a: inc hl ld [hl], d pop bc - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ldh [hFF8C], a ld [MBC3SRamBank], a - ld hl, wCurrMapSceneScriptCount + ld hl, wCurMapSceneScriptCount ld e, [hl] inc hl ld d, [hl] ld hl, $dc24 call Function115d6a - ld hl, wCurrMapSceneScriptCount + ld hl, wCurMapSceneScriptCount ld [hl], e inc hl ld [hl], d @@ -3862,7 +3862,7 @@ Function11560a: jr nz, .asm_11564d .asm_1156a9 - ld a, [wCurrMapBGEventCount] + ld a, [wCurMapBGEventCount] ld [$dc06], a xor a ret @@ -3930,7 +3930,7 @@ Function1156cc: jp Function11425c .asm_115716 - ld hl, wCurrMapCallbackCount + ld hl, wCurMapCallbackCount ld a, [hli] cpl ld e, a @@ -4171,9 +4171,9 @@ Function11581e: ld b, [hl] inc hl push hl - ld a, [wCurrMapCallbackCount] + ld a, [wCurMapCallbackCount] ld l, a - ld a, [wCurrMapCallbacksPointer] + ld a, [wCurMapCallbacksPointer] ld h, a cp b jr c, .asm_1158bb @@ -4193,14 +4193,14 @@ Function11581e: inc bc add hl, bc ld a, l - ld [wCurrMapCallbackCount], a + ld [wCurMapCallbackCount], a ld a, h - ld [wCurrMapCallbacksPointer], a + ld [wCurMapCallbacksPointer], a pop bc pop hl - ld hl, wCurrMapSceneScriptCount + ld hl, wCurMapSceneScriptCount ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld e, [hl] @@ -4208,8 +4208,8 @@ Function11581e: ld d, [hl] ld hl, wPartyMon5Speed call Function115d6a - ld hl, wCurrMapSceneScriptCount - ld a, [wCurrMapBGEventCount] + ld hl, wCurMapSceneScriptCount + ld a, [wCurMapBGEventCount] ld [hli], a ld a, e ld [hli], a @@ -4519,7 +4519,7 @@ Function1159fb: jp Function11425c .asm_115a45 - ld hl, wCurrMapCallbackCount + ld hl, wCurMapCallbackCount ld a, [hli] cpl ld e, a @@ -4726,9 +4726,9 @@ Function115b00: ld b, [hl] inc hl push hl - ld a, [wCurrMapCallbackCount] + ld a, [wCurMapCallbackCount] ld l, a - ld a, [wCurrMapCallbacksPointer] + ld a, [wCurMapCallbacksPointer] ld h, a cp b jr c, .asm_115b36 @@ -4748,14 +4748,14 @@ Function115b00: inc bc add hl, bc ld a, l - ld [wCurrMapCallbackCount], a + ld [wCurMapCallbackCount], a ld a, h - ld [wCurrMapCallbacksPointer], a + ld [wCurMapCallbacksPointer], a pop bc pop hl - ld hl, wCurrMapSceneScriptCount + ld hl, wCurMapSceneScriptCount ld a, [hli] - ld [wCurrMapBGEventCount], a + ld [wCurMapBGEventCount], a ldh [hFF8C], a ld [MBC3SRamBank], a ld e, [hl] @@ -4763,8 +4763,8 @@ Function115b00: ld d, [hl] ld hl, $dc26 call Function115d6a - ld hl, wCurrMapSceneScriptCount - ld a, [wCurrMapBGEventCount] + ld hl, wCurMapSceneScriptCount + ld a, [wCurMapBGEventCount] ld [hli], a ld a, e ld [hli], a @@ -5130,7 +5130,7 @@ Function115d6a: Function115d77: push bc - ld bc, wCurrMapBGEventCount + ld bc, wCurMapBGEventCount call Function115d80 pop bc ret diff --git a/mobile/mobile_46.asm b/mobile/mobile_46.asm index e8ed6ed47..8a795536a 100644 --- a/mobile/mobile_46.asm +++ b/mobile/mobile_46.asm @@ -5544,7 +5544,7 @@ Function11ac51: call Function11acb7 call Function11ad6e ld a, 30 * SPRITEOAMSTRUCT_LENGTH - ld [wCurrSpriteOAMAddr], a + ld [wCurSpriteOAMAddr], a farcall DoNextFrameForAllSprites farcall ReloadMapPart jr .loop diff --git a/sram.asm b/sram.asm index 2cd457e61..9d428cafd 100644 --- a/sram.asm +++ b/sram.asm @@ -83,7 +83,7 @@ sBackupCheckValue1:: db ; loaded with SAVE_CHECK_VALUE_1, used to check save cor sBackupGameData:: ; b209 sBackupPlayerData:: ds wPlayerDataEnd - wPlayerData -sBackupCurrMapData:: ds wCurrMapDataEnd - wCurrMapData +sBackupCurMapData:: ds wCurMapDataEnd - wCurMapData sBackupPokemonData:: ds wPokemonDataEnd - wPokemonData sBackupGameDataEnd:: @@ -106,7 +106,7 @@ sCheckValue1:: db ; loaded with SAVE_CHECK_VALUE_1, used to check save corruptio sGameData:: ; a009 sPlayerData:: ds wPlayerDataEnd - wPlayerData -sCurrMapData:: ds wCurrMapDataEnd - wCurrMapData +sCurMapData:: ds wCurMapDataEnd - wCurMapData sPokemonData:: ds wPokemonDataEnd - wPokemonData sGameDataEnd:: diff --git a/wram.asm b/wram.asm index 73187f795..11e899f97 100644 --- a/wram.asm +++ b/wram.asm @@ -156,7 +156,7 @@ wPrinterOpcode:: db wPrevDexEntry:: db wDisableTextAcceleration:: db wPreviousLandmark:: db -wCurrentLandmark:: db +wCurLandmark:: db wLandmarkSignTimer:: dw wLinkMode:: @@ -256,20 +256,20 @@ wc3ac:: ds 8 ENDU ; c3b4 wSpriteAnimCount:: db -wCurrSpriteOAMAddr:: db +wCurSpriteOAMAddr:: db wCurIcon:: db ; c3b6 wCurIconTile:: db wSpriteAnimAddrBackup:: wSpriteAnimIDBuffer:: -wCurrSpriteAddSubFlags:: +wCurSpriteAddSubFlags:: dw -wCurrAnimVTile:: db -wCurrAnimXCoord:: db -wCurrAnimYCoord:: db -wCurrAnimXOffset:: db -wCurrAnimYOffset:: db +wCurAnimVTile:: db +wCurAnimXCoord:: db +wCurAnimYCoord:: db +wCurAnimXOffset:: db +wCurAnimYOffset:: db wGlobalAnimYOffset:: db wGlobalAnimXOffset:: db wSpriteAnimsEnd:: @@ -757,7 +757,7 @@ wLinkTradeGetmonSpecies:: db NEXTU ; c6d0 ; naming screen wNamingScreenDestinationPointer:: dw ; c6d0 -wNamingScreenCurrNameLength:: db ; c6d2 +wNamingScreenCurNameLength:: db ; c6d2 wNamingScreenMaxNameLength:: db ; c6d3 wNamingScreenType:: db ; c6d4 wNamingScreenCursorObjectPointer:: dw ; c6d5 @@ -793,10 +793,10 @@ wSlotBet:: db wFirstTwoReelsMatching:: db wFirstTwoReelsMatchingSevens:: db wSlotMatched:: db -wCurrReelStopped:: ds 3 +wCurReelStopped:: ds 3 wPayout:: dw -wCurrReelXCoord:: db -wCurrReelYCoord:: db +wCurReelXCoord:: db +wCurReelYCoord:: db ds 2 wSlotBuildingMatch:: db wSlotsDataEnd:: @@ -846,7 +846,7 @@ wDexListingScrollOffset:: db ; offset of the first displayed entry from the star wDexListingCursor:: db ; Dex cursor wDexListingEnd:: db ; Last mon to display wDexListingHeight:: db ; number of entries displayed at once in the dex listing -wCurrentDexMode:: db ; Pokedex Mode +wCurDexMode:: db ; Pokedex Mode wDexSearchMonType1:: db ; first type to search wDexSearchMonType2:: db ; second type to search wDexSearchResultCount:: db @@ -855,14 +855,14 @@ wDexArrowCursorDelayCounter:: db wDexArrowCursorBlinkCounter:: db wDexSearchSlowpokeFrame:: db wUnlockedUnownMode:: db -wDexCurrentUnownIndex:: db +wDexCurUnownIndex:: db wDexUnownCount:: db wDexConvertedMonType:: db ; mon type converted from dex search mon type wDexListingScrollOffsetBackup:: db wDexListingCursorBackup:: db wBackupDexListingCursor:: db wBackupDexListingPage:: db -wDexCurrentLocation:: db +wDexCurLocation:: db if DEF(_CRYSTAL11) wPokedexStatus:: db wPokedexDataEnd:: @@ -1366,7 +1366,7 @@ wPokegearMapRegion:: db NEXTU ; cf64 ; pack wPackJumptableIndex:: db -wCurrPocket:: db +wCurPocket:: db wPackUsedItem:: db NEXTU ; cf64 @@ -1494,7 +1494,7 @@ w2DMenuDataEnd:: wMenuCursorY:: db ; cfa9 wMenuCursorX:: db ; cfaa wCursorOffCharacter:: db ; cfab -wCursorCurrentTile:: dw ; cfac +wCursorCurTile:: dw ; cfac ds 3 @@ -1659,7 +1659,7 @@ wPhoneCaller:: dw NEXTU ; d002 ; radio data -wCurrentRadioLine:: db +wCurRadioLine:: db wNextRadioLine:: db wRadioTextDelay:: db wNumRadioLinesPrinted:: db @@ -2677,21 +2677,21 @@ wBikeFlags:: ; dbf5 db ds 1 ; cleared along with wBikeFlags by ResetBikeFlags -wCurrMapSceneScriptPointer:: dw ; dbf7 +wCurMapSceneScriptPointer:: dw ; dbf7 -wCurrentCaller:: dw ; dbf9 -wCurrMapWarpCount:: db ; dbfb -wCurrMapWarpsPointer:: dw ; dbfc -wCurrMapCoordEventCount:: db ; dbfe -wCurrMapCoordEventsPointer:: dw ; dbff -wCurrMapBGEventCount:: db ; dc01 -wCurrMapBGEventsPointer:: dw ; dc02 -wCurrMapObjectEventCount:: db ; dc04 -wCurrMapObjectEventsPointer:: dw ; dc05 -wCurrMapSceneScriptCount:: db ; dc07 -wCurrMapSceneScriptsPointer:: dw ; dc08 -wCurrMapCallbackCount:: db ; dc0a -wCurrMapCallbacksPointer:: dw ; dc0b +wCurCaller:: dw ; dbf9 +wCurMapWarpCount:: db ; dbfb +wCurMapWarpsPointer:: dw ; dbfc +wCurMapCoordEventCount:: db ; dbfe +wCurMapCoordEventsPointer:: dw ; dbff +wCurMapBGEventCount:: db ; dc01 +wCurMapBGEventsPointer:: dw ; dc02 +wCurMapObjectEventCount:: db ; dc04 +wCurMapObjectEventsPointer:: dw ; dc05 +wCurMapSceneScriptCount:: db ; dc07 +wCurMapSceneScriptsPointer:: dw ; dc08 +wCurMapCallbackCount:: db ; dc0a +wCurMapCallbacksPointer:: dw ; dc0b ds 2 @@ -2770,7 +2770,7 @@ wKurtApricornQuantity:: db wPlayerDataEnd:: -wCurrMapData:: +wCurMapData:: wVisitedSpawns:: flag_array NUM_SPAWNS ; dca5 @@ -2796,7 +2796,7 @@ wYCoord:: db ; dcb7 ; current y coordinate relative to top-left corner of curren wXCoord:: db ; dcb8 ; current x coordinate relative to top-left corner of current map wScreenSave:: ds SCREEN_META_WIDTH * SCREEN_META_HEIGHT -wCurrMapDataEnd:: +wCurMapDataEnd:: SECTION "Party", WRAMX @@ -2876,8 +2876,8 @@ wRoamMon1:: roam_struct wRoamMon1 ; dfcf wRoamMon2:: roam_struct wRoamMon2 ; dfd6 wRoamMon3:: roam_struct wRoamMon3 ; dfdd -wRoamMons_CurrentMapNumber:: db -wRoamMons_CurrentMapGroup:: db +wRoamMons_CurMapNumber:: db +wRoamMons_CurMapGroup:: db wRoamMons_LastMapNumber:: db wRoamMons_LastMapGroup:: db