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