From 56def59f58c82513e8a76f34b2a8c20bac7782a6 Mon Sep 17 00:00:00 2001 From: codemann8 Date: Wed, 20 Mar 2024 17:34:12 -0500 Subject: [PATCH] Fix invisible powder item --- inventory.asm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inventory.asm b/inventory.asm index 0a04ffd..3622781 100644 --- a/inventory.asm +++ b/inventory.asm @@ -594,7 +594,11 @@ RTL DrawPowder: ;LDA.w ItemReceiptPose : BNE .defer ; defer if link is buying a potion LDA.w SprRedrawFlag, X : BEQ + - JML LoadPowder_justGFX + LDA.w SprSourceItemId, X + JSL AttemptItemSubstitution + JSL ResolveLootIDLong + STA.l PowderFlag + JML RequestStandingItemVRAMSlot_resolved + ; this fights with the shopkeep code, so had to move the powder draw there when potion shop is custom ; LDA.l ShopType : CMP.b #$FF : BNE .defer