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