Fix sprite array crashing yaml_output

Fix "Torches" toggle misname
This commit is contained in:
Fabian Dill
2020-10-07 20:19:31 +02:00
parent b5d91af752
commit 0157294383
2 changed files with 10 additions and 8 deletions

View File

@@ -127,7 +127,7 @@ def add_rule(spot, rule, combine='and'):
def add_lamp_requirement(world: World, spot, player: int, has_accessible_torch: bool = False):
if world.dark_room_logic[player] == "lamp":
add_rule(spot, lambda state: state.has('Lamp', player))
elif world.dark_room_logic[player] == "torch": # implicitly lamp as well
elif world.dark_room_logic[player] == "torches": # implicitly lamp as well
if has_accessible_torch:
add_rule(spot, lambda state: state.has('Lamp', player) or state.has('Fire Rod', player))
else: