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

This commit is contained in:
Sam 2025-06-03 20:41:20 -05:00
parent 9a8217a034
commit 56415bb07a

View File

@ -151,4 +151,4 @@ class FoodObject(BaseEntity):
: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))})"