[global]
descname=_"Armoursmith"
type=production
size=medium
buildable=yes
buildicon=armoursmith_build.png
worker=armoursmith
output=advanced_shield
output=steel_shield
program=produce_s_shield
program=produce_a_shield
program=work

[buildcost]
trunk=2
stone=2
planks=2
quartz=1

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

[work]
call=produce_s_shield
call=produce_a_shield
return=skipped

[produce_s_shield]
return=skipped unless economy needs steel_shield
sleep=32000
consume=iron:2 coal:2
animate=working 35000
produce=steel_shield

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

[idle]
pics=armoursmith_i_??.png
hotspot=68 56

[build]
pics=armoursmith_i_??.png
hotspot=68 56

[working]
pics=armoursmith_i_??.png
hotspot=68 56
