summaryrefslogtreecommitdiff
path: root/engine/battle/core.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-12-23 16:46:49 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-12-23 16:46:49 -0500
commit524f57703fb362dd9a131edb1eb5aebad5ffe633 (patch)
treef49e12f9e57b60128d6ea7b50116b66835874734 /engine/battle/core.asm
parentb87c45afcd9fcd06be459f112b01e6035dc3f20b (diff)
Rename some labels
- Remove "Buffer" suffix from some byte and word quantities - Change "Ptr" to "Pointer"
Diffstat (limited to 'engine/battle/core.asm')
-rw-r--r--engine/battle/core.asm48
1 files changed, 24 insertions, 24 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index 8aa0a79a..aca0185e 100644
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -328,7 +328,7 @@ HandleBerserkGene:
push bc
callfar GetUserItem
ld a, [hl]
- ld [wNamedObjectIndexBuffer], a
+ ld [wNamedObjectIndex], a
sub BERSERK_GENE
pop bc
pop de
@@ -1108,7 +1108,7 @@ HandlePerishSong:
ret z
dec [hl]
ld a, [hl]
- ld [wDeciramBuffer], a
+ ld [wTextDecimalByte], a
push af
ld hl, PerishCountText
call StdBattleTextbox
@@ -1182,7 +1182,7 @@ HandleWrap:
ret nz
ld a, [de]
- ld [wNamedObjectIndexBuffer], a
+ ld [wNamedObjectIndex], a
ld [wFXAnimID], a
call GetMoveName
dec [hl]
@@ -1235,7 +1235,7 @@ HandleLeftovers:
callfar GetUserItem
ld a, [hl]
- ld [wNamedObjectIndexBuffer], a
+ ld [wNamedObjectIndex], a
call GetItemName
ld a, b
cp HELD_LEFTOVERS
@@ -1381,7 +1381,7 @@ HandleMysteryberry:
.skip_checks
callfar GetUserItem
ld a, [hl]
- ld [wNamedObjectIndexBuffer], a
+ ld [wNamedObjectIndex], a
xor a
ld [hl], a
call GetPartymonItem
@@ -3491,7 +3491,7 @@ TryToRunAwayFromBattle:
push hl
push de
ld a, [wBattleMonItem]
- ld [wNamedObjectIndexBuffer], a
+ ld [wNamedObjectIndex], a
ld b, a
callfar GetItemHeldEffect
ld a, b
@@ -3797,7 +3797,7 @@ SendOutPlayerMon:
call GetBattleMonBackpic
xor a
ldh [hGraphicStartTile], a
- ld [wBattleMenuCursorBuffer], a
+ ld [wBattleMenuCursorPosition], a
ld [wCurMoveNum], a
ld [wTypeModifier], a
ld [wPlayerMoveStruct + MOVE_ANIM], a
@@ -4107,7 +4107,7 @@ UseOpponentItem:
call RefreshBattleHuds
callfar GetOpponentItem
ld a, [hl]
- ld [wNamedObjectIndexBuffer], a
+ ld [wNamedObjectIndex], a
call GetItemName
callfar ConsumeHeldItem
ld hl, RecoveredUsingText
@@ -4201,7 +4201,7 @@ UseConfusionHealingItem:
.heal_status
ld a, [hl]
- ld [wNamedObjectIndexBuffer], a
+ ld [wNamedObjectIndex], a
ld a, BATTLE_VARS_SUBSTATUS3_OPP
call GetBattleVarAddr
res SUBSTATUS_CONFUSED, [hl]
@@ -4268,7 +4268,7 @@ HandleStatBoostingHeldItems:
jr nz, .loop
pop bc
ld a, [bc]
- ld [wNamedObjectIndexBuffer], a
+ ld [wNamedObjectIndex], a
push bc
dec hl
dec hl
@@ -4661,7 +4661,7 @@ BattleMenu:
.next
ld a, $1
ldh [hBGMapMode], a
- ld a, [wBattleMenuCursorBuffer]
+ ld a, [wBattleMenuCursorPosition]
cp $1
jp z, BattleMenu_Fight
cp $3
@@ -4736,7 +4736,7 @@ BattleMenu_Pack:
and a
jr nz, .run
callfar CheckItemPocket
- ld a, [wItemAttributeParamBuffer]
+ ld a, [wItemAttributeValue]
cp BALL
jr z, .ball
call ClearBGPalettes
@@ -5144,7 +5144,7 @@ MoveSelectionScreen:
.battle_player_moves
call MoveInfoBox
- ld a, [wMoveSwapBuffer]
+ ld a, [wSwappingMove]
and a
jr z, .interpret_joypad
hlcoord 5, 13
@@ -5168,7 +5168,7 @@ MoveSelectionScreen:
push af
xor a
- ld [wMoveSwapBuffer], a
+ ld [wSwappingMove], a
ld a, [wMenuCursorY]
dec a
ld [wMenuCursorY], a
@@ -5306,7 +5306,7 @@ MoveSelectionScreen:
ret
.pressed_select
- ld a, [wMoveSwapBuffer]
+ ld a, [wSwappingMove]
and a
jr z, .start_swap
ld hl, wBattleMonMoves
@@ -5324,14 +5324,14 @@ MoveSelectionScreen:
ld a, [hl]
and $f
ld b, a
- ld a, [wMoveSwapBuffer]
+ ld a, [wSwappingMove]
swap a
add b
ld [hl], a
jr .swap_moves_in_party_struct
.not_swapping_disabled_move
- ld a, [wMoveSwapBuffer]
+ ld a, [wSwappingMove]
cp b
jr nz, .swap_moves_in_party_struct
ld a, [hl]
@@ -5359,12 +5359,12 @@ MoveSelectionScreen:
.transformed
xor a
- ld [wMoveSwapBuffer], a
+ ld [wSwappingMove], a
jp MoveSelectionScreen
.swap_bytes
push hl
- ld a, [wMoveSwapBuffer]
+ ld a, [wSwappingMove]
dec a
ld c, a
ld b, 0
@@ -5386,7 +5386,7 @@ MoveSelectionScreen:
.start_swap
ld a, [wMenuCursorY]
- ld [wMoveSwapBuffer], a
+ ld [wSwappingMove], a
jp MoveSelectionScreen
MoveInfoBox:
@@ -5453,7 +5453,7 @@ MoveInfoBox:
call PrintNum
hlcoord 8, 11
- ld de, wNamedObjectIndexBuffer
+ ld de, wNamedObjectIndex
lb bc, 1, 2
call PrintNum
@@ -6157,7 +6157,7 @@ LoadEnemyMon:
ld [de], a
ld a, [wTempEnemyMonSpecies]
- ld [wNamedObjectIndexBuffer], a
+ ld [wNamedObjectIndex], a
call GetPokemonName
@@ -7745,7 +7745,7 @@ StartBattle:
ldh [hMapAnims], a
xor a
ld [wTempBattleMonSpecies], a
- ld [wBattleMenuCursorBuffer], a
+ ld [wBattleMenuCursorPosition], a
farcall PlayBattleMusic
ld a, 0
ld [wSpriteUpdatesEnabled], a
@@ -7964,7 +7964,7 @@ ExitBattle:
ld [wPartyMenuCursor], a
ld [wKeyItemsPocketCursor], a
ld [wItemsPocketCursor], a
- ld [wBattleMenuCursorBuffer], a
+ ld [wBattleMenuCursorPosition], a
ld [wCurMoveNum], a
ld [wBallsPocketCursor], a
ld [wLastPocket], a