size=medium
output=cornflour
output=blackrootflour

[buildcost]
trunk=3
stone=3
planks=2

[aihints]
build_material=false

[working positions]
miller=1

[inputs]
corn=6
blackroot=6

[programs]
produce_cornflour=_Produce cornflour
produce_blackrootflour=_Produce blackrootflour
work=_Work

[produce_cornflour]
return=skipped when site has blackroot and economy needs blackrootflour and not economy needs cornflour
return=skipped when economy needs corn and not economy needs cornflour
consume=corn
sleep=3500
animate=working 15000
produce=cornflour

[produce_blackrootflour]
return=skipped when site has corn and economy needs cornflour and not economy needs blackrootflour
consume=blackroot
sleep=3500
animate=working 15000
produce=blackrootflour

[work]
call=produce_cornflour
call=produce_blackrootflour
return=skipped

[idle]
pics=mill_i_??.png
hotspot=58 61
playercolor=true

[working]
pics=mill_b_??.png # lets see the mill turn!
hotspot=58 61
playercolor=true
fps=25
