Skip to content

Commit b41702b

Browse files
committed
Fix for non-hexagon quest runs
1 parent 80780b8 commit b41702b

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

worlds/tunic/__init__.py

+17-11
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,23 @@ def create_items(self):
8080
else:
8181
pass
8282

83-
if self.multiworld.hexagon_quest[self.player].value and item_name == "Gold Hexagon":
84-
if self.multiworld.keys_behind_bosses[self.player].value:
85-
for location in hexagon_locations.values():
86-
self.multiworld.get_location(location, self.player)\
87-
.place_locked_item(self.create_item("Gold Hexagon"))
88-
item_data.quantity_in_item_pool = 27
89-
90-
for i in range(0, item_data.quantity_in_item_pool):
91-
items.append(self.create_item(item_name))
92-
# adding a money x1 to even out the pool with this option
93-
items.append(self.create_item("Money x1"))
83+
if item_name == "Gold Hexagon":
84+
# if hexagon quest is on, add the gold hexagons in
85+
if self.multiworld.hexagon_quest[self.player].value:
86+
# if keys are behind bosses, place 3 manually
87+
if self.multiworld.keys_behind_bosses[self.player].value:
88+
for location in hexagon_locations.values():
89+
self.multiworld.get_location(location, self.player)\
90+
.place_locked_item(self.create_item("Gold Hexagon"))
91+
item_data.quantity_in_item_pool = item_data.quantity_in_item_pool - 3
92+
93+
for i in range(0, item_data.quantity_in_item_pool):
94+
items.append(self.create_item(item_name))
95+
# adding a money x1 to even out the pool with this option
96+
items.append(self.create_item("Money x1"))
97+
else:
98+
# if not doing hexagon quest, just skip the gold hexagons
99+
continue
94100
elif self.multiworld.hexagon_quest[self.player].value and \
95101
("Pages" in item_name or item_name in ["Red Hexagon", "Green Hexagon", "Blue Hexagon"]):
96102
continue

0 commit comments

Comments
 (0)