This commit is contained in:
Narishma-gb 2026-03-14 13:06:35 +00:00 committed by GitHub
commit 14af35d913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 26 additions and 28 deletions

View File

@ -3,7 +3,6 @@ PokemonPalettes:
; Each normal.gbcpal is generated from the corresponding .png, and
; only the middle two colors are included, not black or white.
; (Back sprites are used since they are the same in Gold and Silver.)
; Shiny palettes are defined directly, not generated.
; 2 middle palettes, front and shiny, with 2 colors each

View File

@ -57,7 +57,7 @@ DoBattleTransition:
farcall ReanchorBGMap_NoOAMUpdate
call UpdateSprites
call DelayFrame
call ConvertTrainerBattlePokeballTilesTo2bpp
call LoadBattleTransitionGFX
call CGBOnly_CopyTilemapAtOnce
ld a, SCREEN_HEIGHT_PX
@ -73,32 +73,33 @@ DoBattleTransition:
call WipeLYOverrides
ret
ConvertTrainerBattlePokeballTilesTo2bpp:
LoadBattleTransitionGFX:
ld hl, wDecompressScratch
ld bc, $28 tiles
ld bc, TILEMAP_WIDTH * (TILEMAP_HEIGHT - 12)
.loop
ld [hl], -1
ld [hl], BATTLETRANSITION_BLACK
inc hl
dec bc
ld a, c
or b
jr nz, .loop
; fill visible area of BGMap0 with BATTLETRANSITION_BLACK
ld de, wDecompressScratch
hlbgcoord 0, 0, vBGMap2
hlbgcoord 0, 0
ld b, BANK(@)
ld c, $28
ld c, TILEMAP_WIDTH * (TILEMAP_HEIGHT - 12) / TILE_SIZE
call Request2bpp
ld de, TrainerBattlePokeballTiles
ld hl, vTiles3 tile BATTLETRANSITION_SQUARE
ld b, BANK(TrainerBattlePokeballTiles)
ld de, BattleTransitionTiles
ld hl, vTiles0 tile BATTLETRANSITION_SQUARE
ld b, BANK(BattleTransitionTiles)
ld c, 2
call Request2bpp
ret
TrainerBattlePokeballTiles:
INCBIN "gfx/overworld/trainer_battle_pokeball_tiles.2bpp"
BattleTransitionTiles:
INCBIN "gfx/overworld/battle_transition_tiles.2bpp"
BattleTransitionJumptable:
jumptable .Jumptable, wJumptableIndex

View File

@ -4629,7 +4629,9 @@ UpdateHPPal:
jp FinishBattleAnim
Battle_DummyFunction:
; called before placing either battler's nickname in the HUD
; Called before placing either battler's nickname in the HUD.
; This was CenterMonName in Gen 1.
; In Gen 2, pokemon nicknames are always left-aligned on the HUD.
ret
BattleMenu:
@ -7806,7 +7808,7 @@ StartBattle:
lb bc, 4, 10
call ClearBox
call ClearSprites
ld a, [wEnemyMonEnd]
ld a, [wBattleMode]
cp WILD_BATTLE
call z, UpdateEnemyHUD
ld a, $1
@ -8135,7 +8137,7 @@ ReadAndPrintLinkBattleRecord:
pop hl
call PlaceString
pop hl
ld de, 26
ld de, SCREEN_WIDTH + 6
add hl, de
push hl
ld de, wLinkBattleRecordWins

View File

@ -807,7 +807,7 @@ TMHMSubmenu:
.UsableMenuHeader:
db MENU_BACKUP_TILES ; flags
menu_coords 0, 7, TEXTBOX_HEIGHT, TEXTBOX_Y - 1
menu_coords 0, 7, SCREEN_WIDTH - 14, TEXTBOX_Y - 1
dw .UsableMenuData
db 1 ; default option

View File

@ -166,7 +166,7 @@ SetDefaultBoxNames:
ld [hli], a
ld [hl], '@'
pop hl
ld de, 9
ld de, BOX_NAME_LENGTH
add hl, de
inc c
ld a, c
@ -474,11 +474,7 @@ Continue_DisplayPokedexNumCaught:
ret z
push hl
ld hl, wPokedexCaught
if NUM_POKEMON % 8
ld b, NUM_POKEMON / 8 + 1
else
ld b, NUM_POKEMON / 8
endc
ld b, (NUM_POKEMON + 7) / 8
call CountSetBits
pop hl
ld de, wNumSetBits

View File

@ -16,7 +16,7 @@ PlaceMenuItemQuantity:
pop hl
and a
jr nz, .done
ld de, $15
ld de, SCREEN_WIDTH + 1
add hl, de
ld [hl], '×'
inc hl
@ -231,7 +231,7 @@ Kurt_SelectApricorn:
db 1 ; default option
.MenuData:
db SCROLLINGMENU_ENABLE_SELECT | SCROLLINGMENU_ENABLE_FUNCTION3
db STATICMENU_CURSOR | STATICMENU_WRAP
dbw 0, wKurtApricornCount
dw .Name
dw NULL

View File

@ -57,7 +57,7 @@ SaveMenu_CopyTilemapAtOnce:
.loop
rept SCREEN_WIDTH / 2
pop de
; if in v/hblank, wait until not in v/hblank
; wait until PPU v/hblank mode
.loop\@
ldh a, [c]
and b

View File

@ -60,7 +60,7 @@ PhoneRing_CopyTilemapAtOnce:
.loop
rept SCREEN_WIDTH / 2
pop de
; if in v/hblank, wait until not in v/hblank
; wait until PPU v/hblank mode
.loop\@
ldh a, [c]
and b

View File

@ -101,7 +101,7 @@ MoveMailFromPCToParty:
ld bc, MAIL_STRUCT_LENGTH
call CopyBytes
pop hl
ld de, PARTYMON_STRUCT_LENGTH - MON_MOVES
ld de, MAIL_STRUCT_LENGTH - 1 ; message type
add hl, de
ld d, [hl]
ld a, [wCurPartyMon]

View File

Before

Width:  |  Height:  |  Size: 89 B

After

Width:  |  Height:  |  Size: 89 B

View File

@ -110,7 +110,7 @@ CopyTilemapAtOnce::
.loop
rept SCREEN_WIDTH / 2
pop de
; if in v/hblank, wait until not in v/hblank
; wait until PPU v/hblank mode
.loop\@
ldh a, [c]
and b