[global]
descname=_Ferner
help=Grows flax and thatchreed
type=generic
menu_pic=menu.png
program=plantflax
program=plantreed
program=harvestflax
program=harvestreed

[buildcost]
carrier=1
shovel=1

[plantflax]
0=setdescription tribe:flax0
1=findspace size:any radius:1
2=walk coords
3=animation idle 500 # Play a planting animation
4=plant
5=animation idle 500
6=return

[plantreed]
0=setdescription tribe:reed0
1=findspace size:any radius:1
2=walk coords
3=animation idle 500 # Play a planting animation
4=plant
5=animation idle 500
6=return

[harvestflax]
0=findobject attrib:grown_flax radius:1
1=walk object
2=animation idle 10000
3=object harvest
4=animation idle 2000
5=createitem flax
6=return

[harvestreed]
0=findobject attrib:grown_reed radius:1
1=walk object
2=animation idle 10000
3=object harvest
4=animation idle 2000 # wait for the tree to disappear
5=createitem thatchreed
6=return

[idle]
pics=idle_??.png
hotspot=5 13

[walk]
dirpics=walk_!!_??.png
hotspot=5 13

[walkload]
dirpics=walk_!!_??.png
hotspot=5 13
