[global]
descname=_ Weaponsmith
type=production
size=big
buildable=yes
buildicon=weaponsmith_build.png
worker=weaponsmith
output=wood_lance
output=lance
output=advanced_lance
output=heavy_lance
output=war_lance

program=work
program=produce_wood_lance
program=produce_lance
program=produce_advanced_lance
program=produce_heavy_lance
program=produce_war_lance

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

[work]
0=set +nostats
1=call produce_wood_lance
2=call produce_lance
3=call produce_advanced_lance
4=call produce_heavy_lance
5=call produce_war_lance

[produce_wood_lance]
0=set +catch
1=sleep 20000
2=check wood
3=consume wood
4=animation working 30000
5=produce wood_lance


[produce_lance]
0=set +catch
1=sleep 32000
2=check iron
3=check coal
4=check wood
5=consume iron
6=consume coal
7=consume wood
8=animation working 45000
9=produce lance


[produce_advanced_lance]
0=set +catch
1=sleep 32000
2=check iron 2
3=check coal
4=check wood
5=consume iron 2
6=consume coal
7=consume wood
8=animation working 45000
9=produce advanced_lance

[produce_heavy_lance]
0=set +catch
1=sleep 32000
2=check iron
3=check coal 2
4=check wood
5=check gold
6=consume iron
7=consume coal 2
8=consume wood
9=consume gold
10=animation working 45000
11=produce heavy_lance

[produce_war_lance]
0=set +catch
1=sleep 32000
2=check iron 2
3=check coal 2
4=check wood
5=check gold
6=consume iron 2
7=consume coal 2
8=consume wood
9=consume gold
10=animation working 45000
11=produce war_lance


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

[idle]
pics=weaponsmith_i_??.png  # ???
hotspot=55 80

[build]
pics=weaponsmith_i_??.png  # ???
hotspot=55 80

[working]
pics=weaponsmith_i_??.png  # ???
hotspot=55 80
