SoE: fix determinism (#3745)

Fixes randomly placed ingredients not being deterministic (depending on settings)
and in turn also fixes logic not being deterministic if they get replaced by fragments.
This commit is contained in:
black-sliver 2024-08-10 13:08:24 +02:00 committed by GitHub
parent a6f376b02e
commit 9dba39b606
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -188,6 +188,7 @@ class SoEWorld(World):
connect_name: str
_halls_ne_chest_names: typing.List[str] = [loc.name for loc in _locations if 'Halls NE' in loc.name]
_fillers = sorted(item_name_groups["Ingredients"])
def __init__(self, multiworld: "MultiWorld", player: int):
self.connect_name_available_event = threading.Event()
@ -469,7 +470,7 @@ class SoEWorld(World):
multidata["connect_names"][self.connect_name] = payload
def get_filler_item_name(self) -> str:
return self.random.choice(list(self.item_name_groups["Ingredients"]))
return self.random.choice(self._fillers)
class SoEItem(Item):