[global]
descname=_"Crystal Mine"
type=production
size=mine
buildable=yes
buildicon=crystalmine_build.png
worker=miner,miner,miner
program=mine_stone
program=mine_quartz
program=mine_diamond
program=work
output=diamond
output=quartz
output=stone
stopable=yes

[inputs]
bread=6
smoked_fish=6
smoked_meat=6

[work]
call=mine_stone
call=mine_quartz
call=mine_diamond
return=skipped

[mine_stone]
consume=smoked_fish,smoked_meat:2 bread:2
sleep=45000
animate=working 20000
mine=granit 4 100 5
produce=stone:2
animate=working 20000
mine=granit 4 100 5
produce=stone:2
animate=working 20000
mine=granit 4 100 5
produce=stone
mine=granit 4 100 5
produce=quartz

[mine_quartz]
consume=smoked_fish,smoked_meat:2 bread:2
sleep=45000
animate=working 20000
mine=granit 4 100 5
produce=stone:2
animate=working 20000
mine=granit 4 100 5
produce=stone quartz
animate=working 20000
mine=granit 4 100 5
produce=quartz:2

[mine_diamond]
consume=smoked_fish,smoked_meat:2 bread:2
sleep=45000
animate=working 20000
mine=granit 4 100 5
produce=diamond
animate=working 20000
mine=granit 4 100 5
produce=diamond
animate=working 20000
mine=granit 4 100 5
produce=stone

[buildcost]
trunk=7
planks=4
spidercloth=1

[idle]
pics=crystalmine_i_??.png
hotspot=51 55
playercolor=true

[working]
pics=crystalmine_i_??.png
hotspot=51 55
playercolor=true

[build]
pics=crystalmine_i_??.png
hotspot=51 55
playercolor=true
