mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
UPDATE_PARTY_MENU_BLK_PACKET -> SET_PAL_PARTY_MENU_HP_BARS, and introduce SET_PAL_DEFAULT
This commit is contained in:
parent
73be62fad6
commit
36f8cd1477
4 changed files with 9 additions and 8 deletions
|
|
@ -1,11 +1,11 @@
|
|||
_RunPaletteCommand:
|
||||
call GetPredefRegisters
|
||||
ld a, b
|
||||
cp $ff
|
||||
jr nz, .next
|
||||
ld a, [wDefaultPaletteCommand] ; use default command if command ID is $ff
|
||||
.next
|
||||
cp UPDATE_PARTY_MENU_BLK_PACKET
|
||||
cp SET_PAL_DEFAULT
|
||||
jr nz, .not_default
|
||||
ld a, [wDefaultPaletteCommand]
|
||||
.not_default
|
||||
cp SET_PAL_PARTY_MENU_HP_BARS
|
||||
jp z, UpdatePartyMenuBlkPacket
|
||||
ld l, a
|
||||
ld h, 0
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ SetPartyMenuHPBarColor:
|
|||
ld b, 0
|
||||
add hl, bc
|
||||
call GetHealthBarColor
|
||||
ld b, UPDATE_PARTY_MENU_BLK_PACKET
|
||||
ld b, SET_PAL_PARTY_MENU_HP_BARS
|
||||
call RunPaletteCommand
|
||||
ld hl, wWhichPartyMenuHPBar
|
||||
inc [hl]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue