move LinkState_ResetMaskAnimated, update logic

This commit is contained in:
scawful
2024-06-08 08:53:13 -04:00
parent 8cc0442cdd
commit 27a14ccaf9
2 changed files with 27 additions and 29 deletions

View File

@@ -194,7 +194,7 @@ Palette_ArmorAndGloves:
; =========================================================
; Overworld Palette Persist
; =========================================================
Overworld_CgramAuxToMain_Override:
{
@@ -225,6 +225,32 @@ Overworld_CgramAuxToMain_Override:
RTL
}
; =========================================================
LinkState_ResetMaskAnimated:
{
LDA.w $02B2
CMP.b #$01 : BEQ .check_item_slot
CMP.b #$02 : BEQ .no_transform
CMP.b #$03 : BEQ .check_item_slot
CMP.b #$04 : BEQ .check_item_slot
CMP.b #$05 : BEQ .no_transform
CMP.b #$06 : BEQ .gbc_form
.check_item_slot
LDA.w $0202 : SEC : SBC.b #$13 : BEQ .no_transform
.transform
%PlayerTransform()
%ResetToLinkGraphics()
.gbc_form
.no_transform
RTL
}
pushpc
; =========================================================