Disable Moosh form indoors

This commit is contained in:
scawful
2024-11-28 19:33:47 -05:00
parent 81084c0aba
commit e9e8944f96
2 changed files with 9 additions and 1 deletions

View File

@@ -338,6 +338,10 @@ Link_TransformMask:
Link_TransformMoosh: Link_TransformMoosh:
{ {
PHB : PHK : PLB PHB : PHK : PLB
LDA.b $1B : BEQ ++
%ErrorBeep()
JMP .done
++
LDA.w !CurrentMask : CMP.b #$07 : BNE + LDA.w !CurrentMask : CMP.b #$07 : BNE +
%PlayerTransform() %PlayerTransform()
JSL ResetToLinkGraphics JSL ResetToLinkGraphics
@@ -347,7 +351,7 @@ Link_TransformMoosh:
LDA.b #$33 : STA $BC LDA.b #$33 : STA $BC
%PlayerTransform() %PlayerTransform()
JSL Palette_ArmorAndGloves JSL Palette_ArmorAndGloves
.done
PLB PLB
RTL RTL
} }

View File

@@ -218,6 +218,10 @@ macro SetTimerF(length)
LDA.b #<length> : STA.w SprTimerF, X LDA.b #<length> : STA.w SprTimerF, X
endmacro endmacro
macro ErrorBeep()
LDA.b #$3C : STA.w $012E ; Error beep
endmacro
macro NextAction() macro NextAction()
INC $0D80, X INC $0D80, X
endmacro endmacro