Fix HUD to show prize, key count, and compass count if seen by player
This commit is contained in:
@@ -180,12 +180,14 @@ DrHudDungeonItemsAdditions:
|
|||||||
lda.l DungeonReminderTable, x : sta.w $1644, y
|
lda.l DungeonReminderTable, x : sta.w $1644, y
|
||||||
iny #2
|
iny #2
|
||||||
lda.w #$24f5 : sta.w $1644, y ; blank out map spot
|
lda.w #$24f5 : sta.w $1644, y ; blank out map spot
|
||||||
lda.l MapField : and.l DungeonMask, x : beq + ; must have map
|
lda.l MapField : ora.l MapCountDisplay : ora.l MapOverlay
|
||||||
|
and.l DungeonMask, x : beq + ; must have map
|
||||||
JSR MapIndicatorShort : STA.w $1644, Y
|
JSR MapIndicatorShort : STA.w $1644, Y
|
||||||
+ iny #2
|
+ iny #2
|
||||||
cpx.w #$001a : bne +
|
cpx.w #$001a : bne +
|
||||||
tya : !ADD.w #$003c : tay
|
tya : !ADD.w #$003c : tay
|
||||||
+ lda.l CompassField : and.l DungeonMask, x : beq + ; must have compass
|
+ lda.l CompassField : ora.l CompassCountDisplay
|
||||||
|
and.l DungeonMask, x : beq + ; must have compass
|
||||||
phx ; total chest counts
|
phx ; total chest counts
|
||||||
LDA.l CompassTotalsWRAM, x : !SUB.l DungeonLocationsChecked, x
|
LDA.l CompassTotalsWRAM, x : !SUB.l DungeonLocationsChecked, x
|
||||||
SEP #$30 : JSR HudHexToDec2DigitCopy : REP #$30
|
SEP #$30 : JSR HudHexToDec2DigitCopy : REP #$30
|
||||||
|
|||||||
@@ -1210,7 +1210,7 @@ MaybeFlagDungeonTotalsEntrance:
|
|||||||
LDA.l CompassMode : AND.w #$000F : BEQ .maps ; Skip if we're not showing compass counts
|
LDA.l CompassMode : AND.w #$000F : BEQ .maps ; Skip if we're not showing compass counts
|
||||||
JSR FlagCompassCount
|
JSR FlagCompassCount
|
||||||
.maps
|
.maps
|
||||||
; LDA.l MapHUDMode : AND.w #$000F : BEQ .done
|
LDA.l MapHUDMode : AND.w #$000F
|
||||||
LDX.w DungeonID
|
LDX.w DungeonID
|
||||||
JSR FlagMapCount
|
JSR FlagMapCount
|
||||||
.done
|
.done
|
||||||
@@ -1225,7 +1225,7 @@ FlagCompassCount:
|
|||||||
RTS
|
RTS
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
FlagMapCount:
|
FlagMapCount:
|
||||||
; CMP.w #$0002 : BEQ .mapShown
|
CMP.w #$0002 : BEQ .mapShown
|
||||||
LDA.l MapMode : AND.w #$00FF : BEQ .mapShown
|
LDA.l MapMode : AND.w #$00FF : BEQ .mapShown
|
||||||
LDA.l MapField : AND.l DungeonItemMasks, X : BEQ .done ; skip if we don't have map
|
LDA.l MapField : AND.l DungeonItemMasks, X : BEQ .done ; skip if we don't have map
|
||||||
.mapShown
|
.mapShown
|
||||||
|
|||||||
Reference in New Issue
Block a user