mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-24 04:11:36 +02:00
Machines
This commit is contained in:
@ -0,0 +1,4 @@
|
||||
from .actions import DestAction
|
||||
from .entitites import Destination
|
||||
from .groups import ReachedDestinations, Destinations
|
||||
from .rules import DestinationDone, DestinationReach, DestinationSpawn
|
||||
|
@ -62,7 +62,7 @@ class DestinationSpawn(Rule):
|
||||
self.n_dests = n_dests
|
||||
self.spawn_mode = spawn_mode
|
||||
|
||||
def on_init(self, state):
|
||||
def on_init(self, state, lvl_map):
|
||||
# noinspection PyAttributeOutsideInit
|
||||
self._dest_spawn_timer = self.spawn_frequency
|
||||
self.trigger_destination_spawn(self.n_dests, state)
|
||||
|
Reference in New Issue
Block a user