[global]
descname=_ Metalworks
type=production
size=medium
buildable=yes
buildicon=metalworks_build.png
worker=blacksmith
output=bakingtray
output=fire_tongs
output=fishing_rod
output=hammer
output=kitchen_tools
output=pick
output=scythe
output=shovel
output=hunting_spear
enhances_to=axefactory
program=work
program=produce_bakingtray
program=produce_fire_tongs
program=produce_fishing_rod
program=produce_hammer
program=produce_kitchen_tools
program=produce_pick
program=produce_scythe
program=produce_shovel
program=produce_hunting_spear

[inputs]
iron=8
trunk=8

[work]
0=set +nostats
1=call produce_bakingtray
2=call produce_fire_tongs
3=call produce_fishing_rod
4=call produce_hammer
5=call produce_kitchen_tools
6=call produce_pick
7=call produce_scythe
8=call produce_shovel
9=call produce_hunting_spear

[produce_bakingtray]
0=set +catch
1=sleep 32000
2=check trunk
3=check iron
4=consume iron
5=consume trunk
6=animation working 35000
7=produce bakingtray

[produce_fire_tongs]
0=set +catch
1=sleep 32000
2=check trunk
3=check iron
4=consume iron
5=consume trunk
6=animation working 35000
7=produce fire_tongs

[produce_fishing_rod]
0=set +catch
1=sleep 32000
2=check trunk
3=check iron
4=consume iron
5=consume trunk
6=animation working 35000
7=produce fishing_rod

[produce_hammer]
0=set +catch
1=sleep 32000
2=check trunk
3=check iron
4=consume iron
5=consume trunk
6=animation working 35000
7=produce hammer

[produce_kitchen_tools]
0=set +catch
1=sleep 32000
2=check trunk
3=check iron
4=consume iron
5=consume trunk
6=animation working 35000
7=produce kitchen_tools

[produce_pick]
0=set +catch
1=sleep 32000
2=check trunk
3=check iron
4=consume iron
5=consume trunk
6=animation working 35000
7=produce pick

[produce_scythe]
0=set +catch
1=sleep 32000
2=check trunk
3=check iron
4=consume iron
5=consume trunk
6=animation working 35000
7=produce scythe

[produce_shovel]
0=set +catch
1=sleep 32000
2=check trunk
3=check iron
4=consume iron
5=consume trunk
6=animation working 35000
7=produce shovel

[produce_hunting_spear]
0=set +catch
1=sleep 32000
2=check trunk
3=check iron
4=consume iron
5=consume trunk
6=animation working 35000
7=produce hunting_spear

[buildcost]
trunk=2
raw_stone=2
grindstone=1
thatchreed=1

[idle]
pics=metalworks_i_??.png
hotspot=40 54

[build]
pics=metalworks_i_??.png
hotspot=40 54

[working]
pics=metalworks_i_??.png
hotspot=40 54
