13 lines
330 B
Python
13 lines
330 B
Python
class FarmAgent:
|
|
def __init__(self, name, module):
|
|
self.name = name
|
|
self._module = module
|
|
|
|
@staticmethod
|
|
def get_manual():
|
|
return "Инструкция: pH 6.0"
|
|
|
|
def harvest(self):
|
|
ready = [c for c in self._module.cultures if c._stage == "Красный"]
|
|
return len(ready)
|