mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Add comments associating constants with data, and identify some more data
This commit is contained in:
parent
0177688ad4
commit
69788c536b
45 changed files with 318 additions and 299 deletions
|
|
@ -55,11 +55,11 @@ GetAnimationSpeed:
|
|||
ld bc, $10
|
||||
ld a, [wCurrentMenuItem]
|
||||
call AddNTimes
|
||||
ld c, $40 ; amount to increase the tile id by
|
||||
ld c, ICONOFFSET
|
||||
ld a, [hl]
|
||||
cp $4 ; tile ID for ICON_BALL
|
||||
cp ICON_BALL << 2
|
||||
jr z, .editCoords
|
||||
cp $8 ; tile ID for ICON_HELIX
|
||||
cp ICON_HELIX << 2
|
||||
jr nz, .editTileIDS
|
||||
; ICON_BALL and ICON_HELIX only shake up and down
|
||||
.editCoords
|
||||
|
|
@ -274,7 +274,7 @@ GetPartyMonSpriteID:
|
|||
swap a ; use lower nybble if pokedex num is even
|
||||
.skipSwap
|
||||
and $f0
|
||||
srl a
|
||||
srl a ; value == ICON constant << 2
|
||||
srl a
|
||||
ret
|
||||
|
||||
|
|
|
|||
|
|
@ -241,6 +241,7 @@ SetPal_TrainerCard:
|
|||
ret
|
||||
|
||||
SetPalFunctions:
|
||||
; entries correspond to SET_PAL_* constants
|
||||
dw SetPal_BattleBlack
|
||||
dw SetPal_Battle
|
||||
dw SetPal_TownMap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue