AlwaysShowCompass setting

This commit is contained in:
2026-01-04 09:15:10 -06:00
parent fd8852d866
commit f75db2cac8
2 changed files with 24 additions and 15 deletions

View File

@@ -49,9 +49,7 @@ CheckLoot:
CMP.b $0E
BCC +
STA.b $0E
+ LDA.b $0E
BEQ .done
+
LDA.l ItemSources : BIT.w #$0001 : BEQ +
JSR CheckChests
@@ -73,16 +71,6 @@ CheckLoot:
JSR CheckPrize
+
LDA.b $0E
AND.w #$00FF
CMP.w #$0001
BNE .done
LDA.b $02
BEQ .done
LDA.w #$0001
STA.b $02
.done
PLA : STA.b $0E
PLA : STA.b $06
@@ -367,10 +355,28 @@ CheckEnemies:
GetLootClass:
PHX
TAX
CMP.w #$0025 : BEQ .compass
AND.w #$00F0
CMP.w #$0080 : BNE .not_compass
.compass
LDA.l AlwaysShowCompass : BNE .check_value
.not_compass
LDA.b $0E
BEQ .done
CMP.w #$0001
BEQ .value_set
.check_value
LDA.l LootTypeMapping, X
AND.w #$00FF
.value_set
CMP.b $02
BCC +
BCC .done
STA.b $02
+ PLX
.done
PLX
RTS

View File

@@ -184,3 +184,6 @@ org $B9FF10
; c - chests
ItemSources:
db $09
AlwaysShowCompass:
db $01