wydluzony ttl

This commit is contained in:
Krystian Kabat 2019-05-31 15:13:21 +02:00
parent 7994cc70ae
commit da87e78a6d
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ from Plant import Plant
class Cucumber(Plant):
is_alive = True
ttl = 40
ttl = 2000
hydration = 40
soil_level = 40
dehydration_ratio = 0.8

View File

@ -63,7 +63,7 @@ class Plant():
def decrease_ttl(self, n):
self.ttl -= n
if self.ttl == 0:
self.is_alive == False
self.is_alive = False
def increase_hydration(self, n):

View File

@ -2,7 +2,7 @@ from Plant import Plant
class Tomato(Plant):
is_alive = True
ttl = 38
ttl = 2000
hydration = 41
soil_level = 41
dehydration_ratio = 0.7