From f75db2cac85ac03315726af7b34a48b84fec27bf Mon Sep 17 00:00:00 2001 From: Kara Alexandra Date: Sun, 4 Jan 2026 09:15:10 -0600 Subject: [PATCH] AlwaysShowCompass setting --- dungeon_map/check_loot.asm | 36 +++++++++++++++++++++--------------- dungeon_map/settings.asm | 3 +++ 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/dungeon_map/check_loot.asm b/dungeon_map/check_loot.asm index bce7e00..17bdc26 100644 --- a/dungeon_map/check_loot.asm +++ b/dungeon_map/check_loot.asm @@ -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 diff --git a/dungeon_map/settings.asm b/dungeon_map/settings.asm index e3cc05e..7a87f52 100644 --- a/dungeon_map/settings.asm +++ b/dungeon_map/settings.asm @@ -184,3 +184,6 @@ org $B9FF10 ; c - chests ItemSources: db $09 + +AlwaysShowCompass: + db $01