[global]
descname=_"Mill"
type=production
size=medium
buildable=yes
buildicon=mill_build.png
worker=miller
program=produce_cornflour
program=produce_blackrootflour
program=work
output=cornflour
output=blackrootflour
stopable=yes

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

[inputs]
corn=6
blackroot=6

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

[produce_cornflour]
return=skipped unless economy needs cornflour
consume=corn
sleep=3500
animate=working 15000
produce=cornflour

[produce_blackrootflour]
return=skipped unless economy needs blackrootflour
consume=blackroot
sleep=3500
animate=working 15000
produce=blackrootflour

[idle]
pics=mill_i_??.png
hotspot=64 59
playercolor=true

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

[build]
pics=mill_i_??.png
hotspot=64 59
playercolor=true
