;############################################################
;########################  TESTW 2.0  #######################
;############################################################
;###################### CORE BUILDINGS ######################
;######################### STABLES ##########################
;######################### BARRACKS  ########################
;########################## MISSILES ########################
;#########################  SIEGE  ##########################
;######################  MAGES GUILD  #######################
;####################  FIGHTERS GUILDS  #####################
;###################### SILT STRIDERS #######################
;#########################  SMITHS  #########################
;########################  ECONOMY  #########################
;######################  POPULATION  ########################
;##################  RELIGION BUILDINGS  ####################
;####################### MISCELANEOUS #######################
;################ FACTION SPECIFIC BUILDINGS ################
;#################### UNIQUE BUILDINGS ######################
;################ POCKET GUIDE TO THE EMPIRE ################
;######################## CITY HALLS ########################
;############################################################


;Hidden resources limit: 64
;Current resources number: 51


hidden_resources crusade cyrodiil skyrim ebonheart imperial_city high_rock hammerfell ab_gor alikr falinesty morrowind necrom armigers telvanni redoran ashland dres tenmar elsweyr anequina bosmer alinor rimmen black lilmoth mguild roads farms vvarden novvarden reach aldmeri blackwood mountains wildhunt maormeri vraseth montalion selenu khulari thrafey lyrezi garlythi iliac_bay clockwork_city dagoth_ur hr_none horses big_city no_pirates no_brigands

