mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-07 18:11:35 +02:00
Maintainer and pos_dicts fixed. Are sets now.
This commit is contained in:
marl_factory_grid
algorithms
marl
environment
modules
batteries
clean_up
destinations
doors
factory
maintenance
zones
utils
@ -15,7 +15,7 @@ class DoorUse(Action):
|
||||
# Check if agent really is standing on a door:
|
||||
e = state.entities.get_entities_near_pos(entity.pos)
|
||||
try:
|
||||
# Only one door opens TODO introcude loop
|
||||
# Only one door opens TODO introduce loop
|
||||
door = next(x for x in e if x.name.startswith(d.DOOR))
|
||||
valid = door.use()
|
||||
state.print(f'{entity.name} just used a {door.name} at {door.pos}')
|
||||
|
Reference in New Issue
Block a user