Witness: Fix Python 3.11 crash and fix Desert Laser hint (#1970)

This commit is contained in:
NewSoupVi 2023-07-18 10:18:42 +02:00 committed by GitHub
parent 8c5688e5e2
commit 48746f6c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -141,9 +141,8 @@ def get_priority_hint_items(multiworld: MultiWorld, player: int):
}
if is_option_enabled(multiworld, player, "shuffle_lasers"):
lasers = {
lasers = [
"Symmetry Laser",
"Desert Laser",
"Town Laser",
"Keep Laser",
"Swamp Laser",
@ -153,14 +152,14 @@ def get_priority_hint_items(multiworld: MultiWorld, player: int):
"Quarry Laser",
"Bunker Laser",
"Shadows Laser",
}
]
if get_option_value(multiworld, player, "doors") >= 2:
if get_option_value(multiworld, player, "shuffle_doors") >= 2:
priority.add("Desert Laser")
lasers.remove("Desert Laser")
priority.update(multiworld.per_slot_randoms[player].sample(lasers, 5))
else:
lasers.append("Desert Laser")
priority.update(multiworld.per_slot_randoms[player].sample(lasers, 6))
return priority