;############################################################
;###################### CORE BUILDINGS ######################
;############################################################
building core_building
{
    levels wooden_pallisade wooden_wall stone_wall large_stone_wall huge_stone_wall 
    {
        wooden_pallisade city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                wall_level 0
                tower_level 1
                free_upkeep bonus 1
                happiness_bonus bonus 1
                recruitment_slots 1
		recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1
		law_bonus bonus 8 requires event_counter is_the_ai 1
		;income_bonus bonus 100 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min village
            upgrades
            {
                wooden_wall
            }
        }
        wooden_wall city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                wall_level 1
                gate_strength 1
                tower_level 1
                free_upkeep bonus 2
                happiness_bonus bonus 1
                recruitment_slots 2
		recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1
		law_bonus bonus 8 requires event_counter is_the_ai 1
		;income_bonus bonus 200 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 2 requires event_counter is_the_ai 1
            }
            material wooden
            construction  2 
            cost  1200 
            settlement_min town
            upgrades
            {
                stone_wall
            }
        }
        stone_wall city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                wall_level 2
                tower_level 1
                gate_strength 1
                free_upkeep bonus 3
                happiness_bonus bonus 1
                recruitment_slots 2
		recruits_morale_bonus bonus 3 requires event_counter is_the_ai 1
		law_bonus bonus 8 requires event_counter is_the_ai 1
		;income_bonus bonus 300 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 3 requires event_counter is_the_ai 1
            }
            material stone
            construction  3 
            cost  2400 
            settlement_min large_town
            upgrades
            {
                large_stone_wall
            }
        }
        large_stone_wall city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                wall_level 3
                tower_level 1
                gate_strength 2
                free_upkeep bonus 4
                happiness_bonus bonus 2
                recruitment_slots 2
		recruits_morale_bonus bonus 3 requires event_counter is_the_ai 1
		law_bonus bonus 9 requires event_counter is_the_ai 1
		;income_bonus bonus 400 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 4 requires event_counter is_the_ai 1
            }
            material stone
            construction  3 
            cost  4800 
            settlement_min city
            upgrades
            {
                huge_stone_wall
            }
        }
        huge_stone_wall city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, }  and hidden_resource big_city
        {
            capability
            {
                wall_level 4
                tower_level 1
                gate_strength 2
                free_upkeep bonus 5
                happiness_bonus bonus 3
                recruitment_slots 3
		recruits_morale_bonus bonus 3 requires event_counter is_the_ai 1
		law_bonus bonus 10 requires event_counter is_the_ai 1
		;income_bonus bonus 500 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 4 requires event_counter is_the_ai 1
            }
            material stone
            construction  4 
            cost  9600 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building core_castle_building
{
    levels motte_and_bailey wooden_castle castle fortress citadel 
    {
        motte_and_bailey castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                wall_level 0
                tower_level 1
                free_upkeep bonus 1
                law_bonus bonus 1
                recruitment_slots 1
		recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1
		law_bonus bonus 8 requires event_counter is_the_ai 1
		;income_bonus bonus 100 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min village
            upgrades
            {
                wooden_castle
            }
        }
        wooden_castle castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                wall_level 1
                gate_strength 1
                free_upkeep bonus 2
                tower_level 1
                law_bonus bonus 2
                recruitment_slots 1
		recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1
		law_bonus bonus 8 requires event_counter is_the_ai 1
		;income_bonus bonus 200 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 2 requires event_counter is_the_ai 1
            }
            material wooden
            construction  2 
            cost  1200 
            settlement_min village
            upgrades
            {
                castle
            }
        }
        castle castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                wall_level 2
                tower_level 1
                gate_strength 1
                free_upkeep bonus 3
                law_bonus bonus 3
                recruitment_slots 2
		recruits_morale_bonus bonus 3 requires event_counter is_the_ai 1
		law_bonus bonus 8 requires event_counter is_the_ai 1
		;income_bonus bonus 300 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 3 requires event_counter is_the_ai 1
            }
            material stone
            construction  3 
            cost  2400 
            settlement_min town
            upgrades
            {
                fortress
            }
        }
        fortress castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                wall_level 3
                tower_level 1
                gate_strength 2
                free_upkeep bonus 4
                law_bonus bonus 4
                recruitment_slots 2
		recruits_morale_bonus bonus 3 requires event_counter is_the_ai 1
		law_bonus bonus 9 requires event_counter is_the_ai 1
		;income_bonus bonus 400 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 4 requires event_counter is_the_ai 1
            }
            material stone
            construction  3 
            cost  4800 
            settlement_min large_town
            upgrades
            {
                citadel
            }
        }
        citadel castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, }  and hidden_resource big_city
        {
            capability
            {
                wall_level 4
                tower_level 1
                gate_strength 2
                free_upkeep bonus 4
                law_bonus bonus 5
                recruitment_slots 3
		recruits_morale_bonus bonus 3 requires event_counter is_the_ai 1
		law_bonus bonus 10 requires event_counter is_the_ai 1
		;income_bonus bonus 500 requires event_counter is_the_ai 1
		construction_cost_bonus_stone bonus 50 requires event_counter is_the_ai 1
		construction_cost_bonus_wooden bonus 50 requires event_counter is_the_ai 1
		taxable_income_bonus 50 requires event_counter is_the_ai 1			;used only for correct display of construction bonus
		trade_base_income_bonus bonus 4 requires event_counter is_the_ai 1
            }
            material stone
            construction  4 
            cost  9600 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;###########################################
;###########################################
;###########################################
building tower
{
    convert_to castle_tower
    levels ballista_towers cannon_towers 
    {
        ballista_towers city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            convert_to 0
            capability
            {
                tower_level 2
            }
            material stone
            construction  4 
            cost  4500 
            settlement_min large_city
            upgrades
            {
                cannon_towers
            }
        }
        cannon_towers city requires factions { slave, }
        {
            convert_to 1
            capability
            {
                tower_level 3
            }
            material stone
            construction  6 
            cost  8000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_tower
{
    convert_to tower
    levels c_ballista_towers c_cannon_towers 
    {
        c_ballista_towers castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, normans, papal_states, slave, hre, custom, } 
        {
            convert_to 0
            capability
            {
                tower_level 2
            }
            material stone
            construction  4 
            cost  4200 
            settlement_min city
            upgrades
            {
                c_cannon_towers
            }
        }
        c_cannon_towers castle requires factions { slave, }
        {
            convert_to 1
            capability
            {
                tower_level 3
            }
            material stone
            construction  6 
            cost  8000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;######################### STABLES ##########################
;############################################################
building equestrian
{
    levels stables knights_stables barons_stables earls_stables 
    {
        stables requires factions { aztecs, england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Townguard Lancers"  1   0.2   1  0  requires factions { england, }  and hidden_resource horses
                recruit_pool "Aitk Lancers"  1   0.2   1  0  requires factions { scotland, }  and hidden_resource horses
                recruit_pool "Patrol"  1   0.2   1  0  requires factions { papal_states, }  and hidden_resource horses
                recruit_pool "Rg Nomad Knights"  1   0.2   1  0  requires factions { moors, spain, }  and hidden_resource horses
                recruit_pool "Rg Cavalry"  1   0.2   1  0  requires factions { spain, }  and hidden_resource horses
                recruit_pool "High Rock Knights"  1   0.2   1  0  requires factions { venice, mongols, }  and hidden_resource horses
                recruit_pool "Aldmeri Cavalry"  1   0.2   1  0  requires factions { byzantium, }  and hidden_resource horses
                recruit_pool "Anequina Guard Cavalry"  1   0.2   1  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Anequina Sench Bowmen"  1   0.2   1  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Pelletine Guard Cavalry"  1   0.2   1  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Pelletine Sench Bowmen"  1   0.2   1  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Argonian Cavalry"  1   0.2   1  0  requires factions { russia, }  and hidden_resource horses
                recruit_pool "Hlaalu Cavalry"  1   0.2   1  0  requires factions { sicily, }  and hidden_resource morrowind
                recruit_pool "Redoran Watchers"  1   0.2   1  0  requires factions { poland, }  and hidden_resource redoran
                recruit_pool "Telvanni Cavalry"  1   0.2   1  0  requires factions { hungary, }  and hidden_resource morrowind
                recruit_pool "Dres Cavalry"  1   0.2   1  0  requires factions { timurids, }  and hidden_resource morrowind
                recruit_pool "Ordinator Cavalry"  1   0.2   1  0  requires factions { milan, }  and hidden_resource morrowind
                recruit_pool "Ashland Watchers"  1   0.2   1  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Dunmer Cavalry"  1   0.2   1  0  requires factions { normans, }  and hidden_resource morrowind
                recruit_pool "Valenwood Cavalry"  1   0.2   1  0  requires factions { byzantium, france, }  and hidden_resource horses
		trade_base_income_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  2 
            cost  1200 
            settlement_min town
            upgrades
            {
                knights_stables
            }
        }
        knights_stables requires factions { aztecs, england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Townguard Lancers"  1   0.2   2  0  requires factions { england, }  and hidden_resource horses
                recruit_pool "Aitk Lancers"  1   0.2   2  0  requires factions { scotland, }  and hidden_resource horses
                recruit_pool "Patrol"  1   0.2   2  0  requires factions { papal_states, }  and hidden_resource horses
                recruit_pool "Stormcloack Horsearchers"  1   0.2   1  0  requires factions { papal_states, }  and hidden_resource horses
                recruit_pool "Alikr Warriors"  1   0.2   1  0  requires factions { moors, spain, }  and hidden_resource alikr
                recruit_pool "Rg Nomad Knights"  1   0.2   1  0  requires factions { moors, spain, }  and hidden_resource horses
                recruit_pool "Rg Cavalry"  1   0.2   1  0  requires factions { spain, }  and hidden_resource horses
                recruit_pool "High Rock Knights"  1   0.2   1  0  requires factions { venice, mongols, }  and hidden_resource horses
                recruit_pool "Wayrest Cavalry"  1   0.2   1  0  requires factions { mongols, }  and hidden_resource high_rock
                recruit_pool "Aldmeri Cavalry"  1   0.2   1  0  requires factions { byzantium, }  and hidden_resource horses
                recruit_pool "Aldmeri Heavy Cavalry"  1   0.2   1  0  requires factions { byzantium, }  and hidden_resource horses
                recruit_pool "Anequina Guard Cavalry"  1   0.2   2  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Anequina Sench Bowmen"  1   0.2   1  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Anequina Spearmen Cavalry"  1   0.2   1  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Pelletine Guard Cavalry"  1   0.2   2  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Pelletine Sench Bowmen"  1   0.2   1  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Argonian Cavalry"  1   0.2   1  0  requires factions { russia, }  and hidden_resource horses
                recruit_pool "Hlaalu Cavalry"  1   0.2   2  0  requires factions { sicily, }  and hidden_resource morrowind
                recruit_pool "Hlaalu Cavalry Archers"  1   0.2   1  0  requires factions { sicily, }  and hidden_resource morrowind
                recruit_pool "Redoran Watchers"  1   0.2   1  0  requires factions { poland, }  and hidden_resource redoran
                recruit_pool "Telvanni Cavalry"  1   0.2   2  0  requires factions { hungary, }  and hidden_resource morrowind
                recruit_pool "Dres Cavalry"  1   0.2   2  0  requires factions { timurids, }  and hidden_resource morrowind
                recruit_pool "Ordinator Cavalry"  1   0.2   1  0  requires factions { milan, }  and hidden_resource morrowind
                recruit_pool "Ashland Watchers"  1   0.2   1  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Ashland Cavalry"  1   0.2   1  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Dunmer Cavalry"  1   0.2   2  0  requires factions { normans, }  and hidden_resource morrowind
                recruit_pool "Sadras Cavalry"  1   0.2   1  0  requires factions { normans, }  and hidden_resource morrowind
                recruit_pool "Valenwood Cavalry"  1   0.2   1  0  requires factions { byzantium, france, }  and hidden_resource horses
                recruit_pool "Wood Sench"  1   0.2   1  0  requires factions { france, }  and hidden_resource bosmer
		trade_base_income_bonus bonus 1 requires event_counter is_the_ai 1
                cavalry_bonus 1
            }
            material wooden
            construction  3 
            cost  2400 
            settlement_min large_town
            upgrades
            {
                barons_stables
            }
        }
        barons_stables requires factions { aztecs, england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Townguard Lancers"  1   0.4   2  0  requires factions { england, }  and hidden_resource horses
                recruit_pool "Legion Cavalry"  1   0.2   1  0  requires factions { england, }  and hidden_resource horses and event_counter legion_england_obl 1
                recruit_pool "Elite Cavalry"  1   0.2   1  0  requires factions { england, }  and hidden_resource horses and event_counter legion_england_sky 1
                recruit_pool "Aitk Lancers"  1   0.4   2  0  requires factions { scotland, }  and hidden_resource horses
                recruit_pool "Nordplate Cavalry"  1   0.2   1  0  requires factions { scotland, }  and hidden_resource horses
                recruit_pool "Patrol"  1   0.4   2  0  requires factions { papal_states, }  and hidden_resource horses
                recruit_pool "Stormcloack Horsearchers"  1   0.2   2  0  requires factions { papal_states, }  and hidden_resource horses
                recruit_pool "Alikr Warriors"  1   0.2   2  0  requires factions { moors, spain, }  and hidden_resource alikr
                recruit_pool "Rg Nomad Knights"  1   0.2   2  0  requires factions { moors, spain, }  and hidden_resource horses
                recruit_pool "Rg Cavalry"  1   0.2   2  0  requires factions { spain, }  and hidden_resource horses
                recruit_pool "Crowned Knights"  1   0.2   1  0  requires factions { spain, }  and hidden_resource horses
                recruit_pool "Knights of the True Horn"  1   0.2   1  0  requires factions { spain, }  and hidden_resource hammerfell
                recruit_pool "Knights of the Horn"  1   0.2   1  0  requires factions { moors, }  and hidden_resource hammerfell
                recruit_pool "Abibon-Gorah Knights"  1   0.2   1  0  requires factions { moors, spain, }  and hidden_resource ab_gor
                recruit_pool "High Rock Knights"  1   0.2   2  0  requires factions { venice, mongols, }  and hidden_resource horses
                recruit_pool "Daggerfall Lances"  1   0.2   1  0  requires factions { venice, }  and hidden_resource high_rock
                recruit_pool "Wayrest Cavalry"  1   0.2   1  0  requires factions { mongols, }  and hidden_resource high_rock
                recruit_pool "Aldmeri Cavalry"  1   0.2   2  0  requires factions { byzantium, }  and hidden_resource horses
                recruit_pool "Aldmeri Heavy Cavalry"  1   0.2   2  0  requires factions { byzantium, }  and hidden_resource horses
                recruit_pool "Anequina Guard Cavalry"  1   0.2   2  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Anequina Sench Bowmen"  1   0.2   2  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Anequina Spearmen Cavalry"  1   0.2   1  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Desert Raiders"  1   0.2   1  0  requires factions { egypt, }  and hidden_resource anequina
                recruit_pool "Pelletine Guard Cavalry"  1   0.2   2  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Pelletine Sench Bowmen"  1   0.2   2  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Argonian Cavalry"  1   0.2   2  0  requires factions { russia, }  and hidden_resource horses
                recruit_pool "Argonian Cav Javelinmen"  1   0.2   1  0  requires factions { russia, }  and hidden_resource horses
                recruit_pool "Hlaalu Cavalry"  1   0.2   2  0  requires factions { sicily, }  and hidden_resource morrowind
                recruit_pool "Hlaalu Cavalry Archers"  1   0.2   2  0  requires factions { sicily, }  and hidden_resource morrowind
                recruit_pool "Redoran Watchers"  1   0.2   2  0  requires factions { poland, }  and hidden_resource redoran
                recruit_pool "Redoran Cavalry"  1   0.2   2  0  requires factions { poland, }  and hidden_resource morrowind
                recruit_pool "Telvanni Cavalry"  1   0.2   2  0  requires factions { hungary, }  and hidden_resource morrowind
                recruit_pool "Dres Cavalry"  1   0.2   2  0  requires factions { timurids, }  and hidden_resource morrowind
                recruit_pool "Ordinator Cavalry"  1   0.2   2  0  requires factions { milan, }  and hidden_resource morrowind
                recruit_pool "Ashland Watchers"  1   0.2   2  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Ashland Cavalry"  1   0.2   2  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Dunmer Cavalry"  1   0.4   2  0  requires factions { normans, }  and hidden_resource morrowind
                recruit_pool "Sadras Cavalry"  1   0.2   2  0  requires factions { normans, }  and hidden_resource morrowind
                recruit_pool "Sadras Cavalry Archers"  1   0.2   1  0  requires factions { normans, }  and hidden_resource morrowind
                recruit_pool "Valenwood Cavalry"  1   0.2   1  0  requires factions { byzantium, france, }  and hidden_resource horses
                recruit_pool "Wood Sench"  1   0.2   1  0  requires factions { france, }  and hidden_resource bosmer
                recruit_pool "Wood Cavalry"  1   0.2   1  0  requires factions { france, }  and hidden_resource horses
		trade_base_income_bonus bonus 1 requires event_counter is_the_ai 1
                cavalry_bonus 2
            }
            material wooden
            construction  4 
            cost  4800 
            settlement_min city
            upgrades
            {
                earls_stables
            }
        }
        earls_stables requires factions { aztecs, england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Townguard Lancers"  1   0.4   3  0  requires factions { england, }  and hidden_resource horses
                recruit_pool "Legion Cavalry"  1   0.2   2  0  requires factions { england, }  and hidden_resource horses and event_counter legion_england_obl 1
                recruit_pool "Elite Cavalry"  1   0.2   2  0  requires factions { england, }  and hidden_resource horses and event_counter legion_england_sky 1
                recruit_pool "Aitk Lancers"  1   0.2   2  0  requires factions { scotland, }  and hidden_resource horses
                recruit_pool "Nordplate Cavalry"  1   0.2   1  0  requires factions { scotland, }  and hidden_resource horses
                recruit_pool "Patrol"  1   0.4   3  0  requires factions { papal_states, }  and hidden_resource horses
                recruit_pool "Stormcloack Horsearchers"  1   0.4   2  0  requires factions { papal_states, }  and hidden_resource horses
                recruit_pool "Mounted Nobles"  1   0.2   1  0  requires factions { papal_states, }  and hidden_resource horses
                recruit_pool "Alikr Warriors"  1   0.2   2  0  requires factions { moors, spain, }  and hidden_resource alikr
                recruit_pool "Rg Cavalry"  1   0.2   3  0  requires factions { spain, }  and hidden_resource horses
                recruit_pool "Rg Nomad Knights"  1   0.2   3  0  requires factions { moors, spain, }  and hidden_resource horses
                recruit_pool "Crowned Knights"  1   0.2   2  0  requires factions { spain, }  and hidden_resource horses
                recruit_pool "Katafractaries"  1   0.2   1  0  requires factions { spain, }  and hidden_resource hammerfell
                recruit_pool "Knights of the True Horn"  1   0.2   1  0  requires factions { spain, }  and hidden_resource hammerfell
                recruit_pool "Knights of the Horn"  1   0.2   1  0  requires factions { moors, }  and hidden_resource hammerfell
                recruit_pool "High Rock Knights"  1   0.2   2  0  requires factions { venice, mongols, }  and hidden_resource horses
                recruit_pool "Daggerfall Lances"  1   0.2   1  0  requires factions { venice, }  and hidden_resource high_rock
                recruit_pool "Knights of the Dragon"  1   0.2   1  0  requires factions { venice, }  and hidden_resource high_rock
                recruit_pool "Wayrest Cavalry"  1   0.2   1  0  requires factions { mongols, }  and hidden_resource high_rock
                recruit_pool "Knights of the Rose"  1   0.2   2  0  requires factions { mongols, }  and hidden_resource high_rock
                recruit_pool "Aldmeri Cavalry"  1   0.2   3  0  requires factions { byzantium, }  and hidden_resource horses
                recruit_pool "Aldmeri Heavy Cavalry"  1   0.2   2  0  requires factions { byzantium, }  and hidden_resource horses
                recruit_pool "Griffon"  1   0.1   1  0  requires factions { byzantium, }  and hidden_resource aldmeri
                recruit_pool "Anequina Guard Cavalry"  1   0.2   3  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Anequina Sench Bowmen"  1   0.2   3  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Anequina Spearmen Cavalry"  1   0.2   2  0  requires factions { egypt, }  and hidden_resource elsweyr
                recruit_pool "Desert Bowmen"  1   0.2   1  0  requires factions { egypt, }  and hidden_resource anequina
                recruit_pool "Desert Raiders"  1   0.2   2  0  requires factions { egypt, }  and hidden_resource anequina
                recruit_pool "Pelletine Guard Cavalry"  1   0.2   3  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Pelletine Sench Bowmen"  1   0.2   3  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Argonian Cavalry"  1   0.2   3  0  requires factions { russia, }  and hidden_resource horses
                recruit_pool "Argonian Cav Javelinmen"  1   0.2   2  0  requires factions { russia, }  and hidden_resource horses
                recruit_pool "Hlaalu Cavalry"  1   0.2   3  0  requires factions { sicily, }  and hidden_resource morrowind
                recruit_pool "Hlaalu Cavalry Archers"  1   0.2   3  0  requires factions { sicily, }  and hidden_resource morrowind
                recruit_pool "Redoran Watchers"  1   0.2   3  0  requires factions { poland, }  and hidden_resource redoran
                recruit_pool "Redoran Cavalry"  1   0.2   3  0  requires factions { poland, }  and hidden_resource morrowind
                recruit_pool "Telvanni Cavalry"  1   0.2   3  0  requires factions { hungary, }  and hidden_resource morrowind
                recruit_pool "Dres Cavalry"  1   0.2   3  0  requires factions { timurids, }  and hidden_resource morrowind
                recruit_pool "Ordinator Cavalry"  1   0.2   2  0  requires factions { milan, }  and hidden_resource morrowind
                recruit_pool "Ashland Watchers"  1   0.2   2  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Ashland Cavalry"  1   0.2   2  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Dunmer Cavalry"  1   0.4   3  0  requires factions { normans, }  and hidden_resource morrowind
                recruit_pool "Sadras Cavalry"  1   0.4   2  0  requires factions { normans, }  and hidden_resource morrowind
                recruit_pool "Sadras Cavalry Archers"  1   0.2   2  0  requires factions { normans, }  and hidden_resource morrowind
                recruit_pool "Valenwood Cavalry"  1   0.2   2  0  requires factions { byzantium, france, }  and hidden_resource horses
                recruit_pool "Valenwood Warriors Cav"  1   0.2   1  0  requires factions { france, }  and hidden_resource bosmer
                recruit_pool "Wood Sench"  1   0.2   1  0  requires factions { france, }  and hidden_resource bosmer
                recruit_pool "Wood Cavalry"  1   0.2   2  0  requires factions { france, }  and hidden_resource horses
                recruit_pool "Wood Cavalry"  1   0.2   2  0  requires factions { byzantium, }  and hidden_resource horses and event_counter bosmer_byzantium 1
		trade_base_income_bonus bonus 1 requires event_counter is_the_ai 1
                cavalry_bonus 3
                heavy_cavalry_bonus bonus 1
            }
            material wooden
            construction  5 
            cost  9600 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;######################### BARRACKS  ########################
;############################################################
building barracks
{
    levels town_watch town_guard city_watch militia_drill_square 
    {
        town_watch requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Townguard Swordsmen"  1   0.2   1  0  requires factions { england, } 
                recruit_pool "Townguard Spearmen"  1   0.2   1  0  requires factions { england, } 
                recruit_pool "Arrow in the Knee Sw"  1   0.2   1  0  requires factions { scotland, } 
                recruit_pool "Arrow in the Knee Th"  1   0.2   1  0  requires factions { scotland, } 
                recruit_pool "Unblooded"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Stormcloacks Sw"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Rg Nomad Swordsmen"  1   0.2   1  0  requires factions { spain, moors, } 
                recruit_pool "Rg Warriors"  1   0.2   1  0  requires factions { spain, moors, } 
                recruit_pool "BE Townguard Billmen"  1   0.2   1  0  requires factions { mongols, venice, } 
                recruit_pool "BE Townguard Swordsmen"  1   0.2   1  0  requires factions { mongols, venice, } 
                recruit_pool "Valenwood Swordsmen"  1   0.2   1  0  requires factions { byzantium, france, } 
                recruit_pool "Valenwood Spearmen"  1   0.5   2  0  requires factions { byzantium, } 
                recruit_pool "Elsweyr Peasant Spearmen"  1   0.2   1  0  requires factions { egypt, turks, } 
                recruit_pool "Argonian Militia"  1   0.2   1  0  requires factions { russia, } 
                recruit_pool "Argonian Lumbermen"  1   0.2   1  0  requires factions { russia, } 
                recruit_pool "Danmer Militia"  1   0.2   1  0  requires factions { sicily, poland, hungary, timurids, milan, aztecs, normans, } 
                recruit_pool "Dres Light Swordsmen"  1   0.2   1  0  requires factions { timurids, } 
                recruit_pool "Wrothgarian Orcs"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Stronghold Militia"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Mithic Dawn Soldier"  1   0.5   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff"  1   0.5   2  0  requires factions { hre, } 
                recruit_pool "Zombies"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Skeletons"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Dreamers"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                recruit_pool "Dreamers"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                law_bonus bonus 1
                recruitment_slots 1
;                free_upkeep bonus 20  requires factions { spain, moors, } 
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                town_guard
            }
        }
        town_guard requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Townguard Swordsmen"  1   0.2   2  0  requires factions { england, } 
                recruit_pool "Townguard Spearmen"  1   0.2   2  0  requires factions { england, } 
                recruit_pool "Empire Billmen"  1   0.2   1  0  requires factions { england, } 
                recruit_pool "Empire Swordsmen"  1   0.2   1  0  requires factions { england, } 
                recruit_pool "Arrow in the Knee Sw"  1   0.2   2  0  requires factions { scotland, } 
                recruit_pool "Arrow in the Knee Th"  1   0.2   2  0  requires factions { scotland, } 
                recruit_pool "Steel Armor Spearmen"  1   0.2   1  0  requires factions { scotland, } 
                recruit_pool "Steel Armor Swordsmen"  1   0.2   1  0  requires factions { scotland, } 
                recruit_pool "Unblooded"  1   0.2   2  0  requires factions { papal_states, } 
                recruit_pool "Stormcloacks Sw"  1   0.2   2  0  requires factions { papal_states, } 
                recruit_pool "Stormcloacks Th"  1   0.2   2  0  requires factions { papal_states, } 
                recruit_pool "Armoured Stormcloacks Swordsmen"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Armoured Stormcloacks Spearmen"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Rg Nomad Swordsmen"  1   0.2   2  0  requires factions { spain, moors, } 
                recruit_pool "Dismounted Alikr Warriors"  1   0.2   1  0  requires factions { spain, moors, }  and hidden_resource alikr
                recruit_pool "Rg Warriors"  1   0.2   2  0  requires factions { spain, moors, } 
                recruit_pool "Rg Spearmen"  1   0.2   1  0  requires factions { spain, moors, } 
                recruit_pool "BE Townguard Billmen"  1   0.2   2  0  requires factions { mongols, venice, } 
                recruit_pool "BE Townguard Swordsmen"  1   0.2   2  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted High Rock Knights"  1   0.2   1  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted High Rock Halberds"  1   0.2   1  0  requires factions { mongols, venice, } 
                recruit_pool "Valenwood Swordsmen"  1   0.2   2  0  requires factions { byzantium, france, } 
                recruit_pool "Valenwood Spearmen"  1   0.2   1  0  requires factions { byzantium, france, } 
                recruit_pool "Aldmeri Swordsmen"  1   0.2   2  0  requires factions { byzantium, } 
                recruit_pool "Elsweyr Peasant Spearmen"  1   0.2   2  0  requires factions { egypt, turks, } 
                recruit_pool "Anequina Guard Swordsmen"  1   0.2   1  0  requires factions { egypt, } 
                recruit_pool "Pelletine Guard Swordsmen"  1   0.2   1  0  requires factions { turks, } 
                recruit_pool "Khajiit Lumbermen"  1   0.2   1  0  requires factions { turks, }  and hidden_resource tenmar
                recruit_pool "Argonian Militia"  1   0.2   2  0  requires factions { russia, } 
                recruit_pool "Argonian Lumbermen"  1   0.2   2  0  requires factions { russia, } 
                recruit_pool "Argonian Swordsmen"  1   0.2   1  0  requires factions { russia, } 
                recruit_pool "Danmer Militia"  1   0.2   2  0  requires factions { sicily, poland, hungary, timurids, milan, aztecs, normans, } 
                recruit_pool "Hlaalu Men At Arms"  1   0.2   1  0  requires factions { sicily, } 
                recruit_pool "Sadras Men At Arms"  1   0.2   1  0  requires factions { normans, } 
                recruit_pool "Redoran Swordsmen"  1   0.2   1  0  requires factions { poland, } 
                recruit_pool "Redoran Women"  1   0.2   1  0  requires factions { poland, }  and hidden_resource morrowind
                recruit_pool "Telvanni Men At Arms"  1   0.2   1  0  requires factions { hungary, } 
                recruit_pool "Dres Men At Arms"  1   0.2   1  0  requires factions { timurids, } 
                recruit_pool "Dres Light Swordsmen"  1   0.2   2  0  requires factions { timurids, } 
                recruit_pool "Ordinator Men At Arms"  1   0.2   1  0  requires factions { milan, } 
                recruit_pool "Ashland Swordsmen"  1   0.2   1  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Ashland Militia"  1   0.2   1  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Wrothgarian Orcs"  1   0.2   2  0  requires factions { denmark, } 
                recruit_pool "Stronghold Militia"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Orc Men At Arms"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Orc Spearmen"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Mithic Dawn Soldier"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff Halberd"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff Heavy"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Zombies"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Skeletons"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Draugr Infantry"  1   0.4   1  0  requires factions { saxons, }  and hidden_resource skyrim
                recruit_pool "Dreamers"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Dreamers"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 35 
                recruit_pool "Corprus Stalker"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                recruit_pool "Corprus Stalker"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Ash Zombies"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                recruit_pool "Ash Zombies"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                law_bonus bonus 2
		recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1
;                free_upkeep bonus 20  requires factions { spain, moors, } 
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                city_watch
            }
        }
        city_watch requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Townguard Swordsmen"  1   0.4   3  0  requires factions { england, } 
                recruit_pool "Townguard Spearmen"  1   0.4   3  0  requires factions { england, } 
                recruit_pool "Empire Billmen"  1   0.2   2  0  requires factions { england, } 
                recruit_pool "Empire Swordsmen"  1   0.2   2  0  requires factions { england, } 
                recruit_pool "Company Swordsmen"  1   0.2   2  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Company Billmen"  1   0.2   2  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Auxilly Swordsmen"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_obl 1
                recruit_pool "Auxilly Halberds"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_obl 1 
                recruit_pool "Ebonheart Guard"  1   0.2   1  0  requires factions { england, sicily, }  and hidden_resource ebonheart
                recruit_pool "Arrow in the Knee Sw"  1   0.4   3  0  requires factions { scotland, } 
                recruit_pool "Arrow in the Knee Th"  1   0.4   3  0  requires factions { scotland, } 
                recruit_pool "Steel Armor Spearmen"  1   0.2   2  0  requires factions { scotland, } 
                recruit_pool "Steel Armor Swordsmen"  1   0.2   2  0  requires factions { scotland, } 
                recruit_pool "Iron Armor Zweihander"  1   0.2   1  0  requires factions { scotland, } 
                recruit_pool "Iron Armor Swordsmen"  1   0.2   1  0  requires factions { scotland, } 
                recruit_pool "Unblooded"  1   0.4   3  0  requires factions { papal_states, } 
                recruit_pool "Stormcloacks Sw"  1   0.4   3  0  requires factions { papal_states, } 
                recruit_pool "Stormcloacks Th"  1   0.4   3  0  requires factions { papal_states, } 
                recruit_pool "Armoured Stormcloacks Swordsmen"  1   0.2   2  0  requires factions { papal_states, } 
                recruit_pool "Armoured Stormcloacks Spearmen"  1   0.2   2  0  requires factions { papal_states, } 
                recruit_pool "Bone-Breakers"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Snow-Hammers"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Rg Nomad Swordsmen"  1   0.4   3  0  requires factions { spain, moors, } 
                recruit_pool "Dismounted Alikr Warriors"  1   0.2   2  0  requires factions { spain, moors, }  and hidden_resource alikr
                recruit_pool "Rg Warriors"  1   0.4   3  0  requires factions { spain, moors, } 
                recruit_pool "Rg Spearmen"  1   0.2   2  0  requires factions { spain, moors, } 
                recruit_pool "Crownbearers Warriors"  1   0.2   1  0  requires factions { spain, } 
                recruit_pool "Forebears Swordsmen"  1   0.2   1  0  requires factions { moors, } 
                recruit_pool "BE Townguard Billmen"  1   0.4   3  0  requires factions { mongols, venice, } 
                recruit_pool "BE Townguard Swordsmen"  1   0.4   3  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted High Rock Knights"  1   0.2   2  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted High Rock Halberds"  1   0.2   2  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted High Rock Spearmen"  1   0.2   1  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted Daggerfall Guard"  1   0.2   1  0  requires factions { venice, }  and hidden_resource high_rock
                recruit_pool "Wayrest Guard"  1   0.2   1  0  requires factions { mongols, }  and hidden_resource high_rock
                recruit_pool "Valenwood Swordsmen"  1   0.4   3  0  requires factions { byzantium, france, } 
                recruit_pool "Valenwood Spearmen"  1   0.2   2  0  requires factions { byzantium, france, } 
                recruit_pool "Wood Swordsmen"  1   0.2   1  0  requires factions { france, } 
                recruit_pool "Wood Swordsmen"  1   0.2   1  0  requires factions { byzantium, } and event_counter bosmer_byzantium 1
                recruit_pool "Aldmeri Halberds"  1   0.2   2  0  requires factions { byzantium, } 
                recruit_pool "Aldmeri Swordsmen"  1   0.4   3  0  requires factions { byzantium, } 
                recruit_pool "Aldmeri Heavy Swordsmen"  1   0.2   1  0  requires factions { byzantium, } 
                recruit_pool "Elsweyr Peasant Spearmen"  1   0.4   3  0  requires factions { egypt, turks, } 
                recruit_pool "Anequina Guard Swordsmen"  1   0.2   2  0  requires factions { egypt, } 
                recruit_pool "Anequina Guard Spearmen"  1   0.2   1  0  requires factions { egypt, } 
                recruit_pool "Sandguard"  1   0.2   1  0  requires factions { egypt, } 
                recruit_pool "Pelletine Guard Swordsmen"  1   0.2   2  0  requires factions { turks, } 
                recruit_pool "Pelletine Guard Spearmen"  1   0.2   1  0  requires factions { turks, } 
                recruit_pool "Khajiit Lumbermen"  1   0.2   2  0  requires factions { turks, }  and hidden_resource tenmar
                recruit_pool "Tojay-Rath Spearmen"  1   0.2   1  0  requires factions { turks, }  and hidden_resource tenmar
                recruit_pool "Argonian Militia"  1   0.4   3  0  requires factions { russia, } 
                recruit_pool "Argonian Lumbermen"  1   0.4   3  0  requires factions { russia, } 
                recruit_pool "Argonian Swordsmen"  1   0.2   2  0  requires factions { russia, } 
                recruit_pool "Argonian Zweihander"  1   0.2   1  0  requires factions { russia, } 
                recruit_pool "Argonian Men At Arms"  1   0.2   1  0  requires factions { russia, } 
                recruit_pool "Danmer Militia"  1   0.4   3  0  requires factions { sicily, poland, hungary, timurids, milan, aztecs, normans, } 
                recruit_pool "Hlaalu Men At Arms"  1   0.2   2  0  requires factions { sicily, } 
                recruit_pool "Hlaalu Spearmen"  1   0.2   1  0  requires factions { sicily, } 
                recruit_pool "Sadras Men At Arms"  1   0.2   2  0  requires factions { normans, } 
                recruit_pool "Sadras Spearmen"  1   0.2   1  0  requires factions { normans, } 
                recruit_pool "Sadras Pikemen"  1   0.2   1  0  requires factions { normans, } 
                recruit_pool "Redoran Swordsmen"  1   0.2   2  0  requires factions { poland, } 
                recruit_pool "Redoran Spearmen"  1   0.2   1  0  requires factions { poland, } 
                recruit_pool "Redoran Women"  1   0.2   2  0  requires factions { poland, }  and hidden_resource morrowind
                recruit_pool "Telvanni Men At Arms"  1   0.2   2  0  requires factions { hungary, } 
                recruit_pool "Telvanni Spearmen"  1   0.2   1  0  requires factions { hungary, } 
                recruit_pool "Dres Men At Arms"  1   0.2   2  0  requires factions { timurids, } 
                recruit_pool "Dres Spearmen"  1   0.2   1  0  requires factions { timurids, } 
                recruit_pool "Dres Light Swordsmen"  1   0.4   3  0  requires factions { timurids, } 
                recruit_pool "Ordinator Men At Arms"  1   0.2   2  0  requires factions { milan, } 
                recruit_pool "Ordinator Zweihandr"  1   0.2   1  0  requires factions { milan, } 
                recruit_pool "Necrom Ordinators"  1   0.2   1  0  requires factions { milan, }  and hidden_resource necrom
                recruit_pool "Ashland Swordsmen"  1   0.2   2  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Ashland Militia"  1   0.2   2  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Wrothgarian Orcs"  1   0.4   3  0  requires factions { denmark, } 
                recruit_pool "Stronghold Militia"  1   0.4   3  0  requires factions { denmark, } 
                recruit_pool "Orc Men At Arms"  1   0.2   2  0  requires factions { denmark, } 
                recruit_pool "Orc Spearmen"  1   0.2   2  0  requires factions { denmark, } 
                recruit_pool "Orsinium Warriors"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Orsinium Heavy Warriors"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Mithic Dawn Soldier"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff Halberd"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff Heavy"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kinval"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kinval Heavy"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Zombies"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Gloom Wraiths"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Skeletons"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Draugr Infantry"  1   0.4   1  0  requires factions { saxons, }  and hidden_resource skyrim
                recruit_pool "Draugr Spearmen"  1   0.4   1  0  requires factions { saxons, }  and hidden_resource skyrim
                recruit_pool "Dreamers"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Dreamers"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 35 
                recruit_pool "Corprus Stalker"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Corprus Stalker"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 35 
                recruit_pool "Ash Zombies"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Ash Zombies"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 35 
                recruit_pool "Corprus Lame"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                recruit_pool "Corprus Lame"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Ash Spawn 2h"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                recruit_pool "Ash Spawn 2h"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Dagoth Swordsmen"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 90 
                recruit_pool "Dagoth Swordsmen"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                law_bonus bonus 3
		recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1
;                free_upkeep bonus 20  requires factions { spain, moors, } 
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min city
            upgrades
            {
                militia_drill_square
            }
        }
        militia_drill_square requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Townguard Swordsmen"  1   0.4   3  0  requires factions { england, } 
                recruit_pool "Townguard Spearmen"  1   0.4   3  0  requires factions { england, } 
                recruit_pool "Empire Billmen"  1   0.4   3  0  requires factions { england, } 
                recruit_pool "Empire Swordsmen"  1   0.4   3  0  requires factions { england, } 
                recruit_pool "Company Swordsmen"  1   0.2   3  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Company Billmen"  1   0.2   3  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Auxilly Swordsmen"  1   0.2   2  0  requires factions { england, }  and event_counter legion_england_obl 1
                recruit_pool "Auxilly Halberds"  1   0.2   2  0  requires factions { england, }  and event_counter legion_england_obl 1
                recruit_pool "Ebonheart Guard"  1   0.2   2  0  requires factions { england, sicily, }  and hidden_resource ebonheart
                recruit_pool "Legion Swordsmen"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_obl 1
                recruit_pool "Legion Knights"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_obl 1
                recruit_pool "Elite Swordsmen"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Elite Falanx"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Arrow in the Knee Sw"  1   0.4   3  0  requires factions { scotland, } 
                recruit_pool "Arrow in the Knee Th"  1   0.4   3  0  requires factions { scotland, } 
                recruit_pool "Steel Armor Spearmen"  1   0.4   3  0  requires factions { scotland, } 
                recruit_pool "Steel Armor Swordsmen"  1   0.4   3  0  requires factions { scotland, } 
                recruit_pool "Iron Armor Zweihander"  1   0.2   2  0  requires factions { scotland, } 
                recruit_pool "Iron Armor Swordsmen"  1   0.2   2  0  requires factions { scotland, } 
                recruit_pool "Nordplate Warriors"  1   0.2   1  0  requires factions { scotland, } 
                recruit_pool "Unblooded"  1   0.4   3  0  requires factions { papal_states, } 
                recruit_pool "Stormcloacks Sw"  1   0.4   3  0  requires factions { papal_states, } 
                recruit_pool "Stormcloacks Th"  1   0.4   3  0  requires factions { papal_states, } 
                recruit_pool "Armoured Stormcloacks Swordsmen"  1   0.4   3  0  requires factions { papal_states, } 
                recruit_pool "Armoured Stormcloacks Spearmen"  1   0.4   3  0  requires factions { papal_states, } 
                recruit_pool "Bone-Breakers"  1   0.2   2  0  requires factions { papal_states, } 
                recruit_pool "Snow-Hammers"  1   0.2   2  0  requires factions { papal_states, } 
                recruit_pool "Stormblades"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Rg Nomad Swordsmen"  1   0.4   3  0  requires factions { spain, moors, } 
                recruit_pool "Dismounted Alikr Warriors"  1   0.4   3  0  requires factions { spain, moors, }  and hidden_resource alikr
                recruit_pool "Rg Warriors"  1   0.4   3  0  requires factions { spain, moors, } 
                recruit_pool "Rg Spearmen"  1   0.4   3  0  requires factions { spain, moors, } 
                recruit_pool "Crowned Spearmen"  1   0.2   1  0  requires factions { spain, } 
                recruit_pool "Crownbearers Warriors"  1   0.2   2  0  requires factions { spain, } 
                recruit_pool "Crowned Warriors Halberd"  1   0.2   1  0  requires factions { spain, } 
                recruit_pool "Forebears Swordsmen"  1   0.2   2  0  requires factions { moors, } 
                recruit_pool "Forebears Pikemen"  1   0.2   1  0  requires factions { moors, } 
                recruit_pool "Ra Gada"  1   0.1   1  0  requires factions { moors, }  and hidden_resource hammerfell
                recruit_pool "Knights of the Moon"  1   0.2   1  0  requires factions { moors, }  and hidden_resource hammerfell
                recruit_pool "BE Townguard Billmen"  1   0.4   3  0  requires factions { mongols, venice, } 
                recruit_pool "BE Townguard Swordsmen"  1   0.4   3  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted High Rock Knights"  1   0.4   3  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted High Rock Halberds"  1   0.4   3  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted High Rock Spearmen"  1   0.2   2  0  requires factions { mongols, venice, } 
                recruit_pool "Dismounted Daggerfall Guard"  1   0.2   2  0  requires factions { venice, }  and hidden_resource high_rock
                recruit_pool "Dismounted Daggerfall Pikemen"  1   0.2   1  0  requires factions { venice, }  and hidden_resource high_rock
                recruit_pool "Wayrest Guard"  1   0.4   3  0  requires factions { mongols, }  and hidden_resource high_rock
                recruit_pool "Wayrest Pikemen"  1   0.2   1  0  requires factions { mongols, }  and hidden_resource high_rock
                recruit_pool "Valenwood Swordsmen"  1   0.4   3  0  requires factions { byzantium, france, } 
                recruit_pool "Valenwood Spearmen"  1   0.4   3  0  requires factions { byzantium, france, } 
                recruit_pool "Wood Swordsmen"  1   0.2   2  0  requires factions { france, } 
                recruit_pool "Wood Swordsmen"  1   0.2   2  0  requires factions { byzantium, }  and event_counter bosmer_byzantium 1
                recruit_pool "Valenwood Warriors"  1   0.2   1  0  requires factions { france, }  and hidden_resource bosmer
                recruit_pool "Aldmeri Halberds"  1   0.4   3  0  requires factions { byzantium, } 
                recruit_pool "Aldmeri Swordsmen"  1   0.4   3  0  requires factions { byzantium, } 
                recruit_pool "Aldmeri Heavy Swordsmen"  1   0.2   2  0  requires factions { byzantium, } 
                recruit_pool "Aldmeri Heavy Pikemen"  1   0.2   1  0  requires factions { byzantium, } 
                recruit_pool "Elsweyr Peasant Spearmen"  1   0.4   3  0  requires factions { egypt, turks, } 
                recruit_pool "Anequina Guard Swordsmen"  1   0.4   3  0  requires factions { egypt, } 
                recruit_pool "Anequina Guard Spearmen"  1   0.4   3  0  requires factions { egypt, } 
                recruit_pool "Sandguard"  1   0.2   2  0  requires factions { egypt, } 
                recruit_pool "Twohanded Sandguard"  1   0.2   1  0  requires factions { egypt, } 
                recruit_pool "Pelletine Guard Swordsmen"  1   0.4   3  0  requires factions { turks, } 
                recruit_pool "Pelletine Guard Spearmen"  1   0.2   2  0  requires factions { turks, } 
                recruit_pool "Khajiit Lumbermen"  1   0.4   3  0  requires factions { turks, }  and hidden_resource tenmar
                recruit_pool "Tojay-Rath Spearmen"  1   0.2   2  0  requires factions { turks, }  and hidden_resource tenmar
                recruit_pool "Argonian Militia"  1   0.4   3  0  requires factions { russia, } 
                recruit_pool "Argonian Lumbermen"  1   0.4   3  0  requires factions { russia, } 
                recruit_pool "Argonian Swordsmen"  1   0.4   3  0  requires factions { russia, } 
                recruit_pool "Argonian Zweihander"  1   0.4   3  0  requires factions { russia, } 
                recruit_pool "Argonian Men At Arms"  1   0.2   2  0  requires factions { russia, } 
                recruit_pool "Argonian Spearmen"  1   0.2   2  0  requires factions { russia, } 
                recruit_pool "Slave Hunters"  1   0.2   1  0  requires factions { russia, }  and hidden_resource black
                recruit_pool "An-Xileel Invaders"  1   0.2   1  0  requires factions { russia, } and event_counter is_the_4th_era 1 
                recruit_pool "Dark Brotherhood"  1   0.2   1  0  requires factions { russia, }  and event_counter is_the_3rd_era 1
                recruit_pool "Danmer Militia"  1   0.4   3  0  requires factions { sicily, poland, hungary, timurids, milan, aztecs, normans, } 
                recruit_pool "Hlaalu Men At Arms"  1   0.4   3  0  requires factions { sicily, } 
                recruit_pool "Hlaalu Spearmen"  1   0.4   2  0  requires factions { sicily, } 
                recruit_pool "Hlaalu Nobles"  1   0.2   2  0  requires factions { sicily, } 
                recruit_pool "Sadras Men At Arms"  1   0.4   3  0  requires factions { normans, } 
                recruit_pool "Sadras Spearmen"  1   0.4   2  0  requires factions { normans, } 
                recruit_pool "Sadras Pikemen"  1   0.4   2  0  requires factions { normans, } 
                recruit_pool "Sadras Avengers"  1   0.2   1  0  requires factions { normans, } 
                recruit_pool "Narsis Guard"  1   0.2   1  0  requires factions { normans, } 
                recruit_pool "Redoran Swordsmen"  1   0.4   3  0  requires factions { poland, } 
                recruit_pool "Redoran Spearmen"  1   0.2   2  0  requires factions { poland, } 
                recruit_pool "Redoran Women"  1   0.4   3  0  requires factions { poland, }  and hidden_resource morrowind
                recruit_pool "Redoran Warmasters"  1   0.2   1  0  requires factions { poland, }  and hidden_resource redoran
                recruit_pool "Defenders Of Faith"  1   0.1   1  0  requires factions { poland, }  and hidden_resource redoran
                recruit_pool "High Ordinators"  1   0.1   1  0  requires factions { milan, }  and hidden_resource morrowind
                recruit_pool "Bouyant Armigers"  1   0.2   1  0  requires factions { poland, milan, }  and hidden_resource armigers
                recruit_pool "Telvanni Men At Arms"  1   0.4   3  0  requires factions { hungary, } 
                recruit_pool "Telvanni Spearmen"  1   0.2   2  0  requires factions { hungary, } 
                recruit_pool "Dres Men At Arms"  1   0.4   3  0  requires factions { timurids, } 
                recruit_pool "Dres Spearmen"  1   0.2   2  0  requires factions { timurids, } 
                recruit_pool "Dres Raiders"  1   0.2   1  0  requires factions { timurids, }  and hidden_resource morrowind
                recruit_pool "Dres Light Swordsmen"  1   0.4   3  0  requires factions { timurids, } 
                recruit_pool "Ordinator Men At Arms"  1   0.4   3  0  requires factions { milan, } 
                recruit_pool "Ordinator Zweihandr"  1   0.2   2  0  requires factions { milan, } 
                recruit_pool "Ordinator Spearmen"  1   0.4   3  0  requires factions { milan, } 
                recruit_pool "Necrom Ordinators"  1   0.2   1  0  requires factions { milan, }  and hidden_resource necrom
                recruit_pool "Ashland Swordsmen"  1   0.4   3  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Ashland Militia"  1   0.4   3  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Wrothgarian Orcs"  1   0.4   3  0  requires factions { denmark, } 
                recruit_pool "Stronghold Militia"  1   0.4   3  0  requires factions { denmark, } 
                recruit_pool "Orc Men At Arms"  1   0.4   3  0  requires factions { denmark, } 
                recruit_pool "Orc Spearmen"  1   0.4   3  0  requires factions { denmark, } 
                recruit_pool "Orsinium Warriors"  1   0.2   2  0  requires factions { denmark, } 
                recruit_pool "Orsinium Heavy Warriors"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Orsinium Halberds"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Mithic Dawn Soldier"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff Halberd"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kaitiff Heavy"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kinval"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kinval Heavy"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kinval Axe"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Valkinaz"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Xivilai"  1   0.1   1  0  requires factions { hre, } 
                recruit_pool "Daedroths"  1   0.1   1  0  requires factions { hre, } 
                recruit_pool "Zombies"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Gloom Wraiths"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Skeletons"  1   0.2   1  0  requires factions { saxons, } 
                recruit_pool "Draugr Infantry"  1   0.4   1  0  requires factions { saxons, }  and hidden_resource skyrim
                recruit_pool "Draugr Spearmen"  1   0.4   1  0  requires factions { saxons, }  and hidden_resource skyrim
                recruit_pool "Volkihar Swordsmen"  1   0.4   1  0  requires factions { saxons, }  and hidden_resource skyrim
                recruit_pool "Dreamers"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 35 
                recruit_pool "Dreamers"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 25 
                recruit_pool "Corprus Lame"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                recruit_pool "Corprus Lame"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Corprus Stalker"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Corprus Stalker"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 35 
                recruit_pool "Ash Zombies"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Ash Zombies"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 35 
                recruit_pool "Ash Spawn 2h"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                recruit_pool "Ash Spawn 2h"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 50 
                recruit_pool "Dagoth Swordsmen"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 90 
                recruit_pool "Dagoth Swordsmen"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                recruit_pool "Dagoth Spearmen"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 90 
                recruit_pool "Dagoth Spearmen"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 75 
                law_bonus bonus 4
		recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1
;                free_upkeep bonus 20  requires factions { spain, moors, } 
            }
            material wooden
            construction  5 
            cost  4800 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;########################## MISSILES ########################
;############################################################
building missiles
{
    levels bowyer practice_range archery_range 
    {
        bowyer requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Company Archers"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Auxilly Archers"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_obl 1
                recruit_pool "Arrow in the Knee Bowmen"  1   0.2   1  0  requires factions { scotland, } 
                recruit_pool "Stormcloacks Bowmen"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Rg Nomad Archers"  1   0.2   1  0  requires factions { spain, moors, } 
                recruit_pool "BE Townguard Crossbowmen"  1   0.2   1  0  requires factions { venice, mongols, } 
                recruit_pool "Valenwood Archers"  1   0.2   1  0  requires factions { byzantium, france, } 
                recruit_pool "Bosmer Archers"  1   0.2   1  0  requires factions { france, }  and hidden_resource bosmer
                recruit_pool "Falinesty Archers"  1   0.2   1  0  requires factions { france, }  and hidden_resource falinesty
                recruit_pool "Aldmeri Archers"  1   0.2   1  0  requires factions { byzantium, } 
                recruit_pool "Elsweyr Peasant Throwers"  1   0.2   1  0  requires factions { egypt, turks, } 
                recruit_pool "Argonian Archers"  1   0.2   1  0  requires factions { russia, } 
                recruit_pool "Lilmothits"  1   0.2   1  0  requires factions { russia, }  and hidden_resource lilmoth
                recruit_pool "Danmer Bowmen"  1   0.2   1  0  requires factions { sicily, poland, hungary, timurids, milan, aztecs, normans, } 
                recruit_pool "Stronghold Archers"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Mithic Dawn Archers"  1   0.2   1  0  requires factions { hre, } 
                recruit_pool "Skeleton Archers"  1   0.4   1  0  requires factions { saxons, } 
            }
            material wooden
            construction  2 
            cost  1200 
            settlement_min town
            upgrades
            {
                practice_range
            }
        }
        practice_range requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Company Archers"  1   0.2   2  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Auxilly Archers"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_obl 1
                recruit_pool "Arrow in the Knee Bowmen"  1   0.2   2  0  requires factions { scotland, } 
                recruit_pool "Stormcloacks Bowmen"  1   0.2   2  0  requires factions { papal_states, } 
                recruit_pool "Armoured Stormcloacks Bowmen"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Rg Nomad Archers"  1   0.2   2  0  requires factions { spain, moors, } 
                recruit_pool "Rg Archers"  1   0.2   1  0  requires factions { moors, } 
                recruit_pool "BE Townguard Crossbowmen"  1   0.2   2  0  requires factions { venice, mongols, } 
                recruit_pool "High Rock Archers"  1   0.2   1  0  requires factions { venice, mongols, } 
                recruit_pool "Valenwood Archers"  1   0.2   2  0  requires factions { byzantium, france, } 
                recruit_pool "Wood Archers"  1   0.2   1  0  requires factions { france, } 
                recruit_pool "Wood Archers"  1   0.2   1  0  requires factions { byzantium, } and event_counter bosmer_byzantium 1
                recruit_pool "Falinesty Archers"  1   0.2   2  0  requires factions { france, }  and hidden_resource falinesty
                recruit_pool "Aldmeri Archers"  1   0.2   2  0  requires factions { byzantium, } 
                recruit_pool "Aldmeri Heavy Bowmen"  1   0.2   1  0  requires factions { byzantium, } 
                recruit_pool "Bosmer Archers"  1   0.2   2  0  requires factions { france, }  and hidden_resource bosmer
                recruit_pool "Bosmer Archers"  1   0.2   2  0  requires factions { byzantium, }  and hidden_resource bosmer and event_counter bosmer_byzantium 1
                recruit_pool "Elsweyr Peasant Throwers"  1   0.2   2  0  requires factions { egypt, turks, } 
                recruit_pool "Elsweyr Peasant Archers"  1   0.2   1  0  requires factions { egypt, turks, } 
                recruit_pool "Pelletine Guard Bowmen"  1   0.2   1  0  requires factions { turks, } 
                recruit_pool "Dagi-Rath Javelinmen"  1   0.2   1  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Om-Rath Archers"  1   0.2   1  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Argonian Archers"  1   0.2   2  0  requires factions { russia, } 
                recruit_pool "Argonian Archers Ambush"  1   0.2   1  0  requires factions { russia, } 
                recruit_pool "Lilmothits"  1   0.2   2  0  requires factions { russia, }  and hidden_resource lilmoth
                recruit_pool "Danmer Bowmen"  1   0.2   2  0  requires factions { sicily, poland, hungary, timurids, milan, aztecs, normans, } 
                recruit_pool "Hlaalu Archers"  1   0.2   1  0  requires factions { sicily, } 
                recruit_pool "Sadras Archers"  1   0.2   1  0  requires factions { normans, } 
                recruit_pool "Sadras Crossbows"  1   0.2   1  0  requires factions { normans, } 
                recruit_pool "Dres Bowmen"  1   0.2   1  0  requires factions { timurids, } 
                recruit_pool "Ordinator Archers"  1   0.2   1  0  requires factions { milan, } 
                recruit_pool "Redoran Crossbowmen"  1   0.2   1  0  requires factions { poland, } 
                recruit_pool "Ashland Javelinmen"  1   0.2   1  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Stronghold Archers"  1   0.2   2  0  requires factions { denmark, } 
                recruit_pool "Orc Archers"  1   0.2   1  0  requires factions { denmark, } 
                recruit_pool "Mithic Dawn Archers"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Skeleton Archers"  1   0.4   1  0  requires factions { saxons, } 
                recruit_pool "Draugr Archers"  1   0.4   1  0  requires factions { saxons, }  and hidden_resource skyrim
                archer_bonus 1
            }
            material wooden
            construction  3 
            cost  2400 
            settlement_min large_town
            upgrades
            {
                archery_range
            }
        }
        archery_range requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "Company Archers"  1   0.4   3  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Auxilly Archers"  1   0.4   2  0  requires factions { england, }  and event_counter legion_england_obl 1
                recruit_pool "Legion Archers"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_obl 1
                recruit_pool "Elite Archers"  1   0.2   1  0  requires factions { england, }  and event_counter legion_england_sky 1
                recruit_pool "Arrow in the Knee Bowmen"  1   0.4   3  0  requires factions { scotland, } 
                recruit_pool "Iron Armor Bowmen"  1   0.2   1  0  requires factions { scotland, } 
                recruit_pool "Stormcloacks Bowmen"  1   0.4   3  0  requires factions { papal_states, } 
                recruit_pool "Armoured Stormcloacks Bowmen"  1   0.2   2  0  requires factions { papal_states, } 
                recruit_pool "Ice-Veins"  1   0.2   1  0  requires factions { papal_states, } 
                recruit_pool "Rg Archers"  1   0.2   2  0  requires factions { moors, } 
                recruit_pool "Rg Nomad Archers"  1   0.4   3  0  requires factions { spain, moors, } 
                recruit_pool "Forebears Archers"  1   0.2   1  0  requires factions { moors, } 
                recruit_pool "BE Townguard Crossbowmen"  1   0.4   3  0  requires factions { venice, mongols, } 
                recruit_pool "Dismounted Daggerfall Bowmen"  1   0.2   1  0  requires factions { venice, }  and hidden_resource high_rock
                recruit_pool "Wayrest Archers"  1   0.2   1  0  requires factions { mongols, }  and hidden_resource high_rock
                recruit_pool "High Rock Archers"  1   0.2   2  0  requires factions { venice, mongols, } 
                recruit_pool "Valenwood Archers"  1   0.4   3  0  requires factions { byzantium, france, } 
                recruit_pool "Wood Archers"  1   0.2   2  0  requires factions { france, } 
                recruit_pool "Wood Archers"  1   0.2   2  0  requires factions { byzantium, } and event_counter bosmer_byzantium 1
                recruit_pool "Valenwood Warriors"  1   0.2   1  0  requires factions { france, }  and hidden_resource bosmer
                recruit_pool "Falinesty Archers"  1   0.4   3  0  requires factions { france, }  and hidden_resource bosmer
                recruit_pool "Aldmeri Archers"  1   0.4   3  0  requires factions { byzantium, } 
                recruit_pool "Aldmeri Heavy Bowmen"  1   0.2   1  0  requires factions { byzantium, } 
                recruit_pool "Bosmer Archers"  1   0.4   3  0  requires factions { france, }  and hidden_resource bosmer
                recruit_pool "Bosmer Archers"  1   0.4   3  0  requires factions { byzantium, }  and hidden_resource bosmer and event_counter bosmer_byzantium 1
                recruit_pool "Falinesty Archers"  1   0.2   1  0  requires factions { byzantium, denmark, }  and hidden_resource falinesty
                recruit_pool "Elsweyr Peasant Throwers"  1   0.4   3  0  requires factions { egypt, turks, } 
                recruit_pool "Elsweyr Peasant Archers"  1   0.2   2  0  requires factions { egypt, turks, } 
                recruit_pool "Anequina Guard Bowmen"  1   0.2   1  0  requires factions { egypt, } 
                recruit_pool "Pelletine Guard Bowmen"  1   0.2   2  0  requires factions { turks, } 
                recruit_pool "Dagi-Rath Javelinmen"  1   0.2   2  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Om-Rath Archers"  1   0.2   2  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Moon Archers"  1   0.2   1  0  requires factions { turks, }  and hidden_resource elsweyr
                recruit_pool "Argonian Archers"  1   0.4   3  0  requires factions { russia, } 
                recruit_pool "Argonian Archers Ambush"  1   0.2   2  0  requires factions { russia, } 
                recruit_pool "Lilmothits"  1   0.4   3  0  requires factions { russia, }  and hidden_resource lilmoth
                recruit_pool "Db Archers"  1   0.2   1  0  requires factions { russia, }  and event_counter is_the_3rd_era 1
                recruit_pool "An-Xileel Skirmishers"  1   0.2   1  0  requires factions { russia, }  and event_counter is_the_4th_era 1 
                recruit_pool "Danmer Bowmen"  1   0.4   3  0  requires factions { sicily, poland, hungary, timurids, milan, aztecs, normans, } 
                recruit_pool "Hlaalu Archers"  1   0.4   2  0  requires factions { sicily, } 
                recruit_pool "Hlaalu Crossbows"  1   0.2   1  0  requires factions { sicily, } 
                recruit_pool "Sadras Archers"  1   0.4   1  0  requires factions { normans, } 
                recruit_pool "Sadras Crossbows"  1   0.4   1  0  requires factions { normans, } 
                recruit_pool "Sadras Agents"  1   0.2   1  0  requires factions { normans, } 
                recruit_pool "Redoran Crossbowmen"  1   0.4   1  0  requires factions { poland, } 
                recruit_pool "Dres Bowmen"  1   0.2   2  0  requires factions { timurids, } 
                recruit_pool "Dres Javelinmen"  1   0.2   1  0  requires factions { timurids, } 
                recruit_pool "Ordinator Archers"  1   0.2   2  0  requires factions { milan, } 
                recruit_pool "Ordinator Crossbowmen"  1   0.2   1  0  requires factions { milan, } 
                recruit_pool "Ashland Javelinmen"  1   0.2   2  0  requires factions { aztecs, }  and hidden_resource vvarden
                recruit_pool "Stronghold Archers"  1   0.4   3  0  requires factions { denmark, } 
                recruit_pool "Orc Archers"  1   0.2   2  0  requires factions { denmark, } 
                recruit_pool "Mithic Dawn Archers"  1   0.2   2  0  requires factions { hre, } 
                recruit_pool "Dremora Kinval Archer"  1   0.2   1  0  requires factions { hre, } 
                recruit_pool "Skeleton Archers"  1   0.4   1  0  requires factions { saxons, } 
                recruit_pool "Draugr Archers"  1   0.4   1  0  requires factions { saxons, }  and hidden_resource skyrim
                archer_bonus 2
            }
            material wooden
            construction  4 
            cost  4800 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;#########################  SIEGE  ##########################
