Zork Grand Inquisitor: Precollect Start with Hotspot Items in deterministic order (#4412)

This commit is contained in:
Mysteryem 2024-12-31 14:16:29 +00:00 committed by GitHub
parent 3c9270d802
commit 6e59ee2926
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class ZorkGrandInquisitorWorld(World):
if start_with_hotspot_items:
item: ZorkGrandInquisitorItems
for item in items_with_tag(ZorkGrandInquisitorTags.HOTSPOT):
for item in sorted(items_with_tag(ZorkGrandInquisitorTags.HOTSPOT), key=lambda item: item.name):
self.multiworld.push_precollected(self.create_item(item.value))
def create_item(self, name: str) -> ZorkGrandInquisitorItem: