Read map data from bank $B9 in custom map mode

This commit is contained in:
2026-01-07 05:12:07 -06:00
parent 72e126a1b6
commit d5917afb64
11 changed files with 177 additions and 99 deletions

View File

@@ -35,13 +35,13 @@ DrawLoot:
STZ.b $0E
LDX.w DungeonID
LDA.l DungeonMapRoomPointers, X
STA.b $0C
JSL LoadDungeonMapRoomPointer
STA.b $72
SEP #$20
LDA.l DungeonMapFloorCountData, X
AND.b #$0F
CLC : ADC.w $020E
CLC : ADC.w DungeonMapCurrentFloor
PHA
JSR DrawSingleFloorLoot
@@ -130,7 +130,7 @@ DrawSingleFloorLoot:
.next_room
REP #$20
LDA.b ($0C), Y ; get room id
LDA.b [$72], Y ; get room id
PHY
AND.w #$00FF