[global]
descname=_"Labyrinth"
type=training
size=big
buildable=yes
buildicon=labyrinth_build.png
worker=carrier
max_soldiers=8
train=defense,hp,evade
program=Sleep
program=upgrade_defense_0 # This is needed to run the scripts
program=upgrade_defense_1
program=upgrade_hp_0
program=upgrade_evade_0
program=upgrade_evade_1

[Sleep]
sleep=5000

[defense]
min_level=0
max_level=1

[hp]
min_level=0
max_level=0

[evade]
min_level=0
max_level=1

[upgrade_defense_0]
check_soldier=defense 0 # Fails when aren't any soldier of level 0 defense
sleep=30000
check_soldier=defense 0 # Because the soldier can be expulsed by the player
consume=bread smoked_fish,smoked_meat steel_shield
train=defense 0 1

[upgrade_defense_1]
check_soldier=defense 1 # Fails when aren't any soldier of level 1 defense
sleep=30000
check_soldier=defense 1 # Because the soldier can be expulsed by the player
consume=bread smoked_fish,smoked_meat advanced_shield
train=defense 1 2

[upgrade_hp_0]
check_soldier=hp 0 # Fails when aren't any soldier of level 0 hp
sleep=30000
check_soldier=hp 0 # Because the soldier can be expulsed by the player
consume=smoked_fish,smoked_meat:2 golden_tabard
train=hp 0 1

[upgrade_evade_0]
check_soldier=evade 0 # Fails when aren't any soldier of level 0 evade
sleep=30000
check_soldier=evade 0 # Because the soldier can be expulsed by the player
consume=bread smoked_fish,smoked_meat:2
train=evade 0 1

[upgrade_evade_1]
check_soldier=evade 1 # Fails when aren't any soldier of level 1 evade
sleep=30000
check_soldier=evade 1 # Because the soldier can be expulsed by the player
consume=bread
consume=smoked_fish,smoked_meat:2
train=evade 1 2

[inputs]
bread=10
smoked_fish=6
smoked_meat=6
steel_shield=4
advanced_shield=4
golden_tabard=5


[buildcost]
trunk=3
stone=4
planks=5
spidercloth=5
diamond=2
quartz=2

[idle]
pics=labyrinth_i_??.png  # ???
hotspot=82 88
playercolor=true

[working]
pics=labyrinth_i_??.png  # ???
hotspot=82 88
playercolor=true

[build]
pics=labyrinth_i_??.png  # ???
hotspot=82 88
playercolor=true

