zmiana fertilizing
This commit is contained in:
Dominik Małyszka 2020-04-07 17:22:29 +00:00
parent b0154dc37e
commit 8feee67563

View File

@ -8,6 +8,7 @@ class Carrot(Plant):
self._wasFertilized = False #roslina nie byla nawozona przy tworzeniu
self._starttime = datetime.now()
#zwraca czy zbierać rośline
def collect(self):
if self.have_soil():
self.__growing()
@ -18,9 +19,9 @@ class Carrot(Plant):
elif self._collect > 105:
return 'Delete'
#zwraca czy nawozić
def fertillizing(self):
if 30 <= self._collect <= 50:
self._wasFertilized = True
return True
else:
return False