Witness: Fatal logic bug fix (#837)

* Renamed some event items

* Fatal logic bug: Door panels did not check their symbol items
This commit is contained in:
NewSoupVi 2022-07-28 23:43:35 +02:00 committed by GitHub
parent c02f355479
commit fd6a0b547f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 9 deletions

View File

@ -319,9 +319,9 @@ class WitnessPlayerLogic:
"0x00037": "Monastery Branch Panels Activate",
"0x0A079": "Access to Bunker Laser",
"0x0A3B5": "Door to Tutorial Discard Opens",
"0x00139": "Keep Hedges 2 Turns On",
"0x019DC": "Keep Hedges 3 Turns On",
"0x019E7": "Keep Hedges 4 Turns On",
"0x00139": "Keep Hedges 1 Knowledge",
"0x019DC": "Keep Hedges 2 Knowledge",
"0x019E7": "Keep Hedges 3 Knowledge",
"0x01D3F": "Keep Laser Panel (Pressure Plates) Activates",
"0x09F7F": "Mountain Access",
"0x0367C": "Quarry Laser Mill Requirement Met",

View File

@ -116,12 +116,7 @@ class WitnessLogic(LogicMixin):
valid_option = True
for panel in option:
if panel in player_logic.DOOR_ITEMS_BY_ID:
if all({not self.has(item, player) for item in player_logic.DOOR_ITEMS_BY_ID[panel]}):
valid_option = False
break
elif not self._witness_can_solve_panel(panel, world, player, player_logic, locat):
if not self._witness_can_solve_panel(panel, world, player, player_logic, locat):
valid_option = False
break