From bb521371fa4dd9e1502554dea09ffdd7c5bee9e0 Mon Sep 17 00:00:00 2001 From: Bnenne Date: Tue, 3 Jun 2025 22:26:11 -0500 Subject: [PATCH] Food now grows, the chance to graw is dependent on the decay rate. The lower the decay rate, the higher the chance to grow. This helps keep the food from growing exponentially. --- world/render_objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/world/render_objects.py b/world/render_objects.py index 4620387..65f9fb0 100644 --- a/world/render_objects.py +++ b/world/render_objects.py @@ -129,10 +129,10 @@ class FoodObject(BaseEntity): grow_chance = chance_to_grow(self.decay_rate * (1 + (self.neighbors / 10))) - print(grow_chance) + # print(grow_chance) if chance(grow_chance): - print("Growing") + # print("Growing") duplicate_x, duplicate_y = self.position.get_position() duplicate_x += random.randint(-self.interaction_radius, self.interaction_radius) duplicate_y += random.randint(-self.interaction_radius, self.interaction_radius)