mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-10-16 04:04:19 +13:00
relabel and add comment
This commit is contained in:
parent
1115b4454d
commit
332b7b3090
|
@ -92,7 +92,7 @@ DisplayNamingScreen: ; 6596 (1:6596)
|
|||
call GoPAL_SET
|
||||
call LoadHpBarAndStatusTilePatterns
|
||||
call LoadEDTile
|
||||
callba LoadMonPartySpriteTilePatterns
|
||||
callba LoadMonPartySpriteGfx
|
||||
hlCoord 0, 4
|
||||
ld b, $9
|
||||
ld c, $12
|
||||
|
|
|
@ -22,7 +22,7 @@ DrawPartyMenu_: ; 12cd2 (4:6cd2)
|
|||
ld [H_AUTOBGTRANSFERENABLED],a
|
||||
call ClearScreen
|
||||
call UpdateSprites ; move sprites
|
||||
callba LoadMonPartySpriteTilePatternsWithLCDDisabled ; load pokemon icon graphics
|
||||
callba LoadMonPartySpriteGfxWithLCDDisabled ; load pokemon icon graphics
|
||||
|
||||
RedrawPartyMenu_: ; 12ce3 (4:6ce3)
|
||||
ld a,[wd07d]
|
||||
|
|
|
@ -88,12 +88,12 @@ GetAnimationSpeed: ; 7170a (1c:570a)
|
|||
PartyMonSpeeds: ; 71769 (1c:5769)
|
||||
db $05,$10,$20
|
||||
|
||||
LoadMonPartySpriteTilePatterns: ; 7176c (1c:576c)
|
||||
LoadMonPartySpriteGfx: ; 7176c (1c:576c)
|
||||
; Load mon party sprite tile patterns into VRAM during V-blank.
|
||||
ld hl, MonPartySpritePointers
|
||||
ld a, $1c
|
||||
|
||||
LoadAnimSpriteTilePatterns: ; 71771 (1c:5771)
|
||||
LoadAnimSpriteGfx: ; 71771 (1c:5771)
|
||||
; Load animated sprite tile patterns into VRAM during V-blank. hl is the address
|
||||
; of an array of structures that contain arguments for CopyVideoData and a is
|
||||
; the number of structures in the array.
|
||||
|
@ -125,7 +125,7 @@ LoadAnimSpriteTilePatterns: ; 71771 (1c:5771)
|
|||
jr nz, .loop
|
||||
ret
|
||||
|
||||
LoadMonPartySpriteTilePatternsWithLCDDisabled: ; 71791 (1c:5791)
|
||||
LoadMonPartySpriteGfxWithLCDDisabled: ; 71791 (1c:5791)
|
||||
; Load mon party sprite tile patterns into VRAM immediately by disabling the
|
||||
; LCD.
|
||||
call DisableLCD
|
||||
|
@ -332,6 +332,10 @@ WriteMonPartySpriteOAMByMonID: ; 71882 (1c:5882)
|
|||
jr WriteMonPartySpriteOAM
|
||||
|
||||
UnusedPartyMonSpriteFunction: ; 71890 (1c:5890)
|
||||
; This function is unused and doesn't appear to do anything useful. It looks
|
||||
; like it may have been intended to load the tile patterns and OAM data for
|
||||
; the mon party sprite associated with the mon ID in a.
|
||||
; However, its calculations are off and it loads garbage data.
|
||||
ld a, [wcf91]
|
||||
call GetPartyMonSpriteID
|
||||
push af
|
||||
|
|
|
@ -389,7 +389,7 @@ Func_707b6: ; 707b6 (1c:47b6)
|
|||
call CopyVideoData
|
||||
ld a, $4
|
||||
ld hl, RedFishingTiles ; $4866
|
||||
call LoadAnimSpriteTilePatterns
|
||||
call LoadAnimSpriteGfx
|
||||
ld a, [wSpriteStateData1 + 2]
|
||||
ld c, a
|
||||
ld b, $0
|
||||
|
|
|
@ -146,8 +146,8 @@ LoadTradingGFXAndMonNames: ; 411a1 (10:51a1)
|
|||
Func_4120b: ; 4120b (10:520b)
|
||||
ld a, %11010000
|
||||
ld [rOBP1], a
|
||||
ld b, BANK(LoadMonPartySpriteTilePatterns)
|
||||
ld hl, LoadMonPartySpriteTilePatterns
|
||||
ld b, BANK(LoadMonPartySpriteGfx)
|
||||
ld hl, LoadMonPartySpriteGfx
|
||||
jp Bankswitch
|
||||
|
||||
Trade_SwapNames: ; 41217 (10:5217)
|
||||
|
|
Loading…
Reference in a new issue