Skip to content

Commit

Permalink
Add options to set all door or item flags
Browse files Browse the repository at this point in the history
  • Loading branch information
idlechild committed Oct 27, 2024
1 parent 0f7dfc2 commit c1ffc47
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/mainmenu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2316,6 +2316,9 @@ EventsMenu:
dw #events_resetdoors
dw #events_resetitems
dw #$FFFF
dw #events_setdoors
dw #events_setitems
dw #$FFFF
dw #events_goto_bosses
dw #$FFFF
dw #events_zebesawake
Expand Down Expand Up @@ -2367,6 +2370,32 @@ events_resetitems:
%sfxreset()
RTL

events_setdoors:
%cm_jsl("Set All Doors", .routine, #$0000)
.routine
PHP : %ai8()
LDX #$B0
LDA #$FF
.loop
STA $7ED800,X
INX : CPX #$D0 : BNE .loop
PLP
%sfxreset()
RTL

events_setitems:
%cm_jsl("Set All Items", .routine, #$0000)
.routine
PHP : %ai8()
LDX #$70
LDA #$FF
.loop
STA $7ED800,X
INX : CPX #$90 : BNE .loop
PLP
%sfxreset()
RTL

events_goto_bosses:
%cm_submenu("Bosses", #BossesMenu)

Expand Down

0 comments on commit c1ffc47

Please sign in to comment.