;############################################################
building siege
{
    levels ballista_range catapult_range siege_works 
    {
        ballista_range requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "AD Ballista"  1   0.1   3  0  requires factions { byzantium, } 
                recruit_pool "AG Ballista"  1   0.1   3  0  requires factions { russia, } 
                recruit_pool "DA Ballista"  1   0.1   3  0  requires factions { poland, timurids, milan, sicily, hungary, portugal, aztecs, normans, } 
                recruit_pool "BE Ballista"  1   0.1   3  0  requires factions { mongols, venice, } 
                recruit_pool "ES Ballista"  1   0.1   3  0  requires factions { egypt, turks, } 
                recruit_pool "EP Ballista"  1   0.1   3  0  requires factions { england, } 
                recruit_pool "OR Ballista"  1   0.1   3  0  requires factions { denmark, } 
                recruit_pool "RG Ballista"  1   0.1   3  0  requires factions { spain, moors, } 
                recruit_pool "SK Ballista"  1   0.1   3  0  requires factions { scotland, papal_states, } 
            }
            material wooden
            construction  3 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                catapult_range
            }
        }
        catapult_range requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "AD Ballista"  1   0.1   3  0  requires factions { byzantium, } 
                recruit_pool "AG Ballista"  1   0.1   3  0  requires factions { russia, } 
                recruit_pool "DA Ballista"  1   0.1   3  0  requires factions { poland, timurids, milan, sicily, hungary, portugal, aztecs, normans, } 
                recruit_pool "BE Ballista"  1   0.1   3  0  requires factions { mongols, venice, } 
                recruit_pool "ES Ballista"  1   0.1   3  0  requires factions { egypt, turks, } 
                recruit_pool "EP Ballista"  1   0.1   3  0  requires factions { england, } 
                recruit_pool "OR Ballista"  1   0.1   3  0  requires factions { denmark, } 
                recruit_pool "RG Ballista"  1   0.1   3  0  requires factions { spain, moors, } 
                recruit_pool "SK Ballista"  1   0.1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "AD Catapult"  1   0.1   3  0  requires factions { byzantium, } 
                recruit_pool "AG Catapult"  1   0.1   3  0  requires factions { russia, } 
                recruit_pool "DA Catapult"  1   0.1   3  0  requires factions { poland, timurids, milan, sicily, hungary, portugal, aztecs, normans, } 
                recruit_pool "BE Catapult"  1   0.1   3  0  requires factions { mongols, venice, } 
                recruit_pool "ES Catapult"  1   0.1   3  0  requires factions { egypt, turks, } 
                recruit_pool "EP Catapult"  1   0.1   3  0  requires factions { england, } 
                recruit_pool "OR Catapult"  1   0.1   3  0  requires factions { denmark, } 
                recruit_pool "RG Catapult"  1   0.1   3  0  requires factions { spain, moors, } 
                recruit_pool "SK Catapult"  1   0.1   3  0  requires factions { scotland, papal_states, } 
            }
            material wooden
            construction  4 
            cost  3200 
            settlement_min city
            upgrades
            {
                siege_works
            }
        }
        siege_works requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "AD Ballista"  1   0.1   3  0  requires factions { byzantium, } 
                recruit_pool "AG Ballista"  1   0.1   3  0  requires factions { russia, } 
                recruit_pool "DA Ballista"  1   0.1   3  0  requires factions { poland, timurids, milan, sicily, hungary, portugal, aztecs, normans, } 
                recruit_pool "BE Ballista"  1   0.1   3  0  requires factions { mongols, venice, } 
                recruit_pool "ES Ballista"  1   0.1   3  0  requires factions { egypt, turks, } 
                recruit_pool "EP Ballista"  1   0.1   3  0  requires factions { england, } 
                recruit_pool "OR Ballista"  1   0.1   3  0  requires factions { denmark, } 
                recruit_pool "RG Ballista"  1   0.1   3  0  requires factions { spain, moors, } 
                recruit_pool "SK Ballista"  1   0.1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "AD Catapult"  1   0.1   3  0  requires factions { byzantium, } 
                recruit_pool "AG Catapult"  1   0.1   3  0  requires factions { russia, } 
                recruit_pool "DA Catapult"  1   0.1   3  0  requires factions { poland, timurids, milan, sicily, hungary, portugal, aztecs, normans, } 
                recruit_pool "BE Catapult"  1   0.1   3  0  requires factions { mongols, venice, } 
                recruit_pool "ES Catapult"  1   0.1   3  0  requires factions { egypt, turks, } 
                recruit_pool "EP Catapult"  1   0.1   3  0  requires factions { england, } 
                recruit_pool "OR Catapult"  1   0.1   3  0  requires factions { denmark, } 
                recruit_pool "RG Catapult"  1   0.1   3  0  requires factions { spain, moors, } 
                recruit_pool "SK Catapult"  1   0.1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "AD Trebuchet"  1   0.1   3  0  requires factions { byzantium, } 
                recruit_pool "AG Trebuchet"  1   0.1   3  0  requires factions { russia, } 
                recruit_pool "DA Trebuchet"  1   0.1   3  0  requires factions { poland, timurids, milan, sicily, hungary, portugal, aztecs, normans, } 
                recruit_pool "BE Trebuchet"  1   0.1   3  0  requires factions { mongols, venice, } 
                recruit_pool "ES Trebuchet"  1   0.1   3  0  requires factions { egypt, turks, } 
                recruit_pool "EP Trebuchet"  1   0.1   3  0  requires factions { england, } 
                recruit_pool "OR Trebuchet"  1   0.1   3  0  requires factions { denmark, } 
                recruit_pool "RG Trebuchet"  1   0.1   3  0  requires factions { spain, moors, } 
                recruit_pool "SK Trebuchet"  1   0.1   3  0  requires factions { scotland, papal_states, } 
            }
            material wooden
            construction  5 
            cost  6400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building professional_military
{
    levels military_academy officers_academy 
    {
        military_academy city requires factions { england, byzantium, }  and building_present_min_level barracks city_watch
        {
            capability
            {
		recruits_exp_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  8000 
            settlement_min large_city
            upgrades
            {
                officers_academy
            }
        }
        officers_academy city requires factions { england, byzantium, }  and building_present_min_level barracks militia_drill_square
        {
            capability
            {
		recruits_exp_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  12000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;######################  MAGES GUILD  #######################
;############################################################
building castle_siege
{
    levels c_ballista_range c_catapult_range c_siege_works 
    {
        c_ballista_range requires factions { england, scotland, venice, mongols, byzantium, hungary, timurids, saxons, hre, normans, papal_states, slave, custom, }  and hidden_resource mguild and event_counter is_the_3rd_era 1
        {
            capability
            {
                recruit_pool "Imperial Mage"  1   0.1   1  0  requires factions { england, } 
                recruit_pool "Winterhold Mage"  1   0.1   1  0  requires factions { scotland, papal_states, } 
                recruit_pool "Breton Mage AP"  1   0.1   1  0  requires factions { venice, mongols, } 
                recruit_pool "Thalmor Justicar"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Telvanni Mage"  1   0.1   1  0  requires factions { hungary, } 
                recruit_pool "Telvanni Wizards"  1   0.1   1  0  requires factions { hungary, } 
                recruit_pool "Dres Wizards"  1   0.1   1  0  requires factions { timurids, } 
                recruit_pool "Sadras Mages-Agents"  1   0.1   1  0  requires factions { normans, } 
                recruit_pool "Scamps"  1   0.1   1  0  requires factions { hre, } 
                recruit_pool "Necromancers"  1   0.1   1  0  requires factions { saxons, } 
            }
            material wooden
            construction  3 
            cost  3200 
            settlement_min large_town
            upgrades
            {
                c_catapult_range
            }
        }
        c_catapult_range requires factions { england, scotland, venice, mongols, byzantium, hungary, timurids, saxons, hre, normans, papal_states, slave, custom, }  and hidden_resource mguild
        {
            capability
            {
                recruit_pool "Imperial Mage"  1   0.1   1  2  requires factions { england, } 
                recruit_pool "Winterhold Mage"  1   0.1   1  2  requires factions { scotland, papal_states, } 
                recruit_pool "Breton Mage AP"  1   0.1   1  2  requires factions { venice, mongols, } 
                recruit_pool "Breton Mage"  1   0.1   1  0  requires factions { venice, } 
                recruit_pool "Thalmor Justicar"  1   0.1   1  2  requires factions { byzantium, } 
                recruit_pool "Sapiarchs"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Firsthold Wizards"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Telvanni Mage"  1   0.1   1  2  requires factions { hungary, } 
                recruit_pool "Telvanni Wizards"  1   0.1   1  1  requires factions { hungary, } 
                recruit_pool "Telvanni Spellwrights"  1   0.1   1  0  requires factions { hungary, } 
                recruit_pool "Dres Wizards"  1   0.1   1  1  requires factions { timurids, } 
                recruit_pool "Sadras Mages-Agents"  1   0.1   1  2  requires factions { normans, } 
                recruit_pool "Scamps"  1   0.1   1  0  requires factions { hre, } 
                recruit_pool "Necromancers"  1   0.1   1  0  requires factions { saxons, } 
                population_health_bonus bonus 1
            }
            material wooden
            construction  4 
            cost 6400 
            settlement_min city
            upgrades
            {
                c_siege_works
            }
        }
        c_siege_works requires factions { england, scotland, venice, mongols, byzantium, hungary, timurids, saxons, hre, normans, papal_states, slave, custom, }  and hidden_resource mguild
        {
            capability
            {
                recruit_pool "Imperial Mage"  1   0.1   1  3  requires factions { england, } 
                recruit_pool "Winterhold Mage"  1   0.1   1  3  requires factions { scotland, papal_states, } 
                recruit_pool "Breton Mage AP"  1   0.1   1  3  requires factions { venice, mongols, } 
                recruit_pool "Breton Mage"  1   0.1   1  2  requires factions { venice, } 
                recruit_pool "Breton Masters"  1   0.1   1  0  requires factions { venice, mongols, } 
                recruit_pool "Thalmor Justicar"  1   0.1   1  3  requires factions { byzantium, } 
                recruit_pool "Sapiarchs"  1   0.1   1  2  requires factions { byzantium, } 
                recruit_pool "Firsthold Wizards"  1   0.1   1  2  requires factions { byzantium, } 
                recruit_pool "Alinor Wizards"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Psijics"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Telvanni Mage"  1   0.1   1  3  requires factions { hungary, } 
                recruit_pool "Telvanni Wizards"  1   0.1   1  2  requires factions { hungary, } 
                recruit_pool "Telvanni Spellwrights"  1   0.1   1  1  requires factions { hungary, } 
                recruit_pool "Masters Of Mage"  1   0.1   1  0  requires factions { hungary, } 
                recruit_pool "Dres Wizards"  1   0.1   1  2  requires factions { timurids, } 
                recruit_pool "Sadras Mages-Agents"  1   0.1   1  3  requires factions { normans, } 
                recruit_pool "Dremora Kerl Mage"  1   0.1   1  0  requires factions { hre, } 
                recruit_pool "Scamps"  1   0.1   1  0  requires factions { hre, } 
                recruit_pool "Necromancers"  1   0.1   1  0  requires factions { saxons, } 
                recruit_pool "Volkihar Mages"  1   0.1   1  0  requires factions { saxons, } 
                recruit_pool "Volkihar Lords"  1   0.1   1  0  requires factions { saxons, } 
                population_health_bonus bonus 2
                law_bonus bonus 1
            }
            material stone
            construction  5 
            cost  9800 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building 4e_mages
{
    levels 4e_mages_1 4e_mages_2 4e_mages_3
    {
        4e_mages_1 requires factions { england, scotland, venice, mongols, byzantium, hungary, timurids, saxons, hre, normans, papal_states, slave, custom, }  and hidden_resource mguild and event_counter is_the_4th_era 1 
        {
            capability
            {
                recruit_pool "Imperial Mage"  1   0.1   1  0  requires factions { england, } 
                recruit_pool "Winterhold Mage"  1   0.1   1  0  requires factions { scotland, papal_states, } 
                recruit_pool "Breton Mage AP"  1   0.1   1  0  requires factions { venice, mongols, } 
                recruit_pool "Thalmor Justicar"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Telvanni Mage"  1   0.1   1  0  requires factions { hungary, } 
                recruit_pool "Telvanni Wizards"  1   0.1   1  0  requires factions { hungary, } 
                recruit_pool "Dres Wizards"  1   0.1   1  0  requires factions { timurids, } 
                recruit_pool "Sadras Mages-Agents"  1   0.1   1  0  requires factions { normans, } 
                recruit_pool "Necromancers"  1   0.1   1  0  requires factions { saxons, } 
            }
            material wooden
            construction  3 
            cost  3200 
            settlement_min large_town
            upgrades
            {
                4e_mages_2
            }
        }
        4e_mages_2 requires factions { england, scotland, venice, mongols, byzantium, hungary, timurids, saxons, hre, normans, papal_states, slave, custom, }  and hidden_resource mguild and event_counter is_the_4th_era 1 
        {
            capability
            {
                recruit_pool "Imperial Mage"  1   0.1   1  2  requires factions { england, } 
                recruit_pool "Winterhold Mage"  1   0.1   1  2  requires factions { scotland, papal_states, } 
                recruit_pool "Breton Mage AP"  1   0.1   1  2  requires factions { venice, mongols, } 
                recruit_pool "Breton Mage"  1   0.1   1  0  requires factions { venice, } 
                recruit_pool "Thalmor Justicar"  1   0.1   1  2  requires factions { byzantium, } 
                recruit_pool "Sapiarchs"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Firsthold Wizards"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Telvanni Mage"  1   0.1   1  2  requires factions { hungary, } 
                recruit_pool "Telvanni Wizards"  1   0.1   1  1  requires factions { hungary, } 
                recruit_pool "Telvanni Spellwrights"  1   0.1   1  0  requires factions { hungary, } 
                recruit_pool "Dres Wizards"  1   0.1   1  1  requires factions { timurids, } 
                recruit_pool "Sadras Mages-Agents"  1   0.1   1  2  requires factions { normans, } 
                recruit_pool "Necromancers"  1   0.1   1  0  requires factions { saxons, } 
                population_health_bonus bonus 1
            }
            material wooden
            construction  4 
            cost 6400 
            settlement_min city
            upgrades
            {
                4e_mages_3
            }
        }
       4e_mages_3 requires factions { england, scotland, venice, mongols, byzantium, hungary, timurids, saxons, hre, normans, papal_states, slave, custom, }  and hidden_resource mguild and event_counter is_the_4th_era 1 
        {
            capability
            {
                recruit_pool "Imperial Mage"  1   0.1   1  3  requires factions { england, } 
                recruit_pool "Winterhold Mage"  1   0.1   1  3  requires factions { scotland, papal_states, } 
                recruit_pool "Breton Mage AP"  1   0.1   1  3  requires factions { venice, mongols, } 
                recruit_pool "Breton Mage"  1   0.1   1  2  requires factions { venice, } 
                recruit_pool "Breton Masters"  1   0.1   1  0  requires factions { venice, mongols, } 
                recruit_pool "Thalmor Justicar"  1   0.1   1  3  requires factions { byzantium, } 
                recruit_pool "Sapiarchs"  1   0.1   1  2  requires factions { byzantium, } 
                recruit_pool "Firsthold Wizards"  1   0.1   1  2  requires factions { byzantium, } 
                recruit_pool "Alinor Wizards"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Psijics"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "Telvanni Mage"  1   0.1   1  3  requires factions { hungary, } 
                recruit_pool "Telvanni Wizards"  1   0.1   1  2  requires factions { hungary, } 
                recruit_pool "Telvanni Spellwrights"  1   0.1   1  1  requires factions { hungary, } 
                recruit_pool "Masters Of Mage"  1   0.1   1  0  requires factions { hungary, } 
                recruit_pool "Dres Wizards"  1   0.1   1  2  requires factions { timurids, } 
                recruit_pool "Sadras Mages-Agents"  1   0.1   1  3  requires factions { normans, } 
                recruit_pool "Necromancers"  1   0.1   1  0  requires factions { saxons, } 
                recruit_pool "Volkihar Mages"  1   0.1   1  0  requires factions { saxons, } 
                recruit_pool "Volkihar Lords"  1   0.1   1  0  requires factions { saxons, } 
                population_health_bonus bonus 2
                law_bonus bonus 1
            }
            material stone
            construction  5 
            cost  9800 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;####################  FIGHTERS GUILDS  #####################
;############################################################
building fighters_guild
{
    levels fighters_guild1 fighters_guild2 fighters_guild3 
    {
        fighters_guild1 requires factions { england, scotland, moors, spain, venice, mongols, denmark, byzantium, russia, egypt, turks, sicily, poland, hungary, milan, timurids, france, normans, papal_states, }  and hidden_resource mguild
        {
            capability
            {
                recruit_pool "Fighters Guild"  1   0.05   1  0  requires factions { england, scotland, moors, spain, venice, mongols, denmark, byzantium, russia, egypt, turks, sicily, poland, hungary, milan, timurids, france, normans, papal_states, }  and not event_counter is_the_ai 1
                law_bonus bonus 1
                population_health_bonus bonus 1
            }
            material wooden
            construction  2 
            cost  2500 
            settlement_min large_town
            upgrades
            {
                fighters_guild2
            }
        }
        fighters_guild2 requires factions { england, scotland, moors, spain, venice, mongols, denmark, byzantium, russia, egypt, turks, sicily, poland, hungary, milan, timurids, france, normans, papal_states, }  and hidden_resource mguild
        {
            capability
            {
                recruit_pool "Fighters Guild"  1   0.05   1  0  requires factions { england, scotland, moors, spain, venice, mongols, denmark, byzantium, russia, egypt, turks, sicily, poland, hungary, milan, timurids, france, normans, papal_states, }  and not event_counter is_the_ai 1
                recruit_pool "Fighters Guild Heavy"  1   0.05   1  0  requires factions { england, scotland, moors, spain, venice, mongols, denmark, byzantium, russia, egypt, turks, sicily, poland, hungary, milan, timurids, france, normans, papal_states, }  and not event_counter is_the_ai 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { scotland, }  and event_counter dawn_scotland 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { poland, }  and event_counter dawn_poland 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { england, }  and event_counter dawn_england 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { papal_states, }  and event_counter dawn_papal_states 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { normans, }  and event_counter dawn_normans 1
                recruit_pool "Restless League"  1   0.2   1  0  requires factions { moors, }  and event_counter league_moors 1
                recruit_pool "Restless League"  1   0.2   1  0  requires factions { spain, }  and event_counter league_spain 1
                recruit_pool "Restless League"  1   0.2   1  0  requires factions { venice, }  and event_counter league_venice 1
                recruit_pool "Restless League"  1   0.2   1  0  requires factions { mongols, }  and event_counter league_mongols 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { scotland, }  and event_counter skaal_scotland 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { england, }  and event_counter skaal_england 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { sicily, }  and event_counter skaal_sicily 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { poland, }  and event_counter skaal_poland 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { hungary, }  and event_counter skaal_hungary 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { normans, }  and event_counter skaal_normans 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { papal_states, }  and event_counter skaal_papal_states 1
                recruit_pool "Orcrest Warriors"  1   0.1   1  0  requires factions { egypt, turks, denmark, }  and hidden_resource anequina
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { byzantium, }  and event_counter maormer_byzantium 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { france, }  and event_counter maormer_france 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { egypt, }  and event_counter maormer_egypt 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { turks, }  and event_counter maormer_turks 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { russia, }  and event_counter maormer_russia 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { byzantium, }  and event_counter rimmen_byzantium 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { france, }  and event_counter rimmen_france 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { egypt, }  and event_counter rimmen_egypt 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { turks, }  and event_counter rimmen_turks 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { russia, }  and event_counter rimmen_russia 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { england, }  and event_counter rimmen_england 1
                law_bonus bonus 2
                population_health_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  4500 
            settlement_min city
            upgrades
            {
                fighters_guild3
            }
        }
        fighters_guild3 requires factions { england, scotland, moors, spain, venice, mongols, denmark, byzantium, russia, egypt, turks, sicily, poland, hungary, milan, timurids, france, normans, papal_states, }  and hidden_resource mguild
        {
            capability
            {
                recruit_pool "Fighters Guild"  1   0.1   1  0  requires factions { england, scotland, moors, spain, venice, mongols, denmark, byzantium, russia, egypt, turks, sicily, poland, hungary, milan, timurids, france, normans, papal_states, }  and not event_counter is_the_ai 1
                recruit_pool "Fighters Guild Heavy"  1   0.05   1  0  requires factions { england, scotland, moors, spain, venice, mongols, denmark, byzantium, russia, egypt, turks, sicily, poland, hungary, milan, timurids, france, normans, papal_states, }  and not event_counter is_the_ai 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { scotland, }  and event_counter dawn_scotland 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { poland, }  and event_counter dawn_poland 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { england, }  and event_counter dawn_england 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { papal_states, }  and event_counter dawn_papal_states 1
                recruit_pool "Dawnguard"  1   0.2   1  0  requires factions { normans, }  and event_counter dawn_normans 1
                recruit_pool "Dawnguard CB"  1   0.2   1  0  requires factions { scotland, }  and event_counter dawn_scotland 1
                recruit_pool "Dawnguard CB"  1   0.2   1  0  requires factions { poland, }  and event_counter dawn_poland 1
                recruit_pool "Dawnguard CB"  1   0.2   1  0  requires factions { england, }  and event_counter dawn_england 1
                recruit_pool "Dawnguard CB"  1   0.2   1  0  requires factions { papal_states, }  and event_counter dawn_papal_states 1
                recruit_pool "Dawnguard CB"  1   0.2   1  0  requires factions { normans, }  and event_counter dawn_normans 1
                recruit_pool "Armoured Trolls"  1   0.1   1  0  requires factions { scotland, }  and event_counter dawn_scotland 1
                recruit_pool "Armoured Trolls"  1   0.1   1  0  requires factions { poland, }  and event_counter dawn_poland 1
                recruit_pool "Armoured Trolls"  1   0.1   1  0  requires factions { england, }  and event_counter dawn_england 1
                recruit_pool "Armoured Trolls"  1   0.1   1  0  requires factions { papal_states, }  and event_counter dawn_papal_states 1
                recruit_pool "Armoured Trolls"  1   0.1   1  0  requires factions { normans, }  and event_counter dawn_normans 1
                recruit_pool "Restless League"  1   0.2   1  0  requires factions { moors, }  and event_counter league_moors 1
                recruit_pool "Restless League"  1   0.2   1  0  requires factions { spain, }  and event_counter league_spain 1
                recruit_pool "Restless League"  1   0.2   1  0  requires factions { venice, }  and event_counter league_venice 1
                recruit_pool "Restless League"  1   0.2   1  0  requires factions { mongols, }  and event_counter league_mongols 1
                recruit_pool "Restless League Archers"  1   0.2   1  0  requires factions { moors, }  and event_counter league_moors 1
                recruit_pool "Restless League Archers"  1   0.2   1  0  requires factions { spain, }  and event_counter league_spain 1
                recruit_pool "Restless League Archers"  1   0.2   1  0  requires factions { venice, }  and event_counter league_venice 1
                recruit_pool "Restless League Archers"  1   0.2   1  0  requires factions { mongols, }  and event_counter league_mongols 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { scotland, }  and event_counter skaal_scotland 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { england, }  and event_counter skaal_england 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { sicily, }  and event_counter skaal_sicily 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { poland, }  and event_counter skaal_poland 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { hungary, }  and event_counter skaal_hungary 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { normans, }  and event_counter skaal_normans 1
                recruit_pool "Skaal Warriors"  1   0.2   1  0  requires factions { papal_states, }  and event_counter skaal_papal_states 1
                recruit_pool "Skaal"  1   0.2   1  0  requires factions { papal_states, }  and event_counter skaal_papal_states 1
                recruit_pool "Skaal"  1   0.2   1  0  requires factions { normans, }  and event_counter skaal_normans 1
                recruit_pool "Skaal"  1   0.2   1  0  requires factions { scotland, }  and event_counter skaal_scotland 1
                recruit_pool "Skaal"  1   0.2   1  0  requires factions { england, }  and event_counter skaal_england 1
                recruit_pool "Skaal"  1   0.2   1  0  requires factions { sicily, }  and event_counter skaal_sicily 1
                recruit_pool "Skaal"  1   0.2   1  0  requires factions { poland, }  and event_counter skaal_poland 1
                recruit_pool "Skaal"  1   0.2   1  0  requires factions { hungary, }  and event_counter skaal_hungary 1
                recruit_pool "Orcrest Warriors"  1   0.1   1  0  requires factions { egypt, turks, denmark, }  and hidden_resource anequina
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { byzantium, }  and event_counter maormer_byzantium 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { france, }  and event_counter maormer_france 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { egypt, }  and event_counter maormer_egypt 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { turks, }  and event_counter maormer_turks 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { russia, }  and event_counter maormer_russia 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { byzantium, }  and event_counter maormer_byzantium 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { france, }  and event_counter maormer_france 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { egypt, }  and event_counter maormer_egypt 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { turks, }  and event_counter maormer_turks 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { russia, }  and event_counter maormer_russia 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { byzantium, }  and event_counter maormer_byzantium 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { france, }  and event_counter maormer_france 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { egypt, }  and event_counter maormer_egypt 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { turks, }  and event_counter maormer_turks 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { russia, }  and event_counter maormer_russia 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { byzantium, }  and event_counter rimmen_byzantium 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { france, }  and event_counter rimmen_france 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { egypt, }  and event_counter rimmen_egypt 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { turks, }  and event_counter rimmen_turks 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { russia, }  and event_counter rimmen_russia 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { england, }  and event_counter rimmen_england 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { byzantium, }  and event_counter rimmen_byzantium 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { france, }  and event_counter rimmen_france 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { egypt, }  and event_counter rimmen_egypt 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { turks, }  and event_counter rimmen_turks 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { russia, }  and event_counter rimmen_russia 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { england, }  and event_counter rimmen_england 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { byzantium, }  and event_counter rimmen_byzantium 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { france, }  and event_counter rimmen_france 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { egypt, }  and event_counter rimmen_egypt 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { turks, }  and event_counter rimmen_turks 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { russia, }  and event_counter rimmen_russia 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { england, }  and event_counter rimmen_england 1
                law_bonus bonus 3
                population_health_bonus bonus 2
            }
            material stone
            construction  4 
            cost  8500 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building blackwood_guild
{
    levels blackwood_guild1 blackwood_guild2 blackwood_guild3 
    {
        blackwood_guild1 requires factions { england, russia, egypt, turks, timurids, }  and hidden_resource blackwood and event_counter is_the_3rd_era 1
        {
            capability
            {
                recruit_pool "Blackwood Swordsmen"  1   0.1   1  0  requires factions { england, russia, egypt, turks, timurids, }  and not event_counter is_the_ai 1
                recruit_pool "Blackwood Swordsmen"  1   0.005   1  0  requires factions { england, russia, egypt, turks, timurids, }  and event_counter is_the_ai 1
                law_bonus bonus -1
                population_health_bonus bonus 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                blackwood_guild2
            }
        }
        blackwood_guild2 requires factions { england, russia, egypt, turks, timurids, }  and hidden_resource blackwood
        {
            capability
            {
                recruit_pool "Blackwood Swordsmen"  1   0.1   1  0  requires factions { england, russia, egypt, turks, timurids, }  and not event_counter is_the_ai 1
                recruit_pool "Blackwood Heavy Swordsmen"  1   0.05   1  0  requires factions { england, russia, egypt, turks, timurids, }  and not event_counter is_the_ai 1
                recruit_pool "Blackwood Swordsmen"  1   0.005   1  0  requires factions { england, russia, egypt, turks, timurids, }  and event_counter is_the_ai 1
                recruit_pool "Blackwood Heavy Swordsmen"  1   0.005   1  0  requires factions { england, russia, egypt, turks, timurids, }  and event_counter is_the_ai 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { byzantium, }  and event_counter maormer_byzantium 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { france, }  and event_counter maormer_france 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { egypt, }  and event_counter maormer_egypt 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { turks, }  and event_counter maormer_turks 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { russia, }  and event_counter maormer_russia 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { byzantium, }  and event_counter rimmen_byzantium 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { france, }  and event_counter rimmen_france 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { egypt, }  and event_counter rimmen_egypt 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { turks, }  and event_counter rimmen_turks 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { russia, }  and event_counter rimmen_russia 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { england, }  and event_counter rimmen_england 1
                law_bonus bonus -1
                population_health_bonus bonus 2
            }
            material wooden
            construction  3 
            cost  3200 
            settlement_min city
            upgrades
            {
                blackwood_guild3
            }
        }
        blackwood_guild3 requires factions { england, russia, egypt, turks, timurids, }  and hidden_resource blackwood
        {
            capability
            {
                recruit_pool "Blackwood Swordsmen"  1   0.2   1  0  requires factions { england, russia, egypt, turks, timurids, }  and not event_counter is_the_ai 1
                recruit_pool "Blackwood Heavy Swordsmen"  1   0.1   1  0  requires factions { england, russia, egypt, turks, timurids, }  and not event_counter is_the_ai 1
                recruit_pool "Blackwood Swordsmen"  1   0.01   1  0  requires factions { england, russia, egypt, turks, timurids, }  and event_counter is_the_ai 1
                recruit_pool "Blackwood Heavy Swordsmen"  1   0.01   1  0  requires factions { england, russia, egypt, turks, timurids, }  and event_counter is_the_ai 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { byzantium, }  and event_counter maormer_byzantium 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { france, }  and event_counter maormer_france 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { egypt, }  and event_counter maormer_egypt 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { turks, }  and event_counter maormer_turks 1
                recruit_pool "Maormeri MAA Merc"  1   0.2   1  0  requires factions { russia, }  and event_counter maormer_russia 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { byzantium, }  and event_counter maormer_byzantium 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { france, }  and event_counter maormer_france 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { egypt, }  and event_counter maormer_egypt 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { turks, }  and event_counter maormer_turks 1
                recruit_pool "Maormeri Archers Merc"  1   0.2   1  0  requires factions { russia, }  and event_counter maormer_russia 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { byzantium, }  and event_counter maormer_byzantium 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { france, }  and event_counter maormer_france 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { egypt, }  and event_counter maormer_egypt 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { turks, }  and event_counter maormer_turks 1
                recruit_pool "Maormeri Spears Merc"  1   0.2   1  0  requires factions { russia, }  and event_counter maormer_russia 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { byzantium, }  and event_counter rimmen_byzantium 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { france, }  and event_counter rimmen_france 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { egypt, }  and event_counter rimmen_egypt 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { turks, }  and event_counter rimmen_turks 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { russia, }  and event_counter rimmen_russia 1
                recruit_pool "Akavir Swordsmen"  1   0.2   1  0  requires factions { england, }  and event_counter rimmen_england 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { byzantium, }  and event_counter rimmen_byzantium 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { france, }  and event_counter rimmen_france 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { egypt, }  and event_counter rimmen_egypt 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { turks, }  and event_counter rimmen_turks 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { russia, }  and event_counter rimmen_russia 1
                recruit_pool "Akavir Bowmen"  1   0.2   1  0  requires factions { england, }  and event_counter rimmen_england 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { byzantium, }  and event_counter rimmen_byzantium 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { france, }  and event_counter rimmen_france 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { egypt, }  and event_counter rimmen_egypt 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { turks, }  and event_counter rimmen_turks 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { russia, }  and event_counter rimmen_russia 1
                recruit_pool "Akavir Pikemen"  1   0.2   1  0  requires factions { england, }  and event_counter rimmen_england 1
                law_bonus bonus -2
                population_health_bonus bonus 3
            }
            material wooden
            construction  4 
            cost  6400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;###################### SILT STRIDERS #######################
;############################################################
building strider_port
{
    levels sp1 
    {
        sp1 city requires factions { sicily, poland, hungary, timurids, milan, normans, }  and hidden_resource morrowind and event_counter is_the_3rd_era 1
        {
            capability
            {
                recruit_pool "Siltstriders"  1   0.1   1  0  requires factions { sicily, poland, hungary, timurids, milan, aztecs, }  and hidden_resource morrowind 
            }
            material wooden
            construction  5 
            cost  4600 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;#########################  SMITHS  #########################
;############################################################
building smith
{
    levels leather_tanner blacksmith armourer heavy_armourer plate_armourer gothic_armourer 
    {
        leather_tanner city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                blacksmith
            }
        }
        blacksmith city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 2
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                armourer
            }
        }
        armourer city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 3
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min city
            upgrades
            {
                heavy_armourer
            }
        }
        heavy_armourer city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 4
            }
            material wooden
            construction  5 
            cost  6400 
            settlement_min large_city
            upgrades
            {
                plate_armourer
            }
        }
        plate_armourer city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 5
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min huge_city
            upgrades
            {
                gothic_armourer
            }
        }
        gothic_armourer city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 6
            }
            material wooden
            construction  7 
            cost  15000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_smith
{
    levels c_leather_tanner c_blacksmith c_armourer c_heavy_armourer c_plate_armourer c_gothic_armourer 
    {
        c_leather_tanner castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                c_blacksmith
            }
        }
        c_blacksmith castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 2
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                c_armourer
            }
        }
        c_armourer castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 3
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min city
            upgrades
            {
                c_heavy_armourer
            }
        }
        c_heavy_armourer castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 4
            }
            material wooden
            construction  5 
            cost  6400 
            settlement_min large_city
            upgrades
            {
                c_plate_armourer
            }
        }
        c_plate_armourer castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 5
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min large_city
            upgrades
            {
                c_gothic_armourer
            }
        }
        c_gothic_armourer castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                armour 6
            }
            material wooden
            construction  7 
            cost  15000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;########################  ECONOMY  #########################
;############################################################
building port
{
    levels port shipwright dockyard naval_drydock 
    {
        port city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "cog"  1   1   3  0  requires factions { england, venice, mongols, russia, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, saxons, } 
                recruit_pool "longboat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dhow"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "dromon"  1   1   3  0  requires factions { byzantium, turks, } 
                recruit_pool "merc dromon"  1   1   3  0  requires factions { france, egypt, } 
                recruit_pool "merc cog"  1   1   3  0  requires factions { denmark, } 
                trade_base_income_bonus bonus 2
                trade_fleet 1
            }
            material wooden
            construction  2 
            cost  800 
            settlement_min large_town
            upgrades
            {
                shipwright
            }
        }
        shipwright city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "cog"  1   1   3  0  requires factions { england, venice, mongols, russia, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, saxons, } 
                recruit_pool "ladya"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "longboat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dhow"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "dromon"  1   1   3  0  requires factions { byzantium, turks, } 
                recruit_pool "caravel"  1   1   3  0  requires factions { england, venice, mongols, } 
                recruit_pool "galley"  1   1   3  0  requires factions { moors, byzantium, spain, } 
                recruit_pool "holk"  1   1   3  0  requires factions { sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, turks, russia, } 
                recruit_pool "merc dromon"  1   1   3  0  requires factions { france, egypt, } 
                recruit_pool "merc cog"  1   1   3  0  requires factions { denmark, } 
                recruit_pool "merc galley"  1   1   3  0  requires factions { slave, saxons, denmark, egypt, france, } 
                trade_base_income_bonus bonus 3
                trade_fleet 1
            }
            material wooden
            construction  3 
            cost  1600 
            settlement_min city
            upgrades
            {
                dockyard
            }
        }
        dockyard city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "cog"  1   1   3  0  requires factions { england, venice, mongols, russia, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, saxons, } 
                recruit_pool "ladya"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "longboat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dragon boat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dhow"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "dromon"  1   1   3  0  requires factions { byzantium, turks, } 
                recruit_pool "caravel"  1   1   3  0  requires factions { england, venice, mongols, } 
                recruit_pool "galley"  1   1   3  0  requires factions { moors, byzantium, spain, } 
                recruit_pool "holk"  1   1   3  0  requires factions { sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, turks, russia, } 
                recruit_pool "carrack"  1   1   3  0  requires factions { venice, mongols, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, } 
                recruit_pool "galleass"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "galeon"  1   1   3  0  requires factions { england, byzantium, turks, } 
                recruit_pool "merc dromon"  1   1   3  0  requires factions { france, egypt, } 
                recruit_pool "merc cog"  1   1   3  0  requires factions { denmark, } 
                recruit_pool "merc galley"  1   1   3  0  requires factions { slave, saxons, denmark, egypt, france, } 
                trade_base_income_bonus bonus 4
                trade_fleet 1
            }
            material wooden
            construction  5 
            cost  3200 
            settlement_min large_city
            upgrades
            {
                naval_drydock
            }
        }
        naval_drydock city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "cog"  1   1   3  0  requires factions { england, venice, mongols, russia, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, saxons, } 
                recruit_pool "ladya"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "longboat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dragon boat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dhow"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "dromon"  1   1   3  0  requires factions { byzantium, turks, } 
                recruit_pool "caravel"  1   1   3  0  requires factions { england, venice, mongols, } 
                recruit_pool "galley"  1   1   3  0  requires factions { moors, byzantium, spain, } 
                recruit_pool "holk"  1   1   3  0  requires factions { sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, turks, russia, } 
                recruit_pool "carrack"  1   1   3  0  requires factions { venice, mongols, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, } 
                recruit_pool "galleass"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "galeon"  1   1   3  0  requires factions { england, byzantium, turks, } 
                recruit_pool "merc dromon"  1   1   3  0  requires factions { france, egypt, } 
                recruit_pool "merc cog"  1   1   3  0  requires factions { denmark, } 
                recruit_pool "merc galley"  1   1   3  0  requires factions { slave, saxons, denmark, egypt, france, } 
                trade_base_income_bonus bonus 5
                trade_fleet 1
            }
            material wooden
            construction  6 
            cost  6400 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_port
{
    levels c_port c_shipwright c_dockyard c_naval_drydock 
    {
        c_port castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "cog"  1   1   3  0  requires factions { england, venice, mongols, russia, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, saxons, } 
                recruit_pool "longboat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dhow"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "dromon"  1   1   3  0  requires factions { byzantium, turks, } 
                recruit_pool "merc dromon"  1   1   3  0  requires factions { france, egypt, } 
                recruit_pool "merc cog"  1   1   3  0  requires factions { denmark, } 
                trade_base_income_bonus bonus 2
                trade_fleet 1
            }
            material wooden
            construction  2 
            cost  800 
            settlement_min large_town
            upgrades
            {
                c_shipwright
            }
        }
        c_shipwright castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "cog"  1   1   3  0  requires factions { england, venice, mongols, russia, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, saxons, } 
                recruit_pool "ladya"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "longboat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dhow"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "dromon"  1   1   3  0  requires factions { byzantium, turks, } 
                recruit_pool "caravel"  1   1   3  0  requires factions { england, venice, mongols, } 
                recruit_pool "galley"  1   1   3  0  requires factions { moors, byzantium, spain, } 
                recruit_pool "holk"  1   1   3  0  requires factions { sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, turks, russia, } 
                recruit_pool "merc dromon"  1   1   3  0  requires factions { france, egypt, } 
                recruit_pool "merc cog"  1   1   3  0  requires factions { denmark, } 
                recruit_pool "merc galley"  1   1   3  0  requires factions { slave, saxons, denmark, egypt, france, } 
                trade_base_income_bonus bonus 3
                trade_fleet 1
            }
            material wooden
            construction  3 
            cost  1600 
            settlement_min city
            upgrades
            {
                c_dockyard
            }
        }
        c_dockyard castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "cog"  1   1   3  0  requires factions { england, venice, mongols, russia, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, saxons, } 
                recruit_pool "ladya"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "longboat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dragon boat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dhow"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "dromon"  1   1   3  0  requires factions { byzantium, turks, } 
                recruit_pool "caravel"  1   1   3  0  requires factions { england, venice, mongols, } 
                recruit_pool "galley"  1   1   3  0  requires factions { moors, byzantium, spain, } 
                recruit_pool "holk"  1   1   3  0  requires factions { sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, turks, russia, } 
                recruit_pool "carrack"  1   1   3  0  requires factions { venice, mongols, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, } 
                recruit_pool "galleass"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "galeon"  1   1   3  0  requires factions { england, byzantium, turks, } 
                recruit_pool "merc dromon"  1   1   3  0  requires factions { france, egypt, } 
                recruit_pool "merc cog"  1   1   3  0  requires factions { denmark, } 
                recruit_pool "merc galley"  1   1   3  0  requires factions { slave, saxons, denmark, egypt, france, } 
                trade_base_income_bonus bonus 4
                trade_fleet 1
            }
            material wooden
            construction  5 
            cost  3200 
            settlement_min large_city
            upgrades
            {
                c_naval_drydock
            }
        }
        c_naval_drydock castle requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                recruit_pool "cog"  1   1   3  0  requires factions { england, venice, mongols, russia, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, saxons, } 
                recruit_pool "ladya"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "longboat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dragon boat"  1   1   3  0  requires factions { scotland, papal_states, } 
                recruit_pool "dhow"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "dromon"  1   1   3  0  requires factions { byzantium, turks, } 
                recruit_pool "caravel"  1   1   3  0  requires factions { england, venice, mongols, } 
                recruit_pool "galley"  1   1   3  0  requires factions { moors, byzantium, spain, } 
                recruit_pool "holk"  1   1   3  0  requires factions { sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, turks, russia, } 
                recruit_pool "carrack"  1   1   3  0  requires factions { venice, mongols, sicily, poland, milan, hungary, timurids, aztecs, portugal, normans, } 
                recruit_pool "galleass"  1   1   3  0  requires factions { spain, moors, } 
                recruit_pool "galeon"  1   1   3  0  requires factions { england, byzantium, turks, } 
                recruit_pool "merc dromon"  1   1   3  0  requires factions { france, egypt, } 
                recruit_pool "merc cog"  1   1   3  0  requires factions { denmark, } 
                recruit_pool "merc galley"  1   1   3  0  requires factions { slave, saxons, denmark, egypt, france, } 
                trade_base_income_bonus bonus 5
                trade_fleet 1
            }
            material wooden
            construction  6 
            cost  6400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building sea_trade
{
    levels merchants_wharf warehouse docklands 
    {
        merchants_wharf city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, }  and building_present_min_level port port
        {
            capability
            {
                trade_fleet 2
                trade_base_income_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  1600 
            settlement_min city
            upgrades
            {
                warehouse
            }
        }
        warehouse city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, }  and building_present_min_level port port
        {
            capability
            {
                trade_fleet 3
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  5 
            cost  3200 
            settlement_min large_city
            upgrades
            {
                docklands
            }
        }
        docklands city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, portugal, aztecs, denmark, saxons, normans, papal_states, slave, hre, custom, }  and building_present_min_level port port
        {
            capability
            {
                trade_fleet 4
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  6 
            cost  6400 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building admiralty
{
    levels naval_academy admiralty 
    {
        naval_academy city requires factions { england, }  and building_present_min_level port port
        {
            capability
            {
                recruitment_cost_bonus_naval bonus 1
                navy_bonus 1
            }
            material wooden
            construction  3 
            cost  2400 
            settlement_min city
            upgrades
            {
                admiralty
            }
        }
        admiralty city requires factions { england, } 
        {
            capability
            {
                recruitment_cost_bonus_naval bonus 2
                navy_bonus 1
            }
            material wooden
            construction  5 
            cost  4800 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building market
{
    levels corn_exchange market fairground great_market merchants_quarter 
    {
        corn_exchange city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, saxons, egypt, turks, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent merchant  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                agent merchant  0  requires factions { egypt, turks, } 
                agent merchant  0  requires factions { milan, timurids, sicily, poland, hungary, aztecs, normans, } 
                agent merchant  0  requires factions { byzantium, france, } 
                agent merchant  0  requires factions { russia, } 
                agent merchant  0  requires factions { denmark, } 
                trade_base_income_bonus bonus 2
                agent_limit merchant 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                market
            }
        }
        market city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, saxons, egypt, turks, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent merchant  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                agent merchant  0  requires factions { egypt, turks, } 
                agent merchant  0  requires factions { milan, timurids, sicily, poland, hungary, aztecs, normans, } 
                agent merchant  0  requires factions { byzantium, france, } 
                agent merchant  0  requires factions { russia, } 
                agent merchant  0  requires factions { denmark, } 
                trade_base_income_bonus bonus 3
                agent_limit merchant 1
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                fairground
            }
        }
        fairground city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, saxons, egypt, turks, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent merchant  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                agent merchant  0  requires factions { egypt, turks, } 
                agent merchant  0  requires factions { milan, timurids, sicily, poland, hungary, aztecs, normans, } 
                agent merchant  0  requires factions { byzantium, france, } 
                agent merchant  0  requires factions { russia, } 
                agent merchant  0  requires factions { denmark, } 
                trade_base_income_bonus bonus 4
                agent_limit merchant 1
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min city
            upgrades
            {
                great_market
            }
        }
        great_market city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, saxons, egypt, turks, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent merchant  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                agent merchant  0  requires factions { egypt, turks, } 
                agent merchant  0  requires factions { milan, timurids, sicily, poland, hungary, aztecs, normans, } 
                agent merchant  0  requires factions { byzantium, france, } 
                agent merchant  0  requires factions { russia, } 
                agent merchant  0  requires factions { denmark, } 
                trade_base_income_bonus bonus 5
                agent_limit merchant 1
            }
            material wooden
            construction  6 
            cost  4800 
            settlement_min large_city
            upgrades
            {
                merchants_quarter
            }
        }
        merchants_quarter city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, saxons, egypt, turks, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent merchant  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                agent merchant  0  requires factions { egypt, turks, } 
                agent merchant  0  requires factions { milan, timurids, sicily, poland, hungary, aztecs, normans, } 
                agent merchant  0  requires factions { byzantium, france, } 
                agent merchant  0  requires factions { russia, } 
                agent merchant  0  requires factions { denmark, } 
                trade_base_income_bonus bonus 6
                agent_limit merchant 1
            }
            material wooden
            construction  7 
            cost  9600 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;######################  POPULATION  ########################
