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