Added rounding to the object representation of the food object.
All checks were successful
Build Simulation and Test / Run All Tests (push) Successful in 30s
All checks were successful
Build Simulation and Test / Run All Tests (push) Successful in 30s
This commit is contained in:
parent
9a8217a034
commit
56415bb07a
@ -151,4 +151,4 @@ class FoodObject(BaseEntity):
|
|||||||
|
|
||||||
:return: String representation.
|
:return: String representation.
|
||||||
"""
|
"""
|
||||||
return f"FoodObject({self.position}, decay={self.decay}, decay_rate={self.decay_rate * (1 + (self.neighbors / 10))})"
|
return f"FoodObject({self.position}, decay={self.decay:.0f}, decay_rate={self.decay_rate * (1 + (self.neighbors / 10))})"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user