adjust food benefit
All checks were successful
Build Simulation and Test / Run All Tests (push) Successful in 1m3s
All checks were successful
Build Simulation and Test / Run All Tests (push) Successful in 1m3s
This commit is contained in:
parent
bce07db40e
commit
b775813cbd
@ -300,7 +300,7 @@ class DefaultCell(BaseEntity):
|
||||
distance_to_food = get_distance_between_objects(self, food_object)
|
||||
|
||||
if distance_to_food < self.max_visual_width and food_objects:
|
||||
self.energy += 110
|
||||
self.energy += 130
|
||||
food_object.flag_for_death()
|
||||
return self
|
||||
|
||||
@ -350,7 +350,7 @@ class DefaultCell(BaseEntity):
|
||||
|
||||
movement_cost = abs(output_data["angular_acceleration"]) + abs(output_data["linear_acceleration"])
|
||||
|
||||
self.energy -= (self.behavioral_model.neural_network.network_cost * 0.1) + 1 + (0.2 * movement_cost)
|
||||
self.energy -= (self.behavioral_model.neural_network.network_cost * 0.1) + 1.2 + (0.15 * movement_cost)
|
||||
|
||||
return self
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user