fertilization
This commit is contained in:
parent
f2468f7555
commit
1a7a106dee
@ -193,11 +193,19 @@ class Tractor:
|
||||
if type(plant) == Tomato:
|
||||
if plant.hydration < 50:
|
||||
plant.increase_hydration(plant.max_hydration_lvl - plant.hydration)
|
||||
|
||||
elif type(plant) == Cucumber:
|
||||
if plant.hydration < 40:
|
||||
plant.increase_hydration(plant.max_hydration_lvl - plant.hydration)
|
||||
|
||||
def fertilization(self, plant):
|
||||
if type(plant) == Tomato:
|
||||
if plant.soil_level < 50:
|
||||
plant.increase_soillevel(plant.max_soil_lvl - plant.soil_level)
|
||||
|
||||
elif type(plant) == Cucumber:
|
||||
if plant.soil_level < 40:
|
||||
plant.increase_soillevel(plant.max_soil_lvl - plant.soil_level)
|
||||
|
||||
async def service(self):
|
||||
"tutaj trzeba zapytac env z jakimi roslinami sie styka traktor i je obsłuzyc"
|
||||
|
Loading…
Reference in New Issue
Block a user