Cleanup deku_scrub.asm

This commit is contained in:
scawful
2024-10-03 19:23:33 -04:00
parent 98f58d8b0e
commit e608e6fe5a

View File

@@ -111,7 +111,6 @@ Sprite_DekuScrub_Main:
JSL Sprite_PlayerCantPassThrough JSL Sprite_PlayerCantPassThrough
%ShowSolicitedMessage($140) : BCC .no_hablaba %ShowSolicitedMessage($140) : BCC .no_hablaba
%GotoAction(1) %GotoAction(1)
.no_hablaba .no_hablaba
RTS RTS
} }
@@ -130,11 +129,9 @@ Sprite_DekuScrub_Main:
DarMascara: DarMascara:
{ {
%PlayAnimation(0, 1, 16) %PlayAnimation(0, 1, 16)
LDA.w SprTimerD, X : BNE + LDA.w SprTimerD, X : BNE +
%ShowUnconditionalMessage($141) %ShowUnconditionalMessage($141)
LDA.b #$C0 : STA.w SprTimerD, X LDA.b #$C0 : STA.w SprTimerD, X
%GotoAction(3) %GotoAction(3)
+ +
RTS RTS
@@ -143,7 +140,6 @@ Sprite_DekuScrub_Main:
Regalo: Regalo:
{ {
LDA.w SprTimerD, X : BNE + LDA.w SprTimerD, X : BNE +
LDY #$11 : STZ $02E9 ; Give the Deku Mask LDY #$11 : STZ $02E9 ; Give the Deku Mask
JSL Link_ReceiveItem JSL Link_ReceiveItem
LDA.b #$01 : STA.l $7EF301 LDA.b #$01 : STA.l $7EF301
@@ -210,7 +206,6 @@ Sprite_DekuScrub_Draw:
.nextTile .nextTile
PHX ; Save current Tile Index? PHX ; Save current Tile Index?
TXA : CLC : ADC $06 ; Add Animation Index Offset TXA : CLC : ADC $06 ; Add Animation Index Offset
PHA ; Keep the value with animation index offset? PHA ; Keep the value with animation index offset?
@@ -238,13 +233,9 @@ Sprite_DekuScrub_Draw:
LDA .properties, X : STA ($90), Y LDA .properties, X : STA ($90), Y
PHY PHY
TYA : LSR #2 : TAY TYA : LSR #2 : TAY
LDA .sizes, X : ORA $0F : STA ($92), Y ; store size in oam buffer LDA .sizes, X : ORA $0F : STA ($92), Y ; store size in oam buffer
PLY : INY PLY : INY
PLX : DEX : BPL .nextTile PLX : DEX : BPL .nextTile
PLX PLX
@@ -306,3 +297,4 @@ Sprite_DekuScrub_Draw:
; db $02, $02, $02, $02 ; db $02, $02, $02, $02
; db $02, $02, $02, $02 ; db $02, $02, $02, $02
} }