|
@@ -1,3 +1,4 @@
|
|
1
|
+from intelligine.synergy.object.Food import Food
|
1
|
2
|
from synergine.core.Core import Core
|
2
|
3
|
from intelligine.core.exceptions import CantFindWhereToPut
|
3
|
4
|
from intelligine.cst import MODE_EXPLO, TYPE_RESOURCE_EXPLOITABLE, CARRIED, MODE_NURSE, TYPE_NURSERY, \
|
|
@@ -65,4 +66,5 @@ class AntPutBrainPart(TransportBrainPart):
|
65
|
66
|
|
66
|
67
|
def done(self, puted_object):
|
67
|
68
|
# TODO: lancer le choix d'un nouveau mode dans le brain.
|
68
|
|
- self._host.get_brain().switch_to_mode(MODE_EXPLO)
|
|
69
|
+ if isinstance(puted_object, Food):
|
|
70
|
+ self._host.get_brain().switch_to_mode(MODE_EXPLO)
|