Maintainer and pos_dicts fixed. Are sets now.

This commit is contained in:
Steffen Illium
2023-11-10 14:16:48 +01:00
parent 6711a0976b
commit 9b289591ba
22 changed files with 100 additions and 131 deletions

View File

@@ -40,6 +40,6 @@ class IndicateDoorAreaInObservation(Rule):
# Could then be combined with the "Combine"-approach.
super().__init__()
def on_init(self, state, lvl_map):
def on_reset(self, state, lvl_map):
for door in state[d.DOORS]:
state[d.DOORS].add_items([DoorIndicator(x) for x in state.entities.neighboring_positions(door.pos)])