diff --git a/LTTP_RND_GeneralBugfixes.asm b/LTTP_RND_GeneralBugfixes.asm index f3f4480..37e7b04 100644 --- a/LTTP_RND_GeneralBugfixes.asm +++ b/LTTP_RND_GeneralBugfixes.asm @@ -142,6 +142,7 @@ incsrc doorframefixes.asm incsrc music.asm incsrc roomloading.asm incsrc icepalacegraphics.asm +incsrc firebarlayer.asm warnpc $A18000 org $1C8000 ; text tables for translation diff --git a/build_linux.sh b/build_linux.sh new file mode 100755 index 0000000..1b6c338 --- /dev/null +++ b/build_linux.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +rm ../working.sfc +cp ../alttp.sfc ../working.sfc +asar LTTP_RND_GeneralBugfixes.asm ../working.sfc diff --git a/firebarlayer.asm b/firebarlayer.asm new file mode 100644 index 0000000..f7118b2 --- /dev/null +++ b/firebarlayer.asm @@ -0,0 +1,8 @@ +NewFireBarDamage: +{ + LDA $00EE : CMP $0F20, X : BNE .NotSameLayer + JSL Sprite_AttemptDamageToPlayerPlusRecoilLong + RTL + .NotSameLayer + RTL +} \ No newline at end of file diff --git a/hooks.asm b/hooks.asm index 91cf308..f5d73f5 100755 --- a/hooks.asm +++ b/hooks.asm @@ -2550,8 +2550,19 @@ CheckIfReading: CPX #$04 RTS ;================================================================================ + org $0DB4CA : db $40, $40 ; fire bar statis org $0DB4A9 : db $50, $50, $6E, $6E ; roller statis org $0DB4B2 : db $40, $40, $40, $40 ; cannon statis org $0DB4C3 : db $C0 ; anti fairy statis -org $0DB516 : db $40 ; chain chomp statis \ No newline at end of file +org $0DB516 : db $40 ; chain chomp statis + +;-------------------------------------------------------------------------------- +; Keep Firebar Damage on Same Layer +;-------------------------------------------------------------------------------- +org $06F425 +Sprite_AttemptDamageToPlayerPlusRecoilLong: + +org $1ED1B6 +JSL NewFireBarDamage +;================================================================================ diff --git a/quickswap.asm b/quickswap.asm index d83fd4c..96f5d0d 100644 --- a/quickswap.asm +++ b/quickswap.asm @@ -11,12 +11,6 @@ QuickSwap: LDA.l QuickSwapFlag : BEQ .done LDA.w $0202 : BEQ .done ; Skip everything if we don't have any items - ;TODO add romtype and race rom checks here - LDA.l TournamentSeed : BEQ + - LDA.l GameType : AND.b #$02 : BNE + - BRA .done - + - PHX XBA ; restore the stashed value CMP.b #$30 : BNE +