[global]
descname=_ Armour Smithy
type=production
size=medium
buildable=yes
buildicon=build.png
worker=armoursmith
output=helm
output=armour
output=chain_armour
output=plate_armour

program=produce_helm
program=produce_armour
program=produce_chain_armour
program=produce_plate_armour
program=work

[buildcost]
trunk=2
stone=2
marble=2
marblecolumn=3

[inputs]
iron=8
gold=8
coal=8
cloth=8

[work]
call=produce_helm
call=produce_armour
call=produce_chain_armour
call=produce_plate_armour
sleep=20000
return=skipped

[produce_helm]
return=skipped unless economy needs helm
consume=iron coal
sleep=32000
animate=working 35000
produce=helm

[produce_armour]
return=skipped unless economy needs armour
consume=iron coal cloth
sleep=32000
animate=working 45000
produce=armour

[produce_chain_armour]
return=skipped unless economy needs chain_armour
consume=iron:2 coal cloth
sleep=32000
animate=working 45000
produce=chain_armour

[produce_plate_armour]
return=skipped unless economy needs plate_armour
consume=iron:2 coal:2 cloth gold
sleep=32000
animate=working 45000
produce=plate_armour

[idle]
pics=i_??.png  # ???
hotspot=68 56

[build]
pics=b_??.png  # ???
hotspot=68 56

[working]
pics=w_??.png  # ???
hotspot=68 56
