[global]
descname=_Armoursmithy
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=66 61
playercolor=true

[build]
pics=armoursmith_i_??.png
hotspot=66 61
playercolor=true

[working]
pics=armoursmith_i_??.png
hotspot=66 61
playercolor=true

