Merge branch 'main' into refactor_rename

This commit is contained in:
Chanumask
2023-10-24 14:15:57 +02:00
6 changed files with 66 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ class DoorAutoClose(Rule):
doors_that_ticked = [key for key, val in doors_tick_result.items() if val]
state.print(f'{doors_that_ticked} were auto-closed'
if doors_that_ticked else 'No Doors were auto-closed')
return [TickResult(self.name, validity=c.VALID, value=0)]
return [TickResult(self.name, validity=c.VALID, value=1)]
state.print('There are no doors, but you loaded the corresponding Module')
return []