Fix kodongo ai slightly better.
Introduce a flag for the FixPrizeOnTheEyes bug
This commit is contained in:
@@ -40,9 +40,9 @@ FixShopCode:
|
|||||||
+ rtl
|
+ rtl
|
||||||
|
|
||||||
VitreousKeyReset:
|
VitreousKeyReset:
|
||||||
lda.l DRMode : beq +
|
LDA.l FixPrizeOnTheEyes : BEQ +
|
||||||
stz $0cba, x
|
STZ.w $0CBA, X
|
||||||
+ JML $0db818 ;restore old code
|
+ JML $0DB818 ;restore old code - SpritePrep_LoadProperties
|
||||||
|
|
||||||
GuruguruFix:
|
GuruguruFix:
|
||||||
lda $a0 : cmp #$df : !bge +
|
lda $a0 : cmp #$df : !bge +
|
||||||
@@ -62,7 +62,7 @@ SuctionOverworldFix:
|
|||||||
stz $49
|
stz $49
|
||||||
+ rtl
|
+ rtl
|
||||||
|
|
||||||
!CutoffTable = "$27E000"
|
!CutoffTable = "$A7E000"
|
||||||
|
|
||||||
CutoffEntranceRug:
|
CutoffEntranceRug:
|
||||||
PHA : PHX
|
PHA : PHX
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ incsrc hooks/bosses_hooks.asm
|
|||||||
|
|
||||||
incsrc hooks/moldorm_hooks.asm
|
incsrc hooks/moldorm_hooks.asm
|
||||||
|
|
||||||
incsrc hooks/kodongo_hooks.asm
|
|
||||||
|
|
||||||
incsrc hooks/mimic_hooks.asm
|
incsrc hooks/mimic_hooks.asm
|
||||||
|
|
||||||
incsrc hooks/damage_hooks.asm
|
incsrc hooks/damage_hooks.asm
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
org $1EC147
|
|
||||||
JSL NewKodongoCollision
|
|
||||||
NOP #$05
|
|
||||||
@@ -1,9 +1,18 @@
|
|||||||
|
pushpc
|
||||||
|
|
||||||
|
org $9EC147
|
||||||
|
JSL NewKodongoCollision
|
||||||
|
NOP #$05
|
||||||
|
|
||||||
|
org $9EC152
|
||||||
|
Kodongo_SetDirection:
|
||||||
|
|
||||||
|
pullpc
|
||||||
|
|
||||||
NewKodongoCollision:
|
NewKodongoCollision:
|
||||||
{
|
|
||||||
LDA $0DE0, X : INC A : AND.b #$03 : STA $0DE0, X
|
LDA $0DE0, X : INC A : AND.b #$03 : STA $0DE0, X
|
||||||
;If they collide more than 32time then kill them !
|
;If they collide more than 4 times just set direction
|
||||||
LDA $0DA0, X : INC A : STA $0DA0, X : CMP #$20 : BCC .continue
|
LDA $0DA0, X : INC A : STA $0DA0, X : CMP #$04 : BCC .continue
|
||||||
STZ $0DD0, X
|
PLA : PLA : PEA.w Kodongo_SetDirection-1
|
||||||
.continue
|
.continue
|
||||||
RTL
|
RTL
|
||||||
}
|
|
||||||
@@ -32,9 +32,9 @@ incsrc DMA.asm
|
|||||||
|
|
||||||
org $B68000 ; the original org is 368000 and B6 is the same bank but fastrom
|
org $B68000 ; the original org is 368000 and B6 is the same bank but fastrom
|
||||||
EnemizerTablesStart:
|
EnemizerTablesStart:
|
||||||
incsrc enemizer_info_table.asm
|
incsrc enemizer_info_table.asm ; B68000-B680FF
|
||||||
incsrc enemizerflags.asm
|
incsrc enemizerflags.asm ; B68100-B6811F
|
||||||
incsrc bushes_table.asm
|
incsrc bushes_table.asm ; B68120-B6373
|
||||||
|
|
||||||
EnemizerCodeStart:
|
EnemizerCodeStart:
|
||||||
incsrc bushes.asm
|
incsrc bushes.asm
|
||||||
@@ -46,7 +46,7 @@ incsrc bossdrop.asm
|
|||||||
incsrc moldorm.asm
|
incsrc moldorm.asm
|
||||||
incsrc kodongo_fixes.asm
|
incsrc kodongo_fixes.asm
|
||||||
incsrc mimic_fixes.asm
|
incsrc mimic_fixes.asm
|
||||||
; todo: vitreous key fix for boss shuffle
|
; vitreous key fix for boss shuffle - uses FixPrizeOnTheEyes flag
|
||||||
|
|
||||||
incsrc overworld_sprites.asm
|
incsrc overworld_sprites.asm
|
||||||
incsrc underworld_sprites.asm
|
incsrc underworld_sprites.asm
|
||||||
|
|||||||
10
tables.asm
10
tables.asm
@@ -1079,8 +1079,16 @@ db $00, $00, $00
|
|||||||
org $308358
|
org $308358
|
||||||
AllowAccidentalMajorGlitch:
|
AllowAccidentalMajorGlitch:
|
||||||
db $00
|
db $00
|
||||||
|
; left a byte buffer here
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
|
; $30835A (0x18035A) fixes the Prize On The Eyes glitch
|
||||||
|
; 0x00 - don't fix
|
||||||
|
; this should be turned on for Door Rando and Boss Shuffle
|
||||||
|
org $30835A
|
||||||
|
FixPrizeOnTheEyes:
|
||||||
|
db $00
|
||||||
;================================================================================
|
;================================================================================
|
||||||
; 0x180359 - 0x1814FF (unused)
|
; 0x18035B - 0x1814FF (unused)
|
||||||
;================================================================================
|
;================================================================================
|
||||||
; $309500 (0x181500) - $309FFF (0x181FFF) original 0x39C bytes
|
; $309500 (0x181500) - $309FFF (0x181FFF) original 0x39C bytes
|
||||||
; Replacement Ending Sequence Text Data
|
; Replacement Ending Sequence Text Data
|
||||||
|
|||||||
Reference in New Issue
Block a user