22 lines
391 B
Python
22 lines
391 B
Python
|
def Sunflower():
|
||
|
field = field_plant_grid(get_world_size(), 0)
|
||
|
|
||
|
for cell in field:
|
||
|
goto(cell)
|
||
|
better_plant(Entities.Sunflower)
|
||
|
field[cell] = measure()
|
||
|
|
||
|
m = 15
|
||
|
while field:
|
||
|
delete = []
|
||
|
for cell in field:
|
||
|
if field[cell] == m:
|
||
|
goto(cell)
|
||
|
harvest()
|
||
|
delete.append(cell)
|
||
|
for d in delete:
|
||
|
field.pop(d)
|
||
|
m -= 1
|
||
|
|
||
|
while num_items(Items.Power) < 10000:
|
||
|
Sunflower()
|