You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Comment, remove, or revise many unreferenced labels
This commit is contained in:
@@ -67,7 +67,7 @@ Function170114:
|
||||
call Function170c8b
|
||||
ret
|
||||
|
||||
Function170139:
|
||||
Function170139: ; unreferenced
|
||||
; Convert the 4-digit decimal number at s5_aa41 into binary
|
||||
ld a, BANK(s5_aa41)
|
||||
call OpenSRAM
|
||||
@@ -374,7 +374,7 @@ ReadBTTrainerParty:
|
||||
ld [bc], a
|
||||
ret
|
||||
|
||||
ValidateBTParty:
|
||||
ValidateBTParty: ; unreferenced
|
||||
; Check for and fix errors in party data
|
||||
ld hl, wBT_OTTempMon1Species
|
||||
ld d, BATTLETOWER_PARTY_LENGTH
|
||||
@@ -386,7 +386,7 @@ ValidateBTParty:
|
||||
ld a, [hl]
|
||||
and a
|
||||
x = $ff
|
||||
rept ($ff - NUM_POKEMON)
|
||||
rept $ff - NUM_POKEMON
|
||||
jr z, .invalid
|
||||
cp x
|
||||
x = x - 1
|
||||
|
@@ -95,7 +95,7 @@ Function_LoadRandomBattleTowerMon:
|
||||
ld c, BATTLETOWER_PARTY_LENGTH
|
||||
.loop
|
||||
push bc
|
||||
ld a, BANK(sBTMonPrevTrainer1)
|
||||
ld a, BANK(sBTMonOfTrainers)
|
||||
call OpenSRAM
|
||||
|
||||
.FindARandomBattleTowerMon:
|
||||
|
@@ -85,7 +85,7 @@ BuenaPrize:
|
||||
call Buena_PrizeMenu
|
||||
jr z, .done
|
||||
ld [wMenuSelectionQuantity], a
|
||||
call Buena_getprize
|
||||
call Buena_GetPrize
|
||||
ld a, [hl]
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
call GetItemName
|
||||
@@ -95,7 +95,7 @@ BuenaPrize:
|
||||
jr c, .loop
|
||||
|
||||
ld a, [wMenuSelectionQuantity]
|
||||
call Buena_getprize
|
||||
call Buena_GetPrize
|
||||
inc hl
|
||||
ld a, [hld]
|
||||
ld c, a
|
||||
@@ -258,11 +258,11 @@ Buena_PrizeMenu:
|
||||
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
||||
db 4, 13 ; rows, columns
|
||||
db SCROLLINGMENU_ITEMS_NORMAL ; item format
|
||||
dba .indices
|
||||
dba .prizeitem
|
||||
dba .prizepoints
|
||||
dba .Prizes
|
||||
dba .PrintPrizeItem
|
||||
dba .PrintPrizePoints
|
||||
|
||||
.indices:
|
||||
.Prizes:
|
||||
db NUM_BUENA_PRIZES
|
||||
x = 1
|
||||
rept NUM_BUENA_PRIZES
|
||||
@@ -271,9 +271,9 @@ x = x + 1
|
||||
endr
|
||||
db -1
|
||||
|
||||
.prizeitem:
|
||||
.PrintPrizeItem:
|
||||
ld a, [wMenuSelection]
|
||||
call Buena_getprize
|
||||
call Buena_GetPrize
|
||||
ld a, [hl]
|
||||
push de
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
@@ -282,9 +282,9 @@ endr
|
||||
call PlaceString
|
||||
ret
|
||||
|
||||
.prizepoints:
|
||||
.PrintPrizePoints:
|
||||
ld a, [wMenuSelection]
|
||||
call Buena_getprize
|
||||
call Buena_GetPrize
|
||||
inc hl
|
||||
ld a, [hl]
|
||||
ld c, "0"
|
||||
@@ -292,7 +292,7 @@ endr
|
||||
ld [de], a
|
||||
ret
|
||||
|
||||
Buena_getprize:
|
||||
Buena_GetPrize:
|
||||
dec a
|
||||
ld hl, BuenaPrizeItems
|
||||
ld b, 0
|
||||
|
@@ -1,6 +1,6 @@
|
||||
SPECIALCELEBIEVENT_CELEBI EQU $84
|
||||
|
||||
UnusedForestTreeFrames:
|
||||
UnusedForestTreeFrames: ; unreferenced
|
||||
INCBIN "gfx/tilesets/forest-tree/1.2bpp"
|
||||
INCBIN "gfx/tilesets/forest-tree/2.2bpp"
|
||||
INCBIN "gfx/tilesets/forest-tree/3.2bpp"
|
||||
@@ -99,8 +99,7 @@ CelebiEvent_CountDown:
|
||||
set 7, [hl]
|
||||
ret
|
||||
|
||||
CelebiEvent_SpawnLeaf:
|
||||
; unused
|
||||
CelebiEvent_SpawnLeaf: ; unreferenced
|
||||
ld hl, wcf65
|
||||
ld a, [hl]
|
||||
inc [hl]
|
||||
|
@@ -166,7 +166,7 @@ DayCareAskDepositPokemon:
|
||||
scf
|
||||
ret
|
||||
|
||||
.DaycareDummyText:
|
||||
.DaycareDummyText: ; unreferenced
|
||||
text_far _DaycareDummyText
|
||||
text_end
|
||||
|
||||
|
@@ -57,7 +57,7 @@ EngineFlagAction::
|
||||
jr z, .set ; b = 1
|
||||
|
||||
; Return the given flag in c.
|
||||
.check
|
||||
; check
|
||||
ld a, [de]
|
||||
and c
|
||||
ld c, a
|
||||
|
@@ -56,7 +56,7 @@ HealMachineAnim:
|
||||
.Pointers:
|
||||
; entries correspond to HEALMACHINE_* constants
|
||||
dw .Pokecenter
|
||||
dw .ElmLab
|
||||
dw .ElmsLab
|
||||
dw .HallOfFame
|
||||
|
||||
healmachineanimseq: MACRO
|
||||
@@ -68,7 +68,7 @@ ENDM
|
||||
|
||||
.Pokecenter:
|
||||
healmachineanimseq LOADGFX, PCLOADBALLS, PLAYMUSIC, FINISH
|
||||
.ElmLab:
|
||||
.ElmsLab:
|
||||
healmachineanimseq LOADGFX, PCLOADBALLS, PLAYMUSIC, FINISH
|
||||
.HallOfFame:
|
||||
healmachineanimseq LOADGFX, HOFLOADBALLS, HOFPLAYSFX, FINISH
|
||||
|
@@ -69,7 +69,7 @@ MagnetTrain:
|
||||
ld [wRequested2bppSource + 1], a
|
||||
ld [wRequested2bppDest], a
|
||||
ld [wRequested2bppDest + 1], a
|
||||
ld [wRequested2bpp], a
|
||||
ld [wRequested2bppSize], a
|
||||
call ClearTilemap
|
||||
|
||||
pop af
|
||||
|
@@ -1414,7 +1414,7 @@ HasRockSmash:
|
||||
ld d, ROCK_SMASH
|
||||
call CheckPartyMove
|
||||
jr nc, .yes
|
||||
.no
|
||||
; no
|
||||
ld a, 1
|
||||
jr .done
|
||||
.yes
|
||||
@@ -1616,7 +1616,7 @@ RodNothingText:
|
||||
text_far _RodNothingText
|
||||
text_end
|
||||
|
||||
UnusedNothingHereText: ; unused
|
||||
UnusedNothingHereText: ; unreferenced
|
||||
text_far _UnusedNothingHereText
|
||||
text_end
|
||||
|
||||
|
@@ -149,6 +149,6 @@ DoPoisonStep::
|
||||
text_far _PoisonFaintText
|
||||
text_end
|
||||
|
||||
.PoisonWhiteoutText:
|
||||
.PoisonWhiteoutText: ; unreferenced
|
||||
text_far _PoisonWhiteoutText
|
||||
text_end
|
||||
|
@@ -30,7 +30,7 @@ RotateUnownFrontpic:
|
||||
cp 7 * 7
|
||||
jr c, .loop
|
||||
|
||||
ld hl, wGameboyPrinterRAM
|
||||
ld hl, wGameboyPrinter2bppSource
|
||||
ld de, sScratch
|
||||
ld bc, 7 * 7 tiles
|
||||
call CopyBytes
|
||||
@@ -100,7 +100,7 @@ y = 0
|
||||
rept \1
|
||||
x = \1 * (\2 - 1) + y
|
||||
rept \2
|
||||
dw wGameboyPrinterRAM tile x
|
||||
dw wGameboyPrinter2bppSource tile x
|
||||
x = x - \2
|
||||
endr
|
||||
y = y + 1
|
||||
|
@@ -380,17 +380,17 @@ GameboyCheck:
|
||||
ldh a, [hCGB]
|
||||
and a
|
||||
jr nz, .cgb
|
||||
|
||||
ldh a, [hSGB]
|
||||
and a
|
||||
jr nz, .sgb
|
||||
|
||||
.gb
|
||||
; gb
|
||||
xor a ; GBCHECK_GB
|
||||
jr .done
|
||||
|
||||
.sgb
|
||||
ld a, GBCHECK_SGB
|
||||
jr .done
|
||||
|
||||
.cgb
|
||||
ld a, GBCHECK_CGB
|
||||
.done
|
||||
|
@@ -210,7 +210,7 @@ GetTreeScore:
|
||||
cp 5
|
||||
jr c, .good
|
||||
|
||||
.bad
|
||||
; bad
|
||||
xor a ; TREEMON_SCORE_BAD
|
||||
ret
|
||||
|
||||
|
Reference in New Issue
Block a user