Fix dungeon prize ancilla spawn regression

This commit is contained in:
cassidoxa
2023-12-27 11:37:40 -05:00
parent 7116cb6557
commit 7001767c9b
2 changed files with 5 additions and 1 deletions

View File

@@ -3,6 +3,9 @@
;--------------------------------------------------------------------------------
SpawnDungeonPrize:
PHX : PHB
TAX
LDA.b $06,S : STA.b ScrapBuffer72 ; Store current RoomTag index
TXA
JSL.l AttemptItemSubstitution
JSL.l ResolveLootIDLong
STA.w ItemReceiptID
@@ -14,6 +17,7 @@ SpawnDungeonPrize:
LDA.w ItemReceiptID
STA.w AncillaGet,X : STA.w SpriteID,X
JSR.w AddDungeonPrizeAncilla
LDX.b ScrapBuffer72 : STZ.b RoomTag,X
.failed_spawn
PLB : PLX
RTL