;############################################################
building hinterland_roads
{
    levels roads paved_roads 
    {
        roads city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, }  and hidden_resource roads 
        {
            capability
            {
                road_level 0
            }
            material wooden
            construction  1 
            cost  400 
            settlement_min village
            upgrades
            {
                paved_roads
            }
        }
        paved_roads city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, }  and hidden_resource roads 
        {
            capability
            {
                road_level 1
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_castle_roads
{
    levels c_roads c_paved_roads 
    {
        c_roads castle requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, }  and hidden_resource roads 
        {
            capability
            {
                road_level 0
            }
            material wooden
            construction  1 
            cost  400 
            settlement_min town
            upgrades
            {
                c_paved_roads
            }
        }
        c_paved_roads castle requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, }  and hidden_resource roads 
        {
            capability
            {
                road_level 1
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_farms
{
    levels farms farms+1 farms+2 farms+3 
    {
        farms requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, egypt, turks, normans, papal_states, slave, hre, custom, }  and hidden_resource farms 
        {
            capability
            {
                farming_level 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min village
            upgrades
            {
                farms+1
            }
        }
        farms+1 requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, egypt, turks, normans, papal_states, slave, hre, custom, }  and hidden_resource farms 
        {
            capability
            {
                farming_level 2
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min town
            upgrades
            {
                farms+2
            }
        }
        farms+2 requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, egypt, turks, normans, papal_states, slave, hre, custom, }  and hidden_resource farms 
        {
            capability
            {
                farming_level 3
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min large_town
            upgrades
            {
                farms+3
            }
        }
        farms+3 requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, egypt, turks, normans, papal_states, slave, hre, custom, }  and hidden_resource farms 
        {
            capability
            {
                farming_level 4
            }
            material wooden
            construction  6 
            cost  4800 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_mines
{
    levels mines mines+1 
    {
        mines city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            capability
            {
                mine_resource 4
            }
            material wooden
            construction  2 
            cost  2000 
            settlement_min large_town
            upgrades
            {
                mines+1
            }
        }
        mines+1 city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            capability
            {
                mine_resource 7
            }
            material wooden
            construction  3 
            cost  3500 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_castle_mines
{
    levels c_mines c_mines+1 
    {
        c_mines castle requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            capability
            {
                mine_resource 4
            }
            material wooden
            construction  2 
            cost  2000 
            settlement_min large_town
            upgrades
            {
                c_mines+1
            }
        }
        c_mines+1 castle requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            capability
            {
                mine_resource 7
            }
            material wooden
            construction  3 
            cost  3500 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}

building hinterland_hunt
{
    levels hunt hunt+1 hunt+2 hunt+3 
    {
        hunt requires factions { denmark, france, }  and hidden_resource farms 
        {
            capability
            {
                farming_level 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min village
            upgrades
            {
                hunt+1
            }
        }
        hunt+1 requires factions { denmark, france, }  and hidden_resource farms 
        {
            capability
            {
                farming_level 2
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min town
            upgrades
            {
                hunt+2
            }
        }
        hunt+2 requires factions { denmark, france, }  and hidden_resource farms 
        {
            capability
            {
                farming_level 3
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min large_town
            upgrades
            {
                hunt+3
            }
        }
        hunt+3 requires factions { denmark, france, }  and hidden_resource farms 
        {
            capability
            {
                farming_level 4
            }
            material wooden
            construction  6 
            cost  4800 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building caravan
{
    levels caravan_stop trading_post caravanersary 
    {
        caravan_stop city requires factions { spain, moors, egypt, turks, } 
        {
            capability
            {
                population_growth_bonus bonus 1 requires factions { spain, moors, egypt, turks, }
            }
            material wooden
            construction  3
            cost  2500 
            settlement_min town
            upgrades
            {
                trading_post
            }
        }
        trading_post city requires factions { spain, moors, egypt, turks, } 
        {
            capability
            {
                population_growth_bonus bonus 2 requires factions { spain, moors, egypt, turks, }
                trade_level_bonus bonus 1
            }
            material wooden
            construction  5
            cost  4200 
            settlement_min large_town
            upgrades
            {
                caravanersary
            }
        }
        caravanersary city requires factions { spain, moors, egypt, turks, } 
        {
            capability
            {
                population_growth_bonus bonus 3 requires factions { spain, moors, egypt, turks, }
                trade_level_bonus bonus 2
            }
            material wooden
            construction  6
            cost  6200 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;##################  RELIGION BUILDINGS  ####################
;############################################################
building temple_dagoth
{
    religion dagoth_rel
    levels d_small_chapel d_chapel 
    {
        d_small_chapel requires factions { portugal, } 
        {
            capability
            {
                agent priest  0  requires factions { portugal, } 
                agent_limit priest 1
                happiness_bonus bonus 2
                religion_level bonus 3
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min large_town
            upgrades
            {
                d_chapel
            }
        }
        d_chapel requires factions { portugal, } 
        {
            capability
            {
                agent priest  0  requires factions { portugal, } 
                happiness_bonus bonus 4
                religion_level bonus 5
                agent_limit priest 2
                population_health_bonus bonus 3
            }
            material wooden
            construction  3 
            cost  2600 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_auriel
{
    religion auriel_rel
    levels a_small_chapel a_chapel a_temple a_god_temple 
    {
        a_small_chapel requires factions { byzantium, } 
        {
            capability
            {
                agent priest  0  requires factions { byzantium, } 
                agent_limit priest 1
                happiness_bonus bonus 1
                religion_level bonus 2
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                a_chapel
            }
        }
        a_chapel requires factions { byzantium, } 
        {
            capability
            {
                agent priest  0  requires factions { byzantium, } 
                agent_limit priest 1
                happiness_bonus bonus 2
                religion_level bonus 3
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min town
            upgrades
            {
                a_temple
            }
        }
        a_temple requires factions { byzantium, } 
        {
            capability
            {
                agent priest  0  requires factions { byzantium, } 
                happiness_bonus bonus 2
                religion_level bonus 4
                agent_limit priest 2
                population_health_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  3200 
            settlement_min town
            upgrades
            {
                a_god_temple
            }
        }
        a_god_temple requires factions { byzantium, } 
        {
            capability
            {
                agent priest  0  requires factions { byzantium, } 
                happiness_bonus bonus 4
                religion_level bonus 5
                agent_limit priest 2
                population_health_bonus bonus 3
            }
            material wooden
            construction  4 
            cost  6400 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_yffre
{
    religion yffre_rel
    levels y_small_chapel y_chapel y_temple y_big_temple 
    {
        y_small_chapel requires factions { france, } 
        {
            capability
            {
                agent priest  0  requires factions { france, } 
                agent_limit priest 1
                happiness_bonus bonus 1
                religion_level bonus 2
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                y_chapel
            }
        }
        y_chapel requires factions { france, } 
        {
            capability
            {
                agent priest  0  requires factions { france, } 
                agent_limit priest 1
                happiness_bonus bonus 2
                religion_level bonus 3
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min town
            upgrades
            {
                y_temple
            }
        }
        y_temple requires factions { france, } 
        {
            capability
            {
                agent priest  0  requires factions { france, } 
                happiness_bonus bonus 2
                religion_level bonus 4
                agent_limit priest 2
                population_health_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  3200 
            settlement_min town
            upgrades
            {
                y_big_temple
            }
        }
        y_big_temple requires factions { france, } 
        {
            capability
            {
                agent priest  0  requires factions { france, } 
                happiness_bonus bonus 4
                religion_level bonus 5
                agent_limit priest 2
                population_health_bonus bonus 3
            }
            material wooden
            construction  4 
            cost  6400 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_orc
{
    religion orc_rel
    levels m_small_chapel m_chapel m_big_chapel m_temple 
    {
        m_small_chapel requires factions { denmark, } 
        {
            capability
            {
                agent priest  0  requires factions { denmark, } 
                agent_limit priest 1
                happiness_bonus bonus 1
                religion_level bonus 2
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                m_chapel
            }
        }
        m_chapel requires factions { denmark, } 
        {
            capability
            {
                agent priest  0  requires factions { denmark, } 
                agent_limit priest 1
                happiness_bonus bonus 2
                religion_level bonus 3
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                 m_big_chapel
            }
        }
        m_big_chapel requires factions { denmark, } 
        {
            capability
            {
                agent priest  0  requires factions { denmark, } 
                happiness_bonus bonus 2
                religion_level bonus 4
                agent_limit priest 2
                population_health_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  3200 
            settlement_min city
            upgrades
            {
                 m_temple
            }
        }
        m_temple requires factions { denmark, } 
        {
            capability
            {
                agent priest  0  requires factions { denmark, } 
                happiness_bonus bonus 4
                religion_level bonus 5
                agent_limit priest 2
                population_health_bonus bonus 3
            }
            material wooden
            construction  4 
            cost  6400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_catholic
{
    religion catholic
    levels small_church church abbey cathedral huge_cathedral
    {
        small_church city requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
        {
            capability
            {
                agent priest  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                agent_limit priest 1
                happiness_bonus bonus 1
                religion_level bonus 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                church
            }
        }
        church city requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
        {
            capability
            {
                agent priest  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                agent_limit priest 1
                happiness_bonus bonus 1
                religion_level bonus 2
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                abbey
            }
        }
        abbey city requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
        {
            capability
            {
                agent priest  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                agent_limit priest 1
                happiness_bonus bonus 2
                religion_level bonus 3
            }
            material wooden
            construction  3 
            cost  3200 
            settlement_min city
            upgrades
            {
                cathedral
            }
        }
        cathedral city requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
        {
            capability
            {
                agent priest  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                recruit_pool "Knights of the Rim"  1   0.05   1  0  requires factions { england, scotland, papal_states, venice, mongols, moors, spain, }  and region_religion catholic 100
                recruit_pool "Knights of the Lily"  1   0.05   1  0  requires factions { england, scotland, papal_states, venice, mongols, moors, spain, }  and region_religion catholic 100
                recruit_pool "Knights of the Iron"  1   0.05   1  0  requires factions { england, scotland, papal_states, venice, mongols, moors, spain, }  and region_religion catholic 100
                recruit_pool "Knights of the Hour"  1   0.05   1  0  requires factions { england, scotland, papal_states, venice, mongols, moors, spain, }  and region_religion catholic 100
                happiness_bonus bonus 2
                religion_level bonus 4
                agent_limit priest 2
                population_health_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  6400 
            settlement_min large_city
            upgrades
            {
                huge_cathedral
            }
        }
        huge_cathedral city requires factions { england, }  and hidden_resource imperial_city
        {
            capability
            {
                agent priest  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                happiness_bonus bonus 3
                religion_level bonus 5
                agent_limit priest 2
                population_health_bonus bonus 3
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_catholic_castle
{
    religion catholic
    levels small_chapel chapel 
    {
        small_chapel castle requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
        {
            capability
            {
                agent priest  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                chapel
            }
        }
        chapel castle requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
        {
            capability
            {
                agent priest  0  requires factions { england, scotland, venice, mongols, moors, spain, papal_states, } 
                recruit_pool "Mentors"  1   0.05   1  0  requires factions { england, scotland, papal_states, venice, mongols, moors, spain, }  and region_religion catholic 100
                recruit_pool "Vigilants"  1   0.05   1  0  requires factions { england, scotland, papal_states, venice, mongols, moors, spain, }  and region_religion catholic 100
                happiness_bonus bonus 1
                religion_level bonus 3
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_orthodox
{
    religion orthodox
    levels small_church_o church_o abbey_o cathedral_o huge_cathedral_o 
    {
        small_church_o city requires factions { egypt, turks, } 
        {
            capability
            {
                agent priest  0  requires factions { egypt, turks, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                church_o
            }
        }
        church_o city requires factions { egypt, turks, } 
        {
            capability
            {
                agent priest  0  requires factions { egypt, turks, } 
                happiness_bonus bonus 1
                religion_level bonus 4
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                abbey_o
            }
        }
        abbey_o city requires factions { egypt, turks, } 
        {
            capability
            {
                agent priest  0  requires factions { egypt, turks, } 
                recruit_pool "Khajiit Mage"  1   0.1   1  0  requires factions { egypt, turks, } 
                happiness_bonus bonus 2
                religion_level bonus 6
                agent_limit priest 2
            }
            material wooden
            construction  3 
            cost  3200 
            settlement_min city
            upgrades
            {
                cathedral_o
            }
        }
        cathedral_o city requires factions { egypt, turks, } 
        {
            capability
            {
                agent priest  0  requires factions { egypt, turks, } 
                recruit_pool "Khajiit Mage"  1   0.1   1  0  requires factions { egypt, turks, } 
                happiness_bonus bonus 2
                religion_level bonus 8
                agent_limit priest 2
            }
            material wooden
            construction  4 
            cost  6400 
            settlement_min large_city
            upgrades
            {
                huge_cathedral_o
            }
        }
        huge_cathedral_o city requires factions { egypt, turks, } 
        {
            capability
            {
                agent priest  0  requires factions { egypt, turks, } 
                recruit_pool "Khajiit Mage"  1   0.1   1  0  requires factions { egypt, turks, } 
                happiness_bonus bonus 3
                religion_level bonus 10
                agent_limit priest 2
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_orthodox_castle
{
    religion orthodox
    levels small_chapel_o chapel_o 
    {
        small_chapel_o castle requires factions { egypt, turks, } 
        {
            capability
            {
                agent priest  0  requires factions { egypt, turks, } 
                happiness_bonus bonus 1
                religion_level bonus 4
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                chapel_o
            }
        }
        chapel_o castle requires factions { egypt, turks, } 
        {
            capability
            {
                agent priest  0  requires factions { egypt, turks, } 
                happiness_bonus bonus 1
                religion_level bonus 6
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_muslim
{
    religion tribunal
    levels small_masjid masjid minareted_masjid jama great_jama vivec_temple mournhold_temple
    {
        small_masjid city requires factions { timurids, sicily, hungary, poland, milan, normans, } 
        {
            capability
            {
                agent priest  0  requires factions { timurids, sicily, hungary, poland, milan, normans, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                masjid
            }
        }
        masjid city requires factions { timurids, sicily, hungary, poland, milan, normans, } 
        {
            capability
            {
                agent priest  0  requires factions { timurids, sicily, hungary, poland, milan, normans, } 
                happiness_bonus bonus 1
                religion_level bonus 4
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                minareted_masjid
            }
        }
        minareted_masjid city requires factions { timurids, sicily, hungary, poland, milan, normans, } 
        {
            capability
            {
                agent priest  0  requires factions { timurids, sicily, hungary, poland, milan, normans, } 
                happiness_bonus bonus 2
                religion_level bonus 6
                agent_limit priest 1
            }
            material wooden
            construction  3 
            cost  3200 
            settlement_min city
            upgrades
            {
                jama
            }
        }
        jama city requires factions { timurids, sicily, hungary, poland, milan, normans, } 
        {
            capability
            {
                agent priest  0  requires factions { timurids, sicily, hungary, poland, milan, normans, } 
                happiness_bonus bonus 2
                religion_level bonus 8
                agent_limit priest 2
            }
            material wooden
            construction  4 
            cost  6400 
            settlement_min large_city
            upgrades
            {
                great_jama
            }
        }
        great_jama city requires factions { timurids, sicily, hungary, poland, milan, normans, } 
        {
            capability
            {
                agent priest  0  requires factions { timurids, sicily, hungary, poland, milan, normans, } 
                happiness_bonus bonus 3
                religion_level bonus 10
                agent_limit priest 2
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min huge_city
            upgrades
            {
                vivec_temple
            }
        }
        vivec_temple city requires factions { timurids, sicily, hungary, poland, milan, normans, }  and hidden_resource hr_none
        {
            capability
            {
                agent priest  0  requires factions { timurids, sicily, hungary, poland, milan, normans, } 
                happiness_bonus bonus 3
                religion_level bonus 15
                agent_limit priest 3
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min huge_city
            upgrades
            {
                mournhold_temple
            }
        }
        mournhold_temple city requires factions { timurids, sicily, hungary, poland, milan, normans, }  and hidden_resource hr_none
        {
            capability
            {
                agent priest  0  requires factions { timurids, sicily, hungary, poland, milan, normans, } 
                happiness_bonus bonus 3
                religion_level bonus 15
                agent_limit priest 3
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_muslim_castle
{
    religion tribunal
    levels c_small_masjid c_masjid 
    {
        c_small_masjid castle requires factions { timurids, sicily, hungary, poland, milan, normans, } 
        {
            capability
            {
                agent priest  0  requires factions { timurids, sicily, hungary, poland, milan, normans, } 
                happiness_bonus bonus 1
                religion_level bonus 4
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                c_masjid
            }
        }
        c_masjid castle requires factions { timurids, sicily, hungary, poland, milan, normans, } 
        {
            capability
            {
                agent priest  0  requires factions { timurids, sicily, hungary, poland, milan, normans, } 
                happiness_bonus bonus 1
                religion_level bonus 6
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_hist
{
    religion hist_rel
    levels high_hist hist large_hist
    {
         high_hist requires factions { russia, }
        {
            capability
            {
                agent priest  0  requires factions { russia, } 
                happiness_bonus bonus 1
                religion_level bonus 1
                recruits_morale_bonus bonus 1
                construction_cost_bonus_wooden bonus 5
                population_loyalty_bonus bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  3 
            cost  0 
            settlement_min large_town
            upgrades
            {
                hist
            }
        }
    hist requires factions { russia, } 
        {
            capability
            {
                agent priest  0  requires factions { russia, } 
                recruit_pool "Hist Priest"  1   0.1   1  3  requires factions { russia, } 
                happiness_bonus bonus 2
                religion_level bonus 2
                recruits_morale_bonus bonus 2
                construction_cost_bonus_wooden bonus 10
                population_loyalty_bonus bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  6 
            cost  0 
            settlement_min city
            upgrades
            {
                large_hist
            }
        }
        large_hist requires factions { russia, } 
        {
            capability
            {
                agent priest  0  requires factions { russia, } 
                recruit_pool "Hist Priest"  1   0.1   1  3  requires factions { russia, } 
                happiness_bonus bonus 4
                religion_level bonus 4
                recruits_morale_bonus bonus 4
                construction_cost_bonus_wooden bonus 20
                population_loyalty_bonus bonus 4
                agent_limit priest 1
            }
            material wooden
            construction  8 
            cost  8000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;####################### MISCELANEOUS #######################
;############################################################
building taverns
{
    levels brothel inn tavern coaching_house pleasure_palace 
    {
        brothel city requires factions { england, venice, spain, mongols, moors, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, byzantium, france, turks, egypt, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent spy  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent spy  0  requires factions { spain, moors, } 
                agent spy  0  requires factions { russia, } 
                agent spy  0  requires factions { denmark, } 
                agent spy  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, normans, } 
                agent spy  0  requires factions { byzantium, france, } 
                agent spy  0  requires factions { turks, egypt, } 
                agent_limit spy 1
            }
            material wooden
            construction  3
            cost  900 
            settlement_min town
            upgrades
            {
                inn
            }
        }
        inn city requires factions { england, venice, spain, mongols, moors, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, byzantium, france, turks, egypt, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent spy  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent spy  0  requires factions { spain, moors, } 
                agent spy  0  requires factions { russia, } 
                agent spy  0  requires factions { denmark, } 
                agent spy  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, normans, } 
                agent spy  0  requires factions { byzantium, france, } 
                agent spy  0  requires factions { turks, egypt, } 
                agent_limit spy 1
            }
            material wooden
            construction  4
            cost  2400 
            settlement_min large_town
            upgrades
            {
                tavern
            }
        }
        tavern city requires factions { england, venice, spain, mongols, moors, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, byzantium, france, turks, egypt, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent spy  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent spy  0  requires factions { spain, moors, } 
                agent spy  0  requires factions { russia, } 
                agent spy  0  requires factions { denmark, } 
                agent spy  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, normans, } 
                agent spy  0  requires factions { byzantium, france, } 
                agent spy  0  requires factions { turks, egypt, } 
                happiness_bonus bonus 1
                agent_limit spy 1
            }
            material wooden
            construction  5
            cost  4800 
            settlement_min city
            upgrades
            {
                coaching_house
            }
        }
        coaching_house city requires factions { england, venice, spain, mongols, moors, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, byzantium, france, turks, egypt, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent spy  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent spy  0  requires factions { spain, moors, } 
                agent spy  0  requires factions { russia, } 
                agent spy  0  requires factions { denmark, } 
                agent spy  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, normans, } 
                agent spy  0  requires factions { byzantium, france, } 
                agent spy  0  requires factions { turks, egypt, } 
                happiness_bonus bonus 2
                agent_limit spy 2
            }
            material wooden
            construction  6
            cost  9600 
            settlement_min large_city
            upgrades
            {
                pleasure_palace
            }
        }
        pleasure_palace city requires factions { england, venice, spain, mongols, moors, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, byzantium, france, turks, egypt, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent spy  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent spy  0  requires factions { spain, moors, } 
                agent spy  0  requires factions { russia, } 
                agent spy  0  requires factions { denmark, } 
                agent spy  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, normans, } 
                agent spy  0  requires factions { byzantium, france, } 
                agent spy  0  requires factions { turks, egypt, } 
                happiness_bonus bonus 3
                agent_limit spy 2
            }
            material wooden
            construction  7
            cost  12500 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;################ FACTION SPECIFIC BUILDINGS ################
;############################################################
building cc_portal_1
{
    levels cc_portal1
    {
        cc_portal1 requires factions { milan, sicily, hungary, poland, timurids, portugal, normans, }  and hidden_resource clockwork_city and event_counter cc_messenger 1
        {
            capability
            {
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { milan, }  and event_counter cc_milan 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { milan, }  and event_counter cc_milan 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { milan, }  and event_counter cc_milan 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { milan, }  and event_counter cc_milan 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { poland, }  and event_counter cc_poland 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { poland, }  and event_counter cc_poland 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { poland, }  and event_counter cc_poland 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { poland, }  and event_counter cc_poland 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { sicily, }  and event_counter cc_sicily 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { sicily, }  and event_counter cc_sicily 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { sicily, }  and event_counter cc_sicily 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { sicily, }  and event_counter cc_sicily 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { hungary, }  and event_counter cc_hungary 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { hungary, }  and event_counter cc_hungary 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { hungary, }  and event_counter cc_hungary 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { hungary, }  and event_counter cc_hungary 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { timurids, }  and event_counter cc_timurids 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { timurids, }  and event_counter cc_timurids 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { timurids, }  and event_counter cc_timurids 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { timurids, }  and event_counter cc_timurids 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { normans, }  and event_counter cc_normans 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { normans, }  and event_counter cc_normans 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { normans, }  and event_counter cc_normans 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { normans, }  and event_counter cc_normans 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { portugal, }  and event_counter cc_portugal 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { portugal, }  and event_counter cc_portugal 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { portugal, }  and event_counter cc_portugal 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { portugal, }  and event_counter cc_portugal 1
            }
            material wooden
            construction  3 
            cost  7000
            settlement_min large_city
            upgrades
            {
            }
        }

    }
    plugins 
    {
    }
}
building cc_portal_2
{
    levels cc_portal2
    {
        cc_portal2 requires factions { milan, sicily, hungary, poland, timurids, portugal, normans, }  and event_counter cc_captain 1
        {
            capability
            {
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { milan, }  and event_counter cc_milan 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { milan, }  and event_counter cc_milan 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { milan, }  and event_counter cc_milan 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { milan, }  and event_counter cc_milan 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { poland, }  and event_counter cc_poland 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { poland, }  and event_counter cc_poland 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { poland, }  and event_counter cc_poland 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { poland, }  and event_counter cc_poland 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { sicily, }  and event_counter cc_sicily 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { sicily, }  and event_counter cc_sicily 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { sicily, }  and event_counter cc_sicily 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { sicily, }  and event_counter cc_sicily 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { hungary, }  and event_counter cc_hungary 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { hungary, }  and event_counter cc_hungary 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { hungary, }  and event_counter cc_hungary 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { hungary, }  and event_counter cc_hungary 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { timurids, }  and event_counter cc_timurids 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { timurids, }  and event_counter cc_timurids 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { timurids, }  and event_counter cc_timurids 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { timurids, }  and event_counter cc_timurids 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { normans, }  and event_counter cc_normans 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { normans, }  and event_counter cc_normans 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { normans, }  and event_counter cc_normans 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { normans, }  and event_counter cc_normans 1
                recruit_pool "Factotum Mage"  1   0.1   1  0  requires factions { portugal, }  and event_counter cc_portugal 1
                recruit_pool "Imperfect"  1   0.1   1  0  requires factions { portugal, }  and event_counter cc_portugal 1
                recruit_pool "Factotum Swords"  1   0.1   1  0  requires factions { portugal, }  and event_counter cc_portugal 1
                recruit_pool "Factotum CB"  1   0.1   1  0  requires factions { portugal, }  and event_counter cc_portugal 1
            }
            material wooden
            construction  3 
            cost  3000
            settlement_min large_town
            upgrades
            {
            }
        }

    }
    plugins 
    {
    }
}
building hinterland_brass_god
{
    levels brassgod
    {
        brassgod requires factions { portugal, }  and hidden_resource dagoth_ur and event_counter cc_portugal 1
        {
            capability
            {
            }
            material wooden
            construction  5 
            cost  10000
            settlement_min huge_city
            upgrades
            {
            }
        }

    }
    plugins 
    {
    }
}
building ash_guild
{
    levels ag1 ag2 
    {
        ag1 city requires factions { portugal, }  and hidden_resource ashland 
        {
            capability
            {
                recruit_pool "Ash Slaves"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 60
                recruit_pool "Ash Ghouls"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 60
                recruit_pool "Ash Spawn"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 60
                archer_bonus 1  requires factions { portugal, } 
            }
            material wooden
            construction  2 
            cost  4800 
            settlement_min city
            upgrades
            {
                ag2
            }
        }
        ag2 city requires factions { portugal, }  and hidden_resource ashland 
        {
            capability
            {
                recruit_pool "Ash Slaves"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 60
                recruit_pool "Ash Ghouls"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 60
                recruit_pool "Ash Spawn"  1   0.1   2  0  requires factions { portugal, }  and region_religion dagoth_rel 60
                recruit_pool "Dagoth Mage"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 100
                recruit_pool "Ascended Sleepers"  1   0.1   1  0  requires factions { portugal, }  and region_religion dagoth_rel 100
                archer_bonus 2  requires factions { portugal, } 
            }
            material wooden
            construction  3 
            cost  9600 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building altar_hircine
{
    levels altar_hircine
    {
        altar_hircine city requires factions { byzantium, france, }  and hidden_resource wildhunt
        {
            capability
            {
                recruit_pool "Wild Hunt"  1   0.15   1  0  requires factions { france, }  and event_counter hunt_france 1
                recruit_pool "Wild Hunt"  1   0.15   1  0  requires factions { byzantium, }  and event_counter hunt_byzantium 1
                recruit_pool "Wild Hunt"  1   0.2   1  0  requires factions { france, }  and event_counter hunt_ai 1
                law_bonus bonus 1  requires factions { byzantium, france, }
                happiness_bonus bonus 1  requires factions { byzantium, france, }
            }
            material wooden
            construction  5 
            cost  15000
            settlement_min large_city
            upgrades
            {
            }
        }

    }
    plugins 
    {
    }
}
building undead_barrow
{
    levels undead_barrow
    {
        undead_barrow city requires factions { england, scotland, venice, mongols, denmark, moors, spain, byzantium, france, egypt, turks, russia, timurids, sicily, milan, poland, hungary, normans, papal_states, }  and event_counter worm_accepted 1
        {
            capability
            {
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { england, }  and event_counter worm_england 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { england, }  and event_counter worm_england 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { england, }  and event_counter worm_england 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { england, }  and event_counter worm_england 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { england, }  and event_counter worm_england 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { england, }  and event_counter worm_england 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { england, }  and event_counter worm_england 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { england, }  and event_counter worm_england 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { england, }  and event_counter worm_england 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { scotland, }  and event_counter worm_scotland 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { scotland, }  and event_counter worm_scotland 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { scotland, }  and event_counter worm_scotland 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { scotland, }  and event_counter worm_scotland 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { scotland, }  and event_counter worm_scotland 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { scotland, }  and event_counter worm_scotland 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { scotland, }  and event_counter worm_scotland 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { scotland, }  and event_counter worm_scotland 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { scotland, }  and event_counter worm_scotland 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { papal_states, }  and event_counter worm_papal_states 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { papal_states, }  and event_counter worm_papal_states 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { papal_states, }  and event_counter worm_papal_states 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { papal_states, }  and event_counter worm_papal_states 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { papal_states, }  and event_counter worm_papal_states 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { papal_states, }  and event_counter worm_papal_states 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { papal_states, }  and event_counter worm_papal_states 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { papal_states, }  and event_counter worm_papal_states 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { papal_states, }  and event_counter worm_papal_states 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { venice, }  and event_counter worm_venice 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { venice, }  and event_counter worm_venice 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { venice, }  and event_counter worm_venice 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { venice, }  and event_counter worm_venice 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { venice, }  and event_counter worm_venice 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { venice, }  and event_counter worm_venice 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { venice, }  and event_counter worm_venice 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { venice, }  and event_counter worm_venice 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { venice, }  and event_counter worm_venice 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { mongols, }  and event_counter worm_mongols 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { mongols, }  and event_counter worm_mongols 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { mongols, }  and event_counter worm_mongols 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { mongols, }  and event_counter worm_mongols 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { mongols, }  and event_counter worm_mongols 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { mongols, }  and event_counter worm_mongols 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { mongols, }  and event_counter worm_mongols 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { mongols, }  and event_counter worm_mongols 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { mongols, }  and event_counter worm_mongols 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { denmark, }  and event_counter worm_denmark 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { denmark, }  and event_counter worm_denmark 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { denmark, }  and event_counter worm_denmark 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { denmark, }  and event_counter worm_denmark 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { denmark, }  and event_counter worm_denmark 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { denmark, }  and event_counter worm_denmark 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { denmark, }  and event_counter worm_denmark 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { denmark, }  and event_counter worm_denmark 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { denmark, }  and event_counter worm_denmark 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { moors, }  and event_counter worm_moors 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { moors, }  and event_counter worm_moors 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { moors, }  and event_counter worm_moors 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { moors, }  and event_counter worm_moors 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { moors, }  and event_counter worm_moors 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { moors, }  and event_counter worm_moors 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { moors, }  and event_counter worm_moors 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { moors, }  and event_counter worm_moors 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { moors, }  and event_counter worm_moors 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { spain, }  and event_counter worm_spain 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { spain, }  and event_counter worm_spain 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { spain, }  and event_counter worm_spain 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { spain, }  and event_counter worm_spain 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { spain, }  and event_counter worm_spain 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { spain, }  and event_counter worm_spain 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { spain, }  and event_counter worm_spain 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { spain, }  and event_counter worm_spain 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { spain, }  and event_counter worm_spain 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { byzantium, }  and event_counter worm_byzantium 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { byzantium, }  and event_counter worm_byzantium 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { byzantium, }  and event_counter worm_byzantium 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { byzantium, }  and event_counter worm_byzantium 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { byzantium, }  and event_counter worm_byzantium 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { byzantium, }  and event_counter worm_byzantium 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { byzantium, }  and event_counter worm_byzantium 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { byzantium, }  and event_counter worm_byzantium 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { byzantium, }  and event_counter worm_byzantium 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { france, }  and event_counter worm_france 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { france, }  and event_counter worm_france 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { france, }  and event_counter worm_france 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { france, }  and event_counter worm_france 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { france, }  and event_counter worm_france 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { france, }  and event_counter worm_france 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { france, }  and event_counter worm_france 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { france, }  and event_counter worm_france 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { france, }  and event_counter worm_france 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { egypt, }  and event_counter worm_egypt 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { egypt, }  and event_counter worm_egypt 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { egypt, }  and event_counter worm_egypt 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { egypt, }  and event_counter worm_egypt 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { egypt, }  and event_counter worm_egypt 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { egypt, }  and event_counter worm_egypt 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { egypt, }  and event_counter worm_egypt 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { egypt, }  and event_counter worm_egypt 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { egypt, }  and event_counter worm_egypt 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { turks, }  and event_counter worm_turks 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { turks, }  and event_counter worm_turks 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { turks, }  and event_counter worm_turks 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { turks, }  and event_counter worm_turks 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { turks, }  and event_counter worm_turks 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { turks, }  and event_counter worm_turks 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { turks, }  and event_counter worm_turks 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { turks, }  and event_counter worm_turks 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { turks, }  and event_counter worm_turks 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { russia, }  and event_counter worm_russia 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { russia, }  and event_counter worm_russia 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { russia, }  and event_counter worm_russia 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { russia, }  and event_counter worm_russia 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { russia, }  and event_counter worm_russia 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { russia, }  and event_counter worm_russia 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { russia, }  and event_counter worm_russia 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { russia, }  and event_counter worm_russia 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { russia, }  and event_counter worm_russia 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { timurids, }  and event_counter worm_timurids 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { timurids, }  and event_counter worm_timurids 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { timurids, }  and event_counter worm_timurids 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { timurids, }  and event_counter worm_timurids 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { timurids, }  and event_counter worm_timurids 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { timurids, }  and event_counter worm_timurids 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { timurids, }  and event_counter worm_timurids 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { timurids, }  and event_counter worm_timurids 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { timurids, }  and event_counter worm_timurids 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { sicily, }  and event_counter worm_sicily 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { sicily, }  and event_counter worm_sicily 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { sicily, }  and event_counter worm_sicily 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { sicily, }  and event_counter worm_sicily 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { sicily, }  and event_counter worm_sicily 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { sicily, }  and event_counter worm_sicily 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { sicily, }  and event_counter worm_sicily 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { sicily, }  and event_counter worm_sicily 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { sicily, }  and event_counter worm_sicily 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { milan, }  and event_counter worm_milan 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { milan, }  and event_counter worm_milan 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { milan, }  and event_counter worm_milan 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { milan, }  and event_counter worm_milan 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { milan, }  and event_counter worm_milan 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { milan, }  and event_counter worm_milan 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { milan, }  and event_counter worm_milan 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { milan, }  and event_counter worm_milan 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { milan, }  and event_counter worm_milan 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { poland, }  and event_counter worm_poland 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { poland, }  and event_counter worm_poland 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { poland, }  and event_counter worm_poland 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { poland, }  and event_counter worm_poland 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { poland, }  and event_counter worm_poland 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.1   1  0  requires factions { poland, }  and event_counter worm_poland 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { poland, }  and event_counter worm_poland 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { poland, }  and event_counter worm_poland 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { poland, }  and event_counter worm_poland 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { hungary, }  and event_counter worm_hungary 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { hungary, }  and event_counter worm_hungary 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { hungary, }  and event_counter worm_hungary 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { hungary, }  and event_counter worm_hungary 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { hungary, }  and event_counter worm_hungary 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.1   1  0  requires factions { hungary, }  and event_counter worm_hungary 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { hungary, }  and event_counter worm_hungary 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { hungary, }  and event_counter worm_hungary 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { hungary, }  and event_counter worm_hungary 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { normans, }  and event_counter worm_normans 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { normans, }  and event_counter worm_normans 1
                recruit_pool "Merc Draugr Archers"  1   0.2   1  0  requires factions { normans, }  and event_counter worm_normans 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Infantry"  1   0.2   1  0  requires factions { normans, }  and event_counter worm_normans 1 and hidden_resource skyrim
                recruit_pool "Merc Draugr Spearmen"  1   0.2   1  0  requires factions { normans, }  and event_counter worm_normans 1 and hidden_resource skyrim
                recruit_pool "Merc Liches"  1   0.01   1  0  requires factions { normans, }  and event_counter worm_normans 1
                recruit_pool "Merc Worm Cult"  1   0.01   1  0  requires factions { normans, }  and event_counter worm_normans 1
                recruit_pool "Merc Zombies"  1   0.1   1  0  requires factions { normans, }  and event_counter worm_normans 1
                recruit_pool "Merc Gloom Wraiths"  1   0.1   1  0  requires factions { normans, }  and event_counter worm_normans 1
                law_bonus bonus -1 
                happiness_bonus bonus -1 
            }
            material wooden
            construction  1 
            cost  2000
            settlement_min large_town
            upgrades
            {
            }
        }

    }
    plugins 
    {
    }
}
building undead_vampire
{
    levels undead_vampire
    {
        undead_vampire city requires factions { scotland, venice, mongols, denmark, papal_states, }  and event_counter harcon_accepted 1
        {
            capability
            {
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { scotland, }  and event_counter harcon_scotland 1
                recruit_pool "Merc Zombies"  1   0.2   1  0  requires factions { scotland, }  and event_counter harcon_scotland 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { scotland, }  and event_counter harcon_scotland 1
                recruit_pool "Merc Volkihar Swordsmen"  1   0.2   1  0  requires factions { scotland, }  and event_counter harcon_scotland 1
                recruit_pool "Merc Volkihar Mages"  1   0.2   1  0  requires factions { scotland, }  and event_counter harcon_scotland 1
                recruit_pool "Merc Volkihar Lords"  1   0.2   1  0  requires factions { scotland, }  and event_counter harcon_scotland 1
                recruit_pool "Merc Liches"  1   0.1   1  0  requires factions { scotland, }  and event_counter harcon_scotland 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { papal_states, }  and event_counter harcon_papal_states 1
                recruit_pool "Merc Zombies"  1   0.2   1  0  requires factions { papal_states, }  and event_counter harcon_papal_states 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { papal_states, }  and event_counter harcon_papal_states 1
                recruit_pool "Merc Volkihar Swordsmen"  1   0.2   1  0  requires factions { papal_states, }  and event_counter harcon_papal_states 1
                recruit_pool "Merc Volkihar Mages"  1   0.2   1  0  requires factions { papal_states, }  and event_counter harcon_papal_states 1
                recruit_pool "Merc Volkihar Lords"  1   0.2   1  0  requires factions { papal_states, }  and event_counter harcon_papal_states 1
                recruit_pool "Merc Liches"  1   0.1   1  0  requires factions { papal_states, }  and event_counter harcon_papal_states 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { venice, }  and event_counter harcon_venice 1
                recruit_pool "Merc Zombies"  1   0.2   1  0  requires factions { venice, }  and event_counter harcon_venice 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { venice, }  and event_counter harcon_venice 1
                recruit_pool "Merc Volkihar Swordsmen"  1   0.2   1  0  requires factions { venice, }  and event_counter harcon_venice 1
                recruit_pool "Merc Volkihar Mages"  1   0.2   1  0  requires factions { venice, }  and event_counter harcon_venice 1
                recruit_pool "Merc Volkihar Lords"  1   0.2   1  0  requires factions { venice, }  and event_counter harcon_venice 1
                recruit_pool "Merc Liches"  1   0.1   1  0  requires factions { venice, }  and event_counter harcon_venice 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { mongols, }  and event_counter harcon_mongols 1
                recruit_pool "Merc Zombies"  1   0.2   1  0  requires factions { mongols, }  and event_counter harcon_mongols 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { mongols, }  and event_counter harcon_mongols 1
                recruit_pool "Merc Volkihar Swordsmen"  1   0.2   1  0  requires factions { mongols, }  and event_counter harcon_mongols 1
                recruit_pool "Merc Volkihar Mages"  1   0.2   1  0  requires factions { mongols, }  and event_counter harcon_mongols 1
                recruit_pool "Merc Volkihar Lords"  1   0.2   1  0  requires factions { mongols, }  and event_counter harcon_mongols 1
                recruit_pool "Merc Liches"  1   0.1   1  0  requires factions { mongols, }  and event_counter harcon_mongols 1
                recruit_pool "Merc Skeletons"  1   0.2   1  0  requires factions { denmark, }  and event_counter harcon_denmark 1
                recruit_pool "Merc Zombies"  1   0.2   1  0  requires factions { denmark, }  and event_counter harcon_denmark 1
                recruit_pool "Merc Skeleton Archers"  1   0.2   1  0  requires factions { denmark, }  and event_counter harcon_denmark 1
                recruit_pool "Merc Volkihar Swordsmen"  1   0.2   1  0  requires factions { denmark, }  and event_counter harcon_denmark 1
                recruit_pool "Merc Volkihar Mages"  1   0.2   1  0  requires factions { denmark, }  and event_counter harcon_denmark 1
                recruit_pool "Merc Volkihar Lords"  1   0.2   1  0  requires factions { denmark, }  and event_counter harcon_denmark 1
                recruit_pool "Merc Liches"  1   0.1   1  0  requires factions { denmark, }  and event_counter harcon_denmark 1
                law_bonus bonus -1 
                happiness_bonus bonus -1 
            }
            material wooden
            construction  1 
            cost  2000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building vampire_castle
{
    levels vampire_castle1
    {
        vampire_castle1 requires factions { venice, mongols, denmark, spain, moors, saxons, }  and hidden_resource iliac_bay
        {
            capability
            {
                recruit_pool "Merc Vraseth"  1   0.015   1  0  requires factions { venice, mongols, denmark, spain, moors, saxons, }  and hidden_resource vraseth
                recruit_pool "Merc Garlythi"  1   0.015   1  0  requires factions { venice, mongols, denmark, spain, moors, saxons, }  and hidden_resource garlythi
                recruit_pool "Merc Lyrezi"  1   0.015   1  0  requires factions { venice, mongols, denmark, spain, moors, saxons, }  and hidden_resource lyrezi
                recruit_pool "Merc Montalion"  1   0.015   1  0  requires factions { venice, mongols, denmark, spain, moors, saxons, }  and hidden_resource montalion
                recruit_pool "Merc Selenu"  1   0.015   1  0  requires factions { venice, mongols, denmark, spain, moors, saxons, }  and hidden_resource selenu
                recruit_pool "Merc Khulari"  1   0.015   1  0  requires factions { venice, mongols, denmark, spain, moors, saxons, }  and hidden_resource khulari
                recruit_pool "Merc Thrafey"  1   0.015   1  0  requires factions { venice, mongols, denmark, spain, moors, saxons, }  and hidden_resource thrafey
                law_bonus bonus -1 
                happiness_bonus bonus -1 
            }
            material wooden
            construction  3 
            cost  4000
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building reach_camp
{
    levels reachmen_camp 
    {
        reachmen_camp requires factions { scotland, venice, mongols, denmark, spain, moors, }  and hidden_resource reach
        {
            capability
            {
                recruit_pool "Reachmen"  1   0.5   2  0  requires factions { scotland, }  and event_counter reachmen_scotland 1
                recruit_pool "Reachmen Cavalry"  1   0.5   2  0  requires factions { scotland, }  and event_counter reachmen_scotland 1
                recruit_pool "Briarhearts"  1   0.1   2  0  requires factions { scotland, }  and event_counter reachmen_scotland 1
                recruit_pool "Reachmen Mammoth"  1   0.05   2  0  requires factions { scotland, }  and event_counter reachmen_scotland 1
                recruit_pool "Reachmen"  1   0.5   2  0  requires factions { venice, }  and event_counter reachmen_venice 1
                recruit_pool "Reachmen Cavalry"  1   0.5   2  0  requires factions { venice, }  and event_counter reachmen_venice 1
                recruit_pool "Briarhearts"  1   0.1   2  0  requires factions { venice, }  and event_counter reachmen_venice 1
                recruit_pool "Reachmen Mammoth"  1   0.05   2  0  requires factions { venice, }  and event_counter reachmen_venice 1
                recruit_pool "Reachmen"  1   0.5   2  0  requires factions { mongols, }  and event_counter reachmen_mongols 1
                recruit_pool "Reachmen Cavalry"  1   0.5   2  0  requires factions { mongols, }  and event_counter reachmen_mongols 1
                recruit_pool "Briarhearts"  1   0.1   2  0  requires factions { mongols, }  and event_counter reachmen_mongols 1
                recruit_pool "Reachmen Mammoth"  1   0.05   2  0  requires factions { mongols, }  and event_counter reachmen_mongols 1
                recruit_pool "Reachmen"  1   0.5   2  0  requires factions { denmark, } 
                recruit_pool "Reachmen Cavalry"  1   0.5   2  0  requires factions { denmark, } 
                recruit_pool "Briarhearts"  1   0.1   2  0  requires factions { denmark, }  and event_counter reachmen_denmark 1
                recruit_pool "Reachmen Mammoth"  1   0.05   2  0  requires factions { denmark, }  and event_counter reachmen_denmark 1
                recruit_pool "Reachmen"  1   0.5   2  0  requires factions { spain, }  and event_counter reachmen_spain 1
                recruit_pool "Reachmen Cavalry"  1   0.5   2  0  requires factions { spain, }  and event_counter reachmen_spain 1
                recruit_pool "Briarhearts"  1   0.1   2  0  requires factions { spain, }  and event_counter reachmen_spain 1
                recruit_pool "Reachmen Mammoth"  1   0.05   2  0  requires factions { spain, }  and event_counter reachmen_spain 1
                recruit_pool "Reachmen"  1   0.5   2  0  requires factions { moors, }  and event_counter reachmen_moors 1
                recruit_pool "Reachmen Cavalry"  1   0.5   2  0  requires factions { moors, }  and event_counter reachmen_moors 1
                recruit_pool "Briarhearts"  1   0.1   2  0  requires factions { moors, }  and event_counter reachmen_moors 1
                recruit_pool "Reachmen Mammoth"  1   0.05   2  0  requires factions { moors, }  and event_counter reachmen_moors 1
                happiness_bonus bonus -1
            }
            material wooden
            construction  2 
            cost  2800 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building shamans
{
    levels shaman_hut 
    {
        shaman_hut requires factions { denmark, } 
        {
            capability
            {
                recruit_pool "Orc Shamans"  1   0.1   1  2  requires factions { denmark, } 
                population_health_bonus bonus 2
                law_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  4800 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building legion_camp
{
    levels legion_camp1 
    {
        legion_camp1 requires factions { scotland, }  and hidden_resource skyrim and event_counter rebellion_sk 1
        {
            capability
            {
                recruit_pool "Company Swordsmen SK"  1   0.1   1  0  requires factions { scotland, }  and event_counter rebellion_sk 1
                recruit_pool "Company Billmen SK"  1   0.1   1  0  requires factions { scotland, }  and event_counter rebellion_sk 1
                recruit_pool "Company Archers SK"  1   0.1   1  0  requires factions { scotland, }  and event_counter rebellion_sk 1
                recruit_pool "Elite Falanx SK"  1   0.1   1  0  requires factions { scotland, }  and event_counter rebellion_sk 1
                recruit_pool "Elite Swordsmen SK"  1   0.1   1  0  requires factions { scotland, }  and event_counter rebellion_sk 1
                recruit_pool "Elite Archers SK"  1   0.1   1  0  requires factions { scotland, }  and event_counter rebellion_sk 1
                happiness_bonus bonus -1
                law_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  7000 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building slavery
{
    levels slavery 
    {
        slavery requires factions { timurids, } 
        {
           capability
            {
               law_bonus bonus -2
               population_growth_bonus bonus 10
               weapon_naval_gunpowder 10
               population_loyalty_bonus bonus 2
               construction_cost_bonus_wooden bonus 10
               construction_time_bonus_wooden bonus 10
               construction_cost_bonus_stone bonus 10
               construction_time_bonus_stone bonus 10
               taxable_income_bonus 10
               weapon_artillery_mechanical 10 
            }
            material wooden
            construction  3 
            cost  2000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_assassins_guild
{
    levels assassins_guild m_assassins_guild gm_assassins_guild 
    {
        assassins_guild city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, aztecs, denmark, normans, papal_states, } 
        {
            capability
            {
                law_bonus bonus 1
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_assassins_guild
            }
        }
        m_assassins_guild city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, aztecs, denmark, normans, papal_states, } 
        {
            capability
            {
                law_bonus bonus 1
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_assassins_guild
            }
        }
        gm_assassins_guild city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, aztecs, denmark, normans, papal_states, } 
        {
            capability
            {
                law_bonus bonus 2
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_thiefs_guild
{
    levels thieves_guild m_thieves_guild gm_thieves_guild 
    {
        thieves_guild city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, aztecs, denmark, normans, papal_states, } 
        {
            capability
            {
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_thieves_guild
            }
        }
        m_thieves_guild city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, aztecs, denmark, normans, papal_states, } 
        {
            capability
            {
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_thieves_guild
            }
        }
        gm_thieves_guild city requires factions { england, scotland, venice, mongols, byzantium, russia, spain, moors, poland, france, timurids, milan, sicily, hungary, turks, egypt, aztecs, denmark, normans, papal_states, } 
        {
            capability
            {
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building dark_brotherhood
{
    levels dark_brotherhood1
    {
        dark_brotherhood1 city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, turks, egypt, normans, papal_states, } 
        {
            capability
            {
                agent spy  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, portugal, normans, } 
                agent assassin  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, portugal, normans, } 
                agent spy  0  requires factions { egypt, turks, } 
                agent assassin  0  requires factions { egypt, turks, } 
                agent spy  0  requires factions { moors, spain, } 
                agent assassin  0  requires factions { moors, spain, } 
                agent spy  0  requires factions { byzantium, france, } 
                agent assassin  0  requires factions { byzantium, france, } 
                agent spy  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent assassin  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent spy  0  requires factions { russia, } 
                agent assassin  0  requires factions { russia, } 
                agent spy  0  requires factions { denmark, } 
                agent assassin  0  requires factions { denmark, } 
                happiness_bonus bonus -3
                population_health_bonus bonus -2
            }
            material wooden
            construction  3 
            cost  8000 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_blades
{
    levels blades1
    {
        blades1 requires factions { england, }  and hidden_resource hr_none
        {
            capability
            {
                recruit_pool "Blades Swordsmen"  1   0.005   2  0  requires factions { england, } 
                law_bonus bonus 5  requires factions { england, } 
            }
            material wooden
            construction  2 
            cost  2800 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building tonenaka
{
    levels tonenaka
    {
        tonenaka requires factions { england, egypt, turks, france, byzantium, russia, }  and hidden_resource rimmen and event_counter rimmen_capt 1
        {
            capability
            {
                happiness_bonus bonus 5  requires factions { england, egypt, turks, france, byzantium, russia, }
                law_bonus bonus 5  requires factions { england, egypt, turks, france, byzantium, russia, }
                retrain_cost_bonus bonus 2  requires factions { england, egypt, turks, france, byzantium, russia, }
            }
            material wooden
            construction  3 
            cost  4000 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building maormer
{
    levels maormer_port 
    {
        maormer_port requires factions { byzantium, france, egypt, turks, russia, }  and hidden_resource maormeri and building_present_min_level port dockyard
        {
            capability
            {
                happiness_bonus bonus 1
                trade_base_income_bonus bonus 2
                trade_fleet 2
                recruitment_cost_bonus_naval bonus 2
                navy_bonus 1
            }
            material wooden
            construction  3 
            cost  3800 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;#################### UNIQUE BUILDINGS ######################
;############################################################
building hinterland_unique1
{
    levels winterhold_college golden_tower arc blue_palace kings_palace skar cidhna_mine green-sap ghostfence
    {
        winterhold_college requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                recruit_pool "Winterhold Mage"  1   0.2   3  0  requires factions { scotland, papal_states, }  and hidden_resource skyrim
                retrain_cost_bonus bonus 1  requires factions { scotland, papal_states, }
                population_health_bonus bonus 2
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min town
            upgrades
            {	
                golden_tower
            }
        }
        golden_tower requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                agent diplomat  2  requires factions { england, } 
                law_bonus bonus 9  requires factions { england, } 
                population_health_bonus bonus 10  requires factions { england, } 
            }
            material wooden
            construction  5 
            cost  50000 
            settlement_min huge_city
            upgrades
            {
                arc
            }
        }
        arc requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                recruit_pool "Imperial Mage"  1   0.1   1  0  requires factions { england, }  and hidden_resource cyrodiil
                recruit_pool "Archane Mage"  1   0.1   1  0  requires factions { england, }  and hidden_resource imperial_city
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {
                blue_palace
            }
        }
        blue_palace requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                law_bonus bonus 3  requires factions { scotland, papal_states, } 
                retrain_cost_bonus bonus 2  requires factions { scotland, papal_states, }
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {
                kings_palace
            }
        }
        kings_palace requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                law_bonus bonus 3  requires factions { scotland, papal_states, } 
                retrain_cost_bonus bonus 2  requires factions { scotland, papal_states, }
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {
                skar
            }
        }
        skar requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                law_bonus bonus 3  requires factions { poland, } 
                happiness_bonus bonus 1  requires factions { poland, } 
                trade_base_income_bonus bonus 2  requires factions { poland, } 
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {
                cidhna_mine
            }
        }
        cidhna_mine requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                law_bonus bonus 3  requires factions { scotland, } 
                mine_resource 2  requires factions { scotland, }
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {
                green-sap
            }
        }
        green-sap requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                law_bonus bonus 3  requires factions { france, } 
                happiness_bonus bonus 1  requires factions { france, } 
                population_health_bonus bonus 3  requires factions { france, } 
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {
                ghostfence
            }
        }
        ghostfence requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                retrain_cost_bonus bonus 1  requires factions { milan, }
                gate_strength 5
                law_bonus bonus 1  requires factions { milan, }
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_unique2
{
    levels dagoth_ur vivec_palace baar_dau orsinium
    {
        dagoth_ur requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                retrain_cost_bonus bonus 1  requires factions { portugal, } 
                law_bonus bonus 3  requires factions { portugal, } 
                happiness_bonus bonus 1  requires factions { portugal, } 
                population_health_bonus bonus 2  requires factions { portugal, } 
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {	
                vivec_palace
            }
        }
        vivec_palace requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                law_bonus bonus 1  requires factions { milan, } 
                retrain_cost_bonus bonus 2  requires factions { milan, }
                happiness_bonus bonus 2  requires factions { milan, } 
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {	
                baar_dau
            }
        }
        baar_dau requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                law_bonus bonus 3  requires factions { milan, } 
                happiness_bonus bonus 1  requires factions { milan, } 
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {	
                orsinium
            }
        }
        orsinium requires factions { slave, }  and hidden_resource hr_none
        {
            capability
            {
                retrain_cost_bonus bonus 1  requires factions { denmark, } 
                law_bonus bonus 3  requires factions { denmark, } 
                happiness_bonus bonus 1  requires factions { denmark, } 
                population_health_bonus bonus 2  requires factions { denmark, } 
            }
            material wooden
            construction  5 
            cost  50000
            settlement_min huge_city
            upgrades
            {	
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_jorrvaskr
{
    levels jorrvaskr1 jorrvaskr2 jorrvaskr3 jorrvaskr4
    {
        jorrvaskr1 requires factions { scotland, papal_states, }  and hidden_resource hr_none
        {
            capability
            {
                recruit_pool "Companions"  1   0.05   1  0  requires factions { scotland, papal_states, } 
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min city
            upgrades
            {
                jorrvaskr2
            }
        }
        jorrvaskr2 requires factions { scotland, papal_states, } 
        {
            capability
            {
                recruit_pool "Companions"  1   0.1    1  0  requires factions { scotland, papal_states, } 
                population_health_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  3250 
            settlement_min city
            upgrades
            {
                jorrvaskr3
            }
        }
        jorrvaskr3 requires factions { scotland, papal_states, } 
        {
            capability
            {
                recruit_pool "Companions"  1   0.2   3  3  requires factions { scotland, papal_states, } 
                population_health_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  6500 
            settlement_min city
            upgrades
            {
                jorrvaskr4
            }
        }
        jorrvaskr4 requires factions { scotland, papal_states, } 
        {
            capability
            {
                recruit_pool "Companions"  1   0.25   2  6  requires factions { scotland, papal_states, } 
                population_health_bonus bonus 3
                armour 6
            }
            material wooden
            construction  5 
            cost  13000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;############################################################
;################ POCKET GUIDE TO THE EMPIRE ################
;############################################################
building hinterland_info_building_cyr
{
	levels info_ic info_colovia info_nibenay info_jerall info_gold_coast info_west_weald info_blackwood info_nibenay_valley info_pale_pass
	{
		info_ic requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_colovia
			}
		}
		info_colovia requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_nibenay
			}
		}
		info_nibenay requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_jerall
			}
		}
		info_jerall requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_gold_coast
			}
		}
		info_gold_coast requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_west_weald
			}
		}
		info_west_weald requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_blackwood
			}
		}
		info_blackwood requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_nibenay_valley
			}
		}
		info_nibenay_valley requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_pale_pass
			}
		}
		info_pale_pass requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
building hinterland_info_building_sky
{
	levels info_haafingar info_s_reach info_hjaalmarch info_pale info_winterhold info_eastmarch info_whiterun info_falkreath info_rift
	{
		info_haafingar requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_s_reach
			}
		}
		info_s_reach requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_hjaalmarch
			}
		}
		info_hjaalmarch requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_pale
			}
		}
		info_pale requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_winterhold
			}
		}
		info_winterhold requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_eastmarch
			}
		}
		info_eastmarch requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_whiterun
			}
		}
		info_whiterun requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_falkreath
			}
		}
		info_falkreath requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_rift
			}
		}
		info_rift requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
building hinterland_info_building_hr
{
	levels info_hr_reach info_wrothgar info_rivenspire info_stormhaven info_glenumbra info_balfiera info_daggerfall info_wayrest info_orsinium
	{
		info_hr_reach requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_wrothgar
			}
		}
		info_wrothgar requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_rivenspire
			}
		}
		info_rivenspire requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_stormhaven
			}
		}
		info_stormhaven requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_glenumbra
			}
		}
		info_glenumbra requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_balfiera
			}
		}
		info_balfiera requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_daggerfall
			}
		}
		info_daggerfall requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_wayrest
			}
		}
		info_wayrest requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_orsinium
			}
		}
		info_orsinium requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}
	}
	plugins
	{
	}
}
building hinterland_info_building_ham
{
	levels info_alikr info_totambu info_bangkorai info_craglorn info_dragontail info_hews_bane info_helkori info_c_highlands info_abecean
	{
		info_alikr requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_totambu
			}
		}
		info_totambu requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_bangkorai
			}
		}
		info_bangkorai requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_craglorn
			}
		}
		info_craglorn requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_dragontail
			}
		}
		info_dragontail requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_hews_bane
			}
		}
		info_hews_bane requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_helkori
			}
		}
		info_helkori requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_c_highlands
			}
		}
		info_c_highlands requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_abecean
			}
		}
		info_abecean requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
building hinterland_info_building_sum
{
	levels info_alinor info_lillandril info_eton_nir info_shimmerene info_sunhold info_skywatch info_crystal info_dusk info_auridon
	{
		info_alinor requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_lillandril
			}
		}
		info_lillandril requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_eton_nir
			}
		}
		info_eton_nir requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_shimmerene
			}
		}
		info_shimmerene requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_sunhold
			}
		}
		info_sunhold requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_skywatch
			}
		}
		info_skywatch requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_crystal
			}
		}
		info_crystal requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_dusk
			}
		}
		info_dusk requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_auridon
			}
		}
		info_auridon requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
building hinterland_info_building_val
{
	levels info_reaper info_greenshade info_grahtwood info_malabal_tor info_silvenar info_elden_root info_falinesti
	{
		info_reaper requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_greenshade
			}
		}
		info_greenshade requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_grahtwood
			}
		}
		info_grahtwood requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_malabal_tor
			}
		}
		info_malabal_tor requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_silvenar
			}
		}
		info_silvenar requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_elden_root
			}
		}
		info_elden_root requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_falinesti
			}
		}
		info_falinesti requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
building hinterland_info_building_els
{
	levels info_anequina info_tenmar info_quin_rawl info_torval info_khenarthi info_rimmen info_orcrest
	{
		info_anequina requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_tenmar
			}
		}
		info_tenmar requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_quin_rawl
			}
		}
		info_quin_rawl requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_torval
			}
		}
		info_torval requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_khenarthi
			}
		}
		info_khenarthi requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_rimmen
			}
		}
		info_rimmen requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_orcrest
			}
		}
		info_orcrest requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
building hinterland_info_building_arg
{
	levels info_bm info_mukmire info_shadowfen info_archon info_thornmarsh info_gideon info_blackrose
	{
		info_bm requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_mukmire
			}
		}
		info_mukmire requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_shadowfen
			}
		}
		info_shadowfen requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_archon
			}
		}
		info_archon requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_thornmarsh
			}
		}
		info_thornmarsh requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_gideon
			}
		}
		info_gideon requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_blackrose
			}
		}
		info_blackrose requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
