add eon abyss map progression checks

This commit is contained in:
scawful
2024-07-03 20:25:24 -04:00
parent 0d3124981d
commit 19ac208ecc

View File

@@ -50,7 +50,21 @@ MapIconDraw:
.draw_prizes
LDA.b $8A : AND.b #$40 : BEQ .lwprizes
; TODO: Place the pendant positions
; TODO: Draw the pendants and master sword based on progression
LDA.l OOSPROG : AND.b #$10 : BNE .check_master_sword
.check_master_sword
; TODO: Draw the master sword on the light world
LDA.l OOSPROG : AND.b #$20 : BNE .check_fortress
.check_fortress
LDA.l OOSPROG : AND.b #$40 : BNE .check_final_boss
.check_final_boss
AND.b #$80 : BNE .exit_dw
; This is a skull icon, use this for the fortress or final boss?
; X position
LDA.b #$00 : STA.l $7EC10B
LDA.b #$89 : STA.l $7EC10A ; Upper nybble control Zoomed low X pos
@@ -65,7 +79,7 @@ MapIconDraw:
LDA.b #$0E : STA.l $7EC025 ; OAM Slot used
JSR HandleMapDrawIcon
.exit_dw
JMP restore_coords_and_exit
.lwprizes
@@ -278,6 +292,8 @@ FixMaskPaletteOnExit:
RTL
}
warnpc $0AC387
org $0ABC76
JSL FixMaskPaletteOnExit