[global]
descname=_ War Mill
soundfx=../../../../sound/smiths/smith
soundfx=../../../../sound/smiths/sharpening
type=production
size=medium
buildable=no
buildicon=build.png
worker=master-blacksmith,blacksmith
output=axe
output=sharpaxe
output=broadaxe
output=bronzeaxe
output=battleaxe
output=warriorsaxe
enhanced_building=yes
program=produce_axe
program=produce_sharpaxe
program=produce_broadaxe
program=produce_bronzeaxe
program=produce_battleaxe
program=produce_warriorsaxe
program=work

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

[work]
call=produce_axe
call=produce_sharpaxe
call=produce_broadaxe
call=produce_bronzeaxe
call=produce_battleaxe
call=produce_warriorsaxe
return=skipped

[produce_axe]
return=skipped unless economy needs axe
consume=coal iron
sleep=32000
playFX=../../../../sound/smiths/smith 192
animate=working 25000
playFX=../../../../sound/smiths/sharpening 192
produce=axe

[produce_sharpaxe]
return=skipped unless economy needs sharpaxe
consume=coal iron:2
sleep=32000
playFX=../../../../sound/smiths/smith 192
animate=working 25000
playFX=../../../../sound/smiths/sharpening 192
produce=sharpaxe

[produce_broadaxe]
return=skipped unless economy needs broadaxe
consume=coal:2 iron:2
sleep=32000
playFX=../../../../sound/smiths/smith 192
animate=working 25000
playFX=../../../../sound/smiths/sharpening 192
produce=broadaxe

[produce_bronzeaxe]
return=skipped unless economy needs bronzeaxe
consume=coal:2 iron:2
sleep=32000
playFX=../../../../sound/smiths/smith 192
animate=working 25000
playFX=../../../../sound/smiths/sharpening 192
produce=bronzeaxe

[produce_battleaxe]
return=skipped unless economy needs battleaxe
consume=coal gold iron:2
sleep=32000
playFX=../../../../sound/smiths/smith 192
animate=working 25000
playFX=../../../../sound/smiths/sharpening 192
produce=battleaxe

[produce_warriorsaxe]
return=skipped unless economy needs warriorsaxe
consume=coal:2 gold:2 iron:2
sleep=32000
playFX=../../../../sound/smiths/smith 192
animate=working 25000
playFX=../../../../sound/smiths/sharpening 192
produce=warriorsaxe

[buildcost]
trunk=1
blackwood=1
raw_stone=2
grout=1
thatchreed=1

[idle]
pics=i_??.png  # ???
hotspot=39 60

[build]
pics=i_??.png  # ???
hotspot=39 60

[working]
pics=i_??.png  # ???
hotspot=39 60