building hinterland_info_building_mor
{
	levels info_velothis info_valus info_deshaan info_arnesia info_stonefalls info_east info_mournhold info_necrom
	{
		info_velothis requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_valus
			}
		}
		info_valus requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_deshaan
			}
		}
		info_deshaan requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_arnesia
			}
		}
		info_arnesia requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_stonefalls
			}
		}
		info_stonefalls requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_east
			}
		}
		info_east requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_mournhold
			}
		}
		info_mournhold requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_necrom
			}
		}
		info_necrom requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
building hinterland_info_building_var
{
	levels info_vvardenfell info_bitter_coast info_ascadian info_west_gash info_sheogorad info_zafirbel info_molag_amur info_ashlands info_grazelands
	{
		info_vvardenfell requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_bitter_coast
			}
		}
		info_bitter_coast requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_ascadian
			}
		}
		info_ascadian requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_west_gash
			}
		}
		info_west_gash requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_sheogorad
			}
		}
		info_sheogorad requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_zafirbel
			}
		}
		info_zafirbel requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_molag_amur
			}
		}
		info_molag_amur requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_ashlands
			}
		}
		info_ashlands requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_grazelands
			}
		}
		info_grazelands requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
building hinterland_info_building_oth
{
	levels info_hirstaang info_isinfier info_felsaad info_roscrea info_volkihar info_telvannis info_scourge info_new_orsinium info_druadach
	{
		info_hirstaang requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_isinfier
			}
		}
		info_isinfier requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_felsaad
			}
		}
		info_felsaad requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_roscrea
			}
		}
		info_roscrea requires factions { slave, } and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_volkihar
			}
		}
		info_volkihar requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_telvannis
			}
		}
		info_telvannis requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_scourge
			}
		}
		info_scourge requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_new_orsinium
			}
		}
		info_new_orsinium requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
				law_bonus bonus 20 requires event_counter is_the_ai 1
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
		info_druadach
			}
		}
		info_druadach requires factions { slave, }  and hidden_resource hr_none
		{
			capability
			{
			
			}
			material wooden
			construction  1
			cost  100000
			settlement_min village
			upgrades
			{
			}
		}

	}
	plugins
	{
	}
}
;############################################################
;######################## CITY HALLS ########################
;############################################################
building city_hall
{
    levels town_hall council_chambers city_hall mayors_palace
    {
        town_hall city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent diplomat  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, normans, } 
                agent diplomat  0  requires factions { egypt, turks, } 
                agent diplomat  0  requires factions { moors, spain, } 
                agent diplomat  0  requires factions { byzantium, france, } 
                agent diplomat  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent diplomat  0  requires factions { russia, } 
                agent diplomat  0  requires factions { denmark, } 
                law_bonus bonus 1
                population_health_bonus bonus 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min large_town
            upgrades
            {
                council_chambers
            }
        }
        council_chambers city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent diplomat  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, normans, } 
                agent diplomat  0  requires factions { egypt, turks, } 
                agent diplomat  0  requires factions { moors, spain, } 
                agent diplomat  0  requires factions { byzantium, france, } 
                agent diplomat  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent diplomat  0  requires factions { russia, } 
                agent diplomat  0  requires factions { denmark, } 
                law_bonus bonus 2
                population_health_bonus bonus 2
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min city
            upgrades
            {
                city_hall
            }
        }
        city_hall city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent diplomat  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, normans, } 
                agent diplomat  0  requires factions { egypt, turks, } 
                agent diplomat  0  requires factions { moors, spain, } 
                agent diplomat  0  requires factions { byzantium, france, } 
                agent diplomat  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent diplomat  0  requires factions { russia, } 
                agent diplomat  0  requires factions { denmark, } 
                law_bonus bonus 3
                population_health_bonus bonus 4
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min large_city
            upgrades
            {
                mayors_palace
            }
        }
        mayors_palace city requires factions { england, venice, spain, mongols, moors, normans, saxons, scotland, russia, denmark, hungary, poland, milan, sicily, timurids, aztecs, portugal, byzantium, france, egypt, turks, normans, papal_states, slave, hre, custom, } 
        {
            capability
            {
                agent diplomat  0  requires factions { hungary, poland, milan, sicily, timurids, aztecs, normans, } 
                agent diplomat  0  requires factions { egypt, turks, } 
                agent diplomat  0  requires factions { moors, spain, } 
                agent diplomat  0  requires factions { byzantium, france, } 
                agent diplomat  0  requires factions { england, venice, mongols, scotland, papal_states, } 
                agent diplomat  0  requires factions { russia, } 
                agent diplomat  0  requires factions { denmark, } 
                law_bonus bonus 4
                population_health_bonus bonus 5
            }
            material wooden
            construction  5 
            cost  4800 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}