wydluzony ttl
This commit is contained in:
parent
7994cc70ae
commit
da87e78a6d
@ -2,7 +2,7 @@ from Plant import Plant
|
|||||||
|
|
||||||
class Cucumber(Plant):
|
class Cucumber(Plant):
|
||||||
is_alive = True
|
is_alive = True
|
||||||
ttl = 40
|
ttl = 2000
|
||||||
hydration = 40
|
hydration = 40
|
||||||
soil_level = 40
|
soil_level = 40
|
||||||
dehydration_ratio = 0.8
|
dehydration_ratio = 0.8
|
||||||
|
2
Plant.py
2
Plant.py
@ -63,7 +63,7 @@ class Plant():
|
|||||||
def decrease_ttl(self, n):
|
def decrease_ttl(self, n):
|
||||||
self.ttl -= n
|
self.ttl -= n
|
||||||
if self.ttl == 0:
|
if self.ttl == 0:
|
||||||
self.is_alive == False
|
self.is_alive = False
|
||||||
|
|
||||||
|
|
||||||
def increase_hydration(self, n):
|
def increase_hydration(self, n):
|
||||||
|
Loading…
Reference in New Issue
Block a user