上传文件
This commit is contained in:
1 parent
d24531851a
commit
9ae55bcc64
12 files changed
+2529
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import config
|
||||
def Plant():
|
||||
for x in range(get_world_size()):
|
||||
for y in range(get_world_size()):
|
||||
if get_entity_type() != None:
|
||||
if can_harvest():
|
||||
harvest()
|
||||
if get_ground_type() != Grounds.Soil:
|
||||
till()
|
||||
plant(Entities.Sunflower)
|
||||
if get_water() < config.waterpercent:
|
||||
use_item(Items.Water)
|
||||
else:
|
||||
if get_ground_type() != Grounds.Soil:
|
||||
till()
|
||||
plant(Entities.Sunflower)
|
||||
if get_water() < config.waterpercent:
|
||||
use_item(Items.Water)
|
||||
move(North)
|
||||
move(East)
|
||||
for a in range(14):
|
||||
for x in range(get_world_size()):
|
||||
for y in range(get_world_size()):
|
||||
if measure() == 15-a:
|
||||
harvest()
|
||||
move(North)
|
||||
if a > 8:
|
||||
break
|
||||
move(East)
|
||||
if a > 8:
|
||||
break
|
||||
Reference in new issue
Block a user