From 7e9ed1bcf84bbfae7fd992d9736fb453da43e90a Mon Sep 17 00:00:00 2001 From: jamesbrq Date: Fri, 19 Apr 2024 16:31:09 -0400 Subject: [PATCH] Update Rom.py --- worlds/mlss/Rom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/mlss/Rom.py b/worlds/mlss/Rom.py index c88e754b53e0..ab4a0b9a1ddd 100644 --- a/worlds/mlss/Rom.py +++ b/worlds/mlss/Rom.py @@ -78,7 +78,7 @@ def randomize_music(caller: APProcedurePatch, rom: bytes): if stream.tell() == 0x21CBD8: stream.seek(4, 1) continue - if stream.tell() == 0x21CC3C: + if stream.tell() >= 0x21CC3C: break temp = stream.read(4) songs.append(temp) @@ -153,7 +153,7 @@ def enemy_randomize(caller: APProcedurePatch, rom: bytes): stream = io.BytesIO(rom) random.seed(options["seed"] + options["player"]) - if (options["randomize_bosses"] == 1 or (options["randomize_bosses"] == 2) and options["randomize_enemies"] == 0): + if options["randomize_bosses"] == 1 or (options["randomize_bosses"] == 2) and options["randomize_enemies"] == 0: raw = [] for pos in bosses: stream.seek(pos + 1)