From 539d2e80f1eff44cdbfb8263d179d316141b05c4 Mon Sep 17 00:00:00 2001 From: espeon65536 Date: Sat, 3 Sep 2022 10:02:20 -0500 Subject: [PATCH] OoT: prevent glitched + mq dungeons this combo is not allowed on main ootr, so we won't have it here either --- worlds/oot/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/worlds/oot/__init__.py b/worlds/oot/__init__.py index a9b7d5a1..b65882c8 100644 --- a/worlds/oot/__init__.py +++ b/worlds/oot/__init__.py @@ -190,7 +190,11 @@ class OOTWorld(World): # Determine which dungeons are MQ # Possible future plan: allow user to pick which dungeons are MQ - mq_dungeons = self.world.random.sample(dungeon_table, self.mq_dungeons) + if self.logic_rules == 'glitchless': + mq_dungeons = self.world.random.sample(dungeon_table, self.mq_dungeons) + else: + self.mq_dungeons = 0 + mq_dungeons = [] self.dungeon_mq = {item['name']: (item in mq_dungeons) for item in dungeon_table} # Determine tricks in logic