From 1d713864f3208d5116a007a9e5d6f577684e8010 Mon Sep 17 00:00:00 2001 From: JakubStac Date: Sun, 24 Mar 2024 16:12:50 +0100 Subject: [PATCH] Bug fix --- source/plant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/plant.py b/source/plant.py index 1488bd0..30deb91 100644 --- a/source/plant.py +++ b/source/plant.py @@ -13,7 +13,7 @@ class Plant: if (water >= self.water_requirements) and (nutrients >= self.nutrients_requirements): i = random.randint(5, 12) if self.growth_level+i > 100: - i = self.growth_level - 100 + i = 100 - self.growth_level self.growth_level += i # more properties