From fd3f7f4513d0ec56e30ea956ed545fb4edc253f1 Mon Sep 17 00:00:00 2001 From: Kara Alexandra Date: Sat, 16 May 2026 21:10:09 -0500 Subject: [PATCH] Fix loothud on door rando transitions --- gk/loot_hud.asm | 20 ++++++++++++++++++++ keydrop/standing_items.asm | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/gk/loot_hud.asm b/gk/loot_hud.asm index 6f9fc3c..943b6e9 100644 --- a/gk/loot_hud.asm +++ b/gk/loot_hud.asm @@ -1,3 +1,23 @@ +pushpc +org $82C0C3 +JSL TransitionLinkOutOfDoorEnding +NOP +pullpc + +ClearLootHUD: + PHP + REP #$20 + LDA.w #!BlankTile : STA.w EnemyDropIndicator + PLP + RTL + +TransitionLinkOutOfDoorEnding: + ; what we wrote over + STZ.w $0418 + INC.b $B0 + +; fall into UpdateLootHUD + UpdateLootHUD: PHP REP #$30 diff --git a/keydrop/standing_items.asm b/keydrop/standing_items.asm index f0ae86e..f3d7758 100644 --- a/keydrop/standing_items.asm +++ b/keydrop/standing_items.asm @@ -360,7 +360,7 @@ ClearSpriteData: STZ.w SprSourceItemId, X : STZ.w SprItemReceipt, X : STZ.w SprItemMWPlayer, X STZ.w SprRedrawFlag, X DEX : BPL .loop - JSL UpdateLootHUD + JSL ClearLootHUD PLX RTL