mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Fix sprite array crashing yaml_output
Fix "Torches" toggle misname
This commit is contained in:
2
Rules.py
2
Rules.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user