Fixing boss behavior in Swamp Palace Arrghus' room

This commit is contained in:
codemann8
2025-06-05 19:50:49 -05:00
parent 936ff5a882
commit faadd1d7f1
3 changed files with 21 additions and 0 deletions

View File

@@ -288,3 +288,16 @@ new_trinexx_code:
RTL
;--------------------------------------------------------------------------------
;================================================================================
; Check if water tile in Swamp boss room, skip interaction
;--------------------------------------------------------------------------------
swamp_boss_tile_interaction:
LDA.l Sprite_ReducedTileInteractionTable, X : BEQ .return
CPX.b #$09 : BNE .return ; return if non-water tile
LDX.b IndoorsFlag : BEQ .return ; return if overworld
LDX.b RoomIndex : CPX.b #$06 : BNE .return ; return if not swamp boss room
LDA.b #$00
.return
RTL
;--------------------------------------------------------------------------------