mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Label and document hFFD7 more accurately
This commit is contained in:
parent
6adbaefde1
commit
242b2e05cf
19 changed files with 45 additions and 45 deletions
|
|
@ -6,10 +6,10 @@ PKMNLeaguePC:
|
|||
push hl
|
||||
ld a, [wUpdateSpritesEnabled]
|
||||
push af
|
||||
ldh a, [hTilesetType]
|
||||
ldh a, [hTileAnimations]
|
||||
push af
|
||||
xor a
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
ld [wSpriteFlipped], a
|
||||
ld [wUpdateSpritesEnabled], a
|
||||
ld [wHoFTeamIndex2], a
|
||||
|
|
@ -40,7 +40,7 @@ PKMNLeaguePC:
|
|||
jr nz, .loop
|
||||
.doneShowingTeams
|
||||
pop af
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
pop af
|
||||
ld [wUpdateSpritesEnabled], a
|
||||
pop hl
|
||||
|
|
|
|||
|
|
@ -410,10 +410,10 @@ ShowPokedexDataInternal:
|
|||
call RunPaletteCommand
|
||||
pop af
|
||||
ld [wd11e], a
|
||||
ldh a, [hTilesetType]
|
||||
ldh a, [hTileAnimations]
|
||||
push af
|
||||
xor a
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
|
||||
hlcoord 0, 0
|
||||
ld de, 1
|
||||
|
|
@ -577,7 +577,7 @@ ShowPokedexDataInternal:
|
|||
and A_BUTTON | B_BUTTON
|
||||
jr z, .waitForButtonPress
|
||||
pop af
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
call GBPalWhiteOut
|
||||
call ClearScreen
|
||||
call RunDefaultPaletteCommand
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ LoadSAV0:
|
|||
ld bc, wSpriteDataEnd - wSpriteDataStart
|
||||
call CopyData
|
||||
ld a, [sTilesetType]
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
ld hl, sCurBoxData
|
||||
ld de, wBoxDataStart
|
||||
ld bc, wBoxDataEnd - wBoxDataStart
|
||||
|
|
@ -217,7 +217,7 @@ SaveSAVtoSRAM0:
|
|||
ld de, sCurBoxData
|
||||
ld bc, wBoxDataEnd - wBoxDataStart
|
||||
call CopyData
|
||||
ldh a, [hTilesetType]
|
||||
ldh a, [hTileAnimations]
|
||||
ld [sTilesetType], a
|
||||
ld hl, sPlayerName
|
||||
ld bc, sMainDataCheckSum - sPlayerName
|
||||
|
|
|
|||
|
|
@ -454,10 +454,10 @@ StartMenu_TrainerInfo::
|
|||
call GBPalWhiteOut
|
||||
call ClearScreen
|
||||
call UpdateSprites
|
||||
ldh a, [hTilesetType]
|
||||
ldh a, [hTileAnimations]
|
||||
push af
|
||||
xor a
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
call DrawTrainerInfo
|
||||
predef DrawBadges ; draw badges
|
||||
ld b, SET_PAL_TRAINER_CARD
|
||||
|
|
@ -471,7 +471,7 @@ StartMenu_TrainerInfo::
|
|||
call ReloadMapData
|
||||
call LoadGBPal
|
||||
pop af
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
jp RedisplayStartMenu
|
||||
|
||||
; loads tile patterns and draws everything except for gym leader faces / badges
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue