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:
@@ -16,7 +16,7 @@ _PlayerDecorationMenu:
|
||||
ld [wCurDecorationCategory], a
|
||||
.top_loop
|
||||
ld a, [wCurDecorationCategory]
|
||||
ld [wMenuCursorBuffer], a
|
||||
ld [wMenuCursorPosition], a
|
||||
call .FindCategoriesWithOwnedDecos
|
||||
call DoNthMenu
|
||||
ld a, [wMenuCursorY]
|
||||
@@ -561,7 +561,7 @@ GetDecoName:
|
||||
|
||||
.getpokename
|
||||
push bc
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
pop bc
|
||||
jr .copy
|
||||
|
||||
@@ -137,7 +137,7 @@ ScriptCommandTable:
|
||||
dw Script_opentext ; 47
|
||||
dw Script_refreshscreen ; 48
|
||||
dw Script_closetext ; 49
|
||||
dw Script_writeunusedbytebuffer ; 4a
|
||||
dw Script_writeunusedbyte ; 4a
|
||||
dw Script_farwritetext ; 4b
|
||||
dw Script_writetext ; 4c
|
||||
dw Script_repeattext ; 4d
|
||||
@@ -434,7 +434,7 @@ Script__2dmenu:
|
||||
ld a, [wScriptBank]
|
||||
ld hl, _2DMenu
|
||||
rst FarCall
|
||||
ld a, [wMenuCursorBuffer]
|
||||
ld a, [wMenuCursorPosition]
|
||||
jr nc, .ok
|
||||
xor a
|
||||
.ok
|
||||
@@ -490,7 +490,7 @@ Script_verbosegiveitemvar:
|
||||
call GetScriptByte
|
||||
call GetVarAction
|
||||
ld a, [de]
|
||||
ld [wItemQuantityChangeBuffer], a
|
||||
ld [wItemQuantityChange], a
|
||||
ld hl, wNumItems
|
||||
call ReceiveItem
|
||||
ld a, TRUE
|
||||
@@ -524,7 +524,7 @@ Script_pocketisfull:
|
||||
|
||||
Script_specialsound:
|
||||
farcall CheckItemPocket
|
||||
ld a, [wItemAttributeParamBuffer]
|
||||
ld a, [wItemAttributeValue]
|
||||
cp TM_HM
|
||||
ld de, SFX_GET_TM
|
||||
jr z, .play
|
||||
@@ -536,7 +536,7 @@ Script_specialsound:
|
||||
|
||||
GetPocketName:
|
||||
farcall CheckItemPocket
|
||||
ld a, [wItemAttributeParamBuffer]
|
||||
ld a, [wItemAttributeValue]
|
||||
dec a
|
||||
ld hl, ItemPocketNames
|
||||
maskbits NUM_POCKETS
|
||||
@@ -555,7 +555,7 @@ INCLUDE "data/items/pocket_names.asm"
|
||||
|
||||
CurItemName:
|
||||
ld a, [wCurItem]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
ret
|
||||
|
||||
@@ -1577,7 +1577,7 @@ Script_getmonname:
|
||||
jr nz, .gotit
|
||||
ld a, [wScriptVar]
|
||||
.gotit
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
ld de, wStringBuffer1
|
||||
|
||||
@@ -1601,7 +1601,7 @@ Script_getitemname:
|
||||
jr nz, .ok
|
||||
ld a, [wScriptVar]
|
||||
.ok
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetItemName
|
||||
ld de, wStringBuffer1
|
||||
jr GetStringBuffer
|
||||
@@ -1633,7 +1633,7 @@ Script_gettrainername:
|
||||
|
||||
Script_getname:
|
||||
call GetScriptByte
|
||||
ld [wNamedObjectTypeBuffer], a
|
||||
ld [wNamedObjectType], a
|
||||
|
||||
ContinueToGetName:
|
||||
call GetScriptByte
|
||||
@@ -1644,7 +1644,7 @@ ContinueToGetName:
|
||||
|
||||
Script_gettrainerclassname:
|
||||
ld a, TRAINER_NAME
|
||||
ld [wNamedObjectTypeBuffer], a
|
||||
ld [wNamedObjectType], a
|
||||
jr ContinueToGetName
|
||||
|
||||
Script_getmoney:
|
||||
@@ -1728,7 +1728,7 @@ Script_giveitem:
|
||||
.ok
|
||||
ld [wCurItem], a
|
||||
call GetScriptByte
|
||||
ld [wItemQuantityChangeBuffer], a
|
||||
ld [wItemQuantityChange], a
|
||||
ld hl, wNumItems
|
||||
call ReceiveItem
|
||||
jr nc, .full
|
||||
@@ -1746,7 +1746,7 @@ Script_takeitem:
|
||||
call GetScriptByte
|
||||
ld [wCurItem], a
|
||||
call GetScriptByte
|
||||
ld [wItemQuantityChangeBuffer], a
|
||||
ld [wItemQuantityChange], a
|
||||
ld a, -1
|
||||
ld [wCurItemQuantity], a
|
||||
ld hl, wNumItems
|
||||
@@ -2198,9 +2198,9 @@ Script_refreshscreen:
|
||||
call GetScriptByte
|
||||
ret
|
||||
|
||||
Script_writeunusedbytebuffer:
|
||||
Script_writeunusedbyte:
|
||||
call GetScriptByte
|
||||
ld [wUnusedScriptByteBuffer], a
|
||||
ld [wUnusedScriptByte], a
|
||||
ret
|
||||
|
||||
UnusedClosetextScript: ; unreferenced
|
||||
|
||||
@@ -109,7 +109,7 @@ CheckRegisteredItem:
|
||||
|
||||
UseRegisteredItem:
|
||||
farcall CheckItemMenu
|
||||
ld a, [wItemAttributeParamBuffer]
|
||||
ld a, [wItemAttributeValue]
|
||||
ld hl, .SwitchTo
|
||||
rst JumpTable
|
||||
ret
|
||||
|
||||
@@ -4,7 +4,7 @@ _InitializeStartDay:
|
||||
|
||||
ClearDailyTimers:
|
||||
xor a
|
||||
ld [wLuckyNumberDayBuffer], a
|
||||
ld [wLuckyNumberDayTimer], a
|
||||
ld [wUnusedTwoDayTimer], a
|
||||
ld [wDailyResetTimer], a
|
||||
ret
|
||||
@@ -235,7 +235,7 @@ UnusedCheckSwarmFlag: ; unreferenced
|
||||
|
||||
RestartLuckyNumberCountdown:
|
||||
call .GetDaysUntilNextFriday
|
||||
ld hl, wLuckyNumberDayBuffer
|
||||
ld hl, wLuckyNumberDayTimer
|
||||
jp InitNDaysCountdown
|
||||
|
||||
.GetDaysUntilNextFriday:
|
||||
@@ -253,7 +253,7 @@ RestartLuckyNumberCountdown:
|
||||
ret
|
||||
|
||||
_CheckLuckyNumberShowFlag:
|
||||
ld hl, wLuckyNumberDayBuffer
|
||||
ld hl, wLuckyNumberDayTimer
|
||||
jp CheckDayDependentEventHL
|
||||
|
||||
DoMysteryGiftIfDayHasPassed:
|
||||
|
||||
@@ -28,7 +28,7 @@ LoadWildMonData:
|
||||
FindNest:
|
||||
; Parameters:
|
||||
; e: 0 = Johto, 1 = Kanto
|
||||
; wNamedObjectIndexBuffer: species
|
||||
; wNamedObjectIndex: species
|
||||
hlcoord 0, 0
|
||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||
xor a
|
||||
@@ -102,7 +102,7 @@ FindNest:
|
||||
inc hl
|
||||
.ScanMapLoop:
|
||||
push af
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
ld a, [wNamedObjectIndex]
|
||||
cp [hl]
|
||||
jr z, .found
|
||||
inc hl
|
||||
@@ -144,7 +144,7 @@ FindNest:
|
||||
.RoamMon1:
|
||||
ld a, [wRoamMon1Species]
|
||||
ld b, a
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
ld a, [wNamedObjectIndex]
|
||||
cp b
|
||||
ret nz
|
||||
ld a, [wRoamMon1MapGroup]
|
||||
@@ -160,7 +160,7 @@ FindNest:
|
||||
.RoamMon2:
|
||||
ld a, [wRoamMon2Species]
|
||||
ld b, a
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
ld a, [wNamedObjectIndex]
|
||||
cp b
|
||||
ret nz
|
||||
ld a, [wRoamMon2MapGroup]
|
||||
@@ -822,7 +822,7 @@ RandomUnseenWildMon:
|
||||
ld de, wStringBuffer1
|
||||
call CopyName1
|
||||
ld a, c
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
ld hl, .JustSawSomeRareMonText
|
||||
call PrintText
|
||||
@@ -871,7 +871,7 @@ RandomPhoneWildMon:
|
||||
add hl, bc
|
||||
inc hl
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
ld hl, wStringBuffer1
|
||||
ld de, wStringBuffer4
|
||||
@@ -954,7 +954,7 @@ RandomPhoneMon:
|
||||
inc hl ; species
|
||||
ld a, BANK(Trainers)
|
||||
call GetFarByte
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
ld [wNamedObjectIndex], a
|
||||
call GetPokemonName
|
||||
ld hl, wStringBuffer1
|
||||
ld de, wStringBuffer4
|
||||
|
||||
Reference in New Issue
Block a user