Skip to content

Commit

Permalink
The Witness: Fix an instance of multiworld.random being used (Archipe…
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi authored and Jouramie committed Feb 28, 2024
1 parent 18ca586 commit 0b6acb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/witness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def create_regions(self):
# Pick an early item to place on the tutorial gate.
early_items = [item for item in self.items.get_early_items() if item in self.items.get_mandatory_items()]
if early_items:
random_early_item = self.multiworld.random.choice(early_items)
random_early_item = self.random.choice(early_items)
if self.options.puzzle_randomization == 1:
# In Expert, only tag the item as early, rather than forcing it onto the gate.
self.multiworld.local_early_items[self.player][random_early_item] = 1
Expand Down

0 comments on commit 0b6acb1

Please sign in to comment.