AIProjekt/Podprojekt_s444426/beetroot_upgrade.py
2020-06-09 15:28:02 +02:00

26 lines
701 B
Python

from plant_upgrade import Plant
from datetime import datetime
class Beetroot(Plant):
def __init__(self, collect):
super().__init__('beetroot', collect)
self._wasFertilized = False # roslina nie byla nawozona przy tworzeniu
# zwraca czy zbierać rośline
def collect(self):
if self.have_soil():
if self._collect < 95:
return 'False'
elif 95 <= self._collect <= 115:
return 'True'
elif self._collect > 115:
return 'Delete'
# zwraca czy nawozić
def fertillizing(self):
if 35 <= self._collect <= 50:
return True
else:
return False