Fix pendant/crystal failing to spawn when using somaaria vs a boss.
This commit is contained in:
@@ -492,6 +492,9 @@ AddWeathervaneExplosion:
|
|||||||
org $0993DF
|
org $0993DF
|
||||||
AddDashTremor:
|
AddDashTremor:
|
||||||
|
|
||||||
|
org $099D04
|
||||||
|
AddAncillaLong:
|
||||||
|
|
||||||
org $09AE64
|
org $09AE64
|
||||||
Sprite_SetSpawnedCoords:
|
Sprite_SetSpawnedCoords:
|
||||||
|
|
||||||
@@ -595,6 +598,9 @@ ShopKeeper_RapidTerminateReceiveItem:
|
|||||||
org $1CF500
|
org $1CF500
|
||||||
Sprite_NullifyHookshotDrag:
|
Sprite_NullifyHookshotDrag:
|
||||||
|
|
||||||
|
org $1CF537
|
||||||
|
Ancilla_CheckForAvailableSlot:
|
||||||
|
|
||||||
org $1DE9B6
|
org $1DE9B6
|
||||||
Filter_MajorWhitenMain:
|
Filter_MajorWhitenMain:
|
||||||
|
|
||||||
|
|||||||
10
bugfixes.asm
10
bugfixes.asm
@@ -128,3 +128,13 @@ PodEGFix:
|
|||||||
.done
|
.done
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
; Fix crystal not spawning when using somaria vs boss
|
||||||
|
TryToSpawnCrystalUntilSuccess:
|
||||||
|
STX $02D8 ; what we overwrote
|
||||||
|
JSL AddAncillaLong : BCC .spawned ; a clear carry flag indicates success
|
||||||
|
.failed
|
||||||
|
RTL
|
||||||
|
.spawned
|
||||||
|
STZ $AE ; the "trying to spawn crystal" flag
|
||||||
|
STZ $AF ; the "trying to spawn pendant" flag
|
||||||
|
RTL
|
||||||
@@ -1458,6 +1458,12 @@ JSL.l HUDRebuildIndoorHole
|
|||||||
;JSL.l CheckPendantHUD
|
;JSL.l CheckPendantHUD
|
||||||
;NOP #2
|
;NOP #2
|
||||||
;================================================================================
|
;================================================================================
|
||||||
|
org $098BB0 ; <- 048BB0 - ancilla_init.asm:1663 - (STX $02D8 : JSR AddAncilla)
|
||||||
|
JSL.l TryToSpawnCrystalUntilSuccess
|
||||||
|
NOP
|
||||||
|
org $01C74B ; <- 00C74B - bank01.asm:10368 - (STZ $AE, X)
|
||||||
|
NOP #2 ; this STZ is what makes the crystal never spawn if it fails to spawn on the first try
|
||||||
|
;================================================================================
|
||||||
org $0DE9C8 ; <- 6E9C8 - equipment.asm:1623 - (LDA $7EF3C5 : CMP.b #$03 : BCC .beforeAgahnim)
|
org $0DE9C8 ; <- 6E9C8 - equipment.asm:1623 - (LDA $7EF3C5 : CMP.b #$03 : BCC .beforeAgahnim)
|
||||||
JSL.l DrawPendantCrystalDiagram : RTS
|
JSL.l DrawPendantCrystalDiagram : RTS
|
||||||
;NOP #11
|
;NOP #11
|
||||||
|
|||||||
Reference in New Issue
Block a user