Fix bug with eon abyss link sprite palette

This commit is contained in:
scawful
2025-01-11 09:40:59 -05:00
parent b09aebc5de
commit ee18cda610

View File

@@ -48,10 +48,10 @@ GameboyLinkRedMail:
LinkState_GameboyInDungeonEntrance:
{
print pc
; if link is in the dark world, change his sprite to the gbc one
LDA $0FFF : CMP #$00 : BEQ .return
LDA.w !CurrentMask : BNE .return
LDA $BC : CMP #$06 : BEQ .return
LDA.w !CurrentMask : CMP.b #$05 : BEQ .return
JSL UpdateGbcPalette
LDA #$3B : STA $BC ; change link's sprite
.return
@@ -64,10 +64,10 @@ LoadOverworld_CheckForGbcLink:
{
LDA $0FFF : BEQ .return_lw
LDA.w !CurrentMask : CMP.b #$05 : BEQ .return
LDA.b #$06 : STA $02B2
LDA.b #$3B : STA $BC ; change link's sprite
JSL UpdateGbcPalette
JMP .return
LDA.b #$06 : STA $02B2
LDA.b #$3B : STA $BC ; change link's sprite
JSL UpdateGbcPalette
JMP .return
.return_lw
STZ.w $02B2
.return