Skip to content

Commit

Permalink
Force Vile's intro check to actually check the intro level was completed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLX5 committed May 24, 2024
1 parent 8c30363 commit 37c9d0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion worlds/mmx/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ async def game_watcher(self, ctx):
collected_pickups_data = await snes_read(ctx, MMX_COLLECTED_PICKUPS, 0x20)
collected_pickups = list(collected_pickups_data)
pickupsanity_enabled = await snes_read(ctx, MMX_PICKUPSANITY_ACTIVE, 0x1)
completed_intro_level = await snes_read(ctx, WRAM_START + 0x01F9B, 0x1)
new_checks = []
for loc_name, data in location_id_to_level_id.items():
loc_id = AutoWorldRegister.world_types[ctx.game].location_name_to_id[loc_name]
Expand Down Expand Up @@ -567,7 +568,10 @@ async def game_watcher(self, ctx):
new_checks.append(loc_id)
elif internal_id == 0x007:
# Intro
if game_state[0] == 0x02 and menu_state[0] == 0x00 and gameplay_state[0] == 0x01:
if game_state[0] == 0x02 and \
menu_state[0] == 0x00 and \
gameplay_state[0] == 0x01 and \
completed_intro_level[0] == 0x04:
new_checks.append(loc_id)
elif internal_id == 0x020:
# Pickups
Expand Down

0 comments on commit 37c9d0e

Please sign in to comment.