Fix cave state item cutscene flag with boss hearts

Add item substitutions
This commit is contained in:
cassidoxa
2023-08-25 21:11:48 -04:00
parent 5ac2f8c537
commit 90ffa8bd23
7 changed files with 17 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
;--------------------------------------------------------------------------------
LoadLibraryItemGFX:
%GetPossiblyEncryptedItem(LibraryItem, SpriteItemValues)
JSL.l AttemptItemSubstitution
JSL.l ResolveLootIDLong
STA.w SpriteID, X
JSL.l PrepDynamicTile_loot_resolved
@@ -30,6 +31,7 @@ LoadBonkItemGFX:
LoadBonkItemGFX_inner:
LDA.b #$00 : STA.l RedrawFlag
JSR LoadBonkItem
JSL.l AttemptItemSubstitution
JSL.l ResolveLootIDLong
STA.w SpriteItemType, X
STA.w SpriteID, X