[global]
descname=Axefactory

type=production		# basic type (warehouse, production, military)
size=medium
buildable=no 
buildicon=build.png
worker=blacksmith
output=axe
output=sharpaxe
output=broadaxe
enhanced_building=yes
enhances_to=Warmill
program=work
program=produce_axe
program=produce_sharpaxe
program=produce_broadaxe

[inputs]
iron=8
coal=8

[work]
0=set +nostats
1=call produce_axe
2=call produce_sharpaxe
3=call produce_broadaxe

[produce_axe]
0=set +catch
1=sleep 32000
2=check coal 
3=check iron
4=consume iron
5=consume coal
6=animation working 25000
7=produce axe 

[produce_sharpaxe]
0=set +catch
1=sleep 32000
2=check coal 
3=check iron 2
4=consume iron 2
5=consume coal 
6=animation working 25000
7=produce sharpaxe 

[produce_broadaxe]
0=set +catch
1=sleep 32000
2=check coal 2 
3=check iron 2
4=consume iron 2
5=consume coal 2
6=animation working 25000
7=produce broadaxe


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

[idle]
pics=i_??.png  # ???
hot_spot_x=40
hot_spot_y=40
clrkey_r=255
clrkey_g=255
clrkey_b=0
shadowclr_r=255
shadowclr_g=0
shadowclr_b=0

[build]
pics=i_??.png  # ???
hot_spot_x=40
hot_spot_y=40
clrkey_r=255
clrkey_g=255
clrkey_b=0
shadowclr_r=255
shadowclr_g=0
shadowclr_b=0

[working]
pics=i_??.png  # ???
hot_spot_x=40
hot_spot_y=40
clrkey_r=255
clrkey_g=255
clrkey_b=0
shadowclr_r=255
shadowclr_g=0
shadowclr_b=0

