This commit is contained in:
JakubStac 2024-03-24 16:12:50 +01:00
parent 6e3e042a93
commit 1d713864f3

View File

@ -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