Bastien Sevajol 9 anni fa
parent
commit
51fa40721f

+ 10 - 3
intelligine/simulation/object/brain/part/move/AntStar/ByPass.py Vedi File

@@ -18,10 +18,17 @@ class ByPass(GlueWallAntBrain):
18 18
         super().__init__(host, home_vector)
19 19
         self._context = context
20 20
         self._object_id = object_id
21
-        self._memory_since_blocked = context.metas.value.get(MOVE_BYBASS_MEMORY, object_id, allow_empty=True,
21
+        self._memory_since_blocked = context.metas.value.get(MOVE_BYBASS_MEMORY,
22
+                                                             object_id,
23
+                                                             allow_empty=True,
22 24
                                                              empty_value=[])
23
-        self._by_passing = context.metas.value.get(MOVE_BYBASS, object_id, allow_empty=True, empty_value=False)
24
-        self._distance_when_blocked = context.metas.value.get(MOVE_BYBASS_DISTANCE, object_id, allow_empty=True,
25
+        self._by_passing = context.metas.value.get(MOVE_BYBASS,
26
+                                                   object_id,
27
+                                                   allow_empty=True,
28
+                                                   empty_value=False)
29
+        self._distance_when_blocked = context.metas.value.get(MOVE_BYBASS_DISTANCE,
30
+                                                              object_id,
31
+                                                              allow_empty=True,
25 32
                                                               empty_value=None)
26 33
         self._current_wall_square_position = context.metas.value.get(MOVE_BYBASS_WALL,
27 34
                                                                      object_id,