Potential fix for weird bonk item dupe onto other standing items

This commit is contained in:
codemann8
2024-04-21 00:50:38 -05:00
parent 0d84af814a
commit 50895c1ac2
2 changed files with 12 additions and 16 deletions

View File

@@ -563,10 +563,9 @@ LoadPowder:
JSL Sprite_SpawnDynamically ; thing we wrote over
.justGFX
LDA.l WitchItem_Player : STA.w SprItemMWPlayer, Y : STA.l !MULTIWORLD_SPRITEITEM_PLAYER_ID
LDA.w SprSourceItemId, Y : BNE +
%GetPossiblyEncryptedItem(WitchItem, SpriteItemValues)
STA.w SprSourceItemId, Y
+ JSL AttemptItemSubstitution
%GetPossiblyEncryptedItem(WitchItem, SpriteItemValues)
STA.w SprSourceItemId, Y
JSL AttemptItemSubstitution
JSL ResolveLootIDLong
STA.l PowderFlag
PHX : TYX : PLY
@@ -617,10 +616,9 @@ LoadMushroom:
PHA
INC.w SkipBeeTrapDisguise
LDA.l MushroomItem_Player : STA.w SprItemMWPlayer : STA.l !MULTIWORLD_SPRITEITEM_PLAYER_ID
LDA.w SprSourceItemId, X : BNE +
%GetPossiblyEncryptedItem(MushroomItem, SpriteItemValues)
STA.w SprSourceItemId, X
+ JSL RequestStandingItemVRAMSlot
%GetPossiblyEncryptedItem(MushroomItem, SpriteItemValues)
STA.w SprSourceItemId, X
JSL RequestStandingItemVRAMSlot
PLA
RTL
;--------------------------------------------------------------------------------