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 JSR.w RebuildHUD_update
org $0DDB88 ; Don't rebuild HUD twice on icon refresh org $0DDB88 ; Don't rebuild HUD twice on icon refresh
NOP #3 ; Not sure why this is here 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 ; 300 Rupee NPC
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------

View File

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

View File

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

View File

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