diff --git a/hooks.asm b/hooks.asm index 4578028..96b8d0d 100755 --- a/hooks.asm +++ b/hooks.asm @@ -3095,3 +3095,9 @@ NOP #14 : + org $08E073 ; LDA.b #$0E : STA.b $10 JSL FluteMap + +org $07A329 +JSL UseShovel +BCS + +RTS +NOP #4 : + diff --git a/trolls.asm b/trolls.asm index 0784ff0..c8d7042 100644 --- a/trolls.asm +++ b/trolls.asm @@ -68,3 +68,21 @@ FluteMap: LDA.b #$0E STA.b $10 RTL + +UseShovel: + LDA.b $1B + BEQ .normal +.indoors + REP #$20 + LDA.w #$0200 + STA.w $03F5 + SEP #$20 + CLC + RTL +.normal + LDA.l $07A310 + STA.b $3D + STZ.w $030D + STZ.w $0300 + SEC + RTL