More HUD fixes

This commit is contained in:
cassidoxa
2023-06-10 22:05:55 -04:00
parent bbd25c2543
commit 389e436b52
4 changed files with 17 additions and 6 deletions

View File

@@ -1380,6 +1380,17 @@ org $0DDFC8
JSR.w RebuildHUD_update
org $0DDB88 ; Don't rebuild HUD twice on icon refresh
NOP #3 ; Not sure why this is here
;--------------------------------------------------------------------------------
org $07A205
JSL.l RebuildHUD_update_long
org $0AEF62
JSL.l RebuildHUD_update_long
;--------------------------------------------------------------------------------
org $0DFFE1
RebuildHUD_update_long:
JSR.w RebuildHUD_update : RTL
warnpc $0E8000
;================================================================================
; 300 Rupee NPC
;--------------------------------------------------------------------------------

View File

@@ -147,10 +147,11 @@ NewHUD_DrawPrizeIcon:
REP #$10
SEP #$20
LDA.b GameMode
CMP.b #$12
BEQ .no_prize
LDA.w DungeonID
CMP.b #$12 : BEQ .no_prize
CMP.b #$0E : BEQ +
LDA.w UpdateHUD : BEQ NewHUD_DrawItemCounter
+
LDA.w DungeonID
CMP.b #$1A : BCS .no_prize
CMP.b #$04 : BCC .no_prize
CMP.b #$08 : BNE .dungeon

View File

@@ -172,7 +172,6 @@ RaiseHudMenu:
RTL
;================================================================================
CheckCloseItemMenu:
INC.w UpdateHUD
LDA.l MenuCollapse : BNE +
LDA.b Joy1A_New : AND.b #$10 : RTL
+
@@ -690,3 +689,4 @@ RestoreMenu_SetSubModule:
+
LDA.b #$03 : STA.w SubModuleInterface
RTL
;-------------------------------------------------------------------------------

View File

@@ -19,7 +19,6 @@ StoreBombCount:
PLA : STA.l BombsEquipment
RTL
SearchForEquippedItem:
INC.w UpdateHUD
LDA.l InfiniteBombs : BEQ +
LDA.b #$01 : LDX.b #$00 : RTL
+