D.M.
zmiana fertilizing
This commit is contained in:
parent
b0154dc37e
commit
8feee67563
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user