mirror of
https://github.com/jcreek/TheFarmerWasReplaced.git
synced 2026-07-12 18:43:47 +00:00
feat(*): Add hay
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import helpers
|
||||
|
||||
def till_and_plant():
|
||||
if get_ground_type() != Grounds.Grassland:
|
||||
till()
|
||||
if get_entity_type() == Entities.Grass:
|
||||
helpers.harvest_if_possible()
|
||||
|
||||
def harvest_hay():
|
||||
for x in range(get_world_size()):
|
||||
for y in range(get_world_size()):
|
||||
till_and_plant()
|
||||
move(North)
|
||||
move(East)
|
||||
Reference in New Issue
Block a user