You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Rename some labels
- Remove "Buffer" suffix from some byte and word quantities - Change "Ptr" to "Pointer" Fixes #789
This commit is contained in:
@@ -836,7 +836,7 @@ PrintText_UsedItemOn_AND_AIUpdateHUD:
|
||||
|
||||
PrintText_UsedItemOn:
|
||||
ld a, [wCurEnemyItem]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
ld hl, wStringBuffer1
|
||||
ld de, wMonOrItemNameBuffer
|
||||
|
||||
@@ -373,7 +373,7 @@ HandleBerserkGene:
|
||||
push bc
|
||||
callfar GetUserItem
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
sub BERSERK_GENE
|
||||
pop bc
|
||||
pop de
|
||||
@@ -1161,7 +1161,7 @@ HandlePerishSong:
|
||||
ret z
|
||||
dec [hl]
|
||||
ld a, [hl]
|
||||
ld [wDeciramBuffer], a
|
||||
ld [wTextDecimalByte], a
|
||||
push af
|
||||
ld hl, PerishCountText
|
||||
call StdBattleTextbox
|
||||
@@ -1235,7 +1235,7 @@ HandleWrap:
|
||||
ret nz
|
||||
|
||||
ld a, [de]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
ld [wFXAnimID], a
|
||||
call GetMoveName
|
||||
dec [hl]
|
||||
@@ -1288,7 +1288,7 @@ HandleLeftovers:
|
||||
|
||||
callfar GetUserItem
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
ld a, b
|
||||
cp HELD_LEFTOVERS
|
||||
@@ -1434,7 +1434,7 @@ HandleMysteryberry:
|
||||
.skip_checks
|
||||
callfar GetUserItem
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
xor a
|
||||
ld [hl], a
|
||||
call GetPartymonItem
|
||||
@@ -3703,7 +3703,7 @@ TryToRunAwayFromBattle:
|
||||
push hl
|
||||
push de
|
||||
ld a, [wBattleMonItem]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
ld b, a
|
||||
callfar GetItemHeldEffect
|
||||
ld a, b
|
||||
@@ -4025,7 +4025,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
|
||||
@@ -4343,7 +4343,7 @@ UseOpponentItem:
|
||||
call RefreshBattleHuds
|
||||
callfar GetOpponentItem
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
callfar ConsumeHeldItem
|
||||
ld hl, RecoveredUsingText
|
||||
@@ -4437,7 +4437,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]
|
||||
@@ -4504,7 +4504,7 @@ HandleStatBoostingHeldItems:
|
||||
jr nz, .loop
|
||||
pop bc
|
||||
ld a, [bc]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
push bc
|
||||
dec hl
|
||||
dec hl
|
||||
@@ -4899,7 +4899,7 @@ BattleMenu:
|
||||
.next
|
||||
ld a, $1
|
||||
ldh [hBGMapMode], a
|
||||
ld a, [wBattleMenuCursorBuffer]
|
||||
ld a, [wBattleMenuCursorPosition]
|
||||
cp $1
|
||||
jp z, BattleMenu_Fight
|
||||
cp $3
|
||||
@@ -5003,7 +5003,7 @@ BattleMenu_Pack:
|
||||
and a
|
||||
jr nz, .run
|
||||
callfar CheckItemPocket
|
||||
ld a, [wItemAttributeParamBuffer]
|
||||
ld a, [wItemAttributeValue]
|
||||
cp BALL
|
||||
jr z, .ball
|
||||
call ClearBGPalettes
|
||||
@@ -5427,7 +5427,7 @@ MoveSelectionScreen:
|
||||
|
||||
.battle_player_moves
|
||||
call MoveInfoBox
|
||||
ld a, [wMoveSwapBuffer]
|
||||
ld a, [wSwappingMove]
|
||||
and a
|
||||
jr z, .interpret_joypad
|
||||
hlcoord 5, 13
|
||||
@@ -5451,7 +5451,7 @@ MoveSelectionScreen:
|
||||
push af
|
||||
|
||||
xor a
|
||||
ld [wMoveSwapBuffer], a
|
||||
ld [wSwappingMove], a
|
||||
ld a, [wMenuCursorY]
|
||||
dec a
|
||||
ld [wMenuCursorY], a
|
||||
@@ -5542,7 +5542,7 @@ MoveSelectionScreen:
|
||||
jp .menu_loop
|
||||
|
||||
.pressed_select
|
||||
ld a, [wMoveSwapBuffer]
|
||||
ld a, [wSwappingMove]
|
||||
and a
|
||||
jr z, .start_swap
|
||||
ld hl, wBattleMonMoves
|
||||
@@ -5560,14 +5560,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]
|
||||
@@ -5595,12 +5595,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
|
||||
@@ -5622,7 +5622,7 @@ MoveSelectionScreen:
|
||||
|
||||
.start_swap
|
||||
ld a, [wMenuCursorY]
|
||||
ld [wMoveSwapBuffer], a
|
||||
ld [wSwappingMove], a
|
||||
jp MoveSelectionScreen
|
||||
|
||||
MoveInfoBox:
|
||||
@@ -5717,7 +5717,7 @@ MoveInfoBox:
|
||||
inc hl
|
||||
ld [hl], "/"
|
||||
inc hl
|
||||
ld de, wNamedObjectIndexBuffer
|
||||
ld de, wNamedObjectIndex
|
||||
lb bc, 1, 2
|
||||
call PrintNum
|
||||
ret
|
||||
@@ -6383,7 +6383,7 @@ LoadEnemyMon:
|
||||
ld [de], a
|
||||
|
||||
ld a, [wTempEnemyMonSpecies]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
|
||||
call GetPokemonName
|
||||
|
||||
@@ -8044,7 +8044,7 @@ BattleIntro:
|
||||
call LoadTrainerOrWildMonPic
|
||||
xor a
|
||||
ld [wTempBattleMonSpecies], a
|
||||
ld [wBattleMenuCursorBuffer], a
|
||||
ld [wBattleMenuCursorPosition], a
|
||||
xor a
|
||||
ldh [hMapAnims], a
|
||||
farcall PlayBattleMusic
|
||||
@@ -8300,7 +8300,7 @@ CleanUpBattleRAM:
|
||||
ld [wPartyMenuCursor], a
|
||||
ld [wKeyItemsPocketCursor], a
|
||||
ld [wItemsPocketCursor], a
|
||||
ld [wBattleMenuCursorBuffer], a
|
||||
ld [wBattleMenuCursorPosition], a
|
||||
ld [wCurMoveNum], a
|
||||
ld [wBallsPocketCursor], a
|
||||
ld [wLastPocket], a
|
||||
|
||||
@@ -595,7 +595,7 @@ MoveDisabled:
|
||||
|
||||
ld a, BATTLE_VARS_MOVE
|
||||
call GetBattleVar
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetMoveName
|
||||
|
||||
ld hl, DisabledMoveText
|
||||
@@ -2186,7 +2186,7 @@ BattleCommand_ApplyDamage:
|
||||
.focus_band_text
|
||||
call GetOpponentItem
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
ld hl, HungOnText
|
||||
jp StdBattleTextbox
|
||||
@@ -3608,7 +3608,7 @@ UpdateMoveData:
|
||||
ld a, BATTLE_VARS_MOVE
|
||||
call GetBattleVar
|
||||
ld [wCurSpecies], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
|
||||
dec a
|
||||
call GetMoveData
|
||||
@@ -3624,7 +3624,7 @@ BattleCommand_SleepTarget:
|
||||
jr nz, .not_protected_by_item
|
||||
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
ld hl, ProtectedByText
|
||||
jr .fail
|
||||
@@ -3772,7 +3772,7 @@ BattleCommand_Poison:
|
||||
cp HELD_PREVENT_POISON
|
||||
jr nz, .do_poison
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
ld hl, ProtectedByText
|
||||
jr .failed
|
||||
@@ -4826,7 +4826,6 @@ BattleCommand_TriStatusChance:
|
||||
; tristatuschance
|
||||
|
||||
call BattleCommand_EffectChance
|
||||
|
||||
.loop
|
||||
; 1/3 chance of each status
|
||||
call BattleRandom
|
||||
@@ -4834,11 +4833,11 @@ BattleCommand_TriStatusChance:
|
||||
and %11
|
||||
jr z, .loop
|
||||
dec a
|
||||
ld hl, .ptrs
|
||||
ld hl, .StatusCommands
|
||||
rst JumpTable
|
||||
ret
|
||||
|
||||
.ptrs
|
||||
.StatusCommands:
|
||||
dw BattleCommand_ParalyzeTarget ; paralyze
|
||||
dw BattleCommand_FreezeTarget ; freeze
|
||||
dw BattleCommand_BurnTarget ; burn
|
||||
@@ -5873,7 +5872,7 @@ BattleCommand_Confuse:
|
||||
cp HELD_PREVENT_CONFUSE
|
||||
jr nz, .no_item_protection
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
call AnimateFailedMove
|
||||
ld hl, ProtectedByText
|
||||
@@ -5963,7 +5962,7 @@ BattleCommand_Paralyze:
|
||||
cp HELD_PREVENT_PARALYZE
|
||||
jr nz, .no_item_protection
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
call AnimateFailedMove
|
||||
ld hl, ProtectedByText
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
LoadBattleMenu:
|
||||
ld hl, BattleMenuHeader
|
||||
call LoadMenuHeader
|
||||
ld a, [wBattleMenuCursorBuffer]
|
||||
ld [wMenuCursorBuffer], a
|
||||
ld a, [wBattleMenuCursorPosition]
|
||||
ld [wMenuCursorPosition], a
|
||||
call InterpretBattleMenu
|
||||
ld a, [wMenuCursorBuffer]
|
||||
ld [wBattleMenuCursorBuffer], a
|
||||
ld a, [wMenuCursorPosition]
|
||||
ld [wBattleMenuCursorPosition], a
|
||||
call ExitMenu
|
||||
ret
|
||||
|
||||
@@ -20,11 +20,11 @@ ContestBattleMenu:
|
||||
; fallthrough
|
||||
|
||||
CommonBattleMenu:
|
||||
ld a, [wBattleMenuCursorBuffer]
|
||||
ld [wMenuCursorBuffer], a
|
||||
ld a, [wBattleMenuCursorPosition]
|
||||
ld [wMenuCursorPosition], a
|
||||
call _2DMenu
|
||||
ld a, [wMenuCursorBuffer]
|
||||
ld [wBattleMenuCursorBuffer], a
|
||||
ld a, [wMenuCursorPosition]
|
||||
ld [wBattleMenuCursorPosition], a
|
||||
call ExitMenu
|
||||
ret
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ BattleCommand_BeatUp:
|
||||
ld hl, wOTPartySpecies
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
jr .got_enemy_nick
|
||||
|
||||
@@ -156,7 +156,7 @@ BattleCommand_BeatUp:
|
||||
|
||||
.wild
|
||||
ld a, [wEnemyMonSpecies]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
ld hl, BeatUpAttackText
|
||||
call StdBattleTextbox
|
||||
|
||||
@@ -89,7 +89,7 @@ BattleCommand_Conversion:
|
||||
ld [de], a
|
||||
inc de
|
||||
ld [de], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
farcall GetTypeName
|
||||
call AnimateCurrentMove
|
||||
ld hl, TransformedTypeText
|
||||
|
||||
@@ -55,7 +55,7 @@ BattleCommand_Conversion2:
|
||||
call BattleCommand_SwitchTurn
|
||||
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
predef GetTypeName
|
||||
ld hl, TransformedTypeText
|
||||
jp StdBattleTextbox
|
||||
|
||||
@@ -63,7 +63,7 @@ BattleCommand_Disable:
|
||||
ld a, BATTLE_VARS_LAST_COUNTER_MOVE_OPP
|
||||
call GetBattleVar
|
||||
ld [hl], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetMoveName
|
||||
ld hl, WasDisabledText
|
||||
jp StdBattleTextbox
|
||||
|
||||
@@ -18,7 +18,7 @@ BattleCommand_GetMagnitude:
|
||||
push de
|
||||
inc hl
|
||||
ld a, [hl]
|
||||
ld [wDeciramBuffer], a
|
||||
ld [wTextDecimalByte], a
|
||||
call BattleCommand_MoveDelay
|
||||
ld hl, MagnitudeText
|
||||
call StdBattleTextbox
|
||||
|
||||
@@ -37,7 +37,7 @@ BattleCommand_Mimic:
|
||||
ld a, BATTLE_VARS_LAST_COUNTER_MOVE_OPP
|
||||
call GetBattleVar
|
||||
ld [hl], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
ld bc, wBattleMonPP - wBattleMonMoves
|
||||
add hl, bc
|
||||
ld [hl], 5
|
||||
|
||||
@@ -24,7 +24,7 @@ BattleCommand_MirrorMove:
|
||||
.use
|
||||
ld a, b
|
||||
ld [hl], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
|
||||
push af
|
||||
ld a, BATTLE_VARS_MOVE_ANIM
|
||||
|
||||
@@ -34,7 +34,7 @@ BattleCommand_Sketch:
|
||||
.get_last_move
|
||||
ld a, BATTLE_VARS_LAST_COUNTER_MOVE_OPP
|
||||
call GetBattleVar
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
ld b, a
|
||||
; Fail if move is invalid or is Struggle.
|
||||
and a
|
||||
|
||||
@@ -24,7 +24,7 @@ BattleCommand_Spite:
|
||||
ld a, [hli]
|
||||
cp b
|
||||
jr nz, .loop
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
dec hl
|
||||
ld b, 0
|
||||
push bc
|
||||
@@ -78,7 +78,7 @@ BattleCommand_Spite:
|
||||
call AnimateCurrentMove
|
||||
pop de
|
||||
ld a, d
|
||||
ld [wDeciramBuffer], a
|
||||
ld [wTextDecimalByte], a
|
||||
ld hl, SpiteEffectText
|
||||
jp StdBattleTextbox
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ BattleCommand_Thief:
|
||||
|
||||
; Can't steal mail.
|
||||
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
ld d, a
|
||||
farcall ItemIsMail
|
||||
ret c
|
||||
@@ -45,7 +45,7 @@ BattleCommand_Thief:
|
||||
ld [de], a
|
||||
|
||||
call .playeritem
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
ld a, [wNamedObjectIndex]
|
||||
ld [hl], a
|
||||
ld [de], a
|
||||
jr .stole
|
||||
@@ -68,7 +68,7 @@ BattleCommand_Thief:
|
||||
|
||||
; Can't steal mail!
|
||||
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
ld d, a
|
||||
farcall ItemIsMail
|
||||
ret c
|
||||
@@ -86,7 +86,7 @@ BattleCommand_Thief:
|
||||
ld [de], a
|
||||
|
||||
call .enemyitem
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
ld a, [wNamedObjectIndex]
|
||||
ld [hl], a
|
||||
ld [de], a
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ BattleCommand_Transform:
|
||||
jr nz, .pp_loop
|
||||
pop hl
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
ld hl, wEnemyStats
|
||||
ld de, wPlayerStats
|
||||
|
||||
@@ -6,7 +6,7 @@ GetTrainerClassName:
|
||||
|
||||
ld [wCurSpecies], a
|
||||
ld a, TRAINER_NAME
|
||||
ld [wNamedObjectTypeBuffer], a
|
||||
ld [wNamedObjectType], a
|
||||
call GetName
|
||||
ld de, wStringBuffer1
|
||||
ret
|
||||
@@ -32,7 +32,7 @@ GetOTName:
|
||||
|
||||
ld [wCurSpecies], a
|
||||
ld a, TRAINER_NAME
|
||||
ld [wNamedObjectTypeBuffer], a
|
||||
ld [wNamedObjectType], a
|
||||
call GetName
|
||||
ld hl, wStringBuffer1
|
||||
|
||||
|
||||
@@ -320,9 +320,9 @@ DebugColor_InitScreen:
|
||||
ld a, [wDebugColorCurMon]
|
||||
inc a
|
||||
ld [wCurPartySpecies], a
|
||||
ld [wDeciramBuffer], a
|
||||
ld [wTextDecimalByte], a
|
||||
hlcoord 0, 1
|
||||
ld de, wDeciramBuffer
|
||||
ld de, wTextDecimalByte
|
||||
lb bc, PRINTNUM_LEADINGZEROS | 1, 3
|
||||
call PrintNum
|
||||
ld a, [wDebugColorIsTrainer]
|
||||
@@ -364,7 +364,7 @@ DebugColor_InitScreen:
|
||||
jr .done
|
||||
|
||||
.trainer
|
||||
ld a, [wDeciramBuffer]
|
||||
ld a, [wTextDecimalByte]
|
||||
ld [wTrainerClass], a
|
||||
callfar GetTrainerAttributes
|
||||
ld de, wStringBuffer1
|
||||
|
||||
@@ -573,9 +573,9 @@ DebugRoom_EditPagedValues:
|
||||
ld a, [hli]
|
||||
ld [wDebugRoomPageCount], a
|
||||
ld a, l
|
||||
ld [wDebugRoomPagedValuesPtr], a
|
||||
ld [wDebugRoomPagesPointer], a
|
||||
ld a, h
|
||||
ld [wDebugRoomPagedValuesPtr+1], a
|
||||
ld [wDebugRoomPagesPointer+1], a
|
||||
ld hl, hInMenu
|
||||
ld a, [hl]
|
||||
push af
|
||||
@@ -669,7 +669,7 @@ DebugRoom_PageString:
|
||||
db " P @"
|
||||
|
||||
DebugRoom_IncrementPagedValue:
|
||||
call DebugRoom_GetCurPagedValuePtr
|
||||
call DebugRoom_GetCurPagedValuePointer
|
||||
ld e, [hl] ; de = value address
|
||||
inc hl
|
||||
ld d, [hl]
|
||||
@@ -684,7 +684,7 @@ DebugRoom_IncrementPagedValue:
|
||||
ret
|
||||
|
||||
DebugRoom_DecrementPagedValue:
|
||||
call DebugRoom_GetCurPagedValuePtr
|
||||
call DebugRoom_GetCurPagedValuePointer
|
||||
ld e, [hl] ; de = value address
|
||||
inc hl
|
||||
ld d, [hl]
|
||||
@@ -709,7 +709,7 @@ DebugRoom_NextPage:
|
||||
ld [wDebugRoomCurPage], a
|
||||
call DebugRoom_PrintPage
|
||||
ld a, [wDebugRoomCurPage]
|
||||
call DebugRoom_GetNthPagePtr
|
||||
call DebugRoom_GetNthPagePointer
|
||||
ld a, [wDebugRoomCurValue]
|
||||
cp [hl]
|
||||
jr c, .skip
|
||||
@@ -731,7 +731,7 @@ DebugRoom_PrevPage:
|
||||
ld [wDebugRoomCurPage], a
|
||||
call DebugRoom_PrintPage
|
||||
ld a, [wDebugRoomCurPage]
|
||||
call DebugRoom_GetNthPagePtr
|
||||
call DebugRoom_GetNthPagePointer
|
||||
ld a, [wDebugRoomCurValue]
|
||||
cp [hl]
|
||||
jr c, .skip
|
||||
@@ -747,7 +747,7 @@ DebugRoom_NextPagedValue:
|
||||
ld a, " "
|
||||
call DebugRoom_ShowHideCursor
|
||||
ld a, [wDebugRoomCurPage]
|
||||
call DebugRoom_GetNthPagePtr
|
||||
call DebugRoom_GetNthPagePointer
|
||||
ld a, [wDebugRoomCurValue]
|
||||
inc a
|
||||
cp [hl] ; incremented value < paged_value count?
|
||||
@@ -776,15 +776,15 @@ DebugRoom_PrevPagedValue:
|
||||
dec a
|
||||
jr DebugRoom_UpdateValueCursor
|
||||
|
||||
DebugRoom_GetNthPagePtr:
|
||||
DebugRoom_GetNthPagePointer:
|
||||
; Input: a = page index
|
||||
; Output: hl = pointer to paged_data list
|
||||
ld h, 0
|
||||
ld l, a
|
||||
add hl, hl
|
||||
ld a, [wDebugRoomPagedValuesPtr]
|
||||
ld a, [wDebugRoomPagesPointer]
|
||||
ld e, a
|
||||
ld a, [wDebugRoomPagedValuesPtr+1]
|
||||
ld a, [wDebugRoomPagesPointer+1]
|
||||
ld d, a
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
@@ -792,10 +792,10 @@ DebugRoom_GetNthPagePtr:
|
||||
ld l, a
|
||||
ret
|
||||
|
||||
_DebugRoom_GetPageBValueCPtr:
|
||||
_DebugRoom_GetPageBValueCPointer:
|
||||
push bc
|
||||
ld a, b
|
||||
call DebugRoom_GetNthPagePtr
|
||||
call DebugRoom_GetNthPagePointer
|
||||
pop bc
|
||||
inc hl
|
||||
ld a, c
|
||||
@@ -803,12 +803,12 @@ _DebugRoom_GetPageBValueCPtr:
|
||||
call AddNTimes
|
||||
ret
|
||||
|
||||
DebugRoom_GetCurPagedValuePtr:
|
||||
DebugRoom_GetCurPagedValuePointer:
|
||||
ld a, [wDebugRoomCurPage]
|
||||
ld b, a
|
||||
ld a, [wDebugRoomCurValue]
|
||||
ld c, a
|
||||
jr _DebugRoom_GetPageBValueCPtr
|
||||
jr _DebugRoom_GetPageBValueCPointer
|
||||
|
||||
DebugRoom_ShowHideCursor:
|
||||
push af
|
||||
@@ -837,9 +837,9 @@ DebugRoom_InitializePagedValues:
|
||||
ld h, 0
|
||||
ld l, a
|
||||
add hl, hl
|
||||
ld a, [wDebugRoomPagedValuesPtr]
|
||||
ld a, [wDebugRoomPagesPointer]
|
||||
ld e, a
|
||||
ld a, [wDebugRoomPagedValuesPtr+1]
|
||||
ld a, [wDebugRoomPagesPointer+1]
|
||||
ld d, a
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
@@ -860,9 +860,9 @@ DebugRoom_InitializePagedValues:
|
||||
ld h, 0
|
||||
ld l, b
|
||||
add hl, hl
|
||||
ld a, [wDebugRoomPagedValuesPtr]
|
||||
ld a, [wDebugRoomPagesPointer]
|
||||
ld e, a
|
||||
ld a, [wDebugRoomPagedValuesPtr+1]
|
||||
ld a, [wDebugRoomPagesPointer+1]
|
||||
ld d, a
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
@@ -897,9 +897,9 @@ DebugRoom_PrintPage:
|
||||
ld h, 0
|
||||
ld l, a
|
||||
add hl, hl
|
||||
ld a, [wDebugRoomPagedValuesPtr]
|
||||
ld a, [wDebugRoomPagesPointer]
|
||||
ld e, a
|
||||
ld a, [wDebugRoomPagedValuesPtr+1]
|
||||
ld a, [wDebugRoomPagesPointer+1]
|
||||
ld d, a
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
@@ -927,9 +927,9 @@ DebugRoom_PrintPagedValue:
|
||||
ld h, 0
|
||||
ld l, b
|
||||
add hl, hl
|
||||
ld a, [wDebugRoomPagedValuesPtr]
|
||||
ld a, [wDebugRoomPagesPointer]
|
||||
ld e, a
|
||||
ld a, [wDebugRoomPagedValuesPtr+1]
|
||||
ld a, [wDebugRoomPagesPointer+1]
|
||||
ld d, a
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
@@ -1083,7 +1083,7 @@ DebugRoom_SaveItem:
|
||||
done
|
||||
|
||||
DebugRoom_PrintItemName:
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
push bc
|
||||
call GetItemName
|
||||
pop hl
|
||||
@@ -1229,19 +1229,19 @@ DebugRoom_SavePokemon:
|
||||
done
|
||||
|
||||
DebugRoom_PrintPokemonName:
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
push bc
|
||||
call GetPokemonName
|
||||
jr _DebugRoom_FinishGetName
|
||||
|
||||
DebugRoom_PrintItemName2:
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
push bc
|
||||
call GetItemName
|
||||
jr _DebugRoom_FinishGetName
|
||||
|
||||
DebugRoom_PrintMoveName:
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
push bc
|
||||
call GetMoveName
|
||||
jr _DebugRoom_FinishGetName
|
||||
|
||||
@@ -269,7 +269,7 @@ ReadBTTrainerParty:
|
||||
jr nc, .skip_mon_1
|
||||
|
||||
ld a, [wBT_OTTempMon1]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
ld l, e
|
||||
ld h, d
|
||||
@@ -283,7 +283,7 @@ ReadBTTrainerParty:
|
||||
farcall CheckStringForErrors
|
||||
jr nc, .skip_mon_2
|
||||
ld a, [wBT_OTTempMon2]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
ld l, e
|
||||
ld h, d
|
||||
@@ -297,7 +297,7 @@ ReadBTTrainerParty:
|
||||
farcall CheckStringForErrors
|
||||
jr nc, .skip_mon_3
|
||||
ld a, [wBT_OTTempMon3]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
ld l, e
|
||||
ld h, d
|
||||
@@ -1289,7 +1289,7 @@ endr
|
||||
ld a, EGG_TICKET
|
||||
ld [wCurItem], a
|
||||
ld a, 1
|
||||
ld [wItemQuantityChangeBuffer], a
|
||||
ld [wItemQuantityChange], a
|
||||
ld a, -1
|
||||
ld [wCurItemQuantity], a
|
||||
ld hl, wNumItems
|
||||
|
||||
@@ -168,13 +168,13 @@ LoadRandomBattleTowerMon:
|
||||
ld bc, NICKNAMED_MON_STRUCT_LENGTH
|
||||
call CopyBytes
|
||||
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
ld a, [wNamedObjectIndex]
|
||||
push af
|
||||
push de
|
||||
ld hl, -NICKNAMED_MON_STRUCT_LENGTH
|
||||
add hl, de
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
ld bc, PARTYMON_STRUCT_LENGTH
|
||||
add hl, bc
|
||||
push hl
|
||||
@@ -187,7 +187,7 @@ LoadRandomBattleTowerMon:
|
||||
|
||||
pop de
|
||||
pop af
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
pop bc
|
||||
dec c
|
||||
jp nz, .loop
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user