mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12: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
|
@ -22,7 +22,8 @@
|
||||||
const SET_PAL_GAME_FREAK_INTRO ; $0C
|
const SET_PAL_GAME_FREAK_INTRO ; $0C
|
||||||
const SET_PAL_TRAINER_CARD ; $0D
|
const SET_PAL_TRAINER_CARD ; $0D
|
||||||
|
|
||||||
UPDATE_PARTY_MENU_BLK_PACKET EQU $fc
|
SET_PAL_PARTY_MENU_HP_BARS EQU $fc
|
||||||
|
SET_PAL_DEFAULT EQU $ff
|
||||||
|
|
||||||
; sgb palettes
|
; sgb palettes
|
||||||
const_def
|
const_def
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
_RunPaletteCommand:
|
_RunPaletteCommand:
|
||||||
call GetPredefRegisters
|
call GetPredefRegisters
|
||||||
ld a, b
|
ld a, b
|
||||||
cp $ff
|
cp SET_PAL_DEFAULT
|
||||||
jr nz, .next
|
jr nz, .not_default
|
||||||
ld a, [wDefaultPaletteCommand] ; use default command if command ID is $ff
|
ld a, [wDefaultPaletteCommand]
|
||||||
.next
|
.not_default
|
||||||
cp UPDATE_PARTY_MENU_BLK_PACKET
|
cp SET_PAL_PARTY_MENU_HP_BARS
|
||||||
jp z, UpdatePartyMenuBlkPacket
|
jp z, UpdatePartyMenuBlkPacket
|
||||||
ld l, a
|
ld l, a
|
||||||
ld h, 0
|
ld h, 0
|
||||||
|
|
|
@ -318,7 +318,7 @@ SetPartyMenuHPBarColor:
|
||||||
ld b, 0
|
ld b, 0
|
||||||
add hl, bc
|
add hl, bc
|
||||||
call GetHealthBarColor
|
call GetHealthBarColor
|
||||||
ld b, UPDATE_PARTY_MENU_BLK_PACKET
|
ld b, SET_PAL_PARTY_MENU_HP_BARS
|
||||||
call RunPaletteCommand
|
call RunPaletteCommand
|
||||||
ld hl, wWhichPartyMenuHPBar
|
ld hl, wWhichPartyMenuHPBar
|
||||||
inc [hl]
|
inc [hl]
|
||||||
|
|
Loading…
Reference in a new issue