Browse Source

appose pheromone when take food

Bastien Sevajol 9 years ago
parent
commit
9c645f3079
1 changed files with 1 additions and 0 deletions
  1. 1 0
      intelligine/synergy/object/ant/Ant.py

+ 1 - 0
intelligine/synergy/object/ant/Ant.py View File

47
         if isinstance(obj, Food):
47
         if isinstance(obj, Food):
48
             self.get_brain().switch_to_mode(MOVE_MODE_GOHOME)
48
             self.get_brain().switch_to_mode(MOVE_MODE_GOHOME)
49
             self.set_last_pheromone_point(PHEROMON_DIR_EXPLO, obj.get_position())
49
             self.set_last_pheromone_point(PHEROMON_DIR_EXPLO, obj.get_position())
50
+            self.get_movement_pheromone_gland().appose()
50
 
51
 
51
     def is_carrying(self):
52
     def is_carrying(self):
52
         if len(self._carried):
53
         if len(self._carried):