Initial total item count HUD

Initial 100% item collection Ganon vulnerability
This commit is contained in:
cassidoxa
2023-06-05 15:05:31 -04:00
parent 23ecf41b33
commit 878536903e
3 changed files with 59 additions and 1 deletions

View File

@@ -39,6 +39,8 @@ CheckGanonVulnerability:
dw .crystals_and_bosses
dw .bosses_only
dw .all_dungeons_no_agahnim
dw .all_items
dw .all_items_all_dungeons
; 00 = always vulnerable
.vulnerable
@@ -92,6 +94,21 @@ CheckGanonVulnerability:
.bosses_only
JMP CheckForCrystalBossesDefeated
; 09 = 100% item collection rate
.all_items
REP #$20
LDA.l TotalItemCounter : CMP.l TotalItemCount
SEP #$20
RTS
; 0A = 100% item collection rate and all dungeons
.all_items_all_dungeons
REP #$20
LDA.l TotalItemCounter : CMP.l TotalItemCount
SEP #$20
BCC .fail
BRA .all_dungeons
;--------------------------------------------------------------------------------
GetRequiredCrystalsForTower:
BEQ + : JSL.l BreakTowerSeal_ExecuteSparkles : + ; thing we wrote over