Falling death flag

This commit is contained in:
aerinon
2023-04-14 14:03:40 -06:00
parent ef057638c5
commit 5cac501cc7
3 changed files with 22 additions and 1 deletions

View File

@@ -18,8 +18,9 @@ db #$00 ;408106 : 200106 ; toggle to turn on terrorpin ai "fix"
db #$00 ;368107 db #$00 ;368107
.killable_theives_id ; must be set to C4 to make thieves killable... .killable_theives_id ; must be set to C4 to make thieves killable...
db #$B8 ;368108 db #$B8 ;368108
.enemies_live_upon_falling
db #$00 ; 368109 ; when set to 1 enemies don't die when falling into a hole
db #$00 ;408109 : 200109
db #$00 ;40810A : 20010A db #$00 ;40810A : 20010A
db #$00 ;40810B : 20010B db #$00 ;40810B : 20010B
db #$00 ;40810C : 20010C db #$00 ;40810C : 20010C

View File

@@ -0,0 +1,18 @@
pushpc
org $868536
JSL CheckFallingDeathFlag
org $86FBF8
JSL CheckFallingDeathFlag
Sprite_ManuallySetDeathFlagUW = $89C2F5
pullpc
CheckFallingDeathFlag:
LDA.l !ENEMY_FALLING_STAY_ALIVE
BEQ +
RTL
+ JMP Sprite_ManuallySetDeathFlagUW ; original code

View File

@@ -20,6 +20,7 @@ lorom
;!ENABLE_TERRORPIN_AI_FIX = "$368106" # moved to baserom already ;!ENABLE_TERRORPIN_AI_FIX = "$368106" # moved to baserom already
!CENTER_BOSS_DROP_FLAG = "$368107" !CENTER_BOSS_DROP_FLAG = "$368107"
!KILLABLE_THIEVES_ID = "$368108" !KILLABLE_THIEVES_ID = "$368108"
!ENEMY_FALLING_STAY_ALIVE = "$368109"
; Enemizer reserved memory ; Enemizer reserved memory
; $7F50B0 - $7F50BF - Downstream Reserved (Enemizer) ; $7F50B0 - $7F50BF - Downstream Reserved (Enemizer)
@@ -52,6 +53,7 @@ incsrc overworld_sprites.asm
incsrc underworld_sprites.asm incsrc underworld_sprites.asm
incsrc blindboss.asm incsrc blindboss.asm
incsrc falling_death.asm
incsrc shell_gfx.asm incsrc shell_gfx.asm
warnpc $B6FFFF ;if we hit this we need to split stuff by bank warnpc $B6FFFF ;if we hit this we need to split stuff by bank