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
|
|
@ -65,7 +65,7 @@ rLCDC_DEFAULT EQU %11100011
|
|||
call WriteDMACodeToHRAM
|
||||
|
||||
xor a
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
ldh [rSTAT], a
|
||||
ldh [hSCX], a
|
||||
ldh [hSCY], a
|
||||
|
|
|
|||
|
|
@ -813,7 +813,7 @@ LoadPlayerSpriteGraphics::
|
|||
dec a
|
||||
jr z, .ridingBike
|
||||
|
||||
ldh a, [hTilesetType]
|
||||
ldh a, [hTileAnimations]
|
||||
and a
|
||||
jr nz, .determineGraphics
|
||||
jr .startWalking
|
||||
|
|
|
|||
|
|
@ -175,10 +175,10 @@ GetCryData::
|
|||
ret
|
||||
|
||||
DisplayPartyMenu::
|
||||
ldh a, [hTilesetType]
|
||||
ldh a, [hTileAnimations]
|
||||
push af
|
||||
xor a
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
call GBPalWhiteOutWithDelay3
|
||||
call ClearSprites
|
||||
call PartyMenuInit
|
||||
|
|
@ -186,10 +186,10 @@ DisplayPartyMenu::
|
|||
jp HandlePartyMenuInput
|
||||
|
||||
GoBackToPartyMenu::
|
||||
ldh a, [hTilesetType]
|
||||
ldh a, [hTileAnimations]
|
||||
push af
|
||||
xor a
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
call PartyMenuInit
|
||||
call RedrawPartyMenu
|
||||
jp HandlePartyMenuInput
|
||||
|
|
@ -251,7 +251,7 @@ HandlePartyMenuInput::
|
|||
and a
|
||||
jp nz, .swappingPokemon
|
||||
pop af
|
||||
ldh [hTilesetType], a
|
||||
ldh [hTileAnimations], a
|
||||
bit 1, b
|
||||
jr nz, .noPokemonChosen
|
||||
ld a, [wPartyCount]
|
||||
|
|
|
|||
|
|
@ -379,7 +379,7 @@ UpdateMovingBgTiles::
|
|||
; Animate water and flower
|
||||
; tiles in the overworld.
|
||||
|
||||
ldh a, [hTilesetType]
|
||||
ldh a, [hTileAnimations]
|
||||
and a
|
||||
ret z ; no animations if indoors (or if a menu set this to 0)
|
||||
|
||||
|
|
@ -417,7 +417,7 @@ UpdateMovingBgTiles::
|
|||
dec c
|
||||
jr nz, .left
|
||||
.done
|
||||
ldh a, [hTilesetType]
|
||||
ldh a, [hTileAnimations]
|
||||
rrca
|
||||
ret nc
|
||||
; if in a cave, no flower animations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue