The Witness: Fix an instance of multiworld.random being used (#2630)

o_o
This commit is contained in:
NewSoupVi 2023-12-28 14:12:37 +01:00 committed by GitHub
parent 7af654e619
commit 8e708f829d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class WitnessWorld(World):
# Pick an early item to place on the tutorial gate. # 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()] early_items = [item for item in self.items.get_early_items() if item in self.items.get_mandatory_items()]
if early_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: if self.options.puzzle_randomization == 1:
# In Expert, only tag the item as early, rather than forcing it onto the gate. # 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 self.multiworld.local_early_items[self.player][random_early_item] = 1