;SS 6.2 Beta, Real Recruitment 1.3


hidden_resources Constable Iqta Constantinople Hashishim Khassaki river_trade capital crusader atlantic explorers_guild swordsmiths_guild woodsmens_guild teutonic_knights_chapter_house templars_chapter_house knights_of_santiago_chapter_house crusade jihad improved_roads horde_target no_pirates no_brigands wonder1 wonder2 wonder3 wonder4 wonder5 wonder6 wonder7 wonder8 wonder9 education1 education2 venice scotland england france portugal spain aragon moors milan papal_states sicily hre norway denmark poland russia lithuania cumans kwarezm turks jerusalem prussia egypt byzantium hungary kievan_rus ireland trade1 trade2

building core_building
{
    convert_to core_castle_building
    levels wooden_pallisade wooden_wall stone_wall large_stone_wall huge_stone_wall 
    {
        wooden_pallisade city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 1
            capability
            {
                wall_level 0
                tower_level 1
                free_upkeep bonus 2
                free_upkeep bonus 1 requires event_counter is_the_ai 1
                happiness_bonus bonus 1
                law_bonus bonus 1 requires event_counter is_the_ai 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1

                recruitment_slots 1
            }
            material wooden
            construction  3 
            cost  800 
            settlement_min village
            upgrades
            {
                wooden_wall
            }
        }
        wooden_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 2
            capability
            {
                wall_level 1
                gate_strength 2
                tower_level 1
                free_upkeep bonus 3
                free_upkeep bonus 1 requires event_counter is_the_ai 1
                happiness_bonus bonus 1
                law_bonus bonus 1 requires event_counter is_the_ai 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
                recruitment_slots 2
            }
            material wooden
            construction  3 
            cost  1500
            settlement_min town
            upgrades
            {
                stone_wall
            }
        }
        stone_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                recruit_pool "Papal Guard"  1   0.25   2  0  requires factions { papal_states, } 
				
				recruit_pool "Urban Spear Militia"  0   0.000001   0.1  0  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Baltic Spearmen"  0   0.000001   0.1  0  requires factions { lithuania, } 
                recruit_pool "Spear Militia"  0   0.000001   0.1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, norway, } 
                recruit_pool "Spear Militia"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
                recruit_pool "EE Spear Militia"  0   0.000001   0.1  0  requires factions { poland, russia, hungary, kievan_rus, cumans, } 
                recruit_pool "Contaratoi"  0   0.000001   0.1  0  requires factions { byzantium, } 
                recruit_pool "ME Spear Militia"  0   0.000001   0.1  0  requires factions { moors, egypt, turks, kwarezm, } 

				recruit_pool "NE_Urban_Militia"  0   0.000001   0.1  0  requires factions { england, france, milan, papal_states, denmark, jerusalem, hre, venice, } 
                recruit_pool "Militia Serjeants"  0   0.000001   0.1  0  requires factions { england, } 
				
                recruit_pool "Toxotae"  0   0.000001   0.1  0  requires factions { byzantium, } 
                recruit_pool "Archer Militia"  0   0.000001   0.1  0  requires factions { england, } 
                recruit_pool "Crossbow Militia"  0   0.000001   0.1  0  requires factions { france, norway, hre, denmark, spain, aragon, portugal, knights_templar, teutonic_order, } 
                recruit_pool "EE Archer Militia"  0   0.000001   0.1  0  requires factions { russia, kievan_rus, cumans, } 
                recruit_pool "Urban Crossbow Militia"  0   0.000001   0.1  0  requires factions { milan, venice, papal_states, sicily, hungary, } 
				
                wall_level 2
                tower_level 1
                gate_strength 3
                free_upkeep bonus 4
                free_upkeep bonus 1 requires event_counter is_the_ai 1
                happiness_bonus bonus 2
                law_bonus bonus 1 requires event_counter is_the_ai 1
				armour 1 requires event_counter is_the_ai 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
                recruitment_slots 3
            }
            material stone
            construction 4  
            cost  3000 
            settlement_min large_town
            upgrades
            {
                large_stone_wall
            }
        }
        large_stone_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
		recruit_pool "Swiss Guard"  1   0.5   4  0  requires factions { papal_states, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Swiss Guard"  1   0.25   2  0  requires factions { papal_states, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Papal Guard"  1   0.25   2  0  requires factions { papal_states, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Papal Guard"  1   0.5   4  0  requires factions { papal_states, } and not event_counter new_era_begins 1
				
				recruit_pool "Urban Spear Militia"  0   0.000001   0.1  0  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Baltic Spearmen"  0   0.000001   0.1  0  requires factions { lithuania, } 
                recruit_pool "Spear Militia"  0   0.000001   0.1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, norway, } 
                recruit_pool "Spear Militia"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
                recruit_pool "EE Spear Militia"  0   0.000001   0.1  0  requires factions { poland, russia, hungary, kievan_rus, cumans, } 
                recruit_pool "Contaratoi"  0   0.000001   0.1  0  requires factions { byzantium, } 
                recruit_pool "ME Spear Militia"  0   0.000001   0.1  0  requires factions { moors, egypt, turks, kwarezm, } 

				recruit_pool "NE_Urban_Militia"  0   0.000001   0.1  0  requires factions { england, france, milan, papal_states, denmark, jerusalem, hre, venice, } 
                recruit_pool "Militia Serjeants"  0   0.000001   0.1  0  requires factions { england, } 
				
                recruit_pool "Toxotae"  0   0.000001   0.1  0  requires factions { byzantium, } 
                recruit_pool "Archer Militia"  0   0.000001   0.1  0  requires factions { england, } 
                recruit_pool "Crossbow Militia"  0   0.000001   0.1  0  requires factions { france, norway, hre, denmark, spain, aragon, portugal, knights_templar, teutonic_order, } 
                recruit_pool "EE Archer Militia"  0   0.000001   0.1  0  requires factions { russia, kievan_rus, cumans, } 
                recruit_pool "Urban Crossbow Militia"  0   0.000001   0.1  0  requires factions { milan, venice, papal_states, sicily, hungary, } 

                wall_level 3
                tower_level 1
                gate_strength 4
                free_upkeep bonus 5
                free_upkeep bonus 1 requires event_counter is_the_ai 1
                happiness_bonus bonus 2
                law_bonus bonus 1 requires event_counter is_the_ai 1
				armour 2 requires event_counter is_the_ai 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
                recruitment_slots 4
            }
            material stone
            construction  5 
            cost  6000 
            settlement_min city
            upgrades
            {
                huge_stone_wall
            }
        }
        huge_stone_wall city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and hidden_resource capital
        {
            capability
            {
		recruit_pool "Swiss Guard"  1   0.84   6  0  requires factions { papal_states, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Swiss Guard"  1   0.34   3  0  requires factions { papal_states, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Papal Guard"  1   0.34   3  0  requires factions { papal_states, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Papal Guard"  1   0.84   6  0  requires factions { papal_states, } and not event_counter new_era_begins 1
				
				recruit_pool "Urban Spear Militia"  0   0.000001   0.1  0  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Baltic Spearmen"  0   0.000001   0.1  0  requires factions { lithuania, } 
                recruit_pool "Spear Militia"  0   0.000001   0.1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, norway, } 
                recruit_pool "Spear Militia"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
                recruit_pool "EE Spear Militia"  0   0.000001   0.1  0  requires factions { poland, russia, hungary, kievan_rus, cumans, } 
                recruit_pool "Contaratoi"  0   0.000001   0.1  0  requires factions { byzantium, } 
                recruit_pool "ME Spear Militia"  0   0.000001   0.1  0  requires factions { moors, egypt, turks, kwarezm, } 
				
				recruit_pool "NE_Urban_Militia"  0   0.000001   0.1  0  requires factions { england, france, milan, papal_states, denmark, jerusalem, hre, venice, } 
                recruit_pool "Militia Serjeants"  0   0.000001   0.1  0  requires factions { england, } 
				
                recruit_pool "Toxotae"  0   0.000001   0.1  0  requires factions { byzantium, } 
                recruit_pool "Archer Militia"  0   0.000001   0.1  0  requires factions { england, } 
                recruit_pool "Crossbow Militia"  0   0.000001   0.1  0  requires factions { france, norway, hre, denmark, spain, aragon, portugal, knights_templar, teutonic_order, } 
                recruit_pool "EE Archer Militia"  0   0.000001   0.1  0  requires factions { russia, kievan_rus, cumans, } 
                recruit_pool "Urban Crossbow Militia"  0   0.000001   0.1  0  requires factions { milan, venice, papal_states, sicily, hungary, } 
				
                wall_level 4
                tower_level 1
                gate_strength 5
                free_upkeep bonus 6
                free_upkeep bonus 1 requires event_counter is_the_ai 1
                happiness_bonus bonus 3
                law_bonus bonus 1 requires event_counter is_the_ai 1
				armour 3 requires event_counter is_the_ai 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
                recruitment_slots 5
            }
            material stone
            construction  6 
            cost  12000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building core_castle_building
{
    convert_to core_building
    levels motte_and_bailey wooden_castle castle fortress citadel 
    {
        motte_and_bailey castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
		wall_level 0 
                tower_level 1
                law_bonus bonus 1
                law_bonus bonus 1 requires event_counter is_the_ai 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
                recruitment_slots 1
            }
            material wooden
            construction  3 
            cost  800 
            settlement_min village
            upgrades
            {
                wooden_castle
            }
        }
        wooden_castle castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                wall_level 1
                tower_level 1
                gate_strength 2
                law_bonus bonus 2
                law_bonus bonus 1 requires event_counter is_the_ai 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
                recruitment_slots 2
            }
            material wooden
            construction  3 
            cost  1500 
            settlement_min village
            upgrades
            {
                castle
            }
        }
        castle castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 1
            capability
            {
                recruit_pool "Christ Knights"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
				recruit_pool "Mailed Knights"  0   0.000001   0.1  0  requires factions { scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, }	
				recruit_pool "Norman Cavalry"  0   0.000001   0.1  0  requires factions { england, sicily, jerusalem, }	
                recruit_pool "Feudal Knights"  0   0.000001   0.1  0  requires factions { england, spain, aragon, portugal, milan, venice, papal_states, }		
                recruit_pool "French Feudal Knights"  0   0.000001   0.1  0  requires factions { france, }		
                recruit_pool "German Feudal Knights"  0   0.000001   0.1  0  requires factions { hre, scotland, norway, denmark, }		
                recruit_pool "Dismounted Huscarls"  0   0.000001   0.1  0  requires factions { denmark, norway, }
				recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { norway, }
			    recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { denmark, }
                recruit_pool "Dismounted Chivalric Knights"  0   0.000001   0.1  0  requires factions { denmark, }
                recruit_pool "Halbbruder"  0   0.000001   0.1  0  requires factions { teutonic_order, }
                recruit_pool "Norman Knights"  0   0.000001   0.1  0  requires factions { sicily, }
                recruit_pool "Chivalric Knights"  0   0.000001   0.1  0  requires factions { spain, sicily, }
                recruit_pool "French Chivalric Knights"  0   0.000001   0.1  0  requires factions { france, }
                recruit_pool "English Knights"  0   0.000001   0.1  0  requires factions { england, }
                recruit_pool "Imperial Knights"  0   0.000001   0.1  0  requires factions { hre, }
                recruit_pool "Portuguese Knights"  0   0.000001   0.1  0  requires factions { portugal, } 
                recruit_pool "Polish Knights"  0   0.000001   0.1  0  requires factions { poland, } 
                recruit_pool "E Chivalric Knights"  0   0.000001   0.1  0  requires factions { hungary, } 
                recruit_pool "Polish Nobles"  0   0.000001   0.1  0  requires factions { poland, } 
                recruit_pool "Hungarian Nobles"  0   0.000001   0.1  0  requires factions { hungary, } 
				
                recruit_pool "Behk Druzhina"  1   0.1   1  0  requires factions { cumans, }
                recruit_pool "Kwarezmian Cavalry"  1   0.1   1  0  requires factions { kwarezm, }

                recruit_pool "Noble Cavalry"  1   0.1   1  0  requires factions { lithuania, }
                recruit_pool "Noble Sons Cavalry"  1   0.1   1  0  requires factions { lithuania, }
                recruit_pool "Mailed Knights"  1   0.1   1  0  requires factions { hre, spain, aragon, portugal, papal_states, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norman Cavalry"  1   0.1   1  0  requires factions { england, sicily, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mailed Knights"  1   0.075   1  0  requires factions { milan, venice, scotland, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mailed Knights"  1   0.15   1  0  requires factions { france, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.1   1  0  requires factions { england, spain, aragon, portugal, papal_states, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.075   1  0  requires factions { milan, venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "French Feudal Knights"  1   0.15   1  0  requires factions { france, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   1  0  requires factions { hre, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.075   1  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
               
                recruit_pool "Dismounted Huscarls"  1   0.15   1  0  requires factions { denmark, norway, } and not event_counter HALF_PLATE_ARMOR 1
		recruit_pool "Dismounted Feudal Knights"  1   0.15   1  0  requires factions { norway, } and event_counter HALF_PLATE_ARMOR 1
		recruit_pool "Dismounted Feudal Knights"  1   0.15   1  0  requires factions { denmark, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Chivalric Knights"  1   0.15   1  0  requires factions { denmark, } and event_counter FULL_PLATE_ARMOR 1

		recruit_pool "Christ Knights"  1   0.15   1  0  requires factions { teutonic_order, } and not event_counter FULL_PLATE_ARMOR 1                
                recruit_pool "Halbbruder"  1   0.15   1  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Norman Knights"  1   0.1   1  0  requires factions { sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Chivalric Knights"  1   0.15   1  0  requires factions { spain, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "French Chivalric Knights"  1   0.1   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "English Knights"  1   0.1   1  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 
                recruit_pool "Imperial Knights"  1   0.1   1  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Knights of Jerusalem"  1   0.1   1  0  requires factions { jerusalem, } 
                recruit_pool "Portuguese Knights"  1   0.1   1  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Polish Knights"  1   0.15   1  0  requires factions { poland, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "E Chivalric Knights"  1   0.15   1  0  requires factions { hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Sipahis"  1   0.1   1  0  requires factions { moors, } 
                recruit_pool "Sipahis"  1   0.1   1  0  requires factions { turks, } 
                recruit_pool "Sipahi Lancers"  1   0.1   1  0  requires factions { turks, } 
                recruit_pool "Boyars"  1   0.1   1  0  requires factions { russia, kievan_rus, }

                recruit_pool "Pronoiarii"  1   0.075   1  0  requires factions { byzantium, } and event_counter HALF_PLATE_ARMOR 1
					
                recruit_pool "Polish Nobles"  1   0.15   1  0  requires factions { poland, } and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Hungarian Nobles"  1   0.15   1  0  requires factions { hungary, } and not event_counter FULL_PLATE_ARMOR 1

                wall_level 2
                tower_level 1
                gate_strength 3

		free_upkeep bonus 2 requires factions { cumans, kwarezm, jerusalem, turks, moors, }
		free_upkeep bonus 1 requires factions { byzantium, } and not event_counter HEAVY_MAIL_ARMOR 1
		free_upkeep bonus 2 requires factions { byzantium, } and event_counter HEAVY_MAIL_ARMOR 1


		free_upkeep bonus 2 requires factions { russia, kievan_rus,  teutonic_order, lithuania, denmark, norway, } and not event_counter FULL_PLATE_ARMOR 1
		free_upkeep bonus 1 requires factions { russia, kievan_rus,  teutonic_order, lithuania, denmark, norway, } and event_counter FULL_PLATE_ARMOR 1


                free_upkeep bonus 2 requires factions { england, scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, sicily, hungary, poland, } and not event_counter new_era_begins 1
                free_upkeep bonus 1 requires factions { england, scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, sicily, denmark, norway, hungary, poland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                free_upkeep bonus 1 requires event_counter is_the_ai 1

                law_bonus bonus 3
                law_bonus bonus 1 requires event_counter is_the_ai 1
				armour 1 requires event_counter is_the_ai 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
                recruitment_slots 3
            }
            material stone
            construction  4 
            cost  3000 
            settlement_min town
            upgrades
            {
                fortress
            }
        }
        fortress castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 2
            capability
            {
                recruit_pool "Christ Knights"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
				recruit_pool "Mailed Knights"  0   0.000001   0.1  0  requires factions { scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, }	
				recruit_pool "Norman Cavalry"  0   0.000001   0.1  0  requires factions { england, sicily, jerusalem, }	
                recruit_pool "Feudal Knights"  0   0.000001   0.1  0  requires factions { england, spain, aragon, portugal, milan, venice, papal_states, }		
                recruit_pool "French Feudal Knights"  0   0.000001   0.1  0  requires factions { france, }		
                recruit_pool "German Feudal Knights"  0   0.000001   0.1  0  requires factions { hre, scotland, norway, denmark, }		
                recruit_pool "Dismounted Huscarls"  0   0.000001   0.1  0  requires factions { denmark, norway, } 
				recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { norway, } 
			    recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { denmark, } 
                recruit_pool "Dismounted Chivalric Knights"  0   0.000001   0.1  0  requires factions { denmark, } 
                recruit_pool "Halbbruder"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
                recruit_pool "Norman Knights"  0   0.000001   0.1  0  requires factions { sicily, } 
                recruit_pool "Chivalric Knights"  0   0.000001   0.1  0  requires factions { spain, sicily, }
                recruit_pool "French Chivalric Knights"  0   0.000001   0.1  0  requires factions { france, }
                recruit_pool "English Knights"  0   0.000001   0.1  0  requires factions { england, } 
                recruit_pool "Imperial Knights"  0   0.000001   0.1  0  requires factions { hre, } 
                recruit_pool "Portuguese Knights"  0   0.000001   0.1  0  requires factions { portugal, } 
                recruit_pool "Polish Knights"  0   0.000001   0.1  0  requires factions { poland, } 
                recruit_pool "E Chivalric Knights"  0   0.000001   0.1  0  requires factions { hungary, } 
                recruit_pool "Polish Nobles"  0   0.000001   0.1  0  requires factions { poland, } 
                recruit_pool "Hungarian Nobles"  0   0.000001   0.1  0  requires factions { hungary, } 
                recruit_pool "Noble Knights"  0   0.000001   0.1  0  requires factions { france, } 
                recruit_pool "Boyars"  0   0.000001   0.1  0  requires factions { russia, kievan_rus, } 
                recruit_pool "Heavy Boyars"  0   0.000001   0.1  0  requires factions { russia, kievan_rus, } 
                recruit_pool "Dismounted Halbbruder"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
                recruit_pool "Dismounted Mailed Knights"  0   0.000001   0.1  0  requires factions { scotland, france, spain, aragon, portugal, milan, venice, papal_states, } 
                recruit_pool "Dismounted Norman Cavalry"  0   0.000001   0.1  0  requires factions { england, sicily, } 
                recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { england, scotland, france, spain, aragon, portugal, milan, venice, papal_states, hungary, } 
                recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { hre, } 
                recruit_pool "Dismounted Norman Knights"  0   0.000001   0.1  0  requires factions { sicily, } 
                recruit_pool "Dismounted Polish Knights"  0   0.000001   0.1  0  requires factions { poland, }
                recruit_pool "Dismounted English Knights"  0   0.000001   0.1  0  requires factions { england, } 
                recruit_pool "Dismounted Portuguese Knights"  0   0.000001   0.1  0  requires factions { portugal, } 
                recruit_pool "Dismounted Imperial Knights"  0   0.000001   0.1  0  requires factions { hre, } 
                recruit_pool "Dismounted Chivalric Knights"  0   0.000001   0.1  0  requires factions { france, } 
                recruit_pool "Dismounted Chivalric Knights"  0   0.000001   0.1  0  requires factions { spain, } 
                recruit_pool "Dismounted E Chivalric Knights"  0   0.000001   0.1  0  requires factions { hungary, } 
                recruit_pool "Dismounted Polish Knights"  0   0.000001   0.1  0  requires factions { poland, } 
                recruit_pool "Dismounted Polish Nobles"  0   0.000001   0.1  0  requires factions { poland, }  
                recruit_pool "Noble Swordsmen"  0   0.000001   0.1  0  requires factions { scotland, } 
                recruit_pool "Feudal Knights"  0   0.000001   0.1  0  requires factions { norway, } 
                recruit_pool "Feudal Knights"  0   0.000001   0.1  0  requires factions { denmark, } 
                recruit_pool "Chivalric Knights"  0   0.000001   0.1  0  requires factions { denmark, } 		
				
				recruit_pool "Behk Druzhina"  1   0.15   2  0  requires factions { cumans, }
                recruit_pool "Dismounted Bekh Druzhina"  1   0.1   1  0  requires factions { cumans, }
                recruit_pool "Kwarezmian Cavalry"  1   0.15   2  0  requires factions { kwarezm, }

                recruit_pool "Noble Cavalry"  1   0.15   2  0  requires factions { lithuania, }
                recruit_pool "Noble Sons Cavalry"  1   0.1   1  0  requires factions { lithuania, }
                recruit_pool "Lithuanian Noble Infantry"  1   0.1   1  0  requires factions { lithuania, }

		recruit_pool "Ritterbruder"  1   0.15   1  0  requires factions { teutonic_order, }
		;early and high before new era
		recruit_pool "Christ Knights"  1   0.15   1  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1
		;after new era
                recruit_pool "Halbbruder"  1   0.15   1  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 

		;early
                recruit_pool "Mailed Knights"  1   0.1   1  0  requires factions { hre, spain, aragon, portugal, papal_states, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norman Cavalry"  1   0.1   1  0  requires factions { england, sicily, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mailed Knights"  1   0.075   1  0  requires factions { milan, venice, scotland, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mailed Knights"  1   0.15   1  0  requires factions { france, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.1   1  0  requires factions { england, spain, aragon, portugal, papal_states, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.075   1  0  requires factions { milan, venice, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "French Feudal Knights"  1   0.15   1  0  requires factions { france, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   1  0  requires factions { hre, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.075   1  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norman Knights"  1   0.1   1  0  requires factions { sicily, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Polish Nobles"  1   0.2   2  0  requires factions { poland, }  and not event_counter HEAVY_MAIL_ARMOR 1
		;high before Platemail
                recruit_pool "Feudal Knights"  1   0.15   1  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.15   2  0  requires factions { england, spain, aragon, portugal, papal_states, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.1   2  0  requires factions { milan, venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.15   2  0  requires factions { hre, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   2  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "French Feudal Knights"  1   0.2   2  0  requires factions { france, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Norman Knights"  1   0.15   2  0  requires factions { sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Polish Nobles"  1   0.15   1  0  requires factions { poland, }  and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Polish Knights"  1   0.15   1  0  requires factions { poland, }  and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Polish Retainers"  1   0.1   1  0  requires factions { poland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
		;high after platemail
                recruit_pool "Feudal Knights"  1   0.1   1  0  requires factions { england, spain, aragon, portugal, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.075   1  0  requires factions { milan, venice, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "French Feudal Knights"  1   0.15   1  0  requires factions { france, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   1  0  requires factions { hre, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   2  0  requires factions { scotland, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Polish Knights"  1   0.2   2  0  requires factions { poland, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Norman Knights"  1   0.1   1  0  requires factions { sicily, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Chivalric Knights"  1   0.1   1  0  requires factions { spain, sicily, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "French Chivalric Knights"  1   0.15   1  0  requires factions { france, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "English Knights"  1   0.1   1  0  requires factions { england, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Imperial Knights"  1   0.1   1  0  requires factions { hre, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Portuguese Knights"  1   0.1   1  0  requires factions { portugal, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "E Chivalric Knights"  1   0.15   1  0  requires factions { hungary, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                ;late

                recruit_pool "French Chivalric Knights"  1   0.15   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_oil_painting 1
                 recruit_pool "Noble Knights"  1   0.15   1  0  requires factions { france, } and event_counter first_oil_painting 1 and not event_counter ADV_MATCHLOCK 1 ;NOBLE KNIGHTS

                recruit_pool "Chivalric Knights"  1   0.1   1  0  requires factions { spain, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "English Knights"  1   0.1   1  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

		recruit_pool "Imperial Knights"  1   0.1   1  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter GOTHIC_ARMOR 1
		recruit_pool "Gothic Knights"  1   0.1   1  0  requires factions { hre, } and event_counter GOTHIC_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Portuguese Knights"  1   0.1   1  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Polish Knights"  1   0.15   1  0  requires factions { poland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "E Chivalric Knights"  1   0.15   1  0  requires factions { hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "German Feudal Knights"  1   0.075   1  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
                
                recruit_pool "Knights of Jerusalem"  1   0.15   2  0  requires factions { jerusalem, }

                recruit_pool "Boyars"  1   0.15   2  0  requires factions { russia, kievan_rus, } and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Boyars"  1   0.1   1  0  requires factions { russia, kievan_rus, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Heavy Boyars"  1   0.1   1  0  requires factions { kievan_rus, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Heavy Boyars"  1   0.1   1  0  requires factions { kievan_rus, } and event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Heavy Boyars"  1   0.1   1  0  requires factions { russia, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Heavy Boyars"  1   0.1   1  0  requires factions { russia, } and event_counter FULL_PLATE_ARMOR 1
		
                recruit_pool "Sipahis"  1   0.15   2  0  requires factions { moors, } 
		recruit_pool "Sipahis"  1   0.15   2  0  requires factions { turks, }		
		recruit_pool "Sipahi Lancers"  1   0.1   1  0  requires factions { turks, }

                recruit_pool "Pronoiarii"  1   0.1   2  0  requires factions { byzantium, } and event_counter HALF_PLATE_ARMOR 1
 
                recruit_pool "Knights of Antioch"  1   0.085   1  0  requires factions { jerusalem, }

		;before platemail 
                recruit_pool "Hungarian Nobles"  1   0.2   2  0  requires factions { hungary, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Hungarian Nobles"  1   0.15   1  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
		;high after platemail
                recruit_pool "Hungarian Nobles"  1   0.15   1  0  requires factions { hungary, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
		
                recruit_pool "Dismounted Knights Of Jerusalem"  1   0.1   1  0  requires factions { jerusalem, } 

                recruit_pool "Dismounted Halbbruder"  1   0.15   1  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Dismounted Mailed Knights"  1   0.1   1  0  requires factions { hre, spain, aragon, portugal, papal_states, } and not event_counter HEAVY_MAIL_ARMOR 1 ; dismounted mailed knights
                recruit_pool "Dismounted Norman Cavalry"  1   0.1   1  0  requires factions { england, sicily, } and not event_counter HEAVY_MAIL_ARMOR 1 ; dismounted mailed knights
                recruit_pool "Dismounted Mailed Knights"  1   0.075   1  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1 ; dismounted mailed knights
                recruit_pool "Dismounted Mailed Knights"  1   0.075   1  0  requires factions { milan, venice, } and not event_counter HEAVY_MAIL_ARMOR 1 ; dismounted mailed knights
                recruit_pool "Dismounted Mailed Knights"  1   0.15   1  0  requires factions { france, } and not event_counter HEAVY_MAIL_ARMOR 1 ; dismounted mailed knights
                recruit_pool "Dismounted Feudal Knights"  1   0.1   1  0  requires factions { england, spain, aragon, portugal, papal_states, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.075   1  0  requires factions { milan, venice, scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.15   1  0  requires factions { france, hungary, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.1   1  0  requires factions { hre, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Dismounted Norman Knights"  1   0.1   1  0  requires factions { sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted Boyars"  1   0.1   1  0  requires factions { russia, kievan_rus, }
                recruit_pool "Dismounted Polish Knights"  1   0.15   1  0  requires factions { poland, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted English Knights"  1   0.1   1  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted Portuguese Knights"  1   0.1   1  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted Imperial Knights"  1   0.1   1  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted Chivalric Knights"  1   0.15   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted Chivalric Knights"  1   0.1   1  0  requires factions { spain, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted E Chivalric Knights"  1   0.15   1  0  requires factions { hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted Polish Nobles"  1   0.15   1  0  requires factions { poland, }  and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Noble Swordsmen"  1   0.075   1  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
				recruit_pool "Dismounted Sipahi Lancers"  1   0.1   1  0  requires factions { turks, }

		        recruit_pool "Dismounted Huscarls"  1   0.2   2  0  requires factions { norway, } and not event_counter HEAVY_MAIL_ARMOR 1
				recruit_pool "Dismounted Huscarls"  1   0.15   1  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter first_watch 1
				recruit_pool "Dismounted Feudal Knights"  1   0.15   1  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1
				
		        recruit_pool "Dismounted Huscarls"  1   0.2   2  0  requires factions { denmark, } and not event_counter HEAVY_MAIL_ARMOR 1
				recruit_pool "Dismounted Huscarls"  1   0.15   1  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter first_watch 1
			    recruit_pool "Dismounted Feudal Knights"  1   0.15   1  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Chivalric Knights"  1   0.15   1  0  requires factions { denmark, } and event_counter FULL_PLATE_ARMOR 1
				
				recruit_pool "Huscarls"  1   0.1   1  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   1  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   1  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Chivalric Knights"  1   0.1   1  0  requires factions { denmark, } and event_counter FULL_PLATE_ARMOR 1

                wall_level 3
                tower_level 1
                gate_strength 4

		free_upkeep bonus 3 requires factions { cumans, kwarezm, jerusalem, turks, moors, }
		free_upkeep bonus 2 requires factions { byzantium, } and not event_counter HEAVY_MAIL_ARMOR 1
		free_upkeep bonus 3 requires factions { byzantium, } and event_counter HEAVY_MAIL_ARMOR 1

		free_upkeep bonus 3 requires factions { russia, kievan_rus,  teutonic_order, lithuania, denmark, norway, } and not event_counter FULL_PLATE_ARMOR 1
		free_upkeep bonus 2 requires factions { russia, kievan_rus,  teutonic_order, lithuania, denmark, norway, } and event_counter FULL_PLATE_ARMOR 1

                free_upkeep bonus 3 requires factions { england, scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, sicily, hungary, poland, } and not event_counter new_era_begins 1
                free_upkeep bonus 2 requires factions { england, scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, sicily, hungary, poland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		free_upkeep bonus 1 requires factions { england, scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, sicily, hungary, poland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                free_upkeep bonus 1 requires event_counter is_the_ai 1

                law_bonus bonus 4
                law_bonus bonus 1 requires event_counter is_the_ai 1

                recruitment_slots 4 requires not event_counter FULL_PLATE_ARMOR 1
                recruitment_slots 5 requires event_counter FULL_PLATE_ARMOR 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				armour 2 requires event_counter is_the_ai 1

            }
            material stone
            construction  5 
            cost  6000 
            settlement_min large_town
            upgrades
            {
                citadel
            }
        }
        citadel castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 2
            capability
            {
                recruit_pool "Christ Knights"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
				recruit_pool "Mailed Knights"  0   0.000001   0.1  0  requires factions { scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, }	
				recruit_pool "Norman Cavalry"  0   0.000001   0.1  0  requires factions { england, sicily, jerusalem, }	
                recruit_pool "Feudal Knights"  0   0.000001   0.1  0  requires factions { england, spain, aragon, portugal, milan, venice, papal_states, }		
                recruit_pool "French Feudal Knights"  0   0.000001   0.1  0  requires factions { france, }		
                recruit_pool "German Feudal Knights"  0   0.000001   0.1  0  requires factions { hre, scotland, norway, denmark, }		
                recruit_pool "Dismounted Huscarls"  0   0.000001   0.1  0  requires factions { denmark, norway, } 
				recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { norway, } 
			    recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { denmark, } 
                recruit_pool "Dismounted Chivalric Knights"  0   0.000001   0.1  0  requires factions { denmark, } 
                recruit_pool "Halbbruder"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
                recruit_pool "Norman Knights"  0   0.000001   0.1  0  requires factions { sicily, } 
                recruit_pool "Chivalric Knights"  0   0.000001   0.1  0  requires factions { spain, sicily, }
                recruit_pool "French Chivalric Knights"  0   0.000001   0.1  0  requires factions { france, }
                recruit_pool "English Knights"  0   0.000001   0.1  0  requires factions { england, } 
                recruit_pool "Imperial Knights"  0   0.000001   0.1  0  requires factions { hre, } 
                recruit_pool "Portuguese Knights"  0   0.000001   0.1  0  requires factions { portugal, } 
                recruit_pool "Polish Knights"  0   0.000001   0.1  0  requires factions { poland, } 
                recruit_pool "E Chivalric Knights"  0   0.000001   0.1  0  requires factions { hungary, } 
                recruit_pool "Polish Nobles"  0   0.000001   0.1  0  requires factions { poland, } 
                recruit_pool "Hungarian Nobles"  0   0.000001   0.1  0  requires factions { hungary, } 
                recruit_pool "Noble Knights"  0   0.000001   0.1  0  requires factions { france, } 
                recruit_pool "Boyars"  0   0.000001   0.1  0  requires factions { russia, kievan_rus, } 
                recruit_pool "Heavy Boyars"  0   0.000001   0.1  0  requires factions { russia, kievan_rus, } 
                recruit_pool "Dismounted Halbbruder"  0   0.000001   0.1  0  requires factions { teutonic_order, } 
                recruit_pool "Dismounted Mailed Knights"  0   0.000001   0.1  0  requires factions { scotland, france, spain, aragon, portugal, milan, venice, papal_states, } 
                recruit_pool "Dismounted Norman Cavalry"  0   0.000001   0.1  0  requires factions { england, sicily, } 
                recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { england, scotland, france, spain, aragon, portugal, milan, venice, papal_states, hungary, } 
                recruit_pool "Dismounted Feudal Knights"  0   0.000001   0.1  0  requires factions { hre, } 
                recruit_pool "Dismounted Norman Knights"  0   0.000001   0.1  0  requires factions { sicily, } 
                recruit_pool "Dismounted Polish Knights"  0   0.000001   0.1  0  requires factions { poland, }
                recruit_pool "Dismounted English Knights"  0   0.000001   0.1  0  requires factions { england, } 
                recruit_pool "Dismounted Portuguese Knights"  0   0.000001   0.1  0  requires factions { portugal, } 
                recruit_pool "Dismounted Imperial Knights"  0   0.000001   0.1  0  requires factions { hre, } 
                recruit_pool "Dismounted Chivalric Knights"  0   0.000001   0.1  0  requires factions { france, } 
                recruit_pool "Dismounted Chivalric Knights"  0   0.000001   0.1  0  requires factions { spain, } 
                recruit_pool "Dismounted Polish Knights"  0   0.000001   0.1  0  requires factions { poland, } 
                recruit_pool "Dismounted E Chivalric Knights"  0   0.000001   0.1  0  requires factions { hungary, } 
                recruit_pool "Dismounted Polish Nobles"  0   0.000001   0.1  0  requires factions { poland, }  
                recruit_pool "Noble Swordsmen"  0   0.000001   0.1  0  requires factions { scotland, } 
                recruit_pool "Feudal Knights"  0   0.000001   0.1  0  requires factions { norway, } 
                recruit_pool "Feudal Knights"  0   0.000001   0.1  0  requires factions { denmark, } 
                recruit_pool "Chivalric Knights"  0   0.000001   0.1  0  requires factions { denmark, } 		

			recruit_pool "Behk Druzhina"  1   0.20   3  0  requires factions { cumans, }
                recruit_pool "Dismounted Bekh Druzhina"  1   0.15   2  0  requires factions { cumans, }
                recruit_pool "Kwarezmian Cavalry"  1   0.20   3  0  requires factions { kwarezm, }

                recruit_pool "Noble Cavalry"  1   0.15   2  0  requires factions { lithuania, }
                recruit_pool "Noble Sons Cavalry"  1   0.15   2  0  requires factions { lithuania, }
                recruit_pool "Lithuanian Noble Infantry"  1   0.1   1  0  requires factions { lithuania, }
                recruit_pool "Lithuanian Noble Sons"  1   0.1   1  0  requires factions { lithuania, }

		recruit_pool "Ritterbruder"  1   0.15   1  0  requires factions { teutonic_order, }
		;early and high before new era
		recruit_pool "Christ Knights"  1   0.2   2  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1
		;after new era
                recruit_pool "Halbbruder"  1   0.2   2  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 

		;early
                recruit_pool "Mailed Knights"  1   0.1   1  0  requires factions { spain, aragon, portugal, papal_states, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norman Cavalry"  1   0.1   1  0  requires factions { england, sicily, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mailed Knights"  1   0.075   1  0  requires factions { milan, venice, scotland, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mailed Knights"  1   0.15   1  0  requires factions { france, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.15   2  0  requires factions { england, spain, aragon, portugal, papal_states, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.1   2  0  requires factions { milan, venice, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "French Feudal Knights"  1   0.2   2  0  requires factions { france, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.15   2  0  requires factions { hre, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   2  0  requires factions { scotland, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norman Knights"  1   0.15   2  0  requires factions { sicily, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Polish Nobles"  1   0.30   3  0  requires factions { poland, }  and not event_counter HEAVY_MAIL_ARMOR 1

		;high before Platemail
                recruit_pool "Feudal Knights"  1   0.20   3  0  requires factions { england, spain, aragon, portugal, papal_states, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.15   3  0  requires factions { milan, venice,  } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "French Feudal Knights"  1   0.30   3  0  requires factions { france, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.20   3  0  requires factions { hre, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.15   3  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Norman Knights"  1   0.20   3  0  requires factions { sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Polish Nobles"  1   0.15   1  0  requires factions { poland, }  and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
             	recruit_pool "Polish Knights"  1   0.2   2  0  requires factions { poland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
   
		;high after platemail
                recruit_pool "Feudal Knights"  1   0.1   1  0  requires factions { england, spain, aragon, portugal, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.075   1  0  requires factions { milan, venice,  } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "French Feudal Knights"  1   0.15   1  0  requires factions { france, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   1  0  requires factions { hre, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.15   3  0  requires factions { scotland, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Norman Knights"  1   0.1   1  0  requires factions { sicily, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1

		recruit_pool "French Chivalric Knights"  1   0.2   2  0  requires factions { france, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
		;recruit_pool "Chivalric Knights"  1   0.15   1  0  requires factions { france, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                ;recruit_pool "Noble Knights"  1   0.085   1  0  requires factions { france, } and event_counter first_blast_furnace 1 and not event_counter FULL_PLATE_ARMOR 1 ;NOBLE KNIGHTS

		recruit_pool "Chivalric Knights"  1   0.15   2  0  requires factions { spain, sicily, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "English Knights"  1   0.15   2  0  requires factions { england, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Imperial Knights"  1   0.15   2  0  requires factions { hre, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Portuguese Knights"  1   0.15   2  0  requires factions { portugal, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "E Chivalric Knights"  1   0.2   2  0  requires factions { hungary, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Polish Knights"  1   0.3   3  0  requires factions { poland, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Polish Retainers"  1   0.1   1  0  requires factions { poland, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                ;late

                recruit_pool "Royal Banderium"  1   0.1   1  0  requires factions { hungary, } and event_counter first_piano 1

                recruit_pool "French Chivalric Knights"  1   0.2   2  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_oil_painting 1
                ;recruit_pool "Chivalric Knights"  1   0.1   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Noble Knights"  1   0.15   1  0  requires factions { france, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1 ;NOBLE KNIGHTS
                recruit_pool "Noble Knights"  1   0.2   2  0  requires factions { france, } and event_counter first_oil_painting 1 and not event_counter first_watch 1 ;NOBLE KNIGHTS

                recruit_pool "Chivalric Knights"  1   0.15   2  0  requires factions { spain, sicily,} and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Chivalric Knights"  1   0.1   1  0  requires factions { spain, sicily,} and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "English Knights"  1   0.15   2  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "English Knights"  1   0.1   1  0  requires factions { england, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1

		recruit_pool "Imperial Knights"  1   0.15   2  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter GOTHIC_ARMOR 1
		recruit_pool "Imperial Knights"  1   0.1   1  0  requires factions { hre, } and event_counter GOTHIC_ARMOR 1 and not event_counter first_watch 1
		recruit_pool "Gothic Knights"  1   0.1   1  0  requires factions { hre, } and event_counter GOTHIC_ARMOR 1 and not event_counter first_watch 1
		recruit_pool "Gothic Knights"  1   0.1   1  0  requires factions { hre, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Portuguese Knights"  1   0.15   2  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Portuguese Knights"  1   0.1   1  0  requires factions { portugal, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Polish Knights"  1   0.2   2  0  requires factions { poland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Polish Knights"  1   0.15   1  0  requires factions { poland, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Polish Retainers"  1   0.1   1  0  requires factions { poland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Polish Retainers"  1   0.1   1  0  requires factions { poland, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "E Chivalric Knights"  1   0.2   2  0  requires factions { hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "E Chivalric Knights"  1   0.15   1  0  requires factions { hungary, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "German Feudal Knights"  1   0.1   2  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "German Feudal Knights"  1   0.075   1  0  requires factions { scotland, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Knights of Jerusalem"  1   0.20   3  0  requires factions { jerusalem, }

                recruit_pool "Sipahis"  1   0.2   3  0  requires factions { moors, } 
                recruit_pool "Sipahis"  1   0.15   2  0  requires factions { turks, }
		recruit_pool "Sipahi Lancers"  1   0.15   2  0  requires factions { turks, }

                recruit_pool "Boyars"  1   0.20   3  0  requires factions { russia, kievan_rus, } and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Boyars"  1   0.1   1  0  requires factions { russia, kievan_rus, } and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Heavy Boyars"  1   0.15   2  0  requires factions { kievan_rus, } and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Heavy Boyars"  1   0.15   2  0  requires factions { russia, } and event_counter HALF_PLATE_ARMOR 1

		;before platemail 

                recruit_pool "Hungarian Nobles"  1   0.2   2  0  requires factions { hungary, }  and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Feudal Knights"  1   0.15   1  0  requires factions { hungary, }  and not event_counter HALF_PLATE_ARMOR 1
		;high after platemail

                recruit_pool "Hungarian Nobles"  1   0.15   1  0  requires factions { hungary, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
		;late

                recruit_pool "Pronoiarii"  1   0.15   3  0  requires factions { byzantium, } and event_counter HALF_PLATE_ARMOR 1
 
                recruit_pool "Knights of Antioch"  1   0.13   2  0  requires factions { jerusalem, } 

                recruit_pool "Dismounted Knights Of Jerusalem"  1   0.15   2  0  requires factions { jerusalem, } 

		recruit_pool "Dismounted Sipahi Lancers"  1   0.15   2  0  requires factions { turks, }

                recruit_pool "Dismounted Knights of Antioch"  1   0.085   1  0  requires factions { jerusalem, } 

                recruit_pool "Dismounted Mailed Knights"  1   0.1   1  0  requires factions { hre, spain, aragon, portugal, papal_states, } and not event_counter HEAVY_MAIL_ARMOR 1 ; dismounted mailed knights
                recruit_pool "Dismounted Norman Cavalry"  1   0.1   1  0  requires factions { england, sicily, } and not event_counter HEAVY_MAIL_ARMOR 1 ; dismounted mailed knights
                recruit_pool "Dismounted Mailed Knights"  1   0.075   1  0  requires factions { milan, venice, scotland, } and not event_counter HEAVY_MAIL_ARMOR 1 ; dismounted mailed knights
                recruit_pool "Dismounted Mailed Knights"  1   0.15   1  0  requires factions { france, } and not event_counter HEAVY_MAIL_ARMOR 1 ; dismounted mailed knights
                recruit_pool "Dismounted Feudal Knights"  1   0.1   1  0  requires factions { england, spain, aragon, portugal, papal_states, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.075   1  0  requires factions { milan, venice, scotland, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.15   1  0  requires factions { france, hungary, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.15   2  0  requires factions { england, spain, aragon, portugal, papal_states, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.1   2  0  requires factions { milan, venice, scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.2   2  0  requires factions { france, hungary, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.1   1  0  requires factions { hre, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.15   2  0  requires factions { hre, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Dismounted Norman Knights"  1   0.1   1  0  requires factions { sicily, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Norman Knights"  1   0.15   2  0  requires factions { sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Norman Knights"  1   0.1   1  0  requires factions { sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Dismounted Chivalric Knights"  1   0.1   1  0  requires factions { spain, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Chivalric Knights"  1   0.15   1  0  requires factions { france, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.1   1  0  requires factions { england, spain, aragon, portugal, milan, venice, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.15   1  0  requires factions { france, hungary, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.075   1  0  requires factions { milan, venice, scotland, }  and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Feudal Knights"  1   0.1   1  0  requires factions { hre, }  and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Chivalric Knights"  1   0.1   1  0  requires factions { spain, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Dismounted Chivalric Knights"  1   0.15   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Dismounted English Knights"  1   0.1   1  0  requires factions { england, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted English Knights"  1   0.1   1  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Dismounted Portuguese Knights"  1   0.1   1  0  requires factions { portugal, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Portuguese Knights"  1   0.1   1  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Dismounted Imperial Knights"  1   0.1   1  0  requires factions { hre, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Imperial Knights"  1   0.1   1  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Dismounted Gothic Knights"  1   0.1   1  0  requires factions { hre, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1

                recruit_pool "Dismounted E Chivalric Knights"  1   0.15   1  0  requires factions { hungary, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Dismounted E Chivalric Knights"  1   0.15   1  0  requires factions { hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Dismounted Boyars"  1   0.15   2  0  requires factions { russia, kievan_rus, }

                recruit_pool "Dismounted Polish Nobles"  1   0.2   2  0  requires factions { poland, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Polish Nobles"  1   0.15   1  0  requires factions { poland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Dismounted Polish Knights"  1   0.15   1  0  requires factions { poland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Dismounted Polish Knights"  1   0.2  2  0  requires factions { poland, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Polish Knights"  1   0.15   1  0  requires factions { poland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Dismounted Halbbruder"  1   0.15   1  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 
		recruit_pool "Dismounted Ritterbruder"  1   0.15   1  0  requires factions { teutonic_order, } and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Armored Swordsmen"  1   0.1   1  0  requires factions { england, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Dismounted Noble Knights"  1   0.15   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Noble Swordsmen"  1   0.1   2  0  requires factions { scotland, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Noble Swordsmen"  1   0.075   1  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Noble Pikemen"  1   0.075   1  0  requires factions { scotland, } and event_counter new_era_begins 1				

                recruit_pool "iqta'dar"  1   0.1   1  0  requires factions { turks, } and hidden_resource Iqta
				
				recruit_pool "Gotland Footmen"  1   0.085   1  0  requires factions { norway, } and not event_counter ADV_MATCHLOCK 1
				recruit_pool "Dismounted Huscarls"  1   0.25   3  0  requires factions { norway, } and not event_counter HEAVY_MAIL_ARMOR 1
				recruit_pool "Dismounted Huscarls"  1   0.2   2  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter first_watch 1
				recruit_pool "Dismounted Huscarls"  1   0.15   1  0  requires factions { norway, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
				recruit_pool "Dismounted Feudal Knights"  1   0.15   1  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
				
		        recruit_pool "Dismounted Huscarls"  1   0.25   3  0  requires factions { denmark, } and not event_counter HEAVY_MAIL_ARMOR 1
				recruit_pool "Dismounted Huscarls"  1   0.2   2  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter first_watch 1
				recruit_pool "Dismounted Huscarls"  1   0.15   1  0  requires factions { denmark, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
			    recruit_pool "Dismounted Feudal Knights"  1   0.15   1  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Chivalric Knights"  1   0.15   1  0  requires factions { denmark, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
				
				recruit_pool "Huscarls"  1   0.15   2  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1
				recruit_pool "Huscarls"  1   0.1   1  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "German Feudal Knights"  1   0.1   1  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "German Feudal Knights"  1   0.1   1  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Chivalric Knights"  1   0.1   1  0  requires factions { denmark,  } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1

                wall_level 4
                tower_level 1
                gate_strength 5

		free_upkeep bonus 4 requires factions { cumans, kwarezm, jerusalem, turks, moors, }
		free_upkeep bonus 3 requires factions { byzantium, } and not event_counter HEAVY_MAIL_ARMOR 1
		free_upkeep bonus 4 requires factions { byzantium, } and event_counter HEAVY_MAIL_ARMOR 1

		free_upkeep bonus 4 requires factions { russia, kievan_rus,  teutonic_order, lithuania, denmark, norway, } and not event_counter FULL_PLATE_ARMOR 1
		free_upkeep bonus 3 requires factions { russia, kievan_rus,  teutonic_order, lithuania, denmark, norway, } and event_counter FULL_PLATE_ARMOR 1

                free_upkeep bonus 4 requires factions { england, scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, sicily, hungary, poland, } and not event_counter new_era_begins 1
                free_upkeep bonus 3 requires factions { england, scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, sicily, hungary, poland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		free_upkeep bonus 2 requires factions { england, scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, sicily, hungary, poland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
		free_upkeep bonus 1 requires factions { england, scotland, france, hre, spain, aragon, portugal, milan, venice, papal_states, sicily, hungary, poland, } and event_counter first_watch 1
                free_upkeep bonus 1 requires event_counter is_the_ai 1

                law_bonus bonus 5
                law_bonus bonus 1 requires event_counter is_the_ai 1

                recruitment_slots 6 requires not event_counter FULL_PLATE_ARMOR 1
                recruitment_slots 7 requires event_counter FULL_PLATE_ARMOR 1
				armour 3 requires event_counter is_the_ai 1
				recruits_exp_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_exp_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1
				recruits_morale_bonus bonus 1 requires event_counter is_the_ai 1 and event_counter difficulty_hard 1
				recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1 and event_counter difficulty_very_hard 1

            }
            material stone
            construction  6 
            cost  12000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building tower
{
    convert_to castle_tower
    levels ballista_towers cannon_towers 
    {
        ballista_towers city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                tower_level 2
            }
            material stone
            construction  4 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                cannon_towers
            }
        }
        cannon_towers city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and event_counter GOTHIC_ARMOR 1 
        {
            convert_to 1
            capability
            {
                tower_level 3
            }
            material stone
            construction  6 
            cost  4000 
            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 { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                tower_level 2
            }
            material stone
            construction  4 
            cost  2000 
            settlement_min city
            upgrades
            {
                c_cannon_towers
            }
        }
        c_cannon_towers castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and event_counter GOTHIC_ARMOR 1 
        {
            convert_to 1
            capability
            {
                tower_level 3
            }
            material stone
            construction  6 
            cost  4000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building equestrian
{
    levels stables knights_stables barons_stables earls_stables kings_stables 
    {
        stables castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                recruit_pool "Pechenegs"  1   0.25   2  1  requires factions { cumans, } and hidden_resource cumans 
                recruit_pool "Pechenegs"  0   0.13   1  1  requires factions { cumans, }  and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Pechenegs"  0   0.13   1  1  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans 
                recruit_pool "Turkomans"  1   0.25   2  0  requires factions { kwarezm, } and hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.13   1  0  requires factions { kwarezm, } and hidden_resource turks or hidden_resource cumans
                recruit_pool "Turkomans"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm
		recruit_pool "Lithuanian Cavalry"  1   0.17   1  0  requires factions { lithuania, } and hidden_resource lithuania
		recruit_pool "Lithuanian Cavalry"  0   0.13   1  0  requires factions { lithuania, } and not hidden_resource lithuania
		
                recruit_pool "Prussian Auxillia"  1   0.25   2  0  requires factions { teutonic_order, } and hidden_resource prussia
                recruit_pool "Prussian Auxillia"  0   0.13   1  0  requires factions { teutonic_order, } and hidden_resource hre
                recruit_pool "Prussian Auxillia"  1   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia 				
				
                recruit_pool "Hobilars"  1   0.17   2  0  requires factions { england, } and hidden_resource england
                recruit_pool "Hobilars"  0   0.085   1  0  requires factions { england, } and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Hobilars"  0   0.085   1  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england
                recruit_pool "Border Horse"  1   0.17   2  0  requires factions { scotland, } and hidden_resource scotland 
                recruit_pool "Border Horse"  0   0.085   1  0  requires factions { scotland, }  and hidden_resource england or hidden_resource ireland
                recruit_pool "Border Horse"  0   0.085   1  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland 
                recruit_pool "Mounted Sergeants"  1   0.13   1  0  requires factions { france, hre, milan, venice, papal_states, } and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.085   1  0  requires factions { france, hre, milan, venice, papal_states, } and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.17   1  0  requires factions { sicily, } and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.13   1  0  requires factions { sicily, } and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.13   1  0  requires factions { knights_templar, jerusalem, }
                recruit_pool "Svenner"  1   0.13   1  0  requires factions { norway, } and hidden_resource norway 
                recruit_pool "Svenner"  0   0.085   1  0  requires factions { norway, } and not hidden_resource norway 
				recruit_pool "Scouts"  1   0.17   2  0  requires factions { denmark, } and hidden_resource denmark 
				recruit_pool "Scouts"  0   0.085   1  0  requires factions { denmark, }  and hidden_resource norway or hidden_resource ireland
                recruit_pool "Scouts"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark 
                recruit_pool "Jinetes"  1   0.25   1  0  requires factions { spain, portugal, } and hidden_resource spain or hidden_resource portugal
                recruit_pool "Jinetes"  0   0.17   1  0  requires factions { spain, portugal, } and not hidden_resource spain and not hidden_resource portugal
                recruit_pool "Alforrats"  1   0.25   2  0  requires factions { aragon, } and hidden_resource aragon
                recruit_pool "Alforrats"  0   0.13   1  0  requires factions { aragon, } and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon
                recruit_pool "Polish Shooters"  1   0.13   1  0  requires factions { poland, } and hidden_resource poland
                recruit_pool "Polish Shooters"  0   0.085   1  0  requires factions { poland, } and not hidden_resource poland
                recruit_pool "Pechenegs"  1   0.25   2  0  requires factions { russia, } and hidden_resource russia 
                recruit_pool "Pechenegs"  0   0.13   1  0  requires factions { russia, }  and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Pechenegs"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia 
                recruit_pool "Pechenegs"  1   0.34   2  0  requires factions { kievan_rus, } and hidden_resource kievan_rus 
                recruit_pool "Pechenegs"  0   0.17   1  0  requires factions { kievan_rus, }  and hidden_resource russia or hidden_resource cumans
                recruit_pool "Pechenegs"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus 
                recruit_pool "Magyar Cavalry"  1   0.17   2  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  0   0.085   1  0  requires factions { hungary, } and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Magyar Cavalry"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  1   0.34   2  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  0   0.17   1  0  requires factions { hungary, } and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Magyar Cavalry"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
                
		recruit_pool "Mounted Acritae"  1   0.17   1  0  requires factions { byzantium, } and hidden_resource byzantium
                recruit_pool "Mounted Acritae"  0   0.13   1  0  requires factions { byzantium, } and not hidden_resource byzantium

                recruit_pool "Desert Cavalry"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  0   0.17   1  0  requires factions { moors, }  and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Cavalry"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt 
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { egypt, }  and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt 
                recruit_pool "Turkish Horse Archers"  1   0.34   2  0  requires factions { turks, } and hidden_resource turks 
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { turks, }  and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks 
                recruit_pool "Hoshiga Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Hoshiga Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks

                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min town
            upgrades
            {
                knights_stables
            }
        }
        knights_stables castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                recruit_pool "Tartar Lancers"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "Pechenegs"  1   0.25   2  1  requires factions { cumans, } and hidden_resource cumans                 
                recruit_pool "Pechenegs"  0   0.13   1  1  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Pechenegs"  0   0.13   1  1  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans

                recruit_pool "Turkomans"  1   0.34   3  0  requires factions { kwarezm, } and hidden_resource kwarezm 
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { kwarezm, }  and hidden_resource turks or hidden_resource cumans
                recruit_pool "Turkomans"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm 

                recruit_pool "Svenner"  1   0.17   2  0  requires factions { norway, } and hidden_resource norway 
                recruit_pool "Svenner"  0   0.13   1  0  requires factions { norway, } and not hidden_resource norway 
		recruit_pool "Lithuanian Cavalry"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania
		recruit_pool "Lithuanian Cavalry"  0   0.17   1  0  requires factions { lithuania, } and not hidden_resource lithuania
		recruit_pool "Ducal Cavalry"  1   0.17   1  0  requires factions { lithuania, } and hidden_resource lithuania
		recruit_pool "Ducal Cavalry"  0   0.13   1  0  requires factions { lithuania, } and not hidden_resource lithuania
		
                recruit_pool "Prussian Auxillia"  1   0.34   3  0  requires factions { teutonic_order, } and hidden_resource prussia
                recruit_pool "Prussian Auxillia"  0   0.17   1  0  requires factions { teutonic_order, } and hidden_resource hre
                recruit_pool "Prussian Auxillia"  1   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia 				
                recruit_pool "Knechten"  1   0.13   1  0  requires factions { teutonic_order, }
				
                recruit_pool "Hobilars"  1   0.25   3  0  requires factions { england, } and hidden_resource england  
                recruit_pool "Hobilars"  0   0.13   1  0  requires factions { england, }   and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Hobilars"  0   0.13   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england  
                recruit_pool "Border Horse"  1   0.25   3  0  requires factions { scotland, } and hidden_resource scotland 
                recruit_pool "Border Horse"  0   0.13   1  0  requires factions { scotland, }  and hidden_resource england or hidden_resource ireland
                recruit_pool "Border Horse"  0   0.13   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland 
                recruit_pool "Mounted Sergeants"  1   0.17   2  0  requires factions { france, hre, milan, venice, papal_states, } and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.13   1  0  requires factions { france, hre, milan, venice, papal_states, } and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.25   2  0  requires factions { sicily, } and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.17   1  0  requires factions { sicily, } and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.17   2  0  requires factions { knights_templar, jerusalem, }
                recruit_pool "Scouts"  1   0.25   3  0  requires factions { denmark, } and hidden_resource denmark 
                recruit_pool "Scouts"  0   0.13   1  0  requires factions { denmark, }  and hidden_resource norway or hidden_resource ireland
                recruit_pool "Scouts"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark 
                recruit_pool "Jinetes"  1   0.34   2  0  requires factions { spain, portugal, } and hidden_resource spain or hidden_resource portugal
                recruit_pool "Jinetes"  0   0.25   1  0  requires factions { spain, portugal, } and not hidden_resource spain and not hidden_resource portugal
                recruit_pool "Alforrats"  1   0.34   3  0  requires factions { aragon, } and hidden_resource aragon
                recruit_pool "Alforrats"  0   0.17   1  0  requires factions { aragon, } and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon
                recruit_pool "Polish Shooters"  1   0.17   2  0  requires factions { poland, } and hidden_resource poland 
                recruit_pool "Polish Shooters"  0   0.13   1  0  requires factions { poland, } and not hidden_resource poland 
				recruit_pool "Junior Druzhina" 1   0.17   1  0  requires factions { russia, kievan_rus, } and hidden_resource kievan_rus
				recruit_pool "Junior Druzhina" 0   0.13   1  0  requires factions { russia, kievan_rus, } and not hidden_resource kievan_rus
                recruit_pool "Pechenegs"  1   0.34   3  0  requires factions { russia, } and hidden_resource russia 
                recruit_pool "Pechenegs"  0   0.17   1  0  requires factions { russia, }  and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Pechenegs"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia 
                recruit_pool "Pechenegs"  1   0.5   3  0  requires factions { kievan_rus, } and hidden_resource kievan_rus 
                recruit_pool "Pechenegs"  0   0.25   1  0  requires factions { kievan_rus, }  and hidden_resource russia or hidden_resource cumans
                recruit_pool "Pechenegs"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus 
                recruit_pool "Magyar Cavalry"  1   0.25   3  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  0   0.13   1  0  requires factions { hungary, } and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Magyar Cavalry"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  1   0.5   3  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  0   0.25   1  0  requires factions { hungary, } and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Magyar Cavalry"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Stratiotae"  1   0.5   2  0  requires factions { byzantium, } 
                recruit_pool "Mounted Acritae"  1   0.17   1  0  requires factions { byzantium, } and hidden_resource byzantium 
                recruit_pool "Mounted Acritae"  0   0.13   1  0  requires factions { byzantium, } and not hidden_resource byzantium 

                recruit_pool "Desert Cavalry"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  0   0.17   1  0  requires factions { moors, }  and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Cavalry"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt 
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { egypt, }  and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt 
                recruit_pool "Turkomans"  1   0.34   2  0  requires factions { turks, } and hidden_resource turks 
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { turks, }  and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks 
                recruit_pool "Turkish Horse Archers"  1   0.34   2  0  requires factions { turks, } and hidden_resource turks
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { turks, } and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks
                recruit_pool "Arab Cavalry"  1   0.5   2  0  requires factions { moors, egypt, } 
                recruit_pool "Turkopoles"  1   0.25   2  0  requires factions { knights_templar, } 
				
                recruit_pool "Hoshiga Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Hoshiga Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Hoschuchi Lancers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Hoschuchi Lancers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks


                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min large_town
            upgrades
            {
                barons_stables
            }
        }
        barons_stables castle requires factions { scotland, teutonic_order, jerusalem,  norway, denmark, hre, france, england, knights_templar, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {                 
                recruit_pool "Yasi Archers"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Yasi Archers"  0   0.13   1  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Yasi Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "Tartar Lancers"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "Pechenegs"  1   0.25   2  1  requires factions { cumans, } and hidden_resource cumans                 
                recruit_pool "Pechenegs"  0   0.13   1  1  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Pechenegs"  0   0.13   1  1  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "Khagan Druzhina"  1   0.17   1  0  requires factions { cumans, } and hidden_resource cumans                 
                recruit_pool "Khagan Druzhina"  0   0.13   1  0  requires factions { cumans, } and not hidden_resource cumans
                 
                recruit_pool "Ghulams"  1   0.67   2  0  requires factions { kwarezm, }  
                recruit_pool "Turkomans"  1   0.34   3  0  requires factions { kwarezm, } and hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.17  1  0  requires factions { kwarezm, } and hidden_resource turks or hidden_resource cumans
                recruit_pool "Turkomans"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm

		recruit_pool "Lithuanian Cavalry"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania
		recruit_pool "Lithuanian Cavalry"  0   0.25   2  0  requires factions { lithuania, } and not hidden_resource lithuania
		recruit_pool "Ducal Cavalry"  1   0.25   2  0  requires factions { lithuania, }  and hidden_resource lithuania
		recruit_pool "Ducal Cavalry"  0   0.17   1  0  requires factions { lithuania, }  and not hidden_resource lithuania

                recruit_pool "Prussian Auxillia"  1   0.5   4  0  requires factions { teutonic_order, } and hidden_resource prussia
                recruit_pool "Prussian Auxillia"  0   0.25   2  0  requires factions { teutonic_order, } and hidden_resource hre
                recruit_pool "Prussian Auxillia"  1   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia 				
               recruit_pool "Knechten"  1   0.17   2  0  requires factions { teutonic_order, } 
			   
                recruit_pool "Hobilars"  1   0.34   4  0  requires factions { england, } and hidden_resource england  
                recruit_pool "Hobilars"  0   0.17   2  0  requires factions { england, }   and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Hobilars"  0   0.17   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england  
                recruit_pool "Border Horse"  1   0.34   4  0  requires factions { scotland, } and hidden_resource scotland 
                recruit_pool "Border Horse"  0   0.17   2  0  requires factions { scotland, }  and hidden_resource england or hidden_resource ireland
                recruit_pool "Border Horse"  0   0.17   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland 
                recruit_pool "Mounted Sergeants"  1   0.25   3  0  requires factions { france, hre, milan, venice, papal_states, } and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.17   2  0  requires factions { france, hre, milan, venice, papal_states, } and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.34   3  0  requires factions { sicily, } and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.25   2  0  requires factions { sicily, } and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.25   3  0  requires factions { knights_templar, jerusalem, }
                recruit_pool "Jinetes"  1   0.5   3  0  requires factions { spain, portugal, } and hidden_resource spain or hidden_resource portugal
                recruit_pool "Jinetes"  0   0.34   2  0  requires factions { spain, portugal, } and not hidden_resource spain and not hidden_resource portugal
                recruit_pool "Scouts"  1   0.34   4  0  requires factions { denmark, } and hidden_resource denmark 
                recruit_pool "Scouts"  0   0.17   2  0  requires factions { denmark, }  and hidden_resource norway or hidden_resource ireland
                recruit_pool "Scouts"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark 
                recruit_pool "Svenner"  1   0.25   3  0  requires factions { norway, } and hidden_resource norway 
                recruit_pool "Svenner"  0   0.17   2  0  requires factions { norway, } and not hidden_resource norway 
                recruit_pool "Alforrats"  1   0.5   4  0  requires factions { aragon, } and hidden_resource aragon
                recruit_pool "Alforrats"  0   0.25   2  0  requires factions { aragon, } and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon
                recruit_pool "Polish Shooters"  1   0.25   3  0  requires factions { poland, } and hidden_resource poland
                recruit_pool "Polish Shooters"  0   0.17   2  0  requires factions { poland, } and not hidden_resource poland

                recruit_pool "Druzhina"  1   0.17   1  0  requires factions { kievan_rus, } and hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Druzhina"  0   0.13   1  0  requires factions { kievan_rus, } and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Druzhina"  1   0.25   1  0  requires factions { russia, } and hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Druzhina"  0   0.17   1  0  requires factions { russia, } and not hidden_resource russia and not hidden_resource kievan_rus
				recruit_pool "Junior Druzhina" 1   0.25   2  0  requires factions { russia, kievan_rus, } and hidden_resource kievan_rus
				recruit_pool "Junior Druzhina" 0   0.17   1  0  requires factions { russia, kievan_rus, } and not hidden_resource kievan_rus
                recruit_pool "Pechenegs"  1   0.5   4  0  requires factions { russia, } and hidden_resource russia 
                recruit_pool "Pechenegs"  0   0.25   2  0  requires factions { russia, }  and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Pechenegs"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia 
                recruit_pool "Pechenegs"  1   0.67   4  0  requires factions { kievan_rus, } and hidden_resource kievan_rus 
                recruit_pool "Pechenegs"  0   0.34   2  0  requires factions { kievan_rus, }  and hidden_resource russia or hidden_resource cumans
                recruit_pool "Pechenegs"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus 
               
                recruit_pool "Magyar Cavalry"  1   0.34   4  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  0   0.17   2  0  requires factions { hungary, } and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Magyar Cavalry"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  1   0.67   4  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  0   0.34   2  0  requires factions { hungary, } and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Magyar Cavalry"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Cavalarii"  1   0.13   1  0  requires factions { byzantium, } and hidden_resource byzantium 
                recruit_pool "Cavalarii"  0   0.085   1  0  requires factions { byzantium, } and not hidden_resource byzantium 
                recruit_pool "Stratiotae"  1   0.67   3  0  requires factions { byzantium, } 
                recruit_pool "Mounted Acritae"  1   0.25   2  0  requires factions { byzantium, } and hidden_resource byzantium 
                recruit_pool "Mounted Acritae"  0   0.17   1  0  requires factions { byzantium, } and not hidden_resource byzantium 

                recruit_pool "Christian Guard"  1   0.085   1  0  requires factions { moors, } 
                recruit_pool "Granadine Lancers"  1   0.34   2  0  requires factions { moors, }
                recruit_pool "Granadine Jinetes"  1   0.25   2  0  requires factions { moors, } and hidden_resource moors 
                recruit_pool "Granadine Jinetes"  0   0.13   1  0  requires factions { moors, }  and hidden_resource egypt or hidden_resource spain
                recruit_pool "Granadine Jinetes"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  1   0.25   1  0  requires factions { moors, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { moors, }  and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors 
                recruit_pool "Arab Cavalry"  1   0.34   1  0  requires factions { moors, }  
 
                recruit_pool "Turkish Horse Archers"  1   0.5   3  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks 
                recruit_pool "Turkish Horse Archers"  0   0.25  1  0  requires factions { turks, }  and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Horse Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  1   0.5   3  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  0   0.25  1  0  requires factions { turks, }  and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  1   0.34   2  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { turks, }   and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks 
                recruit_pool "Turkish Horse Archers"  1   0.34   2  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks
                recruit_pool "Turkish Ghulams"  1   0.5   2  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1
  
                recruit_pool "Desert Cavalry"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { egypt, } and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt
                recruit_pool "Ghulams"  1   0.5   2  0  requires factions { egypt, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mamluk Archers"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1

				
				recruit_pool "Armats"  1   0.13   1  0  requires factions { aragon, } and hidden_resource aragon and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
				recruit_pool "Armats"  0   0.1   1  0  requires factions { aragon, } and not hidden_resource aragon and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Italian MAA"  1   0.13   1  0  requires factions { milan, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource milan or hidden_resource venice or hidden_resource papal_states
                recruit_pool "Italian MAA"  0   0.085   1  0  requires factions { milan, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states
                recruit_pool "Italian MAA"  1   0.085   1  0  requires factions { venice, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource milan or hidden_resource venice or hidden_resource papal_states
                recruit_pool "Italian MAA"  0   0.065   1  0  requires factions { venice, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states
				
                recruit_pool "Turkopoles"  1   0.34   3  0  requires factions { knights_templar, } 
                recruit_pool "Mercenary Frankish Knights"  1   0.17   1  0  requires factions { knights_templar, }
				
                recruit_pool "Hoshiga Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Hoshiga Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Hoschuchi Lancers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Hoschuchi Lancers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Lubchiten Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Lubchiten Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Turhagut Lancers"  1   0.17   1  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Turhagut Lancers"  0   0.13   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
				
                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  6 
            cost  4000 
            settlement_min city
            upgrades
            {
                earls_stables
            }
        }
        earls_stables castle requires factions { teutonic_order,  jerusalem, norway, denmark, hre, france, england, knights_templar, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability 
            {
                recruit_pool "Yasi Archers"  1   0.34   3  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Yasi Archers"  0   0.17   1  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Yasi Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "Tartar Lancers"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "Pechenegs"  1   0.25   2  1  requires factions { cumans, } and hidden_resource cumans                 
                recruit_pool "Pechenegs"  0   0.13   1  1  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Pechenegs"  0   0.13   1  1  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "Khagan Druzhina"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans                 
                recruit_pool "Khagan Druzhina"  0   0.17   1  0  requires factions { cumans, } and not hidden_resource cumans

                recruit_pool "Sibyan al Khass"  1   0.17   1  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Sibyan al Khass"  1   0.13   1  0  requires factions { kwarezm, } and not hidden_resource kwarezm and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Armored Horsearchers"  1   0.67   3  0  requires factions { kwarezm, } and event_counter new_era_begins 1
                recruit_pool "Armored Horsearchers"  1   0.5   2  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Ghulams"  1   0.67   2  0  requires factions { kwarezm, }  and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Ghulams"  1   0.84   3  0  requires factions { kwarezm, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkomans"  1   0.5   4  0  requires factions { kwarezm, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkomans"  0   0.25   2  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Turkomans"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkomans"  1   0.25   2  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter new_era_begins 1
                recruit_pool "Turkomans"  0   0.13   1  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Turkomans"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and event_counter new_era_begins 1
                recruit_pool "Turkomans"  1   0.34   3  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Turkomans"  0   0.17  1  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Turkomans"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
 
		recruit_pool "L Regular Cavalry"  1   0.67   3  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  0   0.17   1  0  requires factions { lithuania, } and not hidden_resource lithuania and event_counter FULL_PLATE_ARMOR 1

		recruit_pool "L Regular Cavalry"  1   0.5   2  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  0   0.25   2  0  requires factions { lithuania, } and not hidden_resource lithuania and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  1   0.5   4  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter new_era_begins 1
		recruit_pool "Lithuanian Cavalry"  0   0.34   3  0  requires factions { lithuania, } and not hidden_resource lithuania and not event_counter new_era_begins 1
		recruit_pool "Ducal Cavalry"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter new_era_begins 1
		recruit_pool "Ducal Cavalry"  0   0.17   1  0  requires factions { lithuania, } and not hidden_resource lithuania and event_counter new_era_begins 1
		recruit_pool "Ducal Cavalry"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter new_era_begins 1
		recruit_pool "Ducal Cavalry"  0   0.25   2  0  requires factions { lithuania, } and not hidden_resource lithuania and not event_counter new_era_begins 1

                recruit_pool "Demi Lancers"  1   0.5   2  0  requires factions { teutonic_order, } and event_counter pike_and_shot 1 
    
				recruit_pool "Prussian Auxillia"  1   0.34   3  0  requires factions { teutonic_order, } and hidden_resource prussia and event_counter pike_and_shot 1 
                recruit_pool "Prussian Auxillia"  0   0.17   1  0  requires factions { teutonic_order, } and hidden_resource hre and event_counter pike_and_shot 1 
                recruit_pool "Prussian Auxillia"  1   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia and event_counter pike_and_shot 1  				
				recruit_pool "Prussian Auxillia"  1   0.67   5  0  requires factions { teutonic_order, } and hidden_resource prussia  and not event_counter pike_and_shot 1 
                recruit_pool "Prussian Auxillia"  0   0.34   2  0  requires factions { teutonic_order, } and hidden_resource hre and not event_counter pike_and_shot 1 
                recruit_pool "Prussian Auxillia"  1   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia and not event_counter pike_and_shot 1 			
                recruit_pool "Knechten"  1   0.25   3  0  requires factions { teutonic_order, }
				
                recruit_pool "Demi Lancers"  1   0.5   2  0  requires factions { england, } and event_counter first_watch 1 
                recruit_pool "Hobilars"  1   0.5   5  0  requires factions { england, } and hidden_resource england and event_counter first_watch 1 
                recruit_pool "Hobilars"  0   0.25   2  0  requires factions { england, } and hidden_resource scotland or hidden_resource ireland or hidden_resource france and event_counter first_watch 1 
                recruit_pool "Hobilars"  0   0.25   3  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter first_watch 1 
                recruit_pool "Hobilars"  1   0.5   5  0  requires factions { england, } and hidden_resource england and not event_counter first_watch 1 
                recruit_pool "Hobilars"  0   0.25   2  0  requires factions { england, } and hidden_resource scotland or hidden_resource ireland or hidden_resource france and not event_counter first_watch 1 
                recruit_pool "Hobilars"  0   0.25   3  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and not event_counter first_watch 1 

                recruit_pool "Cavalarii"  1   0.17   2  0  requires factions { byzantium, } and hidden_resource byzantium 
                recruit_pool "Cavalarii"  0   0.13   1  0  requires factions { byzantium, } and not hidden_resource byzantium 
                recruit_pool "Stratiotae"  1   0.84   4  0  requires factions { byzantium, } 
                recruit_pool "Mounted Acritae"  1   0.25   2  0  requires factions { byzantium, } and hidden_resource byzantium 
                recruit_pool "Mounted Acritae"  0   0.17   1  0  requires factions { byzantium, } and not hidden_resource byzantium 

                recruit_pool "Demi Lancers"  1   0.34   1  0  requires factions { scotland, } and event_counter pike_and_shot 1 
                recruit_pool "Border Horse"  1   0.25   3  0  requires factions { scotland, } and hidden_resource scotland and event_counter pike_and_shot 1 
                recruit_pool "Border Horse"  0   0.13   2  0  requires factions { scotland, } and hidden_resource england or hidden_resource ireland and event_counter pike_and_shot 1 
                recruit_pool "Border Horse"  0   0.13   3  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter pike_and_shot 1 
                recruit_pool "Border Horse"  1   0.5   5  0  requires factions { scotland, } and hidden_resource scotland and not event_counter pike_and_shot 1 
                recruit_pool "Border Horse"  0   0.25   2  0  requires factions { scotland, }  and hidden_resource england or hidden_resource ireland and not event_counter pike_and_shot 1 
                recruit_pool "Border Horse"  0   0.25   3  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and not event_counter pike_and_shot 1 
 
                recruit_pool "Demi Lancers"  1   0.5   2  0  requires factions { hre, milan, papal_states, sicily, } and event_counter pike_and_shot 1 
                recruit_pool "Demi Lancers"  1   0.34   2  0  requires factions { venice, } and event_counter pike_and_shot 1 
                recruit_pool "Demi Lancers"  1   0.67   2  0  requires factions { france, } and event_counter pike_and_shot 1 
                recruit_pool "Mounted Sergeants"  1   0.17   2  0  requires factions { milan, venice, papal_states, } and event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.13   1  0  requires factions { milan, venice, papal_states, } and event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.25   3  0  requires factions { milan, venice, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.17   2  0  requires factions { milan, venice, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.34   4  0  requires factions { milan, venice, papal_states, } and not event_counter HALF_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.25   3  0  requires factions { milan, venice, papal_states, } and not event_counter HALF_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

				recruit_pool "Mounted Sergeants"  1   0.17   2  0  requires factions { france, hre, } and event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.13   1  0  requires factions { france, hre, } and event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
				recruit_pool "Mounted Sergeants"  1   0.34   4  0  requires factions { france, hre, } and not event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.25   3  0  requires factions { france, hre, } and not event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
				recruit_pool "Mounted Sergeants"  1   0.25   2  0  requires factions { sicily, } and event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.17   1  0  requires factions { sicily, } and event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
				recruit_pool "Mounted Sergeants"  1   0.5   4  0  requires factions { sicily, } and not event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.34   3  0  requires factions { sicily, } and not event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Demi Lancers"  1   0.5   2  0  requires factions { spain, aragon, portugal, knights_templar, jerusalem, } and event_counter pike_and_shot 1 
				recruit_pool "Mounted Sergeants"  1   0.34   4  0  requires factions { knights_templar, jerusalem, } and not event_counter pike_and_shot 1
				recruit_pool "Mounted Sergeants"  1   0.17   2  0  requires factions { knights_templar, jerusalem, } and event_counter pike_and_shot 1
                recruit_pool "Jinetes"  1   0.67   4  0  requires factions { spain, portugal, } and event_counter pike_and_shot 1 and hidden_resource spain or hidden_resource portugal
                recruit_pool "Jinetes"  0   0.5   3  0  requires factions { spain, portugal, } and event_counter pike_and_shot 1 and not hidden_resource spain and not hidden_resource portugal
                recruit_pool "Jinetes"  1   0.34   2  0  requires factions { spain, portugal, } and not event_counter pike_and_shot 1 and hidden_resource spain or hidden_resource portugal
                recruit_pool "Jinetes"  0   0.25   1  0  requires factions { spain, portugal, } and not event_counter pike_and_shot 1 and not hidden_resource spain and not hidden_resource portugal
                recruit_pool "Demi Lancers"  1   0.34   1  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1 
                recruit_pool "Scouts"  1   0.5   5  0  requires factions { denmark, } and hidden_resource denmark and event_counter pike_and_shot 1 
                recruit_pool "Scouts"  0   0.25   2  0  requires factions { denmark, } and hidden_resource norway or hidden_resource ireland and event_counter pike_and_shot 1 
                recruit_pool "Scouts"  0   0.25   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and event_counter pike_and_shot 1 
                recruit_pool "Scouts"  1   0.25   3  0  requires factions { denmark, } and hidden_resource denmark and not event_counter pike_and_shot 1 
                recruit_pool "Scouts"  0   0.12   1  0  requires factions { denmark, } and hidden_resource norway or hidden_resource ireland and not event_counter pike_and_shot 1 
                recruit_pool "Scouts"  0   0.12   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and not event_counter pike_and_shot 1 
                recruit_pool "Svenner"  1   0.17   2  0  requires factions { norway, } and hidden_resource norway and event_counter pike_and_shot 1 
                recruit_pool "Svenner"  0   0.13   1  0  requires factions { norway, } and not hidden_resource norway and event_counter pike_and_shot 1 
                recruit_pool "Svenner"  1   0.34   4  0  requires factions { norway, } and hidden_resource norway and not event_counter pike_and_shot 1 
                recruit_pool "Svenner"  0   0.25   3  0  requires factions { norway, } and not hidden_resource norway and not event_counter pike_and_shot 1 
				
				recruit_pool "Alforrats"  1   0.34   3  0  requires factions { aragon, } and hidden_resource aragon and event_counter pike_and_shot 1
                recruit_pool "Alforrats"  0   0.17   1  0  requires factions { aragon, } and event_counter pike_and_shot 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter pike_and_shot 1
				recruit_pool "Alforrats"  1   0.5   4  0  requires factions { aragon, } and hidden_resource aragon and not event_counter pike_and_shot 1
                recruit_pool "Alforrats"  0   0.25   2  0  requires factions { aragon, } and not event_counter pike_and_shot 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and not event_counter pike_and_shot 1

                recruit_pool "Alforrats"  1   0.67   5  0  requires factions { aragon, } and hidden_resource aragon and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Alforrats"  0   0.34   2  0  requires factions { aragon, } and not event_counter HALF_PLATE_ARMOR 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and not event_counter HALF_PLATE_ARMOR 1
                
                recruit_pool "Demi Lancers"  1   0.67   2  0  requires factions { poland, } and event_counter pike_and_shot 1 
				recruit_pool "Polish Shooters"  1   0.17   2  0  requires factions { poland, } and hidden_resource poland and event_counter pike_and_shot 1
                recruit_pool "Polish Shooters"  0   0.13   1  0  requires factions { poland, } and not hidden_resource poland and event_counter pike_and_shot 1
				recruit_pool "Polish Shooters"  1   0.34   4  0  requires factions { poland, } and hidden_resource poland and not event_counter pike_and_shot 1
                recruit_pool "Polish Shooters"  0   0.25   3  0  requires factions { poland, } and not hidden_resource poland and not event_counter pike_and_shot 1

                recruit_pool "Mounted Luchniki"  1   0.5   2  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1
                recruit_pool "Polotsk Boyar Druzhina"  1   0.17   1  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Polotsk Boyar Druzhina"  0   0.13   1  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Druzhina"  1   0.25   2  0  requires factions { kievan_rus, } and hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Druzhina"  0   0.17   1  0  requires factions { kievan_rus, } and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Druzhina"  1   0.34   2  0  requires factions { russia, } and hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Druzhina"  0   0.25   1  0  requires factions { russia, } and not hidden_resource russia and not hidden_resource kievan_rus

				recruit_pool "Junior Druzhina" 1   0.25   2  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1 and hidden_resource kievan_rus
				recruit_pool "Junior Druzhina" 0   0.17   1  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1 and not hidden_resource kievan_rus
                recruit_pool "Pechenegs"  1   0.34   3  0  requires factions { russia, } and event_counter new_era_begins 1 and hidden_resource russia 
                recruit_pool "Pechenegs"  0   0.17   1  0  requires factions { russia, }  and event_counter new_era_begins 1 and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Pechenegs"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and event_counter new_era_begins 1 and hidden_resource russia 
                recruit_pool "Pechenegs"  1   0.5   3  0  requires factions { kievan_rus, } and event_counter new_era_begins 1 and hidden_resource kievan_rus 
                recruit_pool "Pechenegs"  0   0.25   1  0  requires factions { kievan_rus, }  and event_counter new_era_begins 1 and hidden_resource russia or hidden_resource cumans
                recruit_pool "Pechenegs"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and event_counter new_era_begins 1 and hidden_resource kievan_rus 

				recruit_pool "Junior Druzhina" 1   0.34   3  0  requires factions { russia, kievan_rus, } and not event_counter new_era_begins 1 and hidden_resource kievan_rus
				recruit_pool "Junior Druzhina" 0   0.25   2  0  requires factions { russia, kievan_rus, } and not event_counter new_era_begins 1 and not hidden_resource kievan_rus
                recruit_pool "Pechenegs"  1   0.5   4  0  requires factions { russia, } and not event_counter new_era_begins 1 and hidden_resource russia 
                recruit_pool "Pechenegs"  0   0.25   2  0  requires factions { russia, }  and not event_counter new_era_begins 1 and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Pechenegs"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and not event_counter new_era_begins 1 and hidden_resource russia 
                recruit_pool "Pechenegs"  1   0.67   4  0  requires factions { kievan_rus, } and not event_counter new_era_begins 1 and hidden_resource kievan_rus 
                recruit_pool "Pechenegs"  0   0.34   2  0  requires factions { kievan_rus, }  and not event_counter new_era_begins 1 and hidden_resource russia or hidden_resource cumans
                recruit_pool "Pechenegs"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and not event_counter new_era_begins 1 and hidden_resource kievan_rus 

                recruit_pool "Christian Guard"  1   0.13   2  0  requires factions { moors, } 
                recruit_pool "Granadine Lancers"  1   0.5   2  0  requires factions { moors, }
                recruit_pool "Granadine Jinetes"  1   0.34   3  0  requires factions { moors, } and hidden_resource moors 
                recruit_pool "Granadine Jinetes"  0   0.17  1  0  requires factions { moors, }  and hidden_resource egypt or hidden_resource spain
                recruit_pool "Granadine Jinetes"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  1   0.25   1  0  requires factions { moors, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { moors, }  and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors 
                recruit_pool "Arab Cavalry"  1   0.34   1  0  requires factions { moors, }  

                recruit_pool "Desert Cavalry"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Ghulams"  1   0.5   2  0  requires factions { egypt, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Ghulams"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Mamluk Archers"  1   0.67   3  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Mamluk Archers"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Mamluk Archers"  1   0.5   2  0  requires factions { egypt, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mamluks"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arab Cavalry"  1   0.67   3  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Demi Lancers"  1   0.67   2  0  requires factions { hungary, } and event_counter pike_and_shot 1 
                recruit_pool "Magyar Cavalry"  1   0.25   3  0  requires factions { hungary, } and hidden_resource hungary and event_counter pike_and_shot 1 
                recruit_pool "Magyar Cavalry"  0   0.13   1  0  requires factions { hungary, }  and hidden_resource poland and event_counter pike_and_shot 1 
                recruit_pool "Magyar Cavalry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter pike_and_shot 1 
                recruit_pool "Magyar Cavalry"  1   0.5   5  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter pike_and_shot 1 
                recruit_pool "Magyar Cavalry"  0   0.25   2  0  requires factions { hungary, }  and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter pike_and_shot 1 
                recruit_pool "Magyar Cavalry"  0   0.25   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter pike_and_shot 1 
                recruit_pool "Magyar Cavalry"  1   0.84   5  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Magyar Cavalry"  0   0.42   2  0  requires factions { hungary, }  and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Magyar Cavalry"  0   0.42   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Turkish Horse Archers"  1   0.67   4  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks 
                recruit_pool "Turkish Horse Archers"  0   0.34  2  0  requires factions { turks, }  and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Horse Archers"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  1   0.67   4  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  0   0.34  2  0  requires factions { turks, }  and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  1   0.34   2  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { turks, }   and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks 
                recruit_pool "Turkish Horse Archers"  1   0.34   2  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, }  and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks
                recruit_pool "Turkish Ghulams"  1   0.84   4  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Hussars"  1   0.17   1  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hungary
                recruit_pool "Hussars"  0   0.13   1  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource poland and not hidden_resource hungary

				recruit_pool "Armats"  1   0.17   2  0  requires factions { aragon, } and hidden_resource aragon and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
				recruit_pool "Armats"  0   0.13   1  0  requires factions { aragon, } and not hidden_resource aragon and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Italian MAA"  1   0.17   2  0  requires factions { milan, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource milan or hidden_resource venice or hidden_resource papal_states
                recruit_pool "Italian MAA"  0   0.13   1  0  requires factions { milan, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states
                recruit_pool "Italian MAA"  1   0.13   2  0  requires factions { venice,  } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource milan or hidden_resource venice or hidden_resource papal_states
                recruit_pool "Italian MAA"  0   0.085   1  0  requires factions { venice, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states
				recruit_pool "Armats"  1   0.13   1  0  requires factions { aragon, } and hidden_resource aragon and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
				recruit_pool "Armats"  0   0.085   1  0  requires factions { aragon, } and not hidden_resource aragon and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Italian MAA"  1   0.13   1  0  requires factions { milan, papal_states, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource milan or hidden_resource venice or hidden_resource papal_states
                recruit_pool "Italian MAA"  0   0.085   1  0  requires factions { milan, papal_states, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states
                recruit_pool "Italian MAA"  1   0.085   1  0  requires factions { venice, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource milan or hidden_resource venice or hidden_resource papal_states
                recruit_pool "Italian MAA"  0   0.065   1  0  requires factions { venice, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states

                recruit_pool "Stradiots"  1   0.13   1  0  requires factions { venice, } and hidden_resource venice and event_counter GOTHIC_ARMOR 1
                recruit_pool "Stradiots"  0   0.085   1  0  requires factions { venice, } and not hidden_resource venice and event_counter GOTHIC_ARMOR 1
				
				recruit_pool "Armats"  1   0.13   1  0  requires factions { spain, england, portugal, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.085   1  0  requires factions { spain, england, portugal, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
				recruit_pool "Armats"  1   0.17   1  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.13   1  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
				recruit_pool "Armats"  1   0.085   1  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.065   1  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
				recruit_pool "Armats"  1   0.17   1  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.13   1  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
				recruit_pool "Italian MAA"  1   0.13   1  0  requires factions { hre, sicily, } and hidden_resource hre and event_counter new_era_begins 1 and not event_counter pike_and_shot 1
                recruit_pool "Italian MAA"  0   0.1   1  0  requires factions { hre, sicily, } and not hidden_resource hre and event_counter new_era_begins 1 and not event_counter pike_and_shot 1
				
                recruit_pool "Mercenary Frankish Knights"  1   0.17   1  0  requires factions { knights_templar, } 
                recruit_pool "Turkopoles"  1   0.5   4  0  requires factions { knights_templar, } 
				
                recruit_pool "Hoshiga Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Hoshiga Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Hoschuchi Lancers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Hoschuchi Lancers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Lubchiten Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Lubchiten Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Nukeri Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Nukeri Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Turhagut Lancers"  1   0.17   1  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Turhagut Lancers"  0   0.13   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Khorchi Horse Archers"  1   0.17   1  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Khorchi Horse Archers"  0   0.13   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
				
                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  7 
            cost  6000 
            settlement_min large_city
            upgrades
            {
                kings_stables
            }
        }
        kings_stables castle requires factions { teutonic_order,  jerusalem, norway, denmark, hre, france, england, knights_templar, egypt, turks, moors, kwarezm, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {

				recruit_pool "Demi Lancers"  1   0.67   3  0  requires factions { hre, milan, papal_states, } and event_counter pike_and_shot 1 
                recruit_pool "Demi Lancers"  1   0.5   3  0  requires factions { venice, } and event_counter pike_and_shot 1 
                recruit_pool "Demi Lancers"  1   0.67   3  0  requires factions { spain, aragon, portugal, sicily, knights_templar,  teutonic_order, jerusalem, } and event_counter pike_and_shot 1 
                recruit_pool "Demi Lancers"  1   0.84   3  0  requires factions { france, poland, hungary, } and event_counter pike_and_shot 1 
                recruit_pool "Demi Lancers"  1   0.5   3  0  requires factions { denmark, norway, scotland, } and event_counter pike_and_shot 1 

                recruit_pool "Cossack Gunners"  1   0.17   1  0  requires factions { cumans, } and hidden_resource cumans and event_counter science_da_vinci_ornithopter 1 
                recruit_pool "Cossack Gunners"  0   0.13   1  0  requires factions { cumans, } and not hidden_resource cumans and event_counter science_da_vinci_ornithopter 1 
                recruit_pool "Yasi Archers"  1   0.5   4  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Yasi Archers"  0   0.25   2  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Yasi Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, timurids, } and hidden_resource cumans 
                recruit_pool "Tartar Lancers"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "Tartar Lancers"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans                 
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Tartar Lancers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "Khagan Druzhina"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans and event_counter science_da_vinci_ornithopter 1                
                recruit_pool "Khagan Druzhina"  0   0.17   1  0  requires factions { cumans, } and not hidden_resource cumans and event_counter science_da_vinci_ornithopter 1 
                recruit_pool "Khagan Druzhina"  1   0.34   3  0  requires factions { cumans, } and hidden_resource cumans and not event_counter science_da_vinci_ornithopter 1                  
                recruit_pool "Khagan Druzhina"  0   0.25   2  0  requires factions { cumans, } and not hidden_resource cumans and not event_counter science_da_vinci_ornithopter 1 

                recruit_pool "Sibyan al Khass"  1   0.25   1  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Sibyan al Khass"  1   0.17   1  0  requires factions { kwarezm, } and not hidden_resource kwarezm and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Imperial Guard"  1   0.67   2  0  requires factions { kwarezm, } and event_counter HALF_PLATE_ARMOR 
                recruit_pool "Armored Horsearchers"  1   0.67   3  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Ghulams"  1   0.84   3  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1

                recruit_pool "Ghulams"  1   1   4  0  requires factions { kwarezm, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkomans"  1   0.34   2  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { kwarezm, } and event_counter HALF_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Turkomans"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Turkomans"  1   0.34   3  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Turkomans"  0   0.17  1  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Turkomans"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Turkomans"  1   0.67   5  0  requires factions { kwarezm, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkomans"  0   0.34   2  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Turkomans"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1

		recruit_pool "L Regular Cavalry"  1   0.84   4  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  0   0.17   1  0  requires factions { lithuania, } and not hidden_resource lithuania and event_counter FULL_PLATE_ARMOR 1

		recruit_pool "L Regular Cavalry"  1   0.67   3  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  0   0.25   2  0  requires factions { lithuania, } and not hidden_resource lithuania and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Lithuanian Cavalry"  1   0.67   5  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter new_era_begins 1
		recruit_pool "Lithuanian Cavalry"  0   0.5   4  0  requires factions { lithuania, } and not hidden_resource lithuania and not event_counter new_era_begins 1
		recruit_pool "Ducal Cavalry"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter new_era_begins 1
		recruit_pool "Ducal Cavalry"  0   0.25   2  0  requires factions { lithuania, } and not hidden_resource lithuania and event_counter new_era_begins 1
		recruit_pool "Ducal Cavalry"  1   0.50   4  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter new_era_begins 1
		recruit_pool "Ducal Cavalry"  0   0.34   3  0  requires factions { lithuania, } and not hidden_resource lithuania and not event_counter new_era_begins 1

                recruit_pool "Prussian Auxillia"  1   0.84   6  0  requires factions { teutonic_order, } and hidden_resource prussia and not event_counter pike_and_shot 1
                recruit_pool "Prussian Auxillia"  0   0.42   3  0  requires factions { teutonic_order, } and not event_counter pike_and_shot 1 and hidden_resource hre
                recruit_pool "Prussian Auxillia"  1   0.42   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia and not event_counter pike_and_shot 1	 			
                recruit_pool "Knechten"  1   0.34   4  0  requires factions { teutonic_order, } and not event_counter pike_and_shot 1
				
                recruit_pool "Prussian Auxillia"  1   0.5   4  0  requires factions { teutonic_order, } and hidden_resource prussia and event_counter pike_and_shot 1
                recruit_pool "Prussian Auxillia"  0   0.25   2  0  requires factions { teutonic_order, } and event_counter pike_and_shot 1 and hidden_resource hre
                recruit_pool "Prussian Auxillia"  1   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia and event_counter pike_and_shot 1	 			
                recruit_pool "Knechten"  1   0.25   3  0  requires factions { teutonic_order, } and event_counter pike_and_shot 1

                recruit_pool "Demi Lancers"  1   0.5   2  0  requires factions { england, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Demi Lancers"  1   0.67   3  0  requires factions { england, } and event_counter pike_and_shot 1
                recruit_pool "Hobilars"  1   0.67   6  0  requires factions { england, } and hidden_resource england and not event_counter first_watch 1
                recruit_pool "Hobilars"  0   0.34   3  0  requires factions { england, } and not event_counter first_watch 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Hobilars"  0   0.34   3  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and not event_counter first_watch 1
                recruit_pool "Hobilars"  1   0.5   5  0  requires factions { england, } and hidden_resource england and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Hobilars"  0   0.25   2  0  requires factions { england, } and event_counter first_watch 1 and not event_counter pike_and_shot 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Hobilars"  0   0.25   3  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Hobilars"  1   0.34   4  0  requires factions { england, } and hidden_resource england and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Hobilars"  0   0.17   2  0  requires factions { england, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Hobilars"  0   0.17   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Hobilars"  1   0.17   2  0  requires factions { england, } and hidden_resource england and event_counter ADV_MATCHLOCK 1
                recruit_pool "Hobilars"  0   0.085   1  0  requires factions { england, } and event_counter ADV_MATCHLOCK 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Hobilars"  0   0.085   1  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter ADV_MATCHLOCK 1

                recruit_pool "Cavalarii"  1   0.25   3  0  requires factions { byzantium, } and hidden_resource byzantium 
                recruit_pool "Cavalarii"  0   0.17   2  0  requires factions { byzantium, } and not hidden_resource byzantium 
                recruit_pool "Stratiotae"  1   0.84   4  0  requires factions { byzantium, } 
                recruit_pool "Mounted Acritae"  1   0.34   3  0  requires factions { byzantium, } and hidden_resource byzantium 
                recruit_pool "Mounted Acritae"  0   0.25   2  0  requires factions { byzantium, } and not hidden_resource byzantium 

                recruit_pool "Mounted Calivermen"  1   0.13   1  0  requires factions { scotland,  } and event_counter first_watch 1 and hidden_resource scotland or hidden_resource ireland
                recruit_pool "Mounted Calivermen"  0   0.085   1  0  requires factions { scotland,  } and event_counter first_watch 1 and not hidden_resource scotland and not hidden_resource ireland
                recruit_pool "Border Horse"  1   0.67   6  0  requires factions { scotland, } and hidden_resource scotland and not event_counter pike_and_shot 1
                recruit_pool "Border Horse"  0   0.34   3  0  requires factions { scotland, } and not event_counter pike_and_shot 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Border Horse"  0   0.34   3  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and not event_counter pike_and_shot 1 				
                recruit_pool "Border Horse"  1   0.34   4  0  requires factions { scotland, } and hidden_resource scotland and event_counter pike_and_shot 1
                recruit_pool "Border Horse"  0   0.17   2  0  requires factions { scotland, } and event_counter pike_and_shot 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Border Horse"  0   0.17   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter pike_and_shot 1 				
 
                recruit_pool "Mounted Sergeants"  1   0.17   1  0  requires factions { sicily, } and event_counter ADV_MATCHLOCK 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.13   1  0  requires factions { sicily, } and event_counter ADV_MATCHLOCK 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.34   3  0  requires factions { sicily, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.25   2  0  requires factions { sicily, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.67   5  0  requires factions { sicily, } and not event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.5   4  0  requires factions { sicily, } and not event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

                recruit_pool "Mounted Sergeants"  1   0.13   1  0  requires factions { france, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.085   1  0  requires factions { france, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.25   3  0  requires factions { france, } and event_counter GOTHIC_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.17   2  0  requires factions { france, } and event_counter GOTHIC_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.5   5  0  requires factions { france, } and not event_counter GOTHIC_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.34   4  0  requires factions { france, } and not event_counter GOTHIC_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

                recruit_pool "Mounted Sergeants"  1   0.25   2  0  requires factions { knights_templar, jerusalem, } and event_counter pike_and_shot 1
                recruit_pool "Mounted Sergeants"  1   0.5   5  0  requires factions { knights_templar, jerusalem, } and not event_counter pike_and_shot 1

                recruit_pool "Mounted Sergeants"  1   0.13   1  0  requires factions { hre, } and event_counter ADV_MATCHLOCK 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.085   1  0  requires factions { hre, } and event_counter ADV_MATCHLOCK 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
				recruit_pool "Mounted Sergeants"  1   0.34   4  0  requires factions { hre, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily 
                recruit_pool "Mounted Sergeants"  0   0.25   3  0  requires factions { hre, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.5   5  0  requires factions { hre, } and not event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily 
                recruit_pool "Mounted Sergeants"  0   0.34   4  0  requires factions { hre, } and not event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

                recruit_pool "Mounted Sergeants"  1   0.17   2  0  requires factions { venice, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.13   1  0  requires factions { venice, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.25   3  0  requires factions { venice, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.17   2  0  requires factions { venice, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

                recruit_pool "Mounted Sergeants"  1   0.17   2  0  requires factions { milan, papal_states, } and event_counter ADV_MATCHLOCK 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.13   1  0  requires factions { milan, papal_states, } and event_counter ADV_MATCHLOCK 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.34   4  0  requires factions { milan, papal_states, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.25   3  0  requires factions { milan, papal_states, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.34   4  0  requires factions { milan, papal_states, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.25   3  0  requires factions { milan, papal_states, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

                recruit_pool "Mounted Sergeants"  1   0.34   4  0  requires factions { milan, venice, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.25   3  0  requires factions { milan, venice, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Mounted Sergeants"  1   0.5   5  0  requires factions { milan, venice, papal_states, } and not event_counter HALF_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Mounted Sergeants"  0   0.34   4  0  requires factions { milan, venice, papal_states, } and not event_counter HALF_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

;********************************** -1 halfplate - pike and shot. venice another -1 after gothic
                ; Italian States can recruit Gendarmes after Pike and Shot
                recruit_pool "Italian MAA"  1   0.25   3  0  requires factions { milan, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource milan or hidden_resource venice or hidden_resource papal_states
                recruit_pool "Italian MAA"  0   0.17   2  0  requires factions { milan, papal_states, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states
                recruit_pool "Italian MAA"  1   0.17   3  0  requires factions { venice, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource milan or hidden_resource venice or hidden_resource papal_states
                recruit_pool "Italian MAA"  0   0.13   2  0  requires factions { venice, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states
                recruit_pool "Stradiots"  1   0.17   2  0  requires factions { venice, } and hidden_resource venice and event_counter GOTHIC_ARMOR 1
                recruit_pool "Stradiots"  0   0.13   1  0  requires factions { venice, } and not hidden_resource venice and event_counter GOTHIC_ARMOR 1
;**********************************

                recruit_pool "Scouts"  1   0.17   2  0  requires factions { denmark, } and hidden_resource denmark and event_counter ADV_MATCHLOCK 1
                recruit_pool "Scouts"  0   0.085  1  0  requires factions { denmark, } and event_counter ADV_MATCHLOCK 1 and hidden_resource norway or hidden_resource ireland
                recruit_pool "Scouts"  0   0.085   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and event_counter ADV_MATCHLOCK 1
                recruit_pool "Scouts"  1   0.34   4  0  requires factions { denmark, } and hidden_resource denmark and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Scouts"  0   0.17   1  0  requires factions { denmark, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource norway or hidden_resource ireland
                recruit_pool "Scouts"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Scouts"  1   0.67   6  0  requires factions { denmark, } and hidden_resource denmark and not event_counter pike_and_shot 1
                recruit_pool "Scouts"  0   0.34   3  0  requires factions { denmark, } and not event_counter pike_and_shot 1 and hidden_resource norway or hidden_resource ireland
                recruit_pool "Scouts"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and not event_counter pike_and_shot 1

                recruit_pool "Svenner"  1   0.5   5  0  requires factions { norway, } and hidden_resource norway and not event_counter pike_and_shot 1
                recruit_pool "Svenner"  0   0.34   4  0  requires factions { norway, } and not hidden_resource norway and not event_counter pike_and_shot 1
                recruit_pool "Svenner"  1   0.25   3  0  requires factions { norway, } and hidden_resource norway and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Svenner"  0   0.17   2  0  requires factions { norway, } and not hidden_resource norway and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Svenner"  1   0.13   1  0  requires factions { norway, } and hidden_resource norway and event_counter ADV_MATCHLOCK 1
                recruit_pool "Svenner"  0   0.085   1  0  requires factions { norway, } and not hidden_resource norway and event_counter ADV_MATCHLOCK 1

                recruit_pool "Jinetes"  1   0.25   1  0  requires factions { spain, portugal, } and event_counter ADV_MATCHLOCK 1 and hidden_resource spain or hidden_resource portugal
                recruit_pool "Jinetes"  0   0.17   1  0  requires factions { spain, portugal, } and event_counter ADV_MATCHLOCK 1 and not hidden_resource spain and not hidden_resource portugal
                recruit_pool "Jinetes"  1   0.5   3  0  requires factions { spain, portugal, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource spain or hidden_resource portugal
                recruit_pool "Jinetes"  0   0.34   2  0  requires factions { spain, portugal, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource spain and not hidden_resource portugal
                recruit_pool "Jinetes"  1   0.84   5  0  requires factions { spain, portugal, } and not event_counter pike_and_shot 1 and hidden_resource spain or hidden_resource portugal
                recruit_pool "Jinetes"  0   0.67   4  0  requires factions { spain, portugal, } and not event_counter pike_and_shot 1 and not hidden_resource spain and not hidden_resource portugal

                recruit_pool "Alforrats"  1   0.25   1  0  requires factions { aragon, } and hidden_resource aragon and event_counter ADV_MATCHLOCK 1
                recruit_pool "Alforrats"  0   0.13   1  0  requires factions { aragon, } and event_counter ADV_MATCHLOCK 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter ADV_MATCHLOCK 1
                recruit_pool "Alforrats"  1   0.34   3  0  requires factions { aragon, } and hidden_resource aragon and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Alforrats"  0   0.17  1  0  requires factions { aragon, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Alforrats"  1   0.67   5  0  requires factions { aragon, } and hidden_resource aragon and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Alforrats"  0   0.34   2  0  requires factions { aragon, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Alforrats"  1   0.84   6  0  requires factions { aragon, } and hidden_resource aragon and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Alforrats"  0   0.42   3  0  requires factions { aragon, } and not event_counter HALF_PLATE_ARMOR 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Alforrats"  0   0.42   3  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and not event_counter HALF_PLATE_ARMOR 1
;********************************** -1 half plate to pike and shot
				recruit_pool "Armats"  1   0.13   1  0  requires factions { aragon, } and hidden_resource aragon and event_counter ADV_MATCHLOCK 1
				recruit_pool "Armats"  0   0.085   1  0  requires factions { aragon, } and not hidden_resource aragon and event_counter ADV_MATCHLOCK 1
				recruit_pool "Armats"  1   0.17   2  0  requires factions { aragon, } and hidden_resource aragon and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
				recruit_pool "Armats"  0   0.13   1  0  requires factions { aragon, } and not hidden_resource aragon and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
				recruit_pool "Armats"  1   0.25   3  0  requires factions { aragon, } and hidden_resource aragon and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
				recruit_pool "Armats"  0   0.17   2  0  requires factions { aragon, } and not hidden_resource aragon and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
;**********************************

                recruit_pool "Cossack Gunners"  1   0.17   1  0  requires factions { kievan_rus, russia, } and event_counter science_da_vinci_ornithopter 1 and hidden_resource kievan_rus or hidden_resource russia
                recruit_pool "Cossack Gunners"  0   0.13   1  0  requires factions { kievan_rus, russia, } and event_counter science_da_vinci_ornithopter 1 and not hidden_resource kievan_rus and not hidden_resource russia
                recruit_pool "Mounted Luchniki"  1   0.67   3  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1
                recruit_pool "Polotsk Boyar Druzhina"  1   0.17   1  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Polotsk Boyar Druzhina"  0   0.13   1  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Druzhina"  1   0.34   3  0  requires factions { kievan_rus, } and hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Druzhina"  0   0.25   2  0  requires factions { kievan_rus, } and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Druzhina"  1   0.5   3  0  requires factions { russia, } and hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Druzhina"  0   0.34   2  0  requires factions { russia, } and not hidden_resource russia and not hidden_resource kievan_rus

				recruit_pool "Junior Druzhina" 1   0.25   2  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1 and hidden_resource kievan_rus
				recruit_pool "Junior Druzhina" 0   0.17   1  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1 and not hidden_resource kievan_rus
                recruit_pool "Pechenegs"  1   0.34   3  0  requires factions { russia, } and event_counter new_era_begins 1 and hidden_resource russia 
                recruit_pool "Pechenegs"  0   0.17   1  0  requires factions { russia, }  and event_counter new_era_begins 1 and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Pechenegs"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and event_counter new_era_begins 1 and hidden_resource russia 
                recruit_pool "Pechenegs"  1   0.5   3  0  requires factions { kievan_rus, } and event_counter new_era_begins 1 and hidden_resource kievan_rus 
                recruit_pool "Pechenegs"  0   0.25   1  0  requires factions { kievan_rus, }  and event_counter new_era_begins 1 and hidden_resource russia or hidden_resource cumans
                recruit_pool "Pechenegs"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and event_counter new_era_begins 1 and hidden_resource kievan_rus 

				recruit_pool "Junior Druzhina" 1   0.5   4  0  requires factions { russia, kievan_rus, } and not event_counter new_era_begins 1 and hidden_resource kievan_rus
				recruit_pool "Junior Druzhina" 0   0.34   3  0  requires factions { russia, kievan_rus, } and not event_counter new_era_begins 1 and not hidden_resource kievan_rus
                recruit_pool "Pechenegs"  1   0.5   4  0  requires factions { russia, } and not event_counter new_era_begins 1 and hidden_resource russia 
                recruit_pool "Pechenegs"  0   0.25   2  0  requires factions { russia, }  and not event_counter new_era_begins 1 and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Pechenegs"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and not event_counter new_era_begins 1 and hidden_resource russia 
                recruit_pool "Pechenegs"  1   0.67   4  0  requires factions { kievan_rus, } and not event_counter new_era_begins 1 and hidden_resource kievan_rus 
                recruit_pool "Pechenegs"  0   0.34   2  0  requires factions { kievan_rus, }  and not event_counter new_era_begins 1 and hidden_resource russia or hidden_resource cumans
                recruit_pool "Pechenegs"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and not event_counter new_era_begins 1 and hidden_resource kievan_rus 

                recruit_pool "Turkish Horse Archers"  1   0.84   5  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks 
                recruit_pool "Turkish Horse Archers"  0   0.42  2  0  requires factions { turks, }  and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Horse Archers"  0   0.42   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  1   0.84   5  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  0   0.42  2  0  requires factions { turks, }  and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.42   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks and hidden_resource turks 
               
                recruit_pool "Turkish Horse Archers"  1   0.5   3  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks 
                recruit_pool "Turkish Horse Archers"  0   0.25  1  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Horse Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  1   0.5   3  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks and hidden_resource turks 
                recruit_pool "Turkomans"  0   0.25  1  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks and hidden_resource turks 

		recruit_pool "Turkomans"  1   0.34   2  0  requires factions { turks, }  and event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { turks, }   and event_counter FULL_PLATE_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkomans"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, }  and event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks 
                recruit_pool "Turkish Horse Archers"  1   0.34   2  0  requires factions { turks, }  and event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { turks, }  and event_counter FULL_PLATE_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Horse Archers"  0   0.17   1  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, }  and event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks
                recruit_pool "Turkish Ghulams"  1   0.84   4  0  requires factions { turks, }  and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Quapukulu"  1   0.5   2  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Christian Guard"  1   0.17   3  0  requires factions { moors, }
                recruit_pool "Granadine Lancers"  1   0.5   2  0  requires factions { moors, }
                recruit_pool "Granadine Jinetes"  1   0.5   4  0  requires factions { moors, } and hidden_resource moors 
                recruit_pool "Granadine Jinetes"  0   0.25   2  0  requires factions { moors, }  and hidden_resource egypt or hidden_resource spain
                recruit_pool "Granadine Jinetes"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  1   0.25   1  0  requires factions { moors, } and hidden_resource moors 
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { moors, }  and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors 
                recruit_pool "Arab Cavalry"  1   0.34   1  0  requires factions { moors, }  
 
                recruit_pool "Ghulams"  1   0.67   3  0  requires factions { egypt, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Ghulams"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Mamluk Archers"  1   0.67   3  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mamluk Archers"  1   0.67   3  0  requires factions { egypt, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Mamluks"  1   0.67   3  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Mamluks"  1   0.5   2  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Royal Mamluks"  1   0.5   2  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arab Cavalry"  1   0.67   3  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Desert Cavalry"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Cavalry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and not event_counter HEAVY_MAIL_ARMOR 1

 
				recruit_pool "Heavy Hussars"  1   0.67   2  0  requires factions { poland, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Polish Guard"  1   0.67   2  0  requires factions { poland, } and event_counter first_piano 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Polish Shooters"  1   0.085   1  0  requires factions { poland, } and hidden_resource poland and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Polish Shooters"  0   0.065   1  0  requires factions { poland, } and not hidden_resource poland and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Polish Shooters"  1   0.25   3  0  requires factions { poland, } and hidden_resource poland and event_counter first_piano 1 and not event_counter pike_and_shot 1
                recruit_pool "Polish Shooters"  0   0.17   2  0  requires factions { poland, } and not hidden_resource poland and event_counter first_piano 1 and not event_counter pike_and_shot 1
                recruit_pool "Polish Shooters"  1   0.5   5  0  requires factions { poland, } and hidden_resource poland and not event_counter first_piano 1
                recruit_pool "Polish Shooters"  0   0.34   4  0  requires factions { poland, } and not hidden_resource poland and not event_counter first_piano 1
				
                recruit_pool "Hussars"  1   0.25   2  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hungary
                recruit_pool "Hussars"  0   0.17   1  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource poland and not hidden_resource hungary
 
                recruit_pool "Magyar Cavalry"  1   0.13   1  0  requires factions { hungary, } and hidden_resource hungary and event_counter ADV_MATCHLOCK 1
                recruit_pool "Magyar Cavalry"  0   0.065   1  0  requires factions { hungary, } and event_counter ADV_MATCHLOCK 1 and hidden_resource poland
                recruit_pool "Magyar Cavalry"  0   0.065   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter ADV_MATCHLOCK 1
                recruit_pool "Magyar Cavalry"  1   0.25   3  0  requires factions { hungary, } and hidden_resource hungary and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Magyar Cavalry"  0   0.13  1  0  requires factions { hungary, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource poland
                recruit_pool "Magyar Cavalry"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Magyar Cavalry"  1   0.5   5  0  requires factions { hungary, } and hidden_resource hungary and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Magyar Cavalry"  0   0.25   2  0  requires factions { hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource poland
                recruit_pool "Magyar Cavalry"  0   0.25   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Magyar Cavalry"  1   0.67   6  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Magyar Cavalry"  0   0.34   3  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland
                recruit_pool "Magyar Cavalry"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Magyar Cavalry"  1   1   6  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Magyar Cavalry"  0   0.5   3  0  requires factions { hungary, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland
                recruit_pool "Magyar Cavalry"  0   0.5   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1

;********************************** to do: update for era, -1 to another unit, from new era to pike and shot
                recruit_pool "Armats"  1   0.13   1  0  requires factions { england, portugal, } and event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.085   1  0  requires factions { england, portugal, } and event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
                recruit_pool "Armats"  1   0.17   1  0  requires factions { hungary, } and event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.13   1  0  requires factions { hungary, } and event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
                recruit_pool "Armats"  1   0.13   1  0  requires factions { spain, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.085   1  0  requires factions { spain, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
                recruit_pool "Armats"  1   0.17   2  0  requires factions { spain, england, portugal, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.13   1  0  requires factions { spain, england, portugal, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
                recruit_pool "Armats"  1   0.25   2  0  requires factions { hungary, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.17   1  0  requires factions { hungary, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
                recruit_pool "Armats"  1   0.17   1  0  requires factions { poland, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.13   1  0  requires factions { poland, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
                recruit_pool "Armats"  1   0.25   2  0  requires factions { poland, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.17   1  0  requires factions { poland, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
				recruit_pool "Armats"  1   0.17   1  0  requires factions { france, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.13   1  0  requires factions { france, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
                recruit_pool "Armats"  1   0.25   2  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.17   1  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
                recruit_pool "Armats"  1   0.085   1  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.065   1  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
                recruit_pool "Armats"  1   0.13   2  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal
                recruit_pool "Armats"  0   0.085   1  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal
				recruit_pool "Italian MAA"  1   0.13   1  0  requires factions { sicily, } and hidden_resource sicily and event_counter pike_and_shot 1
                recruit_pool "Italian MAA"  0   0.085   1  0  requires factions { sicily, } and not hidden_resource sicily and event_counter pike_and_shot 1
				recruit_pool "Italian MAA"  1   0.17   2  0  requires factions { sicily, } and hidden_resource sicily and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Italian MAA"  0   0.13   1  0  requires factions { sicily, } and not hidden_resource sicily and event_counter HALF_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
				recruit_pool "Italian MAA"  1   0.13   1  0  requires factions { hre, } and hidden_resource hre and event_counter pike_and_shot 1
                recruit_pool "Italian MAA"  0   0.085   1  0  requires factions { hre, } and not hidden_resource hre and event_counter pike_and_shot 1
				recruit_pool "Italian MAA"  1   0.17   2  0  requires factions { hre, } and hidden_resource hre and event_counter new_era_begins 1 and not event_counter pike_and_shot 1
                recruit_pool "Italian MAA"  0   0.13   1  0  requires factions { hre, } and not hidden_resource hre and event_counter new_era_begins 1 and not event_counter pike_and_shot 1

;**********************************

                recruit_pool "Templar Confrere Knights"  1   0.085   1  0  requires factions { jerusalem, knights_templar, } and event_counter council_of_troyes 1 and hidden_resource crusader
                recruit_pool "Templar Confrere Knights"  1   0.0575   1  0  requires factions { jerusalem, knights_templar, } and event_counter council_of_troyes 1 and not hidden_resource crusader

                recruit_pool "Lancers"  1   0.5   2  0  requires factions { france, } and event_counter GOTHIC_ARMOR 1

                recruit_pool "Reiters"  1   0.67   3  0  requires factions { hre, }  and event_counter ADV_MATCHLOCK 1
                recruit_pool "Early Reiters"  1   0.25   1  0  requires factions { hre, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource hre
                recruit_pool "Early Reiters"  1   0.17   1  0  requires factions { hre, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource hre
				recruit_pool "Reiters"  1   0.5   2  0  requires factions { portugal, aragon, england, spain, france, milan, papal_states, sicily, poland, russia, hungary, } and event_counter ADV_MATCHLOCK 1
				recruit_pool "Reiters"  1   0.34   2  0  requires factions { venice, } and event_counter ADV_MATCHLOCK 1
		recruit_pool "Reiters"  1   0.34   2  0  requires factions { denmark, norway, } and event_counter ADV_MATCHLOCK 1

                recruit_pool "Mercenary Frankish Knights"  1   0.25   2  0  requires factions { knights_templar, } 
                recruit_pool "Turkopoles"  1   0.5   4  0  requires factions { knights_templar, }
 
                recruit_pool "Hoshiga Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Hoshiga Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Hoschuchi Lancers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Hoschuchi Lancers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Lubchiten Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Lubchiten Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Nukeri Horse Archers"  1   0.34   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Nukeri Horse Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Turhagut Lancers"  1   0.17   1  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Turhagut Lancers"  0   0.13   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks
                recruit_pool "Khorchi Horse Archers"  1   0.17   1  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks
                recruit_pool "Khorchi Horse Archers"  0   0.13   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks

                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  8 
            cost  8000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building barracks
{
    convert_to castle_barracks
    levels town_watch town_guard city_watch militia_drill_square militia_barracks army_barracks royal_armoury 
    {
        town_watch city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 1
            capability
            {

                recruit_pool "Pisan and Geonese sailors"  1   0.25   2  0  requires factions { jerusalem, } 
                recruit_pool "Baltic Spearmen"  1   0.25   2  0  requires factions { lithuania, } 
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { milan, venice, papal_states, sicily, }
                recruit_pool "Kasogi"  1   0.25   2  0  requires factions { cumans, } 
 
                recruit_pool "EE Spear Militia"  1   0.25   2  0  requires factions { poland, hungary, } 
                recruit_pool "Junior Militia"  1   0.25   2  0  requires factions { russia, kievan_rus, } 

                recruit_pool "Spear Militia"  1   0.25   2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, norway,  } 
                recruit_pool "Contaratoi"  1   0.25   2  0  requires factions { byzantium, } 
                recruit_pool "ME Spear Militia"  1   0.25   2  0  requires factions { moors, egypt, turks, kwarezm, } 
                recruit_pool "Spear Militia"  1   0.25   2  0  requires factions { teutonic_order, }
                recruit_pool "Kashtim Thralls"  1   0.25   2  0  requires factions { mongols, timurids, } 
                law_bonus bonus 1
                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  3 
            cost  600 
            settlement_min town
            upgrades
            {
                town_guard
            }
        }
        town_guard city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
	{
            convert_to 2
            capability
            {

                recruit_pool "Pisan and Geonese sailors"  1   0.25   2  0  requires factions { jerusalem, }
                recruit_pool "Spear Militia"  0   0.25   2  0  requires factions { jerusalem, }
 
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { milan, venice, papal_states, sicily, } 

                recruit_pool "Baltic Spearmen"  1   0.25   2  0  requires factions { lithuania, }
                recruit_pool "Lithuanian Axemen"  1   0.25   2  0  requires factions { lithuania, }
 
                recruit_pool "Spear Militia"  1   0.34   3  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, norway,  } 
                recruit_pool "Archer Militia"  1   0.25   2  0  requires factions { england, } 

                recruit_pool "EE Spear Militia"  1   0.34   3  0  requires factions { poland, hungary, } 
				recruit_pool "Junior Militia"  1   0.34   3  0  requires factions { russia, } 
				recruit_pool "Junior Militia"  1   0.25   2  0  requires factions { kievan_rus, } 
				recruit_pool "Chude Militia"  1   0.25   2  0  requires factions { kievan_rus, } 

                recruit_pool "ME Spear Militia"  1   0.34   3  0  requires factions { moors, egypt, turks, kwarezm, } 

                recruit_pool "Kasogi"  1   0.34   3  0  requires factions { cumans, } 
                recruit_pool "Dismounted Cuman Militia"  1   0.25   2  0  requires factions { cumans, } 

                recruit_pool "EE Archer Militia"  1   0.25   2  0  requires factions { russia, kievan_rus, } 
                recruit_pool "ME Archer Militia"  1   0.25   2  0  requires factions { egypt, kwarezm, }

                recruit_pool "Kashtim Thralls"  1   0.34   3  0  requires factions { mongols, timurids, } 
                recruit_pool "Sibiryaki Junior Militia"  1   0.34   2  0  requires factions { mongols, timurids, } 
				
                recruit_pool "Order Militia"  1   0.25   2  0  requires factions { teutonic_order, }
				recruit_pool "Spear Militia"  1   0.25   2  0  requires factions { teutonic_order, }
				
                recruit_pool "Contaratoi"  1   0.34   3  0  requires factions { byzantium, } 
                recruit_pool "Toxotae"  1   0.25   2  0  requires factions { byzantium, }
				
                law_bonus bonus 2
                law_bonus bonus 1 requires event_counter is_the_ai 1
				}
            material wooden
            construction  4
            cost  1200 
            settlement_min large_town
            upgrades
            {
                city_watch
            }
        }
        city_watch city requires factions { denmark, teutonic_order, jerusalem,  norway, hre, france, scotland, england, knights_templar, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 3
            capability
            {

                recruit_pool "Crossbow Militia"  0   0.25   2  0  requires factions { jerusalem, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 
				
                recruit_pool "Pisan and Geonese sailors"  1   0.25   2  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Partisan Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1  
				
                recruit_pool "Pisan and Geonese sailors"  1   0.34   3  0  requires factions { jerusalem, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Spear Militia"  0   0.34   3  0  requires factions { jerusalem, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Scots Pike Militia"  1   0.34   3  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Scots Pike Militia"  1   0.25   2  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.5   4  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "ME Halberd Militia"  1   0.25   2  0  requires factions { turks, egypt, kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Saracen Militia"  1   0.25   2  0  requires factions { turks, egypt, kwarezm, } 
                recruit_pool "ME Spear Militia"  1   0.17   1  0  requires factions { egypt, turks, kwarezm, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Spear Militia"  1   0.34   3  0  requires factions { egypt, turks, kwarezm, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Archer Militia"  1   0.34   3  0  requires factions { egypt, kwarezm, }

                recruit_pool "Urban Militia"  1   0.25   2  0  requires factions { moors, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Spear Militia"  1   0.25   2  0  requires factions { moors, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { moors, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Crossbow Militia"  1   0.25   2  0  requires factions { moors, }

                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { papal_states, sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { papal_states, sicily, } and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { milan, venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { milan, venice, } and not event_counter HEAVY_MAIL_ARMOR 1 
 
                recruit_pool "Urban Crossbow Militia"  1   0.25   2  0  requires factions { milan, venice, papal_states, sicily, hungary, } 		

                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.25   2  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.25   2  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.34   3  0  requires factions { lithuania, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Crossbow Militia"  1   0.25   2  0  requires factions { france, hre, denmark, spain, aragon, portugal, knights_templar, norway, teutonic_order, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { france, hre, denmark, spain, aragon, portugal, knights_templar, norway, teutonic_order, } and event_counter FULL_PLATE_ARMOR 1 

                recruit_pool "EE Crossbow Militia"  1   0.25   2  0  requires factions { poland, russia, kievan_rus, } 

                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { hre, poland, hungary, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Swordstaff Militia"  1   0.25   2  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Partisan Militia"  1   0.25   2  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Swordsmen Militia"  1   0.25   2  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { england, france, hre, denmark, spain, aragon, portugal, norway, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { england, france, hre, denmark, spain, aragon, portugal, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Spear Militia"  1   0.5   4  0  requires factions { england, france, hre, denmark, spain, aragon, portugal, norway, } and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Archer Militia"  1   0.34   3  0  requires factions { england, } 

                recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "EE Spear Militia"  1   0.5   4  0  requires factions { poland, hungary, } and not event_counter new_era_begins 1

                recruit_pool "Castrophilakae"  1   0.5   2  0  requires factions { byzantium, } and event_counter HEAVY_MAIL_ARMOR 1
				recruit_pool "Contaratoi"  1   0.25   2  0  requires factions { byzantium, } and event_counter HEAVY_MAIL_ARMOR 1
				recruit_pool "Contaratoi"  1   0.5   4  0  requires factions { byzantium, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Toxotae"  1   0.34   3  0  requires factions { byzantium, }
 
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { russia, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Rus Senior Militia"  1   0.25   2  0  requires factions { russia, } 
                recruit_pool "Berdiche Militia"  1   0.25   2  0  requires factions { russia, } and not event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { kievan_rus, } and event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Rus Senior Militia"  1   0.25   2  0  requires factions { kievan_rus, } 
				recruit_pool "Chude Militia"  1   0.25   2  0  requires factions { kievan_rus, } 
                recruit_pool "Berdiche Militia"  1   0.25   2  0  requires factions { kievan_rus, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "EE Archer Militia"  1   0.25   2  0  requires factions { russia, kievan_rus, } 
                 
                recruit_pool "Kashtim Thralls"  1   0.34   3  0  requires factions { mongols, } 
                recruit_pool "Kashtim Thralls"  1   0.25   2  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kashtim Thralls"  1   0.34   3  0  requires factions { timurids, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.34   3  0  requires factions { mongols, timurids, } 
                recruit_pool "Sibiryaki Senior Militia"  1   0.25   2  0  requires factions { mongols, timurids, } 
                recruit_pool "ME Halberd Militia"  1   0.25   2  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Kasogi"  1   0.34   3  0  requires factions { cumans, } 
                recruit_pool "Dismounted Cuman Militia"  1   0.34   3  0  requires factions { cumans, } 
                recruit_pool "Cuman Horse Militia"  1   0.25   2  0  requires factions { cumans, } 

 				
                recruit_pool "Order Militia"  1   0.34   3  0  requires factions { teutonic_order, } 
				recruit_pool "Spear Militia"  1   0.34   3  0  requires factions { teutonic_order, } 

                law_bonus bonus 3
				law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  5 
            cost  2000 
            settlement_min city
            upgrades
            {
                militia_drill_square
            }
        }
        militia_drill_square city requires factions { denmark, teutonic_order, jerusalem,  norway, hre, france, scotland, england, knights_templar, middle_eastern, eastern_european, greek, southern_european, slave, timurids, } 
        {
            convert_to 4
            capability
            {

                recruit_pool "Crossbow Militia"  0   0.34   3  0  requires factions { jerusalem, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 

                recruit_pool "Pisan and Geonese sailors"  1   0.25   2  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Partisan Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1  
				
                recruit_pool "Pisan and Geonese sailors"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Partisan Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
				
                recruit_pool "Pisan and Geonese sailors"  1   0.5   4  0  requires factions { jerusalem, } and not event_counter new_era_begins 1 
                recruit_pool "Spear Militia"  0   0.5   4  0  requires factions { jerusalem, } and not event_counter new_era_begins 1

                recruit_pool "ME Cavalry Militia"  1   0.25   2  0  requires factions { kwarezm, }
                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Halberd Militia"  1   0.25   2  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Saracen Militia"  1   0.25   2  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Saracen Militia"  1   0.34   3  0  requires factions { kwarezm, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Spear Militia"  1   0.25   2  0  requires factions { kwarezm, } and not event_counter new_era_begins 1 
                recruit_pool "ME Archer Militia"  1   0.5   4  0  requires factions { kwarezm, } 

                recruit_pool "Scots Pike Militia"  1   0.5   4  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Heavy Pike Militia"  1   0.34   3  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Scots Pike Militia"  1   0.34   3  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Heavy Pike Militia"  1   0.25   2  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.67   5  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { egypt, turks, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Saracen Militia"  1   0.5   4  0  requires factions { turks, egypt, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Halberd Militia"  1   0.25   2  0  requires factions { egypt, turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Saracen Militia"  1   0.34   3  0  requires factions { turks, egypt, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Saracen Militia"  1   0.34   3  0  requires factions { turks, egypt, } and not event_counter new_era_begins 1
                recruit_pool "ME Spear Militia"  1   0.25   2  0  requires factions { egypt, turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { egypt, turks, } and not event_counter new_era_begins 1
                recruit_pool "ME Archer Militia"  1   0.5   4  0  requires factions { egypt, } 

                recruit_pool "Urban Militia"  1   0.25   2  0  requires factions { moors, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Moorish Auxiliaries"  1   0.25   2  0  requires factions { moors, }
                recruit_pool "ME Spear Militia"  1   0.25   2  0  requires factions { moors, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { moors, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Crossbow Militia"  1   0.34   3  0  requires factions { moors, }

                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1 

                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Pavise Spear Militia"  1   0.67   5  0  requires factions { papal_states, sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { papal_states, sicily, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Italian Cavalry Militia"  1   0.25   2  0  requires factions { milan, venice, } 

                recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { milan, venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { milan, venice, } and not event_counter HEAVY_MAIL_ARMOR 1 
 
                recruit_pool "Pavise Crossbow Militia"  1   0.34   3  0  requires factions { venice, papal_states, sicily, hungary, } and event_counter new_era_begins 1
                recruit_pool "Urban Crossbow Militia"  1   0.34   3  0  requires factions { venice, papal_states, sicily, hungary, } and not event_counter new_era_begins 1		

                recruit_pool "Genoese Crossbow Militia"  1   0.34   3  0  requires factions { milan, } and event_counter new_era_begins 1
                recruit_pool "Urban Crossbow Militia"  1   0.34   3  0  requires factions { milan, } and not event_counter new_era_begins 1		

                recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.67   5  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Archer Militia"  1   0.5   4  0  requires factions { england, } 

                recruit_pool "Partisan Militia"  1   0.34   3  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Partisan Militia"  1   0.25   2  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { france, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.67   5  0  requires factions { france, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { hre,} and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { hre,} and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { hre, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.67   5  0  requires factions { hre, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { hre, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Swordstaff Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1

                 recruit_pool "Swordstaff Militia"  1   0.25   2  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.67   5  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { denmark, norway, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Archontopoulai"  0   0.1   0.4  0  requires factions { byzantium, }  
                recruit_pool "Castrophilakae"  1   0.67   3  0  requires factions { byzantium, } and event_counter lateran_council4 1
                recruit_pool "Contaratoi"  1   0.34   3  0  requires factions { byzantium, } and event_counter lateran_council4 1
                recruit_pool "Castrophilakae"  1   0.5   2  0  requires factions { byzantium, } and not event_counter lateran_council4 1
                recruit_pool "Contaratoi"  1   0.5   4  0  requires factions { byzantium, } and not event_counter lateran_council4 1
                recruit_pool "Gasmuli"  1   0.25   2  0  requires factions { byzantium, } and event_counter new_era_begins 1
                recruit_pool "Toxotae"  1   0.25   2  0  requires factions { byzantium, } and event_counter new_era_begins 1
                recruit_pool "Toxotae"  1   0.5   4  0  requires factions { byzantium, } and not event_counter new_era_begins 1

                recruit_pool "Swordsmen Militia"  1   0.34   3  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Swordsmen Militia"  1   0.25   2  0  requires factions { spain, aragon, portugal, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { spain, aragon, portugal, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Spear Militia"  1   0.67   5  0  requires factions { spain, aragon, portugal, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { spain, aragon, portugal, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "EE Spear Militia"  1   0.67   5  0  requires factions { poland, hungary, } and not event_counter new_era_begins 1

                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.34   3  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.25   2  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.34   3  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.5   4  0  requires factions { lithuania, } and not event_counter new_era_begins 1
                recruit_pool "Lithuanian Axemen"  1   0.5   4  0  requires factions { lithuania, } and not event_counter new_era_begins 1

                recruit_pool "Burgher Pikemen"  1   0.25   2  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Order Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "Order Militia"  1   0.5   4  0  requires factions { teutonic_order, } and not event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Spear Militia"  1   0.5   4  0  requires factions { teutonic_order, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { teutonic_order, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { knights_templar, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { knights_templar, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Kashtim Thralls"  1   0.5   4  0  requires factions { mongols, } 
                recruit_pool "Kashtim Thralls"  1   0.25   2  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kashtim Thralls"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE 1
                recruit_pool "Kashtim Thralls"  1   0.5   4  0  requires factions { timurids, } and not event_counter new_era_begins 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.5   4  0  requires factions { mongols, timurids, } 
                recruit_pool "Sibiryaki Senior Militia"  1   0.34   3  0  requires factions { mongols, timurids, }
                recruit_pool "ME Halberd Militia"  1   0.25   2  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE 1
                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Kasogi"  1   0.34   3  0  requires factions { cumans, } 
                recruit_pool "Dismounted Cuman Militia"  1   0.5   4  0  requires factions { cumans, } 
                recruit_pool "Cuman Horse Militia"  1   0.25   2  0  requires factions { cumans, } 
                recruit_pool "Kasogi Senior Militia"  1   0.25   2  0  requires factions { cumans, } 
 				
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Novgorod Home Guard"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Rus Senior Militia"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Rus Senior Militia"  1   0.34   3  0  requires factions { russia, } and not event_counter new_era_begins 1
                recruit_pool "Berdiche Militia"  1   0.34   3  0  requires factions { russia, } and not event_counter new_era_begins 1
				
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { kievan_rus, } and event_counter new_era_begins 1
				recruit_pool "Rus Senior Militia"  1   0.34   3  0  requires factions { kievan_rus, } 
				recruit_pool "Chude Militia"  1   0.25   2  0  requires factions { kievan_rus, } 
                recruit_pool "Berdiche Militia"  1   0.34   3  0  requires factions { kievan_rus, } and not event_counter new_era_begins 1

                recruit_pool "EE Crossbow Militia"  1   0.34   3  0  requires factions { poland, russia, kievan_rus, } 
                recruit_pool "EE Archer Militia"  1   0.34   3  0  requires factions { russia, kievan_rus, } 
 
                law_bonus bonus 3
				law_bonus bonus 1 requires event_counter is_the_ai 1
				
            }
            material wooden
            construction  6 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                militia_barracks
            }
        }
        militia_barracks city requires factions { denmark, teutonic_order, jerusalem,  norway, hre, france, england, knights_templar, scotland, middle_eastern, eastern_european, greek, southern_european, slave, timurids, } 
        {
            convert_to 4
            capability
            {
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { jerusalem, } and event_counter first_watch 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter first_watch 1
                recruit_pool "Arbalest Militia"  1   0.5   4  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Crossbow Militia"  0   0.5   4  0  requires factions { jerusalem, } and not event_counter FULL_PLATE_ARMOR 1  
				
                recruit_pool "Constable of Jerusalem"  1   0.05   1  0  requires factions { jerusalem, } and hidden_resource Constable
                recruit_pool "Edessan Guard"  0   0.5   2  0  requires factions { jerusalem, }
                recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1              
                recruit_pool "Pisan and Geonese sailors"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Partisan Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
								
                recruit_pool "Pisan and Geonese sailors"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Partisan Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
				
                recruit_pool "Pisan and Geonese sailors"  1   0.5   4  0  requires factions { jerusalem, } and not event_counter new_era_begins 1 
                recruit_pool "Spear Militia"  0   0.5   4  0  requires factions { jerusalem, } and not event_counter new_era_begins 1
				
                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Hand Gunners"  1   0.5   2  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Cavalry Militia"  1   0.34   3  0  requires factions { kwarezm, }
                recruit_pool "ME Halberd Militia"  1   0.5   4  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Saracen Militia"  1   0.25   2  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Saracen Militia"  1   0.34   3  0  requires factions { kwarezm, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Spear Militia"  1   0.34   3  0  requires factions { kwarezm, } and not event_counter new_era_begins 1 
                recruit_pool "ME Archer Militia"  1   0.34   3  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Archer Militia"  1   0.5   4  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Archer Militia"  1   0.67   5  0  requires factions { kwarezm, } and not event_counter new_era_begins 1

                recruit_pool "Scots Pike Militia"  1   0.67   5  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Heavy Pike Militia"  1   0.5   4  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Scots Pike Militia"  1   0.5   4  0  requires factions { scotland, } and event_counter new_era_begins 1  and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Heavy Pike Militia"  1   0.34   3  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.84   6  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { moors, turks, } and event_counter FULL_PLATE_ARMOR 1 

                recruit_pool "ME Hand Gunners"  1   0.5   2  0  requires factions { moors, turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
		recruit_pool "Al Haqa Infantry"  1   0.5   2  0  requires factions { egypt, }
  
                recruit_pool "Tabardariyya"  1   0.67   3  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Halberd Militia"  1   0.5   4  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Tabardariyya"  1   0.5   2  0  requires factions { egypt, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { egypt, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Saracen Militia"  1   0.25   2  0  requires factions { egypt, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Halberd Militia"  1   0.5   4  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Saracen Militia"  1   0.5   4  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Saracen Militia"  1   0.34   3  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Spear Militia"  1   0.25   2  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Saracen Militia"  1   0.5   4  0  requires factions { turks, egypt, } and not event_counter new_era_begins 1 
                recruit_pool "ME Spear Militia"  1   0.34   3  0  requires factions { egypt, } and not event_counter new_era_begins 1
                recruit_pool "ME Spear Militia"  1   0.67   5  0  requires factions { turks, } and not event_counter new_era_begins 1
                recruit_pool "ME Archer Militia"  1   0.67   5  0  requires factions { egypt, }
 
		recruit_pool "ME Crossbow Militia"  1   0.25   2  0  requires factions { moors, } and event_counter FULL_PLATE_ARMOR 1

		recruit_pool "ME Crossbow Militia"  1   0.34   3  0  requires factions { moors, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "ME Crossbow Militia"  1   0.5   4  0  requires factions { moors, } and not event_counter new_era_begins 1

                recruit_pool "Urban Militia"  1   0.34   3  0  requires factions { moors, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Moorish Auxiliaries"  1   0.25   2  0  requires factions { moors, }
                recruit_pool "ME Spear Militia"  1   0.34   3  0  requires factions { moors, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Spear Militia"  1   0.67   5  0  requires factions { moors, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { milan, venice, papal_states, sicily, } and event_counter MATCHLOCK 1             
                recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { milan, venice, } and event_counter MATCHLOCK 1
                recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { papal_states, sicily, } and event_counter MATCHLOCK 1
				
                recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { milan, venice, papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1             
                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Italian Cavalry Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.67   5  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.84   6  0  requires factions { papal_states, sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { papal_states, sicily, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Italian Cavalry Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Italian Cavalry Militia"  1   0.34   3  0  requires factions { milan, venice, } and not event_counter new_era_begins 1

                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Pavise Spear Militia"  1   0.67   5  0  requires factions { milan, venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { milan, venice, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Hand Gunners"  1   0.5  2  0  requires factions { milan, venice, papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter first_watch 1
                recruit_pool "Arquebusiers"  1   0.5   2  1  requires factions { milan, venice, papal_states, sicily, } and event_counter first_watch 1
 
                recruit_pool "Genoese Crossbow Militia"  1   0.34   3  0  requires factions { milan, } and event_counter new_era_begins 1
                recruit_pool "Urban Crossbow Militia"  1   0.5   4  0  requires factions { milan, } and not event_counter new_era_begins 1
                recruit_pool "Pavise Crossbow Militia"  1   0.34   3  0  requires factions { venice, papal_states, sicily, } and event_counter new_era_begins 1
                recruit_pool "Urban Crossbow Militia"  1   0.5   4  0  requires factions { venice, papal_states, sicily, } and not event_counter new_era_begins 1

                recruit_pool "Militia Serjeants"  1   0.5   4  0  requires factions { england, } and event_counter MATCHLOCK 1
                recruit_pool "NE_Urban_Militia"  1   0.5   4  0  requires factions { england, } and event_counter MATCHLOCK 1
				
                recruit_pool "Militia Serjeants"  1   0.34   3  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "NE_Urban_Militia"  1   0.5   4  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Urban Spear Militia"  1   0.17   1  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Militia Serjeants"  1   0.25   2  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.84   6  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Archer Militia"  1   0.67   5  0  requires factions { england, } 				
				
	            recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { france, } and event_counter MATCHLOCK 1               
                recruit_pool "Partisan Militia"  1   0.67   5  0  requires factions { france, } and event_counter MATCHLOCK 1
				
                recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Partisan Militia"  1   0.5   4  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Partisan Militia"  1   0.34   3  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { france, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.84   6  0  requires factions { france, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.5   4  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.5   4  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { hre, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.25  1  0  requires factions { hre, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67  3  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
				recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Hand Gunners"  1   0.5  2  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

	            recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { hre, } and event_counter MATCHLOCK 1               
                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { hre, } and event_counter MATCHLOCK 1
				
                recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { hre, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.84   6  0  requires factions { hre, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.5   4  0  requires factions { hre, } and not event_counter new_era_begins 1

                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { denmark, norway, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.25  1  0  requires factions { denmark, norway, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67  3  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Swordstaff Militia"  1   0.67   5  0  requires factions { denmark, norway, } and event_counter MATCHLOCK 1
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { denmark, norway, } and event_counter MATCHLOCK 1
				
                recruit_pool "Swordstaff Militia"  1   0.5   4  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1

		recruit_pool "Hand Gunners"  1   0.5   2  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Swordstaff Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.84   6  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.5   4  0  requires factions { denmark, norway, } and not event_counter new_era_begins 1

                recruit_pool "Archontopoulai"  0   0.1   0.4  0  requires factions { byzantium, }  
                recruit_pool "Menaulatoi"  1   0.5   2  0  requires factions { byzantium, } and event_counter first_watch 1
                recruit_pool "Castrophilakae"  1   1   5  0  requires factions { byzantium, } and event_counter first_watch 1
                recruit_pool "Contaratoi"  1   0.17   1  0  requires factions { byzantium, } and event_counter first_watch 1
				
                recruit_pool "Castrophilakae"  1   0.84   4  0  requires factions { byzantium, } and event_counter lateran_council4 1 and not event_counter first_watch 1
                recruit_pool "Contaratoi"  1   0.5   4  0  requires factions { byzantium, } and event_counter lateran_council4 1 and not event_counter first_watch 1

                recruit_pool "Castrophilakae"  1   0.67   3  0  requires factions { byzantium, } and not event_counter lateran_council4 1 
                recruit_pool "Contaratoi"  1   0.67   5  0  requires factions { byzantium, } and not event_counter lateran_council4 1 
				
                recruit_pool "Gasmuli"  1   0.34   3  0  requires factions { byzantium, } and event_counter new_era_begins 1
                recruit_pool "Toxotae"  1   0.34   3  0  requires factions { byzantium, } and event_counter new_era_begins 1
                recruit_pool "Toxotae"  1   0.67   5  0  requires factions { byzantium, } and not event_counter new_era_begins 1

		recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { spain, aragon, portugal, } and event_counter MATCHLOCK 1               
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { spain, aragon, portugal, } and event_counter MATCHLOCK 1

                recruit_pool "Arquebusiers"  1   0.5   2  1  requires factions { spain, aragon, portugal, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.25  1  0  requires factions { spain, aragon, portugal, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67  3  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Urban Spear Militia"  1   0.17   1  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Hand Gunners"  1   0.5  2  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Swordsmen Militia"  1   0.5   4  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Swordsmen Militia"  1   0.34   3  0  requires factions { spain, aragon, portugal, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { spain, aragon, portugal, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   0.84   6  0  requires factions { spain, aragon, portugal, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.25   2  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.5   4  0  requires factions { spain, aragon, portugal, } and not event_counter new_era_begins 1

                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { poland, hungary, } and event_counter MATCHLOCK 1
                recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { poland, hungary, } and event_counter MATCHLOCK 1

                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { poland, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.25  1  0  requires factions { poland, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67  3  0  requires factions { poland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "EE Crossbow Militia"  1   0.17   1  0  requires factions { poland, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Pavise Crossbow Militia"  1   0.34   3  0  requires factions { hungary, } and event_counter FULL_PLATE_ARMOR 1

		recruit_pool "Hand Gunners"  1   0.5  2  0  requires factions { poland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "EE Crossbow Militia"  1   0.25   2  0  requires factions { poland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "EE Crossbow Militia"  1   0.5   4  0  requires factions { poland, } and not event_counter new_era_begins 1
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Crossbow Militia"  1   0.5   4  0  requires factions { hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "EE Spear Militia"  1   0.84   6  0  requires factions { poland, hungary, } and not event_counter new_era_begins 1
                recruit_pool "Urban Crossbow Militia"  1   0.5   4  0  requires factions { hungary, } and not event_counter new_era_begins 1

                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { lithuania, } and event_counter MATCHLOCK 1
                recruit_pool "Baltic Spearmen"  1   0.25   2  0  requires factions { lithuania, } and event_counter MATCHLOCK 1
				
                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Baltic Spearmen"  1   0.34   3  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.5   4  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.67   5  0  requires factions { lithuania, } and not event_counter new_era_begins 1
                recruit_pool "Lithuanian Axemen"  1   0.67   5  0  requires factions { lithuania, } and not event_counter new_era_begins 1

                recruit_pool "Burgher Pikemen"  1   0.5   4  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Order Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Order Militia"  1   0.67   5  0  requires factions { teutonic_order, } and not event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Spear Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Spear Militia"  1   0.67   5  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1
				
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { teutonic_order, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.25  1  0  requires factions { teutonic_order, } and event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67  3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
		recruit_pool "Hand Gunners"  1   0.5   2  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.5   4  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1

                recruit_pool "Swiss Guard"  1   0.5   2  0  requires factions { knights_templar, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.5   4  0  requires factions { knights_templar, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.5   4  0  requires factions { knights_templar, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Hand Gunners"  1   0.5   2  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.25   2  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.67   5  0  requires factions { timurids, } and not event_counter new_era_begins 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.67   5  0  requires factions { mongols, } 
                recruit_pool "Kashtim Thralls"  1   0.67   5  0  requires factions { mongols, } 
                recruit_pool "Kashtim Thralls"  1   0.25   2  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kashtim Thralls"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE 1
                recruit_pool "Kashtim Thralls"  1   0.67   5  0  requires factions { timurids, } and not event_counter new_era_begins 1
                recruit_pool "Sibiryaki Senior Militia"  1   0.5   4  0  requires factions { mongols, timurids, } 
                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE 1
                recruit_pool "ME Halberd Militia"  1   0.5   4  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Dismounted Cuman Militia"  1   0.67   5  0  requires factions { cumans, }
                recruit_pool "Cuman Horse Militia"  1   0.34   3  0  requires factions { cumans, } 
                recruit_pool "Kasogi"  1   0.34   3  0  requires factions { cumans, } 
                recruit_pool "Kasogi Senior Militia"  1   0.34   3  0  requires factions { cumans, } 
				
                recruit_pool "Senior Mounted Militia"  1   0.25   2  0  requires factions { russia, kievan_rus, }
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Novgorod Home Guard"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Rus Senior Militia"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Rus Senior Militia"  1   0.34   3  0  requires factions { russia, } and not event_counter new_era_begins 1
                recruit_pool "Berdiche Militia"  1   0.34   3  0  requires factions { russia, } and not event_counter new_era_begins 1
				
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { kievan_rus, } and event_counter new_era_begins 1
				recruit_pool "Rus Senior Militia"  1   0.34   3  0  requires factions { kievan_rus, } 
				recruit_pool "Chude Militia"  1   0.25   2  0  requires factions { kievan_rus, } 
                recruit_pool "Berdiche Militia"  1   0.34   3  0  requires factions { kievan_rus, } and not event_counter new_era_begins 1

                recruit_pool "EE Crossbow Militia"  1   0.5   4  0  requires factions { russia, kievan_rus, } 
                recruit_pool "EE Archer Militia"  1   0.5   4  0  requires factions { russia, kievan_rus, } 

                law_bonus bonus 4
		law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min large_city
            upgrades
            {
                army_barracks
            }
        }
        army_barracks city requires factions { denmark, teutonic_order, jerusalem, norway, hre, france, england, knights_templar, moors, egypt, turks, kwarezm, poland, hungary, russia, cumans, kievan_rus, lithuania, scotland, southern_european, greek, slave, } 
        {
            convert_to 4
            capability
            {
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { jerusalem, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arbalest Militia"  1   0.17   1  0  requires factions { jerusalem, } and event_counter ADV_MATCHLOCK 1
 
				recruit_pool "Portuguese Arquebusiers"  1   0.67   3  0  requires factions { jerusalem, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Arquebusiers"  1   0.67   3  0  requires factions { jerusalem, } and event_counter first_watch 1 and not event_counter pike_and_shot 1 
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter first_watch 1 and not event_counter pike_and_shot 1

                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { jerusalem, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Arbalest Militia"  1   0.67   5  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter spanish_inquisition 1
                recruit_pool "Crossbow Militia"  0   0.67   5  0  requires factions { jerusalem, } and not event_counter FULL_PLATE_ARMOR 1  
				
                recruit_pool "Constable of Jerusalem"  0   0.1   1  0  requires factions { jerusalem, } and hidden_resource Constable
                recruit_pool "Edessan Guard"  0   0.67   3  0  requires factions { jerusalem, }
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1              
                recruit_pool "Pisan and Geonese sailors"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Partisan Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
								
                recruit_pool "Pisan and Geonese sailors"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Partisan Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
				
                recruit_pool "Pisan and Geonese sailors"  1   0.5   4  0  requires factions { jerusalem, } and not event_counter new_era_begins 1 
                recruit_pool "Spear Militia"  0   0.67   5  0  requires factions { jerusalem, } and not event_counter new_era_begins 1

                recruit_pool "ME Hand Gunners"  1   0.84   4  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Cavalry Militia"  1   0.5   4  0  requires factions { kwarezm, }
                recruit_pool "ME Halberd Militia"  1   0.67   5  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Halberd Militia"  1   0.5   4  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Saracen Militia"  1   0.25   2  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Saracen Militia"  1   0.34   3  0  requires factions { kwarezm, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { kwarezm, } and not event_counter new_era_begins 1 
                recruit_pool "ME Archer Militia"  1   0.5   4  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Archer Militia"  1   0.67   5  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Archer Militia"  1   0.84   6  0  requires factions { kwarezm, } and not event_counter new_era_begins 1

                recruit_pool "Calivermen"  1   0.5   2  0  requires factions { Scotland, }  and event_counter first_watch 1
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { scotland, } and event_counter first_watch 1
                recruit_pool "Scots Pike Militia"  1   0.5   4  0  requires factions { scotland, } and event_counter first_watch 1 
                recruit_pool "Heavy Pike Militia"  1   0.67   5  0  requires factions { scotland, } and event_counter first_watch 1

                recruit_pool "Scots Pike Militia"  1   0.84   6  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 
                recruit_pool "Heavy Pike Militia"  1   0.67   5  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1

                recruit_pool "Scots Pike Militia"  1   0.67   5  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Heavy Pike Militia"  1   0.5   4  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Sudanese Gunners"  1   0.5   2  0  requires factions { moors, egypt, } and event_counter MATCHLOCK 1 
				recruit_pool "Janissary Arquebusiers"  1   0.5   2  0  requires factions { turks, } and event_counter MATCHLOCK 1 ; Janissary Arquebusiers
                recruit_pool "Janissary Archers"  1   0.5   2  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Khassaki"  1   0.5   2  0  requires factions { egypt, }  and hidden_resource Khassaki 
                recruit_pool "ME Hand Gunners"  1   0.5   2  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { moors, } and event_counter new_era_begins 1 
		recruit_pool "Al Haqa Infantry"  1   0.5   2  0  requires factions { egypt, } and not event_counter new_era_begins 1 and hidden_resource Khassaki 
		recruit_pool "Al Haqa Infantry"  0   0.67   3  0  requires factions { egypt, } and not event_counter new_era_begins 1 and not hidden_resource Khassaki 

		recruit_pool "Al Haqa Infantry"  1   0.67   3  0  requires factions { egypt, } and event_counter new_era_begins 1 
 
                recruit_pool "ME Halberd Militia"  1   0.67   5  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Tabardariyya"  1   0.67   3  0  requires factions { egypt, } and event_counter new_era_begins 1
                recruit_pool "ME Halberd Militia"  1   0.5   4  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { egypt, } and event_counter new_era_begins 1 and hidden_resource Khassaki
                recruit_pool "ME Halberd Militia"  0   0.5   4  0  requires factions { egypt, } and event_counter new_era_begins 1 and not hidden_resource Khassaki

                recruit_pool "Saracen Militia"  1   0.34   3  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Saracen Militia"  1   0.5   4  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Saracen Militia"  0   0.17   1  0  requires factions { egypt, } and event_counter new_era_begins 1 and not hidden_resource Khassaki 
                recruit_pool "Saracen Militia"  1   0.5   4  0  requires factions { egypt, } and not event_counter new_era_begins 1 and hidden_resource Khassaki
                recruit_pool "Saracen Militia"  0   0.67   5  0  requires factions { egypt, } and not event_counter new_era_begins 1 and not hidden_resource Khassaki
                recruit_pool "Saracen Militia"  1   0.67   5  0  requires factions { turks, } and not event_counter new_era_begins 1
                recruit_pool "ME Spear Militia"  1   0.34   3  0  requires factions { egypt, } and not event_counter new_era_begins 1
                recruit_pool "ME Spear Militia"  1   0.84   6  0  requires factions { turks, } and not event_counter new_era_begins 1
                recruit_pool "ME Spear Militia"  1   0.25   2  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Archer Militia"  1   0.5   4  0  requires factions { egypt, } and event_counter MATCHLOCK 1 
                recruit_pool "ME Archer Militia"  1   0.84   6  0  requires factions { egypt, } and not event_counter MATCHLOCK 1 
                recruit_pool "ME Crossbow Militia"  1   0.5   4  0  requires factions { moors, } and event_counter new_era_begins 1
                recruit_pool "ME Crossbow Militia"  1   0.67   5  0  requires factions { moors, } and not event_counter new_era_begins 1

                recruit_pool "Urban Militia"  1   0.5   4  0  requires factions { moors, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Moorish Auxiliaries"  1   0.25   2  0  requires factions { moors, }
                recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { moors, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Spear Militia"  1   0.84   6  0  requires factions { moors, } and not event_counter HEAVY_MAIL_ARMOR 1
				
                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { milan, venice, papal_states, sicily, } and event_counter first_watch 1 

                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and event_counter first_watch 1          
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter first_watch 1          
                recruit_pool "Pavise Spear Militia"  1   0.17   1  0  requires factions { milan, venice, } and event_counter first_watch 1
                recruit_pool "Pavise Spear Militia"  1   0.17   1  0  requires factions { papal_states, sicily, } and event_counter first_watch 1

                recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { milan, venice, papal_states, sicily, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1          
                recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { milan, venice, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
                recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { papal_states, sicily, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
				
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { milan, venice, papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1             
                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Italian Cavalry Militia"  1   0.5   4  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.84   6  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   1   7  0  requires factions { papal_states, sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { papal_states, sicily, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Italian Cavalry Militia"  1   0.5   4  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Italian Cavalry Militia"  1   0.5   4  0  requires factions { milan, venice, } and not event_counter new_era_begins 1

				recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "Pavise Spear Militia"  1   0.84   6  0  requires factions { milan, venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { milan, venice, } and not event_counter HEAVY_MAIL_ARMOR 1
				
                recruit_pool "Portuguese Arquebusiers"  1   1   5  1  requires factions { milan, venice, papal_states, sicily, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  1  requires factions { milan, venice, papal_states, sicily, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Arquebusiers"  1   0.84   4  1  requires factions { milan, venice, papal_states, sicily, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Arquebusiers"  1   0.5   2  1  requires factions { milan, venice, papal_states, sicily, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.5   2  0  requires factions { milan, venice, papal_states, sicily, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67   3  0  requires factions { milan, venice, papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter spanish_inquisition 1

                recruit_pool "Genoese Crossbow Militia"  1   0.17   1  0  requires factions { milan, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Genoese Crossbow Militia"  1   0.25   2  0  requires factions { milan, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Genoese Crossbow Militia"  1   0.25   2  0  requires factions { milan, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Genoese Crossbow Militia"  1   0.34   3  0  requires factions { milan, } and event_counter new_era_begins 1 and not event_counter spanish_inquisition 1 
                recruit_pool "Urban Crossbow Militia"  1   0.67   5  0  requires factions { milan, } and not event_counter new_era_begins 1

                recruit_pool "Pavise Crossbow Militia"  1   0.17   1  0  requires factions { venice, papal_states, sicily, } and event_counter pike_and_shot 1
                recruit_pool "Pavise Crossbow Militia"  1   0.25   2  0  requires factions { venice, papal_states, sicily, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Pavise Crossbow Militia"  1   0.25   2  0  requires factions { venice, papal_states, sicily, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Pavise Crossbow Militia"  1   0.34   3  0  requires factions { venice, papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter spanish_inquisition 1 
                recruit_pool "Urban Crossbow Militia"  1   0.67   5  0  requires factions { venice, papal_states, sicily,} and not event_counter new_era_begins 1

                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { england, } and event_counter pike_and_shot 1
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { england, } and event_counter pike_and_shot 1
                recruit_pool "Militia Serjeants"  1   0.34   3  0  requires factions { england, } and event_counter pike_and_shot 1
                recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { england, } and event_counter pike_and_shot 1

                recruit_pool "Militia Serjeants"  1   0.67   5  0  requires factions { england, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "Militia Serjeants"  1   0.5   4  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "NE_Urban_Militia"  1   0.67   5  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Urban Spear Militia"  1   0.17   1  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Militia Serjeants"  1   0.34   3  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "NE_Urban_Militia"  1   0.5   4  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { england, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Portuguese Arquebusiers"  1   0.67   3  0  requires factions { england, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arquebusiers"  1   0.67   3  0  requires factions { england, } and event_counter first_watch 1 and not event_counter pike_and_shot 1 
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { england, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1 

                recruit_pool "Archer Militia"  1   0.34   3  0  requires factions { england, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Archer Militia"  1   0.5   4  0  requires factions { england, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Archer Militia"  1   0.5   4  0  requires factions { england, } and event_counter first_watch 1 and not event_counter pike_and_shot 1 
                recruit_pool "Archer Militia"  1   0.67   5  0  requires factions { england, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1 

                recruit_pool "Archer Militia"  1   0.84   6  0  requires factions { england, } and not event_counter spanish_inquisition 1

                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { france, } and event_counter first_watch 1
 
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { france, } and event_counter first_watch 1 
                recruit_pool "Partisan Militia"  1   0.67   5  0  requires factions { france, } and event_counter first_watch 1
			
	        recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { france, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1               
                recruit_pool "Partisan Militia"  1   0.84   6  0  requires factions { france, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
				
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Partisan Militia"  1   0.67   5  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Partisan Militia"  1   0.5   4  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { france, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { france, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Portuguese Arquebusiers"  1   0.67   3  0  requires factions { france, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Arquebusiers"  1   0.67   3  0  requires factions { france, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { france, } and event_counter science_da_vinci_ornithopter 1 and not event_counter pike_and_shot 1

                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { france, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { france, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1  
                recruit_pool "Arbalest Militia"  1   0.5   4  0  requires factions { france, } and event_counter science_da_vinci_ornithopter 1 and not event_counter pike_and_shot 1 
                recruit_pool "Arbalest Militia"  1   0.67   5  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter science_da_vinci_ornithopter 1
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { hre, } and event_counter first_watch 1
 
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { hre, } and event_counter first_watch 1 
                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { hre, } and event_counter first_watch 1
			
	        recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { hre, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1               
                recruit_pool "Halberd Militia"  1   0.84   6  0  requires factions { hre, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
				
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { hre, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { hre, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Portuguese Arquebusiers"  1   1   5  0  requires factions { hre, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { hre, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arquebusiers"  1   0.84   4  0  requires factions { hre, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { hre, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.5   2  0  requires factions { hre, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67   3  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter spanish_inquisition 1
                recruit_pool "Arbalest Militia"  1   0.17   1  0  requires factions { hre, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { hre, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { hre, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter spanish_inquisition 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { hre, } and not event_counter new_era_begins 1

                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1 
                recruit_pool "Swordstaff Militia"  1   0.84   6  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.17   1  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1

                recruit_pool "Swordstaff Militia"  1   0.5   4  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Portuguese Arquebusiers"  1   1   5  0  requires factions { denmark, norway, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arquebusiers"  1   0.84   4  0  requires factions { denmark, norway, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { denmark, norway, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.5   2  0  requires factions { denmark, norway, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67   3  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter spanish_inquisition 1
                recruit_pool "Arbalest Militia"  1   0.17   1  0  requires factions { denmark, norway, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { denmark, norway, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { denmark, norway, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter spanish_inquisition 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { denmark, norway, } and not event_counter new_era_begins 1

                recruit_pool "Archontopoulai"  1   0.13   2  0  requires factions { byzantium, }
                recruit_pool "Menaulatoi"  1   0.67   3  0  requires factions { byzantium, } and event_counter first_watch 1
                recruit_pool "Castrophilakae"  1   1   5  0  requires factions { byzantium, } and event_counter first_watch 1
				
                recruit_pool "Castrophilakae"  1   0.84   4  0  requires factions { byzantium, } and event_counter lateran_council4 1 and not event_counter first_watch 1
                recruit_pool "Contaratoi"  1   0.5   4  0  requires factions { byzantium, } and event_counter lateran_council4 1 and not event_counter first_watch 1

                recruit_pool "Castrophilakae"  1   0.67   3  0  requires factions { byzantium, } and not event_counter lateran_council4 1 
                recruit_pool "Contaratoi"  1   0.67   5  0  requires factions { byzantium, } and not event_counter lateran_council4 1 
				
                recruit_pool "Gasmuli"  1   0.5   4  0  requires factions { byzantium, } and event_counter new_era_begins 1
                recruit_pool "Toxotae"  1   0.5   4  0  requires factions { byzantium, } and event_counter new_era_begins 1
                recruit_pool "Toxotae"  1   0.84   6  0  requires factions { byzantium, } and not event_counter new_era_begins 1
	
				recruit_pool "Pike Militia"  1   0.67   5  0  requires factions { spain, aragon, } and event_counter first_watch 1        
				recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { spain, aragon, } and event_counter first_watch 1                
				recruit_pool "Swordsmen Militia"  1   0.25   2  0  requires factions { spain, aragon, } and event_counter first_watch 1 

				recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { spain, aragon, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1              
				recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { spain, aragon, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1               
				recruit_pool "Swordsmen Militia"  1   0.34   3  0  requires factions { spain, aragon, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
				
				recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { spain, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { spain, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { spain, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { spain, aragon, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Swordsmen Militia"  1   0.5   4  0  requires factions { spain, aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { spain, aragon, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { spain, aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1  1   7  0  requires factions { spain, aragon, } and not event_counter HEAVY_MAIL_ARMOR 1
	
				recruit_pool "Pikemen"  1   0.25   2  0  requires factions { portugal, } and event_counter malleus_maleficarum 1               
				recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { portugal, } and event_counter malleus_maleficarum 1               
				recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { portugal, } and event_counter malleus_maleficarum 1                
				recruit_pool "Swordsmen Militia"  1   0.25   2  0  requires factions { portugal, } and event_counter malleus_maleficarum 1

				recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { portugal, } and event_counter MATCHLOCK 1 and not event_counter malleus_maleficarum 1               
				recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { portugal, } and event_counter MATCHLOCK 1 and not event_counter malleus_maleficarum 1                
				recruit_pool "Swordsmen Militia"  1   0.34   3  0  requires factions { portugal, } and event_counter MATCHLOCK 1 and not event_counter malleus_maleficarum 1
				
				recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Swordsmen Militia"  1   0.5   4  0  requires factions { portugal, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.67   5  0  requires factions { portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { portugal, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1  1   7  0  requires factions { portugal, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Spanish Arquebusiers"  1   1   5  1  requires factions { spain, aragon, portugal, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Spanish Arquebusiers"  1   1   5  0  requires factions { spain, aragon, portugal, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Spanish Arquebusiers"  1   0.84   4  0  requires factions { spain, aragon, portugal, } and event_counter first_watch 1 and not event_counter pike_and_shot 1 
                recruit_pool "Arquebusiers"  1   0.84   4  1  requires factions { spain, aragon, portugal, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Arquebusiers"  1   0.5   2  1  requires factions { spain, aragon, portugal, } and event_counter MATCHLOCK 1 and not event_counter spanish_inquisition 1
                recruit_pool "Hand Gunners"  1   0.5   2  0  requires factions { spain, aragon, portugal, } and event_counter MATCHLOCK 1 and not event_counter spanish_inquisition 1
                recruit_pool "Hand Gunners"  1   0.67   3  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.17   1  0  requires factions { spain, aragon, portugal, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { spain, aragon, portugal, } and event_counter spanish_inquisition 1 and not event_counter pike_and_shot 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { spain, aragon, portugal, } and event_counter MATCHLOCK 1 and not event_counter spanish_inquisition 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Crossbow Militia"  1   0.34   3  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { spain, aragon, portugal, } and not event_counter new_era_begins 1

                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { hungary, poland, } and event_counter pike_and_shot 1 
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { hungary, poland, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1  
                recruit_pool "Hand Gunners"  1   0.5  2  0  requires factions { poland, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "Hand Gunners"  1   0.67  3  0  requires factions { poland, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1
                recruit_pool "EE Crossbow Militia"  1   0.25   2  0  requires factions { poland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "EE Crossbow Militia"  1   0.5   4  0  requires factions { poland, } and not event_counter new_era_begins 1
                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { poland, hungary, } and event_counter pike_and_shot 1

                recruit_pool "Halberd Militia"  1   0.84   6  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.17   1  0  requires factions { poland, hungary, } and event_counter pike_and_shot 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1

                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "EE Spear Militia"  1   0.84   6  0  requires factions { poland, hungary, } and not event_counter new_era_begins 1

                recruit_pool "Pavise Crossbow Militia"  1   0.5   4  0  requires factions { hungary, } and event_counter MATCHLOCK 1
                recruit_pool "Pavise Crossbow Militia"  1   0.67   5  0  requires factions { hungary, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Crossbow Militia"  1   0.67   5  0  requires factions { hungary, } and not event_counter new_era_begins 1

                recruit_pool "Lithuanian Arquebusiers"  1   0.5   2  0  requires factions { lithuania, }  and event_counter MATCHLOCK 1 
                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.5   4  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.5   4  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.5   4  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.84   6  0  requires factions { lithuania, } and not event_counter new_era_begins 1
                recruit_pool "Lithuanian Axemen"  1   0.84   6  0  requires factions { lithuania, } and not event_counter new_era_begins 1

                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { teutonic_order, } and event_counter first_watch 1
				recruit_pool "Burgher Pikemen"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter first_watch 1
                recruit_pool "Order Militia"  1   0.25   3  0  requires factions { teutonic_order, } and event_counter first_watch 1

                recruit_pool "Burgher Pikemen"  1   0.67   5  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Order Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
				recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Order Militia"  1   0.84   6  0  requires factions { teutonic_order, } and not event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Spear Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Spear Militia"  1   0.84   6  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1

                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { teutonic_order, } and event_counter pike_and_shot 1 
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { teutonic_order, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1  
                recruit_pool "Hand Gunners"  1   0.5  2  0  requires factions { teutonic_order, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
		recruit_pool "Hand Gunners"  1   0.84   4  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
		recruit_pool "Hand Gunners"  1   0.67   3  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.5   4  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1

                recruit_pool "Portuguese Arquebusiers"  1   0.5   2  0  requires factions { knights_templar, } and event_counter pike_and_shot 1 
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { knights_templar, } and event_counter MATCHLOCK 1
                recruit_pool "Swiss Guard"  1   0.67   3  0  requires factions { knights_templar, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { hre,} and event_counter pike_and_shot 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { knights_templar, } and event_counter pike_and_shot 1
                recruit_pool "Arbalest Militia"  1   0.5   4  0  requires factions { knights_templar, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "Arbalest Militia"  1   0.67   5  0  requires factions { knights_templar, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { knights_templar, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Hand Gunners"  1   0.5   2  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.25   2  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.67   5  0  requires factions { timurids, } and not event_counter new_era_begins 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.67   5  0  requires factions { mongols, } 
                recruit_pool "Kashtim Thralls"  1   0.67   5  0  requires factions { mongols, } 
                recruit_pool "Kashtim Thralls"  1   0.25   2  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kashtim Thralls"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE 1
                recruit_pool "Kashtim Thralls"  1   0.67   5  0  requires factions { timurids, } and not event_counter new_era_begins 1
                recruit_pool "Sibiryaki Senior Militia"  1   0.5   4  0  requires factions { mongols, timurids, } 
                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE 1
                recruit_pool "ME Halberd Militia"  1   0.5   4  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Dismounted Cuman Militia"  1   0.84   6  0  requires factions { cumans, } 
                recruit_pool "Cuman Horse Militia"  1   0.5   4  0  requires factions { cumans, } 
                recruit_pool "Kasogi"  1   0.34   3  0  requires factions { cumans, } 
                recruit_pool "Kasogi Senior Militia"  1   0.5   4  0  requires factions { cumans, } 
				
                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { russia, } and event_counter pike_and_shot 1
                recruit_pool "Senior Mounted Militia"  1   0.34   3  0  requires factions { russia, kievan_rus, }
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Novgorod Home Guard"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Rus Senior Militia"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1
                recruit_pool "Rus Senior Militia"  1   0.34   3  0  requires factions { russia, } and not event_counter new_era_begins 1
                recruit_pool "Berdiche Militia"  1   0.34   3  0  requires factions { russia, } and not event_counter new_era_begins 1
				
                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { kievan_rus, } and event_counter new_era_begins 1
				recruit_pool "Rus Senior Militia"  1   0.34   3  0  requires factions { kievan_rus, } 
				recruit_pool "Chude Militia"  1   0.25   2  0  requires factions { kievan_rus, } 
                recruit_pool "Berdiche Militia"  1   0.5   4  0  requires factions { kievan_rus, } and not event_counter new_era_begins 1
				
				recruit_pool "Cossack Musketeers"  1   0.5   2  0  requires factions { kievan_rus, } and event_counter pike_and_shot 1
                recruit_pool "EE Crossbow Militia"  1   0.5   4  0  requires factions { kievan_rus, } and event_counter pike_and_shot 1
                recruit_pool "EE Crossbow Militia"  1   0.67   5  0  requires factions { kievan_rus, } and not event_counter pike_and_shot 1

                recruit_pool "EE Archer Militia"  1   0.67   5  0  requires factions { russia, kievan_rus, }

				recruit_pool "Cossack Musketeers"  1   0.5   2  0  requires factions { russia, } and event_counter pike_and_shot 1
                recruit_pool "Portuguese Arquebusiers"  1   0.5   2  0  requires factions { russia, } and event_counter pike_and_shot 1 
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { russia, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1 
                recruit_pool "EE Crossbow Militia"  1   0.5   4  0  requires factions { russia, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "EE Crossbow Militia"  1   0.67   5  0  requires factions { russia, } and not event_counter MATCHLOCK 1

                law_bonus bonus 5
				law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction   10
            cost  8000 
            settlement_min huge_city
            upgrades
            {
                royal_armoury
            }
        }
        royal_armoury city requires factions { turks, venice, milan, portugal, spain, aragon, papal_states, sicily, england, france, hre, denmark, norway, hungary, poland, russia, } 
        {
            convert_to 4
            capability
            {
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { jerusalem, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arbalest Militia"  1   0.17   1  0  requires factions { jerusalem, } and event_counter ADV_MATCHLOCK 1
 
				recruit_pool "Portuguese Arquebusiers"  1   0.67   3  0  requires factions { jerusalem, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Arquebusiers"  1   0.67   3  0  requires factions { jerusalem, } and event_counter first_watch 1 and not event_counter pike_and_shot 1 
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter first_watch 1 and not event_counter pike_and_shot 1

                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { jerusalem, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter spanish_inquisition 1 and not event_counter first_watch 1
                recruit_pool "Arbalest Militia"  1   0.67   5  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter spanish_inquisition 1
                recruit_pool "Crossbow Militia"  0   0.67   5  0  requires factions { jerusalem, } and not event_counter FULL_PLATE_ARMOR 1  
				
                recruit_pool "Constable of Jerusalem"  0   0.1   1  0  requires factions { jerusalem, } and hidden_resource Constable
                recruit_pool "Edessan Guard"  0   0.67   3  0  requires factions { jerusalem, }
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1              
                recruit_pool "Pisan and Geonese sailors"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Partisan Militia"  1   0.25   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
								
                recruit_pool "Pisan and Geonese sailors"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "NE_Urban_Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Partisan Militia"  1   0.34   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
				
                recruit_pool "Pisan and Geonese sailors"  1   0.5   4  0  requires factions { jerusalem, } and not event_counter new_era_begins 1 
                recruit_pool "Spear Militia"  0   0.67   5  0  requires factions { jerusalem, } and not event_counter new_era_begins 1

                recruit_pool "ME Hand Gunners"  1   0.84   4  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Cavalry Militia"  1   0.5   4  0  requires factions { kwarezm, }
                recruit_pool "ME Halberd Militia"  1   0.67   5  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Halberd Militia"  1   0.5   4  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Saracen Militia"  1   0.25   2  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Saracen Militia"  1   0.34   3  0  requires factions { kwarezm, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { kwarezm, } and not event_counter new_era_begins 1 
                recruit_pool "ME Archer Militia"  1   0.5   4  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Archer Militia"  1   0.67   5  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Archer Militia"  1   0.84   6  0  requires factions { kwarezm, } and not event_counter new_era_begins 1

                recruit_pool "Calivermen"  1   0.5   2  0  requires factions { scotland, }  and event_counter first_watch 1
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { scotland, } and event_counter first_watch 1
                recruit_pool "Scots Pike Militia"  1   0.5   4  0  requires factions { scotland, } and event_counter first_watch 1 
                recruit_pool "Heavy Pike Militia"  1   0.67   5  0  requires factions { scotland, } and event_counter first_watch 1

                recruit_pool "Scots Pike Militia"  1   0.84   6  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 
                recruit_pool "Heavy Pike Militia"  1   0.67   5  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1

                recruit_pool "Scots Pike Militia"  1   0.67   5  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Heavy Pike Militia"  1   0.5   4  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Sudanese Gunners"  1   0.5   2  0  requires factions { moors, egypt, } and event_counter MATCHLOCK 1 
                recruit_pool "Khassaki"  1   0.5   2  0  requires factions { egypt, } and hidden_resource Khassaki 
                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { moors, } and event_counter new_era_begins 1 
		recruit_pool "Al Haqa Infantry"  1   0.5   2  0  requires factions { egypt, } and not event_counter new_era_begins 1 and hidden_resource Khassaki 
		recruit_pool "Al Haqa Infantry"  0   0.67   3  0  requires factions { egypt, } and not event_counter new_era_begins 1 and not hidden_resource Khassaki 
		recruit_pool "Al Haqa Infantry"  1   0.67   3  0  requires factions { egypt, } and event_counter new_era_begins 1  
                recruit_pool "Tabardariyya"  1   0.67   3  0  requires factions { egypt, } and event_counter new_era_begins 1
                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { egypt, } and event_counter new_era_begins 1 and hidden_resource Khassaki
                recruit_pool "ME Halberd Militia"  0   0.5   4  0  requires factions { egypt, } and event_counter new_era_begins 1 and not hidden_resource Khassaki
                recruit_pool "Saracen Militia"  0   0.17   1  0  requires factions { egypt, } and event_counter new_era_begins 1 and not hidden_resource Khassaki 
                recruit_pool "Saracen Militia"  1   0.5   4  0  requires factions { egypt, } and not event_counter new_era_begins 1 and hidden_resource Khassaki
                recruit_pool "Saracen Militia"  0   0.67   5  0  requires factions { egypt, } and not event_counter new_era_begins 1 and not hidden_resource Khassaki
                recruit_pool "ME Spear Militia"  1   0.34   3  0  requires factions { egypt, } and not event_counter new_era_begins 1
                recruit_pool "ME Archer Militia"  1   0.5   4  0  requires factions { egypt, } and event_counter MATCHLOCK 1 
                recruit_pool "ME Archer Militia"  1   0.84   6  0  requires factions { egypt, } and not event_counter MATCHLOCK 1 
                recruit_pool "ME Crossbow Militia"  1   0.5   4  0  requires factions { moors, } and event_counter new_era_begins 1
                recruit_pool "ME Crossbow Militia"  1   0.67   5  0  requires factions { moors, } and not event_counter new_era_begins 1

                recruit_pool "Urban Militia"  1   0.5   4  0  requires factions { moors, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Moorish Auxiliaries"  1   0.25   2  0  requires factions { moors, }
                recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { moors, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Spear Militia"  1   0.84   6  0  requires factions { moors, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Late Pikemen"  1   0.5   2  0  requires factions { papal_states, sicily, } and event_counter pike_and_shot 1 
                recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { papal_states, sicily, } and event_counter pike_and_shot 1          

                recruit_pool "Pikemen"  1   0.67   3  0  requires factions { papal_states, sicily, } and event_counter first_watch 1

                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and event_counter first_watch 1 and not event_counter pike_and_shot 1          
                recruit_pool "Pavise Spear Militia"  1   0.17   1  0  requires factions { papal_states, sicily, } and event_counter first_watch 1 and not event_counter pike_and_shot 1

                recruit_pool "Pike Militia"  1   0.67   5  0  requires factions { papal_states, sicily, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1          
                recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { papal_states, sicily, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
				
                recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1             
                recruit_pool "Halberd Militia"  1   0.84   6  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   1   7  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   1   7  1  requires factions { papal_states, sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   1   7  1  requires factions { papal_states, sicily, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Late Musketeers"  1   1   5  1  requires factions { papal_states, sicily, } and event_counter the_flintlock 1 
                recruit_pool "Musketeers"  1   0.5   2  0  requires factions { papal_states, sicily, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  1  requires factions { papal_states, sicily, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Portuguese Arquebusiers"  1   1   5  1  requires factions { papal_states, sicily, } and event_counter first_watch 1 and not event_counter pike_and_shot
                recruit_pool "Arquebusiers"  1   0.67   3  1  requires factions { papal_states, sicily, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67   3  0  requires factions { papal_states, sicily, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67   5  0  requires factions { papal_states, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Hand Gunners"  1   0.84   4  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Crossbow Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and event_counter MATCHLOCK 1
                recruit_pool "Pavise Crossbow Militia"  1   0.5   4  0  requires factions { papal_states, sicily,} and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Pavise Crossbow Militia"  1   0.67   5  0  requires factions { papal_states, sicily,} and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Urban Crossbow Militia"  1   0.84   6  0  requires factions { papal_states, sicily,} and not event_counter new_era_begins 1
 
                recruit_pool "Late Musketeers"  1   0.84   4  0  requires factions { england, } and event_counter the_flintlock 1 
                recruit_pool "Musketeers"  1   0.5   2  0  requires factions { england, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Portuguese Arquebusiers"  1   0.5   2  0  requires factions { england, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Arquebusiers"  1   0.67   3  0  requires factions { england, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1 
				
                recruit_pool "Late Pikemen"  1   0.5   2  0  requires factions { england, } and event_counter ADV_MATCHLOCK 1 
				recruit_pool "Pikemen"  1   0.67   3  0  requires factions { england, } and event_counter pike_and_shot 1
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { england, } and event_counter pike_and_shot 1
                recruit_pool "Militia Serjeants"  1   0.34   3  0  requires factions { england, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "NE_Urban_Militia"  1   0.17   1  0  requires factions { england, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Militia Serjeants"  1   0.5   4  0  requires factions { england, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { england, } and event_counter pike_and_shot 1 and not event_counter ADV_MATCHLOCK 1

                recruit_pool "Militia Serjeants"  1   0.84   6  0  requires factions { england, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "Militia Serjeants"  1   0.67   5  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "NE_Urban_Militia"  1   0.84   6  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Urban Spear Militia"  1   0.17   1  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Militia Serjeants"  1   0.5   4  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "NE_Urban_Militia"  1   0.67   5  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.34   3  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1
				
                recruit_pool "Archer Militia"  1   0.84   6  0  requires factions { england, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "Archer Militia"  1   0.67   5  0  requires factions { england, } and event_counter pike_and_shot 1
                recruit_pool "Archer Militia"  1  1   7  0  requires factions { england, } and not event_counter MATCHLOCK 1											
	
                recruit_pool "Late Musketeers"  1   0.84   4  0  requires factions { france, } and event_counter the_flintlock 1 
                recruit_pool "Musketeers"  1   0.5   2  0  requires factions { france, } and event_counter ADV_MATCHLOCK 1 and not event_counter the_flintlock 1
                recruit_pool "Portuguese Arquebusiers"  1   0.5   2  0  requires factions { france, } and event_counter ADV_MATCHLOCK 1 and not event_counter the_flintlock 1
                recruit_pool "Arquebusiers"  1   0.67   3  0  requires factions { france, } and event_counter science_da_vinci_ornithopter 1 and not event_counter ADV_MATCHLOCK 1 
				
                recruit_pool "Late Pikemen"  1   0.5   2  0  requires factions { france, } and event_counter pike_and_shot 1
				recruit_pool "Pikemen"  1   0.67   3  0  requires factions { france, } and event_counter first_watch 1
 
                recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { france, } and event_counter first_watch 1 
                recruit_pool "Partisan Militia"  1   0.34   3  0  requires factions { france, } and event_counter pike_and_shot 1
                recruit_pool "Partisan Militia"  1   0.67   5  0  requires factions { france, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
			
	            recruit_pool "Pike Militia"  1   0.67   5  0  requires factions { france, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1               
                recruit_pool "Partisan Militia"  1  1   7  0  requires factions { france, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
				
                recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Partisan Militia"  1   0.84   6  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Partisan Militia"  1   0.67   5  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1  1   7  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { france, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { france, } and not event_counter HEAVY_MAIL_ARMOR 1
				
                recruit_pool "Arbalest Militia"  1   0.67   5  0  requires factions { france, } and event_counter science_da_vinci_ornithopter 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arbalest Militia"  1   0.5   4  0  requires factions { france, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Arbalest Militia"  1   0.84   6  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter science_da_vinci_ornithopter 1
                recruit_pool "Crossbow Militia"  1   0.84   6  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Late Musketeers"  1   1   5  1  requires factions { hre, } and event_counter the_flintlock 1 
                recruit_pool "Musketeers"  1   0.5   2  0  requires factions { hre, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { hre, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Arquebusiers"  1   0.67   3  0  requires factions { hre, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1  
                recruit_pool "Hand Gunners"  1   0.67   3  0  requires factions { hre, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "Hand Gunners"  1   0.84  4  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Late Pikemen"  1   0.5   2  0  requires factions { hre, } and event_counter pike_and_shot 1
				recruit_pool "Pikemen"  1   0.67   3  0  requires factions { hre, } and event_counter first_watch 1
 
                recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { hre, } and event_counter first_watch 1 
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { hre, } and event_counter pike_and_shot 1
                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { hre, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
			
	            recruit_pool "Pike Militia"  1   0.67   5  0  requires factions { hre, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1               
                recruit_pool "Halberd Militia"  1  1   7  0  requires factions { hre, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
				
                recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Halberd Militia"  1   0.84   6  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Spear Militia"  1   0.25   2  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1  1   7  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { hre, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { hre, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { hre, } and event_counter MATCHLOCK 1
                recruit_pool "Arbalest Militia"  1   0.67   5  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.84   6  0  requires factions { hre, } and not event_counter new_era_begins 1

                recruit_pool "Late Musketeers"  1   1   5  1  requires factions { denmark, norway, } and event_counter the_flintlock 1 
                recruit_pool "Musketeers"  1   0.5   2  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Arquebusiers"  1   0.67   3  0  requires factions { denmark, norway, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1  
                recruit_pool "Hand Gunners"  1   0.67  3  0  requires factions { denmark, norway, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "Hand Gunners"  1   0.84  4  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Late Pikemen"  1   0.5   2  0  requires factions { denmark, norway, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Pikemen"  1   0.67   3  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1
 
                recruit_pool "Swordstaff Militia"  1   0.5   4  1  requires factions { denmark, norway, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Swordstaff Militia"  1  1   7  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1 
                recruit_pool "Urban Spear Militia"  1   0.17   1  0  requires factions { denmark, norway, } and event_counter pike_and_shot 1
                recruit_pool "Urban Spear Militia"  1   0.5   4  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1

                recruit_pool "Swordstaff Militia"  1   0.67   5  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1   1   7  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter MATCHLOCK 1 
                recruit_pool "Arbalest Militia"  1   0.67   5  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Crossbow Militia"  1   0.84   6  0  requires factions { denmark, norway, } and not event_counter new_era_begins 1
				
                recruit_pool "Late Musketeers"  1   0.84   4  0  requires factions { hungary, poland, } and event_counter the_flintlock 1 
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { hungary, poland, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Arquebusiers"  1   0.57   3  0  requires factions { hungary, poland, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1  
                recruit_pool "Hand Gunners"  1   0.67  3  0  requires factions { poland, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "Hand Gunners"  1   0.84  4  0  requires factions { poland, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1
                recruit_pool "Late Pikemen"  1   0.5   2  0  requires factions { poland, hungary, } and event_counter ADV_MATCHLOCK 1 
                recruit_pool "Pikemen"  1   0.67   3  0  requires factions { poland, hungary, } and event_counter pike_and_shot 1

                recruit_pool "Halberd Militia"  1   0.5   4  1  requires factions { poland, hungary, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Halberd Militia"  1  1   7  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Pavise Spear Militia"  1   0.17   1  0  requires factions { poland, hungary, } and event_counter pike_and_shot 1
                recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { poland, hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1

                recruit_pool "Halberd Militia"  1   0.84   6  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.67   5  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "EE Spear Militia"  1  1   7  0  requires factions { poland, hungary, } and not event_counter new_era_begins 1
                recruit_pool "Pavise Crossbow Militia"  1   0.5   4  0  requires factions { hungary, } and event_counter MATCHLOCK 1
                recruit_pool "Pavise Crossbow Militia"  1   0.84   6  0  requires factions { hungary, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Crossbow Militia"  1   0.84   6  0  requires factions { hungary, } and not event_counter new_era_begins 1
                recruit_pool "EE Crossbow Militia"  1   0.67   5  0  requires factions { poland, } 

                recruit_pool "Lithuanian Arquebusiers"  1   0.5   2  0  requires factions { lithuania, }  and event_counter MATCHLOCK 1 
                recruit_pool "Halberd Militia"  1   0.67   5  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.5   4  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.5   4  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.5   4  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Baltic Spearmen"  1   0.84   6  0  requires factions { lithuania, } and not event_counter new_era_begins 1
                recruit_pool "Lithuanian Axemen"  1   0.84   6  0  requires factions { lithuania, } and not event_counter new_era_begins 1

                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { teutonic_order, } and event_counter first_watch 1
				recruit_pool "Burgher Pikemen"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter first_watch 1
                recruit_pool "Order Militia"  1   0.25   3  0  requires factions { teutonic_order, } and event_counter first_watch 1

                recruit_pool "Burgher Pikemen"  1   0.67   5  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Order Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
				recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Order Militia"  1   0.84   6  0  requires factions { teutonic_order, } and not event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Spear Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
				recruit_pool "Spear Militia"  1   0.84   6  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1

                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  0  requires factions { teutonic_order, } and event_counter pike_and_shot 1 
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { teutonic_order, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1  
                recruit_pool "Hand Gunners"  1   0.5  2  0  requires factions { teutonic_order, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
		recruit_pool "Hand Gunners"  1   0.84   4  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
		recruit_pool "Hand Gunners"  1   0.67   3  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Arbalest Militia"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.5   4  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1

                recruit_pool "Portuguese Arquebusiers"  1   0.5   2  0  requires factions { knights_templar, } and event_counter pike_and_shot 1 
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { knights_templar, } and event_counter MATCHLOCK 1
                recruit_pool "Swiss Guard"  1   0.67   3  0  requires factions { knights_templar, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { hre,} and event_counter pike_and_shot 1
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { knights_templar, } and event_counter pike_and_shot 1
                recruit_pool "Arbalest Militia"  1   0.5   4  0  requires factions { knights_templar, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "Arbalest Militia"  1   0.67   5  0  requires factions { knights_templar, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Crossbow Militia"  1   0.67   5  0  requires factions { knights_templar, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "ME Hand Gunners"  1   0.5   2  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.25   2  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.67   5  0  requires factions { timurids, } and not event_counter new_era_begins 1
                recruit_pool "Sibiryaki Junior Militia"  1   0.67   5  0  requires factions { mongols, } 
                recruit_pool "Kashtim Thralls"  1   0.67   5  0  requires factions { mongols, } 
                recruit_pool "Kashtim Thralls"  1   0.25   2  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kashtim Thralls"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE 1
                recruit_pool "Kashtim Thralls"  1   0.67   5  0  requires factions { timurids, } and not event_counter new_era_begins 1
                recruit_pool "Sibiryaki Senior Militia"  1   0.5   4  0  requires factions { mongols, timurids, } 
                recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { timurids, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE 1
                recruit_pool "ME Halberd Militia"  1   0.5   4  0  requires factions { timurids, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Dismounted Cuman Militia"  1   0.84   6  0  requires factions { cumans, }
                recruit_pool "Cuman Horse Militia"  1   0.5   4  0  requires factions { cumans, } 
                recruit_pool "Kasogi"  1   0.34   3  0  requires factions { cumans, } 
                recruit_pool "Kasogi Senior Militia"  1   0.5   4  0  requires factions { cumans, } 
				
                recruit_pool "Pikemen"  1   0.67   3  0  requires factions { russia, } and event_counter pike_and_shot 1
                recruit_pool "Senior Mounted Militia"  1   0.34   3  0  requires factions { russia, kievan_rus, }
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Novgorod Home Guard"  1   0.25   2  0  requires factions { russia, } and event_counter new_era_begins 1
                recruit_pool "Rus Senior Militia"  1   0.34   3  0  requires factions { russia, } and event_counter new_era_begins 1 and not event_counter pike_and_shot 1
                recruit_pool "Rus Senior Militia"  1   0.5   4  0  requires factions { russia, } and not event_counter new_era_begins 1
                recruit_pool "Berdiche Militia"  1   0.5   4  0  requires factions { russia, } and not event_counter new_era_begins 1
				
                recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { kievan_rus, } and event_counter new_era_begins 1
				recruit_pool "Rus Senior Militia"  1   0.34   3  0  requires factions { kievan_rus, } 
				recruit_pool "Chude Militia"  1   0.25   2  0  requires factions { kievan_rus, } 
                recruit_pool "Berdiche Militia"  1   0.5   4  0  requires factions { kievan_rus, } and not event_counter new_era_begins 1
				
				recruit_pool "Cossack Musketeers"  1   0.5   2  0  requires factions { kievan_rus, } and event_counter pike_and_shot 1
                recruit_pool "EE Crossbow Militia"  1   0.5   4  0  requires factions { kievan_rus, } and event_counter pike_and_shot 1
                recruit_pool "EE Crossbow Militia"  1   0.67   5  0  requires factions { kievan_rus, } and not event_counter pike_and_shot 1

                recruit_pool "EE Archer Militia"  1   0.67   5  0  requires factions { russia, kievan_rus, }

				recruit_pool "Cossack Musketeers"  1   0.5   2  0  requires factions { russia, } and event_counter pike_and_shot 1
                recruit_pool "Portuguese Arquebusiers"  1   0.5   2  0  requires factions { russia, } and event_counter pike_and_shot 1 
                recruit_pool "Arquebusiers"  1   0.5   2  0  requires factions { russia, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1 
                recruit_pool "EE Crossbow Militia"  1   0.5   4  0  requires factions { russia, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1
                recruit_pool "EE Crossbow Militia"  1   0.67   5  0  requires factions { russia, } and not event_counter MATCHLOCK 1

				recruit_pool "Janissary Musketeers"  1   0.67   3  0  requires factions { turks, } and event_counter pike_and_shot 1
				recruit_pool "Janissary Arquebusiers"  1   0.67   3  0  requires factions { turks, } and event_counter MATCHLOCK 1 and not event_counter pike_and_shot 1 ; Janissary Arquebusiers
                recruit_pool "Janissary Archers"  1   0.67   3  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Hand Gunners"  1   0.67   3  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "ME Hand Gunners"  1   0.84   4  0  requires factions { turks,  } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Halberd Militia"  1   0.84   6  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Halberd Militia"  1   0.67   5  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Saracen Militia"  1   0.5   4  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Saracen Militia"  1   0.67   5  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Saracen Militia"  1   0.84   6  0  requires factions { turks, } and not event_counter new_era_begins 1
                recruit_pool "ME Spear Militia"  1  1   7  0  requires factions { turks, } and not event_counter new_era_begins 1
                recruit_pool "ME Spear Militia"  1   0.25   2  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Late Pikemen"  1   0.5   2  0  requires factions { milan, venice, } and event_counter pike_and_shot 1 				
                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { milan, venice, } and event_counter pike_and_shot 1
                recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { milan, venice, } and event_counter pike_and_shot 1         
                recruit_pool "Italian Cavalry Militia"  1   0.25   2  0  requires factions { milan, venice, } and event_counter pike_and_shot 1

                recruit_pool "Pikemen"  1   0.5   2  0  requires factions { milan, venice, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter first_watch 1 and not event_counter pike_and_shot 1         
                recruit_pool "Italian Cavalry Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter first_watch 1 and not event_counter pike_and_shot 1

                recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { milan, venice, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1          
                recruit_pool "Italian Cavalry Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
                recruit_pool "Pavise Spear Militia"  1   0.17   1  0  requires factions { milan, venice, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
				
		recruit_pool "Broken Lances"  1   0.5   2  0  requires factions { venice, milan, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Broken Lances"  1   0.5   2  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1             
                recruit_pool "Italian Cavalry Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { milan, venice, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1

                recruit_pool "Italian Cavalry Militia"  1   0.67   5  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Italian Cavalry Militia"  1   0.67   5  0  requires factions { milan, venice, } and not event_counter new_era_begins 1

				recruit_pool "NE_Urban_Militia"  1   0.5   4  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { milan, venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Pavise Spear Militia"  1   1   7  0  requires factions { milan, venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   1   7  0  requires factions { milan, venice, } and not event_counter HEAVY_MAIL_ARMOR 1
              
                recruit_pool "Late Musketeers"  1   1   5  1  requires factions { milan, venice, } and event_counter the_flintlock 1 
                recruit_pool "Musketeers"  1   0.5   2  0  requires factions { milan, venice, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Portuguese Arquebusiers"  1   0.84   4  1  requires factions { milan, venice, } and event_counter pike_and_shot 1 and not event_counter the_flintlock 1
                recruit_pool "Portuguese Arquebusiers"  1   1   5  1  requires factions { milan, venice, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Arquebusiers"  1   0.67   3  1  requires factions { milan, venice, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.5   2  0  requires factions { milan, venice,  } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.84   4  0  requires factions { milan, venice,  } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1

                recruit_pool "Genoese Crossbow Militia"  1   0.25   2  0  requires factions { milan, } and event_counter first_watch 1 
                recruit_pool "Genoese Crossbow Militia"  1   0.34   3  0  requires factions { milan, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1 
                recruit_pool "Genoese Crossbow Militia"  1   0.5   4  0  requires factions { milan, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Crossbow Militia"  1   0.84   6  0  requires factions { milan, } and not event_counter new_era_begins 1
                recruit_pool "Pavise Crossbow Militia"  1   0.25   2  0  requires factions { venice, } and event_counter first_watch 1 
                recruit_pool "Pavise Crossbow Militia"  1   0.34   3  0  requires factions { venice, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1 
                recruit_pool "Pavise Crossbow Militia"  1   0.5   4  0  requires factions { venice, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Urban Crossbow Militia"  1   0.84   6  0  requires factions { venice, } and not event_counter new_era_begins 1

                recruit_pool "Late Musketeers"  1   1   5  1  requires factions { spain, aragon, portugal, } and event_counter the_flintlock 1 
                recruit_pool "Musketeers"  1   0.5   2  0  requires factions { spain, aragon, portugal, } and event_counter first_watch 1 and not event_counter the_flintlock 1
                recruit_pool "Spanish Arquebusiers"  1   0.84   4  0  requires factions { spain, aragon, portugal, } and event_counter first_watch 1 and not event_counter the_flintlock 1
                recruit_pool "Arquebusiers"  1   0.67   3  1  requires factions { spain, aragon, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
                recruit_pool "Arquebusiers"  1   0.67   3  1  requires factions { portugal, }  and event_counter MATCHLOCK 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.67  3  0  requires factions { spain, aragon, portugal, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
                recruit_pool "Hand Gunners"  1   0.84  4  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1 and not event_counter MATCHLOCK 1
								
				recruit_pool "Pike Militia"  1   0.84   6  0  requires factions { spain, aragon, } and event_counter first_watch 1               
				recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { spain, aragon, } and event_counter first_watch 1                 
				recruit_pool "Swordsmen Militia"  1   0.25   2  0  requires factions { spain, aragon, } and event_counter first_watch 1 

				recruit_pool "Pike Militia"  1   0.67   5  0  requires factions { spain, aragon, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1               
				recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { spain, aragon, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1                
				recruit_pool "Swordsmen Militia"  1   0.34   3  0  requires factions { spain, aragon, } and event_counter MATCHLOCK 1 and not event_counter first_watch 1
				
				recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { spain, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { spain, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { spain, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
				
                recruit_pool "Swordsmen Militia"  1   0.84   6  0  requires factions { spain, aragon, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { spain, aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { spain, aragon, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1  1   7  0  requires factions { spain, aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1  1   7  1  requires factions { spain, aragon, } and not event_counter HEAVY_MAIL_ARMOR 1
	
                recruit_pool "Late Pikemen"  1   0.5   2  0  requires factions { portugal, } and event_counter first_watch 1 
		
				recruit_pool "Pikemen"  1   0.34   3  0  requires factions { portugal, } and event_counter malleus_maleficarum 1               
				recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { portugal, } and event_counter first_watch 1              
				recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { portugal, } and event_counter first_watch 1               
				recruit_pool "Pike Militia"  1   0.34   3  0  requires factions { portugal, } and event_counter malleus_maleficarum 1 and not event_counter first_watch 1              
				recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { portugal, } and event_counter malleus_maleficarum 1 and not event_counter first_watch 1               
				recruit_pool "Swordsmen Militia"  1   0.25   2  0  requires factions { portugal, } and event_counter malleus_maleficarum 1

				recruit_pool "Pike Militia"  1   0.67   5  0  requires factions { portugal, } and event_counter MATCHLOCK 1 and not event_counter malleus_maleficarum 1               
				recruit_pool "Halberd Militia"  1   0.5   4  0  requires factions { portugal, } and event_counter MATCHLOCK 1 and not event_counter malleus_maleficarum 1                
				recruit_pool "Swordsmen Militia"  1   0.34   3  0  requires factions { portugal, } and event_counter MATCHLOCK 1 and not event_counter malleus_maleficarum 1
				
				recruit_pool "Pike Militia"  1   0.5   4  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1               
                recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1
				
                recruit_pool "Swordsmen Militia"  1   0.84   6  0  requires factions { portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Swordsmen Militia"  1   0.67   5  0  requires factions { portugal, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Urban Spear Militia"  1   0.84   6  0  requires factions { portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Urban Spear Militia"  1  1   7  0  requires factions { portugal, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Spear Militia"  1  1   7  1  requires factions { portugal, } and not event_counter HEAVY_MAIL_ARMOR 1
							
                recruit_pool "Arbalest Militia"  1   0.25   2  0  requires factions { spain, aragon, portugal, } and event_counter MATCHLOCK 1 
                recruit_pool "Arbalest Militia"  1   0.5   4  0  requires factions { spain, aragon, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter MATCHLOCK 1 
                recruit_pool "Crossbow Militia"  1   0.5   4  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Crossbow Militia"  1   0.84   6  0  requires factions { spain, aragon, portugal, } and not event_counter new_era_begins 1
                
		law_bonus bonus 6
		law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  12 
            cost  10000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_byzantine_imperial_barracks
{
    levels imperial_barracks
    {
        imperial_barracks city requires factions { greek, } 
        {
            capability
            {
                recruit_pool "Late Musketeers"  1   0.5   2  0  requires factions { byzantium, } and event_counter the_flintlock 1 
		recruit_pool "Scholarii"  0   0.05   0.4  0  requires factions { byzantium, } and not event_counter lateran_council4 1 
                recruit_pool "Scholarii"  0   0.5   2  0  requires factions { byzantium, } and event_counter lateran_council4 1 and hidden_resource Constantinople 
                recruit_pool "Spartharii tou Vasileos"  0   0.05   0.4  0  requires factions { byzantium, } and not event_counter lateran_council4 1 
                recruit_pool "Spartharii tou Vasileos"  0   0.25   1  0  requires factions { byzantium, } and event_counter lateran_council4 1 and hidden_resource Constantinople 
                recruit_pool "Siphonatores"  0   0.05   0.4  0  requires factions { byzantium, } and not event_counter lateran_council4 1 
                recruit_pool "Siphonatores"  0   0.25   1  0  requires factions { byzantium, } and event_counter lateran_council4 1 and hidden_resource Constantinople 
                law_bonus bonus 1
            }
            material wooden
            construction  12 
            cost  12000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
} 
building castle_barracks
{
    convert_to barracks
    levels mustering_hall garrison_quarters drill_square barracks armoury 
    {
        mustering_hall castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability 
            {
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { england, france, hre, denmark, spain, aragon, portugal, } 
                recruit_pool "Drengjar"  1   0.25   2  0  requires factions { norway, } 
                recruit_pool "Peasants"  1   0.25   3  0  requires factions { teutonic_order, milan, venice, papal_states, } 
                recruit_pool "Highland Rabble"  1   0.5   3  0  requires factions { scotland, } 
                recruit_pool "Southern Peasants"  1   0.25   3  0  requires factions { sicily, }
                recruit_pool "Southern Peasants"  1   0.25   3  0  requires factions { knights_templar, }
		recruit_pool "Acontistae" 1   0.34   3  0  requires factions { byzantium, }   
                recruit_pool "EE Peasants"  1   0.34   3  0  requires factions { russia, kievan_rus, hungary, lithuania, cumans, } 
                recruit_pool "EE Peasants"  1   0.25   3  0  requires factions { poland, } 
                recruit_pool "ME Peasants"  1   0.5   3  0  requires factions { moors, } 
                recruit_pool "ME Peasants"  1   0.5   3  0  requires factions { turks, } 
                recruit_pool "ME Peasants"  1   0.25   3  0  requires factions { mongols, timurids, } 
                recruit_pool "ME Peasants"  1   0.34   3  0  requires factions { egypt, kwarezm,  } 
		recruit_pool "Syrian Auxilliaries"  1  0.13  1  0 requires factions { jerusalem, } and hidden_resource crusader
                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min village
            upgrades
            {
                garrison_quarters
            }
        }
        garrison_quarters castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                recruit_pool "Dismounted Tartar Lancers"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Dismounted Tartar Lancers"  0   0.13   1  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Dismounted Tartar Lancers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "EE Peasants"  1   0.34   3  0  requires factions { cumans, }

                recruit_pool "Daylami Light Infantry"  1   0.5   2  0  requires factions { kwarezm, } 
                recruit_pool "Afghan Javelinmen"  1   0.25   2  0  requires factions { kwarezm, } and hidden_resource kwarezm 
                recruit_pool "Afghan Javelinmen"  0   0.13   1  0  requires factions { kwarezm, }  and hidden_resource turks or hidden_resource cumans
                recruit_pool "Afghan Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm 
                recruit_pool "ME Peasants"  1   0.20   1  0  requires factions { kwarezm, } 

                recruit_pool "Lithuanian Skirmishers"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Lithuanian Skirmishers"  0   0.13   1  0  requires factions { lithuania, } and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Skirmishers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania
                recruit_pool "Lithuanian Axemen"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Lithuanian Axemen"  0   0.13   1  0  requires factions { lithuania, } and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Axemen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania
                recruit_pool "EE Peasants"  1   0.2   1  0  requires factions { lithuania, }

				recruit_pool "Prussian Axemen"  1   0.17   2  0  requires factions { teutonic_order, } and hidden_resource prussia
				recruit_pool "Prussian Axemen"  0   0.085   1  0  requires factions { teutonic_order, } and hidden_resource hre
				recruit_pool "Prussian Axemen"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia
				recruit_pool "Peasants"  1   0.25   3  0  requires factions { teutonic_order, } 

                recruit_pool "Fyrd Spearmen"  1   0.34   3  0  requires factions { england, } 
                recruit_pool "Peasants"  1   0.25   2  0  requires factions { england, } 

                recruit_pool "Highlanders"  1   0.34   2  0  requires factions { scotland, } and hidden_resource scotland 
                recruit_pool "Highlanders"  0   0.17   1  0  requires factions { scotland, }  and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.17   1  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland 
                recruit_pool "Highland Rabble"  1   0.5   3  0  requires factions { scotland, } 

                recruit_pool "Sergeant Spearmen"  1   0.17   1  0  requires factions { france, hre, milan, venice, papal_states, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.13   1  0  requires factions { france, hre, milan, venice, papal_states, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  1   0.13   1  0  requires factions { sicily, knights_templar, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.085   1  0  requires factions { sicily, knights_templar, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

                recruit_pool "Viking Raiders"  1   0.25   2  0  requires factions { denmark, } and hidden_resource denmark 
                recruit_pool "Viking Raiders"  0   0.13   1  0  requires factions { denmark, }  and hidden_resource norway or hidden_resource ireland
                recruit_pool "Viking Raiders"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark 
                recruit_pool "Viking Raiders"  1   0.25   2  0  requires factions { norway, } and hidden_resource norway 
                recruit_pool "Viking Raiders"  0   0.13   1  0  requires factions { norway, }  and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Viking Raiders"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway 
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { denmark, }
                recruit_pool "Drengjar"  1   0.34   3  0  requires factions { norway, } 

                recruit_pool "Javelinmen"  1   0.34   2  0  requires factions { spain, } and hidden_resource spain 
                recruit_pool "Javelinmen"  0   0.17   1  0  requires factions { spain, }  and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Javelinmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain 
                recruit_pool "Javelinmen"  1   0.34   2  0  requires factions { aragon, } and hidden_resource aragon 
                recruit_pool "Javelinmen"  0   0.17   1  0  requires factions { aragon, }  and hidden_resource portugal or hidden_resource spain
                recruit_pool "Javelinmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon 
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { spain, aragon, } 

                recruit_pool "Lusitanian Javelinmen"  1   0.34   2  0  requires factions { portugal, } and hidden_resource portugal 
                recruit_pool "Lusitanian Javelinmen"  0   0.17   1  0  requires factions { portugal, }  and hidden_resource spain or hidden_resource aragon
                recruit_pool "Lusitanian Javelinmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource portugal 
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { portugal, } 

		recruit_pool "Nubian Spearmen"  1   0.5   2  0  requires factions { egypt, }
		recruit_pool "Nubian Spearmen"  1   0.67   2  0  requires factions { moors, }
                recruit_pool "Desert Raiders"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors 
                recruit_pool "Desert Raiders"  0   0.17   1  0  requires factions { moors, }  and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Raiders"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors 
                recruit_pool "Desert Raiders"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt 
                recruit_pool "Desert Raiders"  0   0.13   1  0  requires factions { egypt, }  and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Raiders"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt 
                recruit_pool "Kurdish Javelinmen"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt
                recruit_pool "Kurdish Javelinmen"  0   0.13   1  0  requires factions { egypt, } and hidden_resource turks or hidden_resource moors
                recruit_pool "Kurdish Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt
                recruit_pool "ME Peasants"  1   0.25   1  0  requires factions { moors, } 

                recruit_pool "Smolensk Infantry"  1   0.25   2  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Smolensk Infantry"  0   0.13   1  0  requires factions { russia, } and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Smolensk Infantry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia
                recruit_pool "Woodsmen"  1   0.25   2  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Woodsmen"  0   0.13   1  0  requires factions { russia, } and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia
                recruit_pool "EE Peasants"  1   0.17   1  0  requires factions { russia, } 
				
				recruit_pool "Slavic Javelinmen"  1   0.25   2  0  requires factions { kievan_rus, } and hidden_resource kievan_rus 
                recruit_pool "Slavic Javelinmen"  0   0.13   1  0  requires factions { kievan_rus, }  and hidden_resource russia or hidden_resource cumans
                recruit_pool "Slavic Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus 
                recruit_pool "EE Peasants"  1   0.34   3  0  requires factions { kievan_rus, } 
 
				recruit_pool "Smolensk Infantry"  1   0.17   2  0  requires factions { poland, } and hidden_resource poland
                recruit_pool "Smolensk Infantry"  0   0.085   1  0  requires factions { poland, } and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Smolensk Infantry"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland
                recruit_pool "Woodsmen"  1   0.17   2  0  requires factions { poland, } and hidden_resource poland
                recruit_pool "Woodsmen"  0   0.085   1  0  requires factions { poland, } and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland
				recruit_pool "EE Peasants"  1   0.13   1  0  requires factions { poland, }	
				
		recruit_pool "Azabs"  1   0.5   3  0  requires factions { turks, } 
                recruit_pool "Turkish Javelinmen"  1   0.34   2  0  requires factions { turks, } and hidden_resource turks 
                recruit_pool "Turkish Javelinmen"  0   0.17   1  0  requires factions { turks, }  and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Javelinmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks 

                recruit_pool "Slav Levies"  1   0.34   3  0  requires factions { hungary, } 
                recruit_pool "Croat Axemen"  1   0.25   2  0  requires factions { hungary, } and hidden_resource hungary 
                recruit_pool "Croat Axemen"  0   0.13   1  0  requires factions { hungary, }  and hidden_resource poland
                recruit_pool "Croat Axemen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary 

		recruit_pool "Acritae"  1   0.17   1  0  requires factions { byzantium, } and hidden_resource byzantium
		recruit_pool "Acritae"  1   0.13   1  0  requires factions { byzantium, } and not hidden_resource byzantium
                recruit_pool "Acontistae" 1   0.34   3  0  requires factions { byzantium, }
                recruit_pool "Contaratoi"  1   0.25   2  0  requires factions { byzantium, } 
 
                recruit_pool "Peasants"  1   0.5   4  0  requires factions { france, hre, } 
                recruit_pool "Peasants"  1   0.34   4  0  requires factions { milan, venice, papal_states, } 

                recruit_pool "Southern Peasants"  1   0.34   4  0  requires factions { sicily, knights_templar, } 

                recruit_pool "ME Peasants"  1   0.34   4  0  requires factions { mongols, } 
                recruit_pool "ME Peasants"  1   0.25   3  0  requires factions { timurids, } 
                recruit_pool "Afghan Javelinmen"  1   0.17   2  0  requires factions { timurids, } and hidden_resource kwarezm 
                recruit_pool "Afghan Javelinmen"  0   0.13   1  0  requires factions { timurids, }  and hidden_resource turks
				
                recruit_pool "Urban Spear Militia"  1   0.25   1  1  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Baltic Spearmen"  1   0.25   1  0  requires factions { lithuania, } 
                recruit_pool "Spear Militia"  1   0.25   1  1  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, norway, } 
                recruit_pool "Spear Militia"  1   0.25   1  1  requires factions { teutonic_order, } 
                recruit_pool "EE Spear Militia"  1   0.25   1  1  requires factions { poland, russia, hungary, kievan_rus, cumans, } 
                recruit_pool "ME Spear Militia"  1   0.25   1  1  requires factions { moors, egypt, turks, kwarezm, } 

		recruit_pool "Templar Sergeant" 1   0.085   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader
		recruit_pool "Templar Sergeant" 1   0.0575   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader

		recruit_pool "Sergeant Spearmen" 1   0.13   1  0  requires factions { jerusalem, } 
		recruit_pool "Syrian Auxilliaries"  1  0.17  2  0 requires factions { jerusalem, } and hidden_resource crusader

                law_bonus bonus 1 requires event_counter is_the_ai 1

            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min town
            upgrades
            {
                drill_square
            }
        }
        drill_square castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 1
            capability
            {
                recruit_pool "Dismounted Tartar Lancers"  1   0.34   3  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Dismounted Tartar Lancers"  0   0.17   1  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Dismounted Tartar Lancers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "EE Peasants"  1   0.5   4  0  requires factions { cumans, }

                recruit_pool "Persian Spearmen"  1   0.13   1  0  requires factions { kwarezm, } and hidden_resource kwarezm 
                recruit_pool "Persian Spearmen"  0   0.085   1  0  requires factions { kwarezm, } and not hidden_resource kwarezm 
                recruit_pool "Daylami Light Infantry"  1   0.67   3  0  requires factions { kwarezm, } 
                recruit_pool "Afghan Javelinmen"  1   0.34   3  0  requires factions { kwarezm, } and hidden_resource kwarezm 
                recruit_pool "Afghan Javelinmen"  0   0.17   1  0  requires factions { kwarezm, }  and hidden_resource turks or hidden_resource cumans
                recruit_pool "Afghan Javelinmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm 
                recruit_pool "ME Peasants"  1   0.2   1  0  requires factions { kwarezm, } 

                recruit_pool "Ducal Spearmen"  1   0.17   1  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Ducal Spearmen"  0   0.13   1  0  requires factions { lithuania, } and not hidden_resource lithuania
                recruit_pool "Ducal Axe"  1   0.17   1  0  requires factions { lithuania, } and hidden_resource lithuania 
                recruit_pool "Ducal Axe"  0   0.13   1  0  requires factions { lithuania, } and not hidden_resource lithuania 
                recruit_pool "Lithuanian Skirmishers"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Lithuanian Skirmishers"  0   0.17   1  0  requires factions { lithuania, } and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Skirmishers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Lithuanian Axemen"  0   0.17   1  0  requires factions { lithuania, } and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Axemen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania
                recruit_pool "EE Peasants"  1   0.2   1  0  requires factions { lithuania, }                

				recruit_pool "Prussian Infantry"  1   0.13   1  0  requires factions { teutonic_order, } and hidden_resource prussia
 				recruit_pool "Prussian Infantry"  0   0.085   1  0  requires factions { teutonic_order, } and not hidden_resource prussia
                recruit_pool "Order Spearmen"  1   0.13   1  0  requires factions { teutonic_order, }
				recruit_pool "Prussian Axemen"  1   0.25   3  0  requires factions { teutonic_order, } and hidden_resource prussia
				recruit_pool "Prussian Axemen"  0   0.13   1  0  requires factions { teutonic_order, } and hidden_resource hre
				recruit_pool "Prussian Axemen"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia
				recruit_pool "Peasants"  1   0.34   4  0  requires factions { teutonic_order, } 
				
                recruit_pool "Croat Axemen"  1   0.34   3  0  requires factions { hungary, } and hidden_resource hungary
                recruit_pool "Croat Axemen"  0   0.17   1  0  requires factions { hungary, } and hidden_resource poland
                recruit_pool "Croat Axemen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary
                
				recruit_pool "Sergeant Spearmen"  1   0.25   2  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.17   1  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  1   0.17   1  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.13   1  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

		recruit_pool "Norse Swordsmen"  1   0.25   1  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource norway
		recruit_pool "Norse Swordsmen"  0   0.17   1  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource denmark and not hidden_resource norway
                recruit_pool "Viking Raiders"  1   0.34   3  0  requires factions { denmark, } and hidden_resource denmark 
                recruit_pool "Viking Raiders"  0   0.17   1  0  requires factions { denmark, }  and hidden_resource norway or hidden_resource ireland
                recruit_pool "Viking Raiders"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark 
                recruit_pool "Viking Raiders"  1   0.34   3  0  requires factions { norway, } and hidden_resource norway 
                recruit_pool "Viking Raiders"  0   0.17   1  0  requires factions { norway, }  and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Viking Raiders"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway 
                recruit_pool "Peasants"  1   0.5   4  0  requires factions { denmark, } 
                recruit_pool "Drengjar"  1   0.5   4  0  requires factions { norway, } 

                recruit_pool "Desert Raiders"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors
                recruit_pool "Desert Raiders"  0   0.17   1  0  requires factions { moors, } and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Raiders"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors
		recruit_pool "Nubian Spearmen"  1   0.67   2  0  requires factions { moors, } 
                recruit_pool "Dismounted Arab Cavalry"  1   0.5   2  0  requires factions { moors, }

		recruit_pool "Nubian Spearmen"  1   0.5   2  0  requires factions { egypt, } 
                recruit_pool "Dismounted Arab Cavalry"  1   0.5   2  0  requires factions { egypt, }
                recruit_pool "Desert Raiders"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt 
                recruit_pool "Desert Raiders"  0   0.13   1  0  requires factions { egypt, }  and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Raiders"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt 
                recruit_pool "Kurdish Javelinmen"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt
                recruit_pool "Kurdish Javelinmen"  0   0.13   1  0  requires factions { egypt, } and hidden_resource turks or hidden_resource moors
                recruit_pool "Kurdish Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt
                recruit_pool "Lusitanian Javelinmen"  1   0.34   3  0  requires factions { spain, } and hidden_resource spain 
                recruit_pool "Lusitanian Javelinmen"  0   0.17   1  0  requires factions { spain, }  and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Lusitanian Javelinmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain 
                recruit_pool "Javelinmen"  1   0.34   3  0  requires factions { spain, } and hidden_resource spain 
                recruit_pool "Javelinmen"  0   0.17   1  0  requires factions { spain, }  and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Javelinmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain 
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { spain, } 

                recruit_pool "Javelinmen"  1   0.5   3  0  requires factions { aragon, } and hidden_resource aragon 
                recruit_pool "Javelinmen"  0   0.25   1  0  requires factions { aragon, }  and hidden_resource portugal or hidden_resource spain
                recruit_pool "Javelinmen"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon 
                recruit_pool "Peasants"  1   0.5   4  0  requires factions { aragon, } 

                recruit_pool "Highland Pikemen"  1   0.5   3  0  requires factions { scotland, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highland Pikemen"  0   0.25   1  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Pikemen"  0   0.25   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  1   0.34   2  0  requires factions { scotland, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  0   0.17   1  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.17   1  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Highland Pikemen"  1   0.34   2  0  requires factions { scotland, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highland Pikemen"  0   0.17   1  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Pikemen"  0   0.17   1  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  1   0.5   3  0  requires factions { scotland, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  0   0.25   1  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.25   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Highland Rabble"  1   0.34   2  0  requires factions { scotland, } and event_counter new_era_begins 1 

                recruit_pool "Highlanders"  1   0.5   3  0  requires factions { scotland, } and hidden_resource scotland and not event_counter new_era_begins 1
                recruit_pool "Highlanders"  0   0.25   1  0  requires factions { scotland, } and not event_counter new_era_begins 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.25   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and not event_counter new_era_begins 1
                recruit_pool "Highland Rabble"  1   0.67   4  0  requires factions { scotland, } and not event_counter new_era_begins 1
				
				recruit_pool "Dismounted Druzhina"  1   0.25   1  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Dismounted Druzhina"  0   0.17   1  0  requires factions { russia, } and not hidden_resource russia
                recruit_pool "Dismounted Druzhina"  1   0.25   1  0  requires factions { kievan_rus, } and hidden_resource russia
                recruit_pool "Dismounted Druzhina"  0   0.17   1  0  requires factions { kievan_rus, } and not hidden_resource russia
				
                recruit_pool "Smolensk Infantry"  1   0.34   3  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Smolensk Infantry"  0   0.17   1  0  requires factions { russia, } and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Smolensk Infantry"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia
                recruit_pool "Woodsmen"  1   0.34   3  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Woodsmen"  0   0.17   1  0  requires factions { russia, } and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia
                recruit_pool "EE Peasants"  1   0.17   1  0  requires factions { russia, } 
				
				recruit_pool "Slavic Javelinmen"  1   0.34   3  0  requires factions { kievan_rus, } and hidden_resource kievan_rus 
                recruit_pool "Slavic Javelinmen"  0   0.17   1  0  requires factions { kievan_rus, }  and hidden_resource russia or hidden_resource cumans
                recruit_pool "Slavic Javelinmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus 
                recruit_pool "Smolensk Infantry"  1   0.25   2  0  requires factions { kievan_rus, } and hidden_resource kievan_rus
                recruit_pool "Smolensk Infantry"  1   0.13   1  0  requires factions { kievan_rus, } and hidden_resource kievan_rus
                recruit_pool "Smolensk Infantry"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus
                recruit_pool "EE Peasants"  1   0.25   2  0  requires factions { kievan_rus, } 
 
				recruit_pool "Smolensk Infantry"  1   0.25   3  0  requires factions { poland, } and hidden_resource poland
                recruit_pool "Smolensk Infantry"  0   0.13   1  0  requires factions { poland, } and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Smolensk Infantry"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland
                recruit_pool "Woodsmen"  1   0.25   3  0  requires factions { poland, } and hidden_resource poland
                recruit_pool "Woodsmen"  0   0.13   1  0  requires factions { poland, } and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland
                recruit_pool "EE Peasants"  1   0.13   1  0  requires factions { poland, } 
 
                recruit_pool "Lusitanian Javelinmen"  1   0.5   3  0  requires factions { portugal, } and hidden_resource portugal 
                recruit_pool "Lusitanian Javelinmen"  0   0.25   1  0  requires factions { portugal, }  and hidden_resource spain or hidden_resource aragon
                recruit_pool "Lusitanian Javelinmen"  0   0.25   2  0  requires factions { venice, scotland,  england, france, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource portugal 

				recruit_pool "Azabs"  1   0.67   4  0  requires factions { turks, }
                recruit_pool "Turkish Javelinmen"  1   0.5   3  0  requires factions { turks, } and hidden_resource turks
                recruit_pool "Turkish Javelinmen"  0   0.25   1  0  requires factions { turks, } and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Javelinmen"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks

                recruit_pool "Slav Levies"  1   0.5   4  0  requires factions { hungary, }
				
                recruit_pool "Scoutatoi"  1   0.5   2  0  requires factions { byzantium, }
		recruit_pool "Acritae"  1   0.25   2  0  requires factions { byzantium, } and hidden_resource byzantium
		recruit_pool "Acritae"  1   0.17   1  0  requires factions { byzantium, } and not hidden_resource byzantium
                recruit_pool "Acontistae" 1   0.25   2  0  requires factions { byzantium, }
                recruit_pool "Contaratoi"  1   0.25   2  0  requires factions { byzantium, } 
 
                recruit_pool "Peasants"  1   0.5   4  0  requires factions { france, hre, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.67   5  0  requires factions { france, hre, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.34   4  0  requires factions { milan, venice, papal_states, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.5   5  0  requires factions { milan, venice, papal_states, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.67   5  0  requires factions { portugal,  } 

                recruit_pool "Southern Peasants"  1   0.34   4  0  requires factions { sicily, knights_templar, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Southern Peasants"  1   0.5   5  0  requires factions { sicily, knights_templar, } and event_counter FULL_PLATE_ARMOR 1
				
				recruit_pool "Light Swordsmen"  1   0.13   1  0  requires factions { hre, spain, hungary, portugal, } and not event_counter first_watch 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.085   1  0  requires factions { hre, spain, hungary, portugal, } and not event_counter first_watch 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal
				recruit_pool "Light Swordsmen"  1   0.085   1  0  requires factions { poland, milan, venice, papal_states, } and not event_counter first_watch 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.065   1  0  requires factions { poland, milan, venice, papal_states, } and not event_counter first_watch 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal
				
				recruit_pool "Light Men at Arms"  1   0.13   1  0  requires factions { england, france, aragon, } and not event_counter first_watch 1 and hidden_resource england or hidden_resource france or hidden_resource aragon             
				recruit_pool "Light Men at Arms"  0   0.085   1  0  requires factions { england, france, aragon, } and not event_counter first_watch 1 and not hidden_resource england and not hidden_resource france and not hidden_resource aragon             

                recruit_pool "Norman Serjeants"  1   0.17   1  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Norman Serjeants"  0   0.13   1  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
                recruit_pool "Armored Sergeants"  1   0.17   1  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Armored Sergeants"  0   0.13   1  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
                
		recruit_pool "Armored Sergeants"  1   0.17   1  0  requires factions { hre, milan, venice, papal_states, sicily, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Armored Sergeants"  0   0.13   1  0  requires factions { hre, milan, venice, papal_states, sicily, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
                recruit_pool "Armored Sergeants"  1   0.13   1  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Armored Sergeants"  0   0.085   1  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
                
                recruit_pool "Pavise Spearmen"  1   0.17   1  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Pavise Spearmen"  0   0.13   1  0  requires factions { hungary, } and not hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Pavise Spearmen"  1   0.13   1  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Pavise Spearmen"  0   0.085   1  0  requires factions { hungary, } and not hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Billmen"  1   0.67   3  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Fyrd Spearmen"  1   0.25   2  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Billmen"  1   0.5   2  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Fyrd Spearmen"  1   0.34   3  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.25   2  0  requires factions { england, } and event_counter new_era_begins 1

                recruit_pool "Fyrd Spearmen"  1   0.5   4  0  requires factions { england, } and not event_counter new_era_begins 1
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { england, } and not event_counter new_era_begins 1

                recruit_pool "Almughavars"  1   0.25   1  0  requires factions { aragon, } and hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Almughavars"  0   0.17   1  0  requires factions { aragon, } and not hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1
				
                recruit_pool "ME Peasants"  1   0.5   5  0  requires factions { mongols, } 
                recruit_pool "ME Peasants"  1   0.34   4  0  requires factions { timurids, } 
                recruit_pool "Afghan Javelinmen"  1   0.25   3  0  requires factions { timurids, } and hidden_resource kwarezm 
                recruit_pool "Afghan Javelinmen"  0   0.17   2  0  requires factions { timurids, }  and hidden_resource turks
				
                recruit_pool "Urban Spear Militia"  1   0.25   1  1  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Baltic Spearmen"  1   0.25   1  0  requires factions { lithuania, } 
                recruit_pool "Spear Militia"  1   0.25   1  1  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, norway, } 
                recruit_pool "Spear Militia"  1   0.25   1  1  requires factions { teutonic_order, } 
                recruit_pool "EE Spear Militia"  1   0.25   1  1  requires factions { poland, russia, hungary, kievan_rus, cumans, } 
                recruit_pool "ME Spear Militia"  1   0.25   1  1  requires factions { moors, egypt, turks, kwarezm, } 
								
		recruit_pool "Templar Squires"  1  0.085  1  0 requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader		
		recruit_pool "Templar Squires"  1  0.0575  1  0 requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader		
		recruit_pool "Templar Sergeant" 1   0.13   2  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader
		recruit_pool "Templar Sergeant" 1   0.085   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader

		recruit_pool "Light Men at Arms" 1   0.085   1  0  requires factions { jerusalem, } 
		recruit_pool "Sergeant Spearmen" 1   0.17   2  0  requires factions { jerusalem, } 
		recruit_pool "Syrian Auxilliaries"  1  0.17  2  0 requires factions { jerusalem, } and hidden_resource crusader and event_counter council_of_troyes 1
		recruit_pool "Syrian Auxilliaries"  1  0.25  3  0 requires factions { jerusalem, } and hidden_resource crusader and not event_counter council_of_troyes 1

                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min large_town
            upgrades
            {
                barracks
            }
        }
        barracks castle requires factions { denmark, teutonic_order, jerusalem,  norway, hre, france, scotland, england, knights_templar, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 2
            capability
            {
                recruit_pool "Dismounted Khagan Druzhina"  1   0.17   1  0  requires factions { cumans, } and hidden_resource cumans                 
                recruit_pool "Dismounted Khagan Druzhina"  0   0.13   1  0  requires factions { cumans, } and not hidden_resource cumans
                recruit_pool "Dismounted Tartar Lancers"  1   0.5   4  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Dismounted Tartar Lancers"  0   0.25   2  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Dismounted Tartar Lancers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "EE Peasants"  1   0.67   5  0  requires factions { cumans, }
 
                recruit_pool "Dismounted Ghulams"  1   0.34   2  0  requires factions { kwarezm, } 
                recruit_pool "ME Heavy Spearmen"  1   0.34   2  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Armored Spearmen"  1   0.13   1  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm
                recruit_pool "Armored Spearmen"  1   0.085   1  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource kwarezm

                recruit_pool "Persian Spearmen"  1   0.13   2  0  requires factions { kwarezm, } and hidden_resource kwarezm
                recruit_pool "Persian Spearmen"  1   0.085   1  0  requires factions { kwarezm, } and hidden_resource kwarezm
                recruit_pool "Daylami Light Infantry"  1   0.5   2  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Daylami Light Infantry"  1   0.67   3  0  requires factions { kwarezm, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Afghan Javelinmen"  1   0.25   2  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource kwarezm
                recruit_pool "Afghan Javelinmen"  0   0.13   1  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Afghan Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, timurids, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource kwarezm
                recruit_pool "Afghan Javelinmen"  1   0.34   3  0  requires factions { kwarezm, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource kwarezm
                recruit_pool "Afghan Javelinmen"  0   0.17   1  0  requires factions { kwarezm, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Afghan Javelinmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, timurids, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource kwarezm

                recruit_pool "Norse Axemen"  1   0.25   1  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource norway
                recruit_pool "Norse Axemen"  0   0.17   1  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource denmark and not hidden_resource norway 
                recruit_pool "Norse Swordsmen"  1   0.34   2  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource norway
                recruit_pool "Norse Swordsmen"  0   0.25   1  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource denmark and not hidden_resource norway 
		recruit_pool "Norse Swordsmen"  1   0.25   1  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource norway 
		recruit_pool "Norse Swordsmen"  0   0.17   1  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource denmark and not hidden_resource norway 
                recruit_pool "Viking Raiders"  1   0.5   4  0  requires factions { denmark, } and hidden_resource denmark
                recruit_pool "Viking Raiders"  0   0.25   2  0  requires factions { denmark, } and hidden_resource norway or hidden_resource ireland
                recruit_pool "Viking Raiders"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark
                recruit_pool "Viking Raiders"  1   0.5   4  0  requires factions { norway, } and hidden_resource norway
                recruit_pool "Viking Raiders"  0   0.25   2  0  requires factions { norway, } and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Viking Raiders"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway
                recruit_pool "Peasants"  1   0.67   5  0  requires factions { denmark, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasants"  1   0.5   4  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Drengjar"  1   0.67   5  0  requires factions { norway, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Drengjar"  1   0.5   4  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Ducal Spearmen"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Ducal Spearmen"  0   0.17   1  0  requires factions { lithuania, } and not hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Ducal Spearmen"  1   0.17   1  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Ducal Spearmen"  0   0.13   1  0  requires factions { lithuania, } and not hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Ducal Axe"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania 
                recruit_pool "Ducal Axe"  0   0.17   1  0  requires factions { lithuania, } and not hidden_resource lithuania 

                recruit_pool "Late Lithuanian Spearman"  1   0.67   3  0  requires factions { lithuania, } and event_counter new_era_begins 1
                recruit_pool "Lithuanian Skirmishers"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter new_era_begins 1
                recruit_pool "Lithuanian Skirmishers"  0   0.13   1  0  requires factions { lithuania, } and event_counter new_era_begins 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Skirmishers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter new_era_begins 1
                recruit_pool "Lithuanian Axemen"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter new_era_begins 1
                recruit_pool "Lithuanian Axemen"  0   0.13   1  0  requires factions { lithuania, } and event_counter new_era_begins 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Axemen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter new_era_begins 1
 
                recruit_pool "Late Lithuanian Spearman"  1   0.5   2  0  requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Lithuanian Skirmishers"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Lithuanian Skirmishers"  0   0.13   1  0  requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Skirmishers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1 
                recruit_pool "Lithuanian Axemen"  0   0.17   1  0  requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1  and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Axemen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1 

                recruit_pool "Lithuanian Skirmishers"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Lithuanian Skirmishers"  0   0.17   1  0  requires factions { lithuania, } and not event_counter HALF_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Skirmishers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  0   0.17   1  0  requires factions { lithuania, } and not event_counter HALF_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Axemen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1

				recruit_pool "Sword Brethren"  1   0.085   1  0  requires factions { teutonic_order, } 
				recruit_pool "Prussian Infantry"  1   0.17   2  0  requires factions { teutonic_order, } and hidden_resource prussia
				recruit_pool "Prussian Infantry"  0   0.13   1  0  requires factions { teutonic_order, } and not hidden_resource prussia
                recruit_pool "Order Spearmen"  1   0.17   2  0  requires factions { teutonic_order, }
				recruit_pool "Prussian Axemen"  1   0.34   4  0  requires factions { teutonic_order, } and hidden_resource prussia
				recruit_pool "Prussian Axemen"  0   0.17   2  0  requires factions { teutonic_order, } and hidden_resource hre
				recruit_pool "Prussian Axemen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia
				recruit_pool "Peasants"  1   0.25   3  0  requires factions { teutonic_order, } 
 								
                recruit_pool "Sword and Buckler Men"  1   0.5   2  0  requires factions { spain, aragon, sicily, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Southern Peasants"  1   0.5   5  0  requires factions { sicily, } and event_counter first_watch 1
                recruit_pool "Southern Peasants"  1   0.34   4  0  requires factions { sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Southern Peasants"  1   0.25   3  0  requires factions { sicily, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Javelinmen"  1   0.67   4  0  requires factions { aragon, } and hidden_resource aragon
                recruit_pool "Javelinmen"  0   0.34   2  0  requires factions { aragon, } and hidden_resource portugal or hidden_resource spain
                recruit_pool "Javelinmen"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { aragon, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { aragon, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Lusitanian Javelinmen"  1   0.5   3  0  requires factions { spain, } and hidden_resource spain
                recruit_pool "Lusitanian Javelinmen"  0   0.25   1  0  requires factions { spain, } and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Lusitanian Javelinmen"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain
                recruit_pool "Javelinmen"  1   0.5   3  0  requires factions { spain, } and hidden_resource spain
                recruit_pool "Javelinmen"  0   0.25   1  0  requires factions { spain, } and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Javelinmen"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain
                recruit_pool "Peasants"  1   0.25   2  0  requires factions { spain, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Dismounted Italian MAA"  1   0.13   1  0  requires factions { milan, papal_states, venice, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource milan or hidden_resource papal_states or hidden_resource venice or hidden_resource sicily
                recruit_pool "Dismounted Italian MAA"  0   0.085   1  0  requires factions { milan, papal_states, venice, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource milan and not hidden_resource papal_states and not hidden_resource venice and not hidden_resource sicily

                recruit_pool "Voulgier"  1   0.67   3  0  requires factions { milan, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Voulgier"  1   0.5   3  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.5   4  0  requires factions { france, } and event_counter first_watch 1
                recruit_pool "Peasants"  1   0.34   3   0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Peasants"  1   0.34   4  0  requires factions { milan, } and event_counter first_watch 1
                recruit_pool "Peasants"  1   0.25   3   0  requires factions { milan, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1

                recruit_pool "Voulgier"  1   0.5   2  0  requires factions { milan, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Voulgier"  1   0.34   2  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.25   2  0  requires factions { france, } and not event_counter new_era_begins 1
                recruit_pool "Peasants"  1   0.13   1  0  requires factions { milan, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.17   2  0  requires factions { milan, } and not event_counter new_era_begins 1

                recruit_pool "Venetian Heavy Infantry"  1   0.67   3  0  requires factions { venice, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.34   4  0  requires factions { venice, } and event_counter first_watch 1
                recruit_pool "Peasants"  1   0.25   3  0  requires factions { venice, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1

                recruit_pool "Venetian Heavy Infantry"  1   0.5   2  0  requires factions { venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.13   1  0  requires factions { venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.17   2  0  requires factions { venice, } and not event_counter new_era_begins 1

                recruit_pool "Dismounted Christian Guard"  1   0.085   1  0  requires factions { moors, } 
                recruit_pool "ME Heavy Spearmen"  1   0.34   2  0  requires factions { moors, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lamtuna Spearmen"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors
                recruit_pool "Lamtuna Spearmen"  0   0.17   1  0  requires factions { moors, } and hidden_resource egypt or hidden_resource spain
                recruit_pool "Lamtuna Spearmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors
                recruit_pool "Desert Raiders"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors
                recruit_pool "Desert Raiders"  0   0.17   1  0  requires factions { moors, } and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Raiders"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors
		recruit_pool "Nubian Spearmen"  1   0.67   2  0  requires factions { moors, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Arab Cavalry"  1   0.5   2  0  requires factions { moors, }
 
                recruit_pool "ME Heavy Spearmen"  1   0.5   2  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Nubian Spearmen"  1   0.5   2  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1

		recruit_pool "Nubian Spearmen"  1   0.67   3  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Arab Cavalry"  1   0.67   3  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1

		recruit_pool "Nubian Spearmen"  1   0.5   2  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Ghulams"  1   0.5   2  0  requires factions { egypt, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Desert Raiders"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt 
                recruit_pool "Desert Raiders"  0   0.13   1  0  requires factions { egypt, }  and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Raiders"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt 
                recruit_pool "Kurdish Javelinmen"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kurdish Javelinmen"  0   0.13   1  0  requires factions { egypt, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Kurdish Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kurdish Javelinmen"  1   0.17   1  0  requires factions { egypt, } and hidden_resource egypt and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kurdish Javelinmen"  0   0.085   1 0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Kurdish Javelinmen"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Pavise Spearmen"  1   0.25   2  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Pavise Spearmen"  0   0.17   1  0  requires factions { hungary, } and not hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Pavise Spearmen"  1   0.17   2  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Pavise Spearmen"  0   0.13   1  0  requires factions { hungary, } and not hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
               recruit_pool "Naffatun"  1   0.13   1  0  requires factions { mongols, timurids, }
 
		recruit_pool "Heavy Billmen"  1   0.67   3  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Billmen"  1   0.84   4  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Fyrd Spearmen"  1   0.25   2  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
 
		recruit_pool "Heavy Billmen"  1   0.5   2  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Billmen"  1   0.67   3  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Fyrd Spearmen"  1   0.25   2  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Fyrd Spearmen"  1   0.67   5  0  requires factions { england, } and not event_counter new_era_begins 1
                recruit_pool "Peasants"  1   0.25   2  0  requires factions { england, } and not event_counter new_era_begins 1


                recruit_pool "Norman Serjeants"  1   0.25   2  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Norman Serjeants"  0   0.17   1  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england

                recruit_pool "Armored Sergeants"  1   0.25   2  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Armored Sergeants"  0   0.17   1  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
               
		recruit_pool "Armored Sergeants"  1   0.25   2  0  requires factions { hre, milan, venice, papal_states, sicily, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Armored Sergeants"  0   0.17   1  0  requires factions { hre, milan, venice, papal_states, sicily, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
                recruit_pool "Armored Sergeants"  1   0.17   2  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Armored Sergeants"  0   0.13   1  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
                
				recruit_pool "Armored Sergeants"  1   0.17   1  0  requires factions { hre, milan, venice, papal_states, sicily, england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
				recruit_pool "Armored Sergeants"  0   0.13   1  0  requires factions { hre, milan, venice, papal_states, sicily, england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
				recruit_pool "Armored Sergeants"  1   0.13   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
				recruit_pool "Armored Sergeants"  0   0.085   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
				
                recruit_pool "Scoutatoi Swordsmen"  1   0.5   2  0  requires factions { byzantium, }
                recruit_pool "Scoutatoi"  1   0.67   3  0  requires factions { byzantium, }
		recruit_pool "Acritae"  1   0.34   3  0  requires factions { byzantium, } and hidden_resource byzantium
		recruit_pool "Acritae"  1   0.25   2  0  requires factions { byzantium, } and not hidden_resource byzantium
                recruit_pool "Acontistae" 1   0.17   1  0  requires factions { byzantium, }
                recruit_pool "Contaratoi"  1   0.17   1  0  requires factions { byzantium, } 

                recruit_pool "Almughavars"  1   0.34   2  0  requires factions { aragon, } and hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Almughavars"  0   0.25   1  0  requires factions { aragon, } and not hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1
				
				recruit_pool "Dismounted Druzhina"  1   0.34   2  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Dismounted Druzhina"  0   0.25   1  0  requires factions { russia, } and not hidden_resource russia
                recruit_pool "Dismounted Druzhina"  1   0.34   2  0  requires factions { kievan_rus, } and hidden_resource russia
                recruit_pool "Dismounted Druzhina"  0   0.25   1  0  requires factions { kievan_rus, } and not hidden_resource russia
				
				recruit_pool "Berdiche Axemen"  1   0.67   2  0  requires factions { russia, }
                recruit_pool "Smolensk Infantry"  1   0.34   3  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Smolensk Infantry"  0   0.17   1  0  requires factions { russia, } and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Smolensk Infantry"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia
                recruit_pool "Woodsmen"  1   0.34   3  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Woodsmen"  0   0.17   1  0  requires factions { russia, } and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia
				
				recruit_pool "Slavic Javelinmen"  1   0.5   4  0  requires factions { kievan_rus, } and hidden_resource kievan_rus 
                recruit_pool "Slavic Javelinmen"  0   0.25   2  0  requires factions { kievan_rus, }  and hidden_resource russia or hidden_resource cumans
                recruit_pool "Slavic Javelinmen"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus 
                recruit_pool "Smolensk Infantry"  1   0.34   3  0  requires factions { kievan_rus, } and hidden_resource kievan_rus
                recruit_pool "Smolensk Infantry"  1   0.17   1  0  requires factions { kievan_rus, } and hidden_resource kievan_rus
                recruit_pool "Smolensk Infantry"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus
                recruit_pool "EE Peasants"  1   0.25   2  0  requires factions { kievan_rus, } 
 
                recruit_pool "Smolensk Infantry"  1   0.34   4  0  requires factions { poland, } and hidden_resource poland
                recruit_pool "Smolensk Infantry"  0   0.17   2  0  requires factions { poland, } and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Smolensk Infantry"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland
                recruit_pool "Woodsmen"  1   0.34   4  0  requires factions { poland, } and hidden_resource poland
                recruit_pool "Woodsmen"  0   0.17   2  0  requires factions { poland, } and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland
                recruit_pool "EE Peasants"  1   0.13   1  0  requires factions { poland, } and event_counter FULL_PLATE_ARMOR 1
                
                recruit_pool "Croat Axemen"  1   0.5   4  0  requires factions { hungary, } and hidden_resource hungary
                recruit_pool "Croat Axemen"  0   0.25   2  0  requires factions { hungary, } and hidden_resource poland
                recruit_pool "Croat Axemen"  1   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary

                recruit_pool "Highland Pikemen"  1   0.67   4  0  requires factions { scotland, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highland Pikemen"  0   0.34   2  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Pikemen"  0   0.34   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  1   0.5   3  0  requires factions { scotland, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  0   0.25   1  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.25   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Highland Pikemen"  1   0.5   3  0  requires factions { scotland, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highland Pikemen"  0   0.25   1  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Pikemen"  0   0.25   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  1   0.67   4  0  requires factions { scotland, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  0   0.34   2  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.34   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Highland Rabble"  1   0.34   2  0  requires factions { scotland, } and event_counter new_era_begins 1 

                recruit_pool "Highlanders"  1   0.67   4  0  requires factions { scotland, } and hidden_resource scotland and not event_counter new_era_begins 1
                recruit_pool "Highlanders"  0   0.34   2  0  requires factions { scotland, } and not event_counter new_era_begins 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.34   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and not event_counter new_era_begins 1
                recruit_pool "Highland Rabble"  1   0.84   5  0  requires factions { scotland, } and not event_counter new_era_begins 1

				recruit_pool "Sergeant Spearmen"  1   0.34   3  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.25   2  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  1   0.25   2  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.17   1  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  1   0.17   1  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.13   1  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
				
                recruit_pool "Lusitanian Javelinmen"  1   0.67   4  0  requires factions { portugal, } and hidden_resource portugal
                recruit_pool "Lusitanian Javelinmen"  0   0.34   2  0  requires factions { portugal, } and hidden_resource spain or hidden_resource aragon
                recruit_pool "Lusitanian Javelinmen"  0   0.34   2  0  requires factions { venice, scotland,  england, france, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource portugal
                recruit_pool "Slav Levies"  1   0.5   4  0  requires factions { hungary, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Slav Levies"  1   0.34   3  0  requires factions { hungary, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Heavy Spearmen"  1   0.5   2  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Azabs"  1   0.5   3  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1 
		recruit_pool "Azabs"  1   0.84   5  0  requires factions { turks, } and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Turkish Javelinmen"  1   0.67   4  0  requires factions { turks, } and hidden_resource turks
                recruit_pool "Turkish Javelinmen"  0   0.34   2  0  requires factions { turks, } and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Javelinmen"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks
 
                recruit_pool "Peasants"  1   0.84   6  0  requires factions { papal_states, } and event_counter first_watch 1
                recruit_pool "Peasants"  1   0.67   5  0  requires factions { papal_states, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Peasants"  1   0.25   2  0  requires factions { papal_states, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Peasants"  1   0.84   6  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.67   5  0  requires factions { portugal, } and not event_counter FULL_PLATE_ARMOR 1
		
				recruit_pool "Light Swordsmen"  1   0.17   2  0  requires factions { hre, spain, hungary, portugal, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.13   1  0  requires factions { hre, spain, hungary, portugal, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal
				recruit_pool "Light Swordsmen"  1   0.13   2  0  requires factions { poland, milan, venice, papal_states, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.085   1  0  requires factions { poland, milan, venice, papal_states, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal
				
				recruit_pool "Light Men at Arms"  1   0.17   2  0  requires factions { england, france, aragon, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource france or hidden_resource aragon             
				recruit_pool "Light Men at Arms"  0   0.13   1  0  requires factions { england, france, aragon, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource england and not hidden_resource france and not hidden_resource aragon             

				recruit_pool "Light Swordsmen"  1   0.13   1  0  requires factions { hre, spain, hungary, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.085   1  0  requires factions { hre, spain, hungary, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal
				recruit_pool "Light Swordsmen"  1   0.085   1  0  requires factions { poland, milan, venice, papal_states, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.065   1  0  requires factions { poland, milan, venice, papal_states, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal
				
				recruit_pool "Light Men at Arms"  1   0.13   1  0  requires factions { england, france, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource england or hidden_resource france or hidden_resource aragon             
				recruit_pool "Light Men at Arms"  0   0.085   1  0  requires factions { england, france, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource england and not hidden_resource france and not hidden_resource aragon             
		
                recruit_pool "Highland Nobles"  1   0.13   1  0  requires factions { scotland, } and hidden_resource scotland
                recruit_pool "Highland Nobles"  0   0.085   1  0  requires factions { scotland, } and not hidden_resource scotland

                recruit_pool "Zweihander"  1   0.67   3  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.5   4  0  requires factions { hre, } and event_counter first_watch 1
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1

                recruit_pool "Zweihander"  1   0.5   2  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.25   2  0  requires factions { hre, } and not event_counter new_era_begins 1

				;************************************************** do from here down for mongols
                recruit_pool "ME Peasants"  1   0.67   6  0  requires factions { mongols, } 
                recruit_pool "ME Peasants"  1   0.5   5  0  requires factions { timurids, } 
                recruit_pool "Afghan Javelinmen"  1   0.34   4  0  requires factions { timurids, } and hidden_resource kwarezm 
                recruit_pool "Afghan Javelinmen"  0   0.25   3  0  requires factions { timurids, }  and hidden_resource turks
		recruit_pool "Disamounted Turhagut"  1   0.13   1  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks 
		recruit_pool "Disamounted Turhagut"  0   0.085   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks 
				
                recruit_pool "Urban Spear Militia"  1   0.25   1  1  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Baltic Spearmen"  1   0.25   1  0  requires factions { lithuania, } 
                recruit_pool "Spear Militia"  1   0.25   1  1  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, norway, } 
                recruit_pool "Spear Militia"  1   0.25   1  1  requires factions { teutonic_order, } 
                recruit_pool "EE Spear Militia"  1   0.25   1  1  requires factions { poland, russia, hungary, kievan_rus, cumans, } 
                recruit_pool "ME Spear Militia"  1   0.25   1  1  requires factions { moors, egypt, turks, kwarezm, } 

                recruit_pool "Noble Spearmen"  1   0.085   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader
                recruit_pool "Noble Spearmen"  1   0.0575   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader
		recruit_pool "Templar Zweihander"  1   0.085   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader
		recruit_pool "Templar Zweihander"  1   0.0575   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader
		recruit_pool "Templar Squires"  1  0.13  2  0 requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader 		
		recruit_pool "Templar Squires"  1  0.085  1  0 requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader 		
		recruit_pool "Templar Sergeant" 1   0.13   2  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and event_counter FULL_PLATE_ARMOR 1 and hidden_resource crusader
		recruit_pool "Templar Sergeant" 1   0.085   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource crusader
		recruit_pool "Templar Sergeant" 1   0.17   3  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Templar Sergeant" 1   0.13   2  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader and not event_counter FULL_PLATE_ARMOR 1

		recruit_pool "Light Men at Arms" 1   0.085   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 
		recruit_pool "Voulgier" 1   0.34   2  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Sergeant Spearmen" 1   0.13   1  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Sergeant Spearmen" 1   0.17   2  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Syrian Auxilliaries"  1  0.17  2  0 requires factions { jerusalem, } and hidden_resource crusader and event_counter council_of_troyes 1

		recruit_pool "Light Men at Arms" 1   0.13   2  0  requires factions { jerusalem, } and not event_counter council_of_troyes 1
		recruit_pool "Sergeant Spearmen" 1   0.25   3  0  requires factions { jerusalem, } and not event_counter council_of_troyes 1
		recruit_pool "Syrian Auxilliaries"  1  0.25  3  0 requires factions { jerusalem, } and hidden_resource crusader and not event_counter council_of_troyes 1

                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  6 
            cost  4000 
            settlement_min city
            upgrades
            {
                armoury
            }
        }
        armoury castle requires factions { denmark, teutonic_order, jerusalem, norway, hre, france, scotland, england, knights_templar, poland, turks, egypt, moors, kwarezm, hungary, greek, sicily, venice, portugal, spain, aragon, milan, kievan_rus, lithuania, slave, } 
        {
            convert_to 3
            capability
            {
                recruit_pool "Dismounted Khagan Druzhina"  1   0.17   1  0  requires factions { cumans, } and hidden_resource cumans                 
                recruit_pool "Dismounted Khagan Druzhina"  0   0.13   1  0  requires factions { cumans, } and not hidden_resource cumans
                recruit_pool "Dismounted Tartar Lancers"  1   0.5   4  0  requires factions { cumans, } and hidden_resource cumans
                recruit_pool "Dismounted Tartar Lancers"  0   0.25   2  0  requires factions { cumans, } and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Dismounted Tartar Lancers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans
                recruit_pool "EE Peasants"  1   0.67   5  0  requires factions { cumans, }

                recruit_pool "Dismounted Imperial Guard"  1   0.34   2  0  requires factions { kwarezm, } and event_counter HALF_PLATE_ARMOR 1

                recruit_pool "Dismounted Ghulams"  1   0.5   3  0  requires factions { kwarezm, } and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Dismounted Ghulams"  1   0.34   2  0  requires factions { kwarezm, } and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "ME Heavy Spearmen"  1   0.34   2  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Armored Spearmen"  1   0.17   2  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm
                recruit_pool "Armored Spearmen"  1   0.13   1  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource kwarezm

                recruit_pool "Persian Spearmen"  1   0.25   3  0  requires factions { kwarezm, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Persian Spearmen"  1   0.17   2  0  requires factions { kwarezm, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Persian Spearmen"  1   0.17   2  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Persian Spearmen"  1   0.13   1  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Persian Spearmen"  1   0.13   1  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1 and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Persian Spearmen"  1   0.085   1  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1 and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Daylami Light Infantry"  1   0.5   2  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Daylami Light Infantry"  1   0.67   3  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Afghan Javelinmen"  1   0.25   2  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm
                recruit_pool "Afghan Javelinmen"  0   0.13   1  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Afghan Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, timurids, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm
                recruit_pool "Afghan Javelinmen"  1   0.34   3  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm
                recruit_pool "Afghan Javelinmen"  0   0.17   1  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Afghan Javelinmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, timurids, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm

                recruit_pool "Ducal Spearmen"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Ducal Spearmen"  0   0.25   2  0  requires factions { lithuania, } and not hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Ducal Spearmen"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Ducal Spearmen"  0   0.17   1  0  requires factions { lithuania, } and not hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Ducal Axe"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Ducal Axe"  0   0.25   2  0  requires factions { lithuania, } and not hidden_resource lithuania
				
                recruit_pool "L Regular Infantry"  1   0.67   3  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Late Lithuanian Spearman"  1   0.84   4  0  requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
				
                recruit_pool "L Regular Infantry"  1   0.5   2  0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Late Lithuanian Spearman"  1   0.67   3  0  requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Skirmishers"  1   0.17   1  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Skirmishers"  0   0.085   1 0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Skirmishers"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Skirmishers"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1	and not event_counter new_era_begins 1
                recruit_pool "Lithuanian Skirmishers"  0   0.13   1  0  requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1	and not event_counter new_era_begins 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Skirmishers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1	and not event_counter new_era_begins 1
                recruit_pool "Lithuanian Skirmishers"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Lithuanian Skirmishers"  0   0.17   1  0  requires factions { lithuania, } and not event_counter HALF_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Skirmishers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.17   1  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  0   0.085   1 0  requires factions { lithuania, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Axemen"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1 
                recruit_pool "Lithuanian Axemen"  0   0.13   1  0  requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1  and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Axemen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1 
                recruit_pool "Lithuanian Axemen"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Lithuanian Axemen"  0   0.17   1  0  requires factions { lithuania, } and not event_counter HALF_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Axemen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and not event_counter HALF_PLATE_ARMOR 1

                recruit_pool "Scoutatoi Swordsmen"  1   0.67   3  0  requires factions { byzantium, }
                recruit_pool "Scoutatoi"  1   0.84   4  0  requires factions { byzantium, }
		recruit_pool "Acritae"  1   0.5   4  0  requires factions { byzantium, } and hidden_resource byzantium
		recruit_pool "Acritae"  1   0.34   3  0  requires factions { byzantium, } and not hidden_resource byzantium
                recruit_pool "Contaratoi"  1   0.17   1  0  requires factions { byzantium, } 

				recruit_pool "Halberd MAA"  1   0.13   1  0  requires factions { aragon, spain, milan, venice, sicily, papal_states, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource sicily or hidden_resource papal_states ;Halberd MAA
				recruit_pool "Halberd MAA"  0   0.085   1  0  requires factions { aragon, spain, milan, venice, sicily, papal_states, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource sicily and not hidden_resource papal_states ; Halberd MAA
				recruit_pool "Halberd MAA"  1   0.13   1  0  requires factions { france, england, hungary, poland, portugal, hre, teutonic_order, }  and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource sicily or hidden_resource papal_states ;Halberd MAA
				recruit_pool "Halberd MAA"  0   0.085   1  0  requires factions { france, england, hungary, poland, portugal, hre, teutonic_order, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource sicily and not hidden_resource papal_states ;Halberd MAA
				recruit_pool "Halberd MAA"  1   0.17   1  0  requires factions { denmark, norway, }  and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1 and hidden_resource aragon or hidden_resource france or hidden_resource denmark or hidden_resource spain or hidden_resource norway or hidden_resource england or hidden_resource hungary or hidden_resource poland or hidden_resource portugal or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource sicily or hidden_resource papal_states ;Halberd MAA
				recruit_pool "Halberd MAA"  0   0.13   1  0  requires factions { denmark, norway, }  and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1 and not hidden_resource aragon and not hidden_resource france and not hidden_resource denmark and not hidden_resource spain and not hidden_resource norway and not hidden_resource england and not hidden_resource hungary and not hidden_resource poland and not hidden_resource portugal and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource sicily and not hidden_resource papal_states ;Halberd MAA

				recruit_pool "Halberdiers"  1   0.5   2  0  requires factions { aragon, spain, milan, venice, sicily, papal_states, } and event_counter pike_and_shot 1  
				recruit_pool "Halberdiers"  1   0.5   2  0  requires factions { england, hungary, poland, portugal, hre, teutonic_order, } and event_counter ADV_MATCHLOCK 1
				recruit_pool "Halberdiers"  1   0.34   2  0  requires factions { france, } and event_counter ADV_MATCHLOCK 1
				recruit_pool "Halberdiers"  1   0.67   2  0  requires factions { denmark, norway, } and event_counter ADV_MATCHLOCK 1 ;Halberd MAA

				recruit_pool "Sword Brethren"  1   0.13   2  0  requires factions { teutonic_order, } 
				recruit_pool "Prussian Infantry"  1   0.25   3  0  requires factions { teutonic_order, } and hidden_resource prussia
				recruit_pool "Prussian Infantry"  0   0.17   2  0  requires factions { teutonic_order, } and not hidden_resource prussia
                recruit_pool "Order Spearmen"  1   0.17   2  0  requires factions { teutonic_order, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Order Spearmen"  1   0.25   3  0  requires factions { teutonic_order, } and not event_counter ADV_MATCHLOCK 1
				recruit_pool "Prussian Axemen"  1   0.5   5  0  requires factions { teutonic_order, } and hidden_resource prussia
				recruit_pool "Prussian Axemen"  0   0.25   2  0  requires factions { teutonic_order, } and hidden_resource hre
				recruit_pool "Prussian Axemen"  0   0.25   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, mongols, slave, timurids, } and hidden_resource prussia
				recruit_pool "Peasants"  1   0.13   1  0  requires factions { teutonic_order, } and not event_counter ADV_MATCHLOCK 1 

                recruit_pool "Southern Peasants"  1   0.5   5  0  requires factions { knights_templar, } and event_counter first_watch 1
                recruit_pool "Southern Peasants"  1   0.34   4  0  requires factions { knights_templar, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Southern Peasants"  1   0.25   3  0  requires factions { knights_templar, } and not event_counter FULL_PLATE_ARMOR 1
	
                recruit_pool "Dismounted Italian MAA"  1   0.17   2  0  requires factions { milan, papal_states, venice, sicily, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource milan or hidden_resource papal_states or hidden_resource venice or hidden_resource sicily
                recruit_pool "Dismounted Italian MAA"  0   0.13   1  0  requires factions { milan, papal_states, venice, sicily, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource milan and not hidden_resource papal_states and not hidden_resource venice and not hidden_resource sicily
                recruit_pool "Dismounted Italian MAA"  1   0.17   2  0  requires factions { milan, papal_states, venice, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource milan or hidden_resource papal_states or hidden_resource venice or hidden_resource sicily
                recruit_pool "Dismounted Italian MAA"  0   0.17   1  0  requires factions { milan, papal_states, venice, sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource milan and not hidden_resource papal_states and not hidden_resource venice and not hidden_resource sicily
                recruit_pool "Dismounted Italian MAA"  1   0.13   1  0  requires factions { milan, papal_states, venice, sicily, } and event_counter first_watch 1 and not event_counter the_flintlock 1 and hidden_resource milan or hidden_resource papal_states or hidden_resource venice or hidden_resource sicily
                recruit_pool "Dismounted Italian MAA"  0   0.085   1  0  requires factions { milan, papal_states, venice, sicily, } and event_counter first_watch 1 and not event_counter the_flintlock 1 and not hidden_resource milan and not hidden_resource papal_states and not hidden_resource venice and not hidden_resource sicily
				 
                recruit_pool "Venetian Heavy Infantry"  1   1   5  0  requires factions { venice, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.17   2  0  requires factions { venice, } and event_counter pike_and_shot 1
                recruit_pool "Peasants"  1   0.25   3  0  requires factions { venice, } and event_counter first_watch 1 and not event_counter pike_and_shot 1

                recruit_pool "Venetian Heavy Infantry"  1   0.67   3  0  requires factions { venice, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Peasants"  1   0.34   4  0  requires factions { papal_states, } and event_counter pike_and_shot 1
                recruit_pool "Peasants"  1   0.5   5  0  requires factions { papal_states, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Peasants"  1   0.17   2  0  requires factions { papal_states, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1

                recruit_pool "Voulgier"  1   1   5  0  requires factions { milan, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.13   1  0  requires factions { milan, } and event_counter pike_and_shot 1
                recruit_pool "Peasants"  1   0.25   3  0  requires factions { milan, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Voulgier"  1   0.67   3  0  requires factions { milan, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
 
                recruit_pool "Dismounted Armats"  1   0.13   1  0  requires factions { spain, aragon, england, poland, france, hungary, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource spain or hidden_resource aragon or hidden_resource england or hidden_resource poland or hidden_resource france or hidden_resource hungary or hidden_resource portugal or hidden_resource denmark or hidden_resource norway or hidden_resource portugal
                recruit_pool "Dismounted Armats"  0   0.085   1  0  requires factions { spain, aragon, england, poland, france, hungary, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource spain and not hidden_resource aragon and not hidden_resource england and not hidden_resource poland and not hidden_resource france and not hidden_resource hungary and not hidden_resource portugal and not hidden_resource denmark and not hidden_resource norway and not hidden_resource portugal
                recruit_pool "Dismounted Armats"  1   0.13   1  0  requires factions { spain, aragon, england, poland, france, hungary, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource spain or hidden_resource aragon or hidden_resource england or hidden_resource poland or hidden_resource france or hidden_resource hungary or hidden_resource portugal or hidden_resource denmark or hidden_resource norway or hidden_resource portugal
                recruit_pool "Dismounted Armats"  0   0.085   1  0  requires factions { spain, aragon, england, poland, france, hungary, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource spain and not hidden_resource aragon and not hidden_resource england and not hidden_resource poland and not hidden_resource france and not hidden_resource hungary and not hidden_resource portugal and not hidden_resource denmark and not hidden_resource norway and not hidden_resource portugal
                recruit_pool "Dismounted Armats"  1   0.13   1  0  requires factions { spain, aragon, england, poland, france, hungary, portugal, } and event_counter first_watch 1 and not event_counter the_flintlock 1 and hidden_resource spain or hidden_resource aragon or hidden_resource england or hidden_resource poland or hidden_resource france or hidden_resource hungary or hidden_resource portugal or hidden_resource denmark or hidden_resource norway or hidden_resource portugal
                recruit_pool "Dismounted Armats"  0   0.085   1  0  requires factions { spain, aragon, england, poland, france, hungary, portugal, } and event_counter first_watch 1 and not event_counter the_flintlock 1 and not hidden_resource spain and not hidden_resource aragon and not hidden_resource england and not hidden_resource poland and not hidden_resource france and not hidden_resource hungary and not hidden_resource portugal and not hidden_resource denmark and not hidden_resource norway and not hidden_resource portugal

                recruit_pool "Dismounted Armats"  1   0.17   1  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource spain or hidden_resource aragon or hidden_resource england or hidden_resource poland or hidden_resource france or hidden_resource hungary or hidden_resource portugal or hidden_resource denmark or hidden_resource norway or hidden_resource portugal
                recruit_pool "Dismounted Armats"  0   0.13   1  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource spain and not hidden_resource aragon and not hidden_resource england and not hidden_resource poland and not hidden_resource france and not hidden_resource hungary and not hidden_resource portugal and not hidden_resource denmark and not hidden_resource norway and not hidden_resource portugal
                recruit_pool "Dismounted Armats"  1   0.17   1  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource spain or hidden_resource aragon or hidden_resource england or hidden_resource poland or hidden_resource france or hidden_resource hungary or hidden_resource portugal or hidden_resource denmark or hidden_resource norway or hidden_resource portugal
                recruit_pool "Dismounted Armats"  0   0.13   1  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource spain and not hidden_resource aragon and not hidden_resource england and not hidden_resource poland and not hidden_resource france and not hidden_resource hungary and not hidden_resource portugal and not hidden_resource denmark and not hidden_resource norway and not hidden_resource portugal
                recruit_pool "Dismounted Armats"  1   0.17   1  0  requires factions { denmark, norway, } and event_counter first_watch 1 and not event_counter the_flintlock 1 and hidden_resource spain or hidden_resource aragon or hidden_resource england or hidden_resource poland or hidden_resource france or hidden_resource hungary or hidden_resource portugal or hidden_resource denmark or hidden_resource norway or hidden_resource portugal
                recruit_pool "Dismounted Armats"  0   0.13   1  0  requires factions { denmark, norway, } and event_counter first_watch 1 and not event_counter the_flintlock 1 and not hidden_resource spain and not hidden_resource aragon and not hidden_resource england and not hidden_resource poland and not hidden_resource france and not hidden_resource hungary and not hidden_resource portugal and not hidden_resource denmark and not hidden_resource norway and not hidden_resource portugal
                
		recruit_pool "Sword and Buckler Men"  1   0.5   2  0  requires factions { spain, aragon, } and event_counter pike_and_shot 1
		recruit_pool "Sword and Buckler Men"  1   0.84   4  0  requires factions { spain, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter pike_and_shot 1
                recruit_pool "Almughavars"  1   0.5   3  0  requires factions { aragon, } and hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Almughavars"  0   0.34   2  0  requires factions { aragon, } and not hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Javelinmen"  1   0.84   5  0  requires factions { aragon, } and hidden_resource aragon and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Javelinmen"  0   0.42   2  0  requires factions { aragon, } and not event_counter HEAVY_MAIL_ARMOR 1  and hidden_resource portugal or hidden_resource spain
                recruit_pool "Javelinmen"  0   0.42   3  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Javelinmen"  1   0.84   5  0  requires factions { aragon, } and hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Javelinmen"  0   0.42   2  0  requires factions { aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Javelinmen"  0   0.42   3  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Javelinmen"  1   0.5   3  0  requires factions { aragon, } and hidden_resource aragon and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Javelinmen"  0   0.25   1  0  requires factions { aragon, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Javelinmen"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { aragon, } and event_counter first_watch 1 
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { aragon, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { aragon, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Peasants"  1   0.25   2  0  requires factions { aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 
                recruit_pool "Peasants"  1   0.5   4  0  requires factions { aragon, } and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Lusitanian Javelinmen"  1   0.67   4  0  requires factions { spain, } and hidden_resource spain and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lusitanian Javelinmen"  0   0.34   2  0  requires factions { spain, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Lusitanian Javelinmen"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lusitanian Javelinmen"  1   0.5   3  0  requires factions { spain, } and hidden_resource spain and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lusitanian Javelinmen"  0   0.25   1  0  requires factions { spain, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Lusitanian Javelinmen"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Javelinmen"  1   0.67   4  0  requires factions { spain, } and hidden_resource spain and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Javelinmen"  0   0.34   2  0  requires factions { spain, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Javelinmen"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Javelinmen"  1   0.34   2  0  requires factions { spain, } and hidden_resource spain and event_counter first_watch 1
                recruit_pool "Javelinmen"  0   0.17   1  0  requires factions { spain, } and event_counter first_watch 1 and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Javelinmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain and event_counter first_watch 1
                recruit_pool "Javelinmen"  1   0.25   1  0  requires factions { spain, } and hidden_resource spain and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Javelinmen"  0   0.13   1 0  requires factions { spain, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource portugal or hidden_resource aragon
                recruit_pool "Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource spain and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { spain, } and not event_counter HALF_PLATE_ARMOR 1 
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { spain, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 

                recruit_pool "Sword and Buckler Men"  1   0.84   4  0  requires factions { sicily, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Southern Peasants"  1   0.25   3  0  requires factions { sicily, } and event_counter pike_and_shot 1
                recruit_pool "Southern Peasants"  1   0.5   5  0  requires factions { sicily, } and event_counter first_watch 1 and not event_counter pike_and_shot 1
                recruit_pool "Southern Peasants"  1   0.17   2  0  requires factions { sicily, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Southern Peasants"  1   0.13   1  0  requires factions { sicily, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Southern Peasants"  1   0.13   1  0  requires factions { sicily, } and event_counter HALF_PLATE_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Southern Peasants"  1   0.17   2  0  requires factions { sicily, } and not event_counter HALF_PLATE_ARMOR 1

                recruit_pool "Dismounted Italian MAA"  1   0.13   1  0  requires factions { hre, } and hidden_resource hre and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Italian MAA"  0   0.1   1  0  requires factions { hre, } and not hidden_resource hre and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Italian MAA"  1   0.13   1  0  requires factions { hre, } and hidden_resource hre and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted Italian MAA"  0   0.1   1  0  requires factions { hre, } and not hidden_resource hre and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Dismounted Italian MAA"  1   0.13   1  0  requires factions { hre, } and hidden_resource hre and event_counter first_watch 1
                recruit_pool "Dismounted Italian MAA"  0   0.1   1  0  requires factions { hre, } and not hidden_resource hre and event_counter first_watch 1
                recruit_pool "Zweihander"  1   1   5  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { hre, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { hre, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { hre, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1

                recruit_pool "Zweihander"  1   0.67   3  0  requires factions { hre, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Dismounted Christian Guard"  1   0.13   2  0  requires factions { moors, } 
                recruit_pool "ME Heavy Spearmen"  1   0.34   2  0  requires factions { moors, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Heavy Spearmen"  1   0.34   2  0  requires factions { moors, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Lamtuna Spearmen"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors
                recruit_pool "Lamtuna Spearmen"  0   0.17   1  0  requires factions { moors, } and hidden_resource egypt or hidden_resource spain
                recruit_pool "Lamtuna Spearmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors
                recruit_pool "Desert Raiders"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Desert Raiders"  0   0.17   1  0  requires factions { moors, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Raiders"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Desert Raiders"  1   0.5   3  0  requires factions { moors, } and hidden_resource moors and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Desert Raiders"  0   0.25   1  0  requires factions { moors, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Raiders"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Nubian Spearmen"  1   0.67   2  0  requires factions { moors, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Arab Cavalry"  1   0.5   2  0  requires factions { moors, }				
				
		recruit_pool "ME Heavy Spearmen"  1   0.84   4  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Nubian Spearmen"  1   0.5   2  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1

		recruit_pool "ME Heavy Spearmen"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Nubian Spearmen"  1   0.5   2 0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Arab Cavalry"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Dismounted Ghulams"  1   0.5   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1

		recruit_pool "Nubian Spearmen"  1   0.5   2  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Arab Cavalry"  1   0.67   3  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Dismounted Ghulams"  1   0.67   3  0  requires factions { egypt, }  and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Desert Raiders"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt 
                recruit_pool "Desert Raiders"  0   0.13   1  0  requires factions { egypt, }  and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Raiders"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt 
                recruit_pool "Kurdish Javelinmen"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kurdish Javelinmen"  0   0.13   1  0  requires factions { egypt, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Kurdish Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kurdish Javelinmen"  1   0.17   1  0  requires factions { egypt, } and hidden_resource egypt and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Kurdish Javelinmen"  0   0.085   1 0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Kurdish Javelinmen"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and event_counter FULL_PLATE_ARMOR 1
				
				recruit_pool "Dismounted Druzhina"  1   0.5   3  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Dismounted Druzhina"  0   0.34   2  0  requires factions { russia, } and not hidden_resource russia
                recruit_pool "Dismounted Druzhina"  1   0.5   3  0  requires factions { kievan_rus, } and hidden_resource russia
                recruit_pool "Dismounted Druzhina"  0   0.34   2  0  requires factions { kievan_rus, } and not hidden_resource russia
				
				recruit_pool "Berdiche Axemen"  1   0.84   3  0  requires factions { russia, }
                recruit_pool "Smolensk Infantry"  1   0.34   3  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Smolensk Infantry"  0   0.17   1  0  requires factions { russia, } and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Smolensk Infantry"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia
                recruit_pool "Woodsmen"  1   0.34   3  0  requires factions { russia, } and hidden_resource russia
                recruit_pool "Woodsmen"  0   0.17   1  0  requires factions { russia, } and hidden_resource kievan_rus or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource russia
				
                recruit_pool "Scandinavian Guard"  1   0.25   1  0  requires factions { kievan_rus, } and hidden_resource kievan_rus
                recruit_pool "Scandinavian Guard"  1   0.17   1  0  requires factions { kievan_rus, } and not hidden_resource kievan_rus
				recruit_pool "Slavic Javelinmen"  1   0.67   5  0  requires factions { kievan_rus, } and hidden_resource kievan_rus 
                recruit_pool "Slavic Javelinmen"  0   0.34   2  0  requires factions { kievan_rus, }  and hidden_resource russia or hidden_resource cumans
                recruit_pool "Slavic Javelinmen"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus 
                recruit_pool "Smolensk Infantry"  1   0.5   4  0  requires factions { kievan_rus, } and hidden_resource kievan_rus
                recruit_pool "Smolensk Infantry"  1   0.25   2  0  requires factions { kievan_rus, } and hidden_resource kievan_rus
                recruit_pool "Smolensk Infantry"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, teutonic_order, mongols, slave, timurids, } and hidden_resource kievan_rus
                recruit_pool "EE Peasants"  1   0.25   2  0  requires factions { kievan_rus, } 

				recruit_pool "Smolensk Infantry"  1   0.25   3  0  requires factions { poland, } and hidden_resource poland and event_counter ADV_MATCHLOCK 1
                recruit_pool "Smolensk Infantry"  0   0.13   1  0  requires factions { poland, } and hidden_resource hungary or hidden_resource lithuania and event_counter ADV_MATCHLOCK 1
                recruit_pool "Smolensk Infantry"  0   0.13   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and event_counter ADV_MATCHLOCK 1
				recruit_pool "Smolensk Infantry"  1   0.5   5  0  requires factions { poland, } and hidden_resource poland and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Smolensk Infantry"  0   0.25   2  0  requires factions { poland, } and hidden_resource hungary or hidden_resource lithuania and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Smolensk Infantry"  0   0.25   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Woodsmen"  1   0.67   6  0  requires factions { poland, } and hidden_resource poland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Woodsmen"  0   0.34   3  0  requires factions { poland, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Woodsmen"  1   0.34   4  0  requires factions { poland, } and hidden_resource poland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Woodsmen"  0   0.17   2  0  requires factions { poland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Woodsmen"  1   0.25   3  0  requires factions { poland, } and hidden_resource poland and not event_counter new_era_begins 1
                recruit_pool "Woodsmen"  0   0.13   1  0  requires factions { poland, } and not event_counter new_era_begins 1 and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Woodsmen"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and not event_counter new_era_begins 1
                recruit_pool "EE Peasants"  1   0.13   1  0  requires factions { poland, } and event_counter first_watch 1
                recruit_pool "EE Peasants"  1   0.13   1  0  requires factions { poland, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1

                recruit_pool "Dismounted Hasham"  1   0.5   2  0  requires factions { turks, } 

                recruit_pool "ME Heavy Spearmen"  1   0.67   3  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Azabs"  1   0.34   2  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "ME Heavy Spearmen"  1   0.5   2  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Azabs"  1   0.34   3  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1

		recruit_pool "Azabs"  1   0.67   5  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkish Javelinmen"  1   0.67   4	0  requires factions { turks, } and hidden_resource turks
                recruit_pool "Turkish Javelinmen"  0   0.34   2	0  requires factions { turks, } and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Javelinmen"  0   0.34   2	0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks
				
                recruit_pool "Voulgier"  1   0.84   5  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { france, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Peasants"  1   0.34   3  0  requires factions { france, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1

                recruit_pool "Voulgier"  1   0.5   3  0  requires factions { france, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

    		recruit_pool "Heavy Billmen"  1   1   5  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Billmen"  1   0.84   4  0  requires factions { england, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Billmen"  1   1   5  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Fyrd Spearmen"  1   0.17   1  0  requires factions { england, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
 
		recruit_pool "Heavy Billmen"  1   0.67   3  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Billmen"  1   0.84   4  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Fyrd Spearmen"  1   0.17   1  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Fyrd Spearmen"  1   0.84   6  0  requires factions { england, } and not event_counter new_era_begins 1
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { england, } and not event_counter new_era_begins 1

                recruit_pool "Norse Axemen"  1   0.25   1  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource denmark or hidden_resource norway 
                recruit_pool "Norse Axemen"  0   0.17   1  0  requires factions { denmark, norway, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource denmark and not hidden_resource norway 
                recruit_pool "Norse Axemen"  1   0.34   2  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource denmark or hidden_resource norway
                recruit_pool "Norse Axemen"  0   0.25   1  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource denmark and not hidden_resource norway
                recruit_pool "Norse Swordsmen"  1   0.5   3  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource norway
                recruit_pool "Norse Swordsmen"  0   0.34   2  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource denmark and not hidden_resource norway 
		recruit_pool "Norse Swordsmen"  1   0.34   2  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource norway 
		recruit_pool "Norse Swordsmen"  0   0.25   1  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource denmark and not hidden_resource norway 
                recruit_pool "Obudshaer"  1   0.67   2  0  requires factions { denmark, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Viking Raiders"  1   0.67   5  0  requires factions { denmark, } and not event_counter ADV_MATCHLOCK 1 and hidden_resource denmark 
                recruit_pool "Viking Raiders"  0   0.34   2  0  requires factions { denmark, } and not event_counter ADV_MATCHLOCK 1 and hidden_resource norway or hidden_resource ireland
                recruit_pool "Viking Raiders"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and not event_counter ADV_MATCHLOCK 1 and hidden_resource denmark 
                recruit_pool "Viking Raiders"  1   0.5   4  0  requires factions { denmark, } and event_counter ADV_MATCHLOCK 1 and hidden_resource denmark 
                recruit_pool "Viking Raiders"  0   0.25   2  0  requires factions { denmark, } and event_counter ADV_MATCHLOCK 1 and hidden_resource norway or hidden_resource ireland
                recruit_pool "Viking Raiders"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and event_counter ADV_MATCHLOCK 1 and hidden_resource denmark 
                recruit_pool "Viking Raiders"  1   0.67   5  0  requires factions { norway, } and hidden_resource norway 
                recruit_pool "Viking Raiders"  0   0.34   2  0  requires factions { norway, }  and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Viking Raiders"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway 
                recruit_pool "Peasants"  1   0.17   1  0  requires factions { denmark, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Peasants"  1   0.25   2  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasants"  1   0.5   4  0  requires factions { denmark, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Drengjar"  1   0.17   1  0  requires factions { norway, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Drengjar"  1   0.25   3  0  requires factions { norway, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Drengjar"  1   0.25   2  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Drengjar"  1   0.5   4  0  requires factions { norway, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Highland Nobles"  1   0.17   2  0  requires factions { scotland, } and hidden_resource scotland
                recruit_pool "Highland Nobles"  0   0.13   1  0  requires factions { scotland, } and not hidden_resource scotland
                recruit_pool "Highland Pikemen"  1   0.84   5  0  requires factions { scotland, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highland Pikemen"  0   0.42   2  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Pikemen"  0   0.42   3  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  1   0.67   4  0  requires factions { scotland, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  0   0.34   2  0  requires factions { scotland, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.34   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Highland Pikemen"  1   0.67   4  0  requires factions { scotland, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highland Pikemen"  0   0.34   2  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Pikemen"  0   0.34   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  1   0.84   5  0  requires factions { scotland, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Highlanders"  0   0.42   2  0  requires factions { scotland, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.42   3  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Highland Rabble"  1   0.25   1  0  requires factions { scotland, } and event_counter new_era_begins 1

                recruit_pool "Highlanders"  1   0.84   5  0  requires factions { scotland, } and hidden_resource scotland and not event_counter new_era_begins 1
                recruit_pool "Highlanders"  0   0.42   2  0  requires factions { scotland, } and not event_counter new_era_begins 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highlanders"  0   0.42   3  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and not event_counter new_era_begins 1
                recruit_pool "Highland Rabble"  1   0.84   5  0  requires factions { scotland, } and not event_counter new_era_begins 1

                recruit_pool "Aventuros"  1   0.17   1  0  requires factions { portugal, } and hidden_resource portugal and event_counter spanish_inquisition 1 
                recruit_pool "Aventuros"  0   0.13   1  0  requires factions { portugal, } and not hidden_resource portugal and event_counter spanish_inquisition 1 
                recruit_pool "Lusitanian Javelinmen"  1   0.84   5  0  requires factions { portugal, } and hidden_resource portugal
                recruit_pool "Lusitanian Javelinmen"  0   0.42   2  0  requires factions { portugal, } and hidden_resource spain or hidden_resource aragon
                recruit_pool "Lusitanian Javelinmen"  0   0.42   3  0  requires factions { venice, scotland,  england, france, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource portugal
                recruit_pool "Peasants"  1   0.67   5  0  requires factions { portugal, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Peasants"  1   1   7  0  requires factions { portugal, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Peasants"  1   1   7  0  requires factions { portugal, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Peasants"  1   0.84   6  0  requires factions { portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Peasants"  1   0.67   5  0  requires factions { portugal, } and not event_counter new_era_begins 1 

                recruit_pool "Pavise Spearmen"  1   0.34   3  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Pavise Spearmen"  0   0.25   2  0  requires factions { hungary, } and not hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Pavise Spearmen"  1   0.25   3  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Pavise Spearmen"  0   0.17   2  0  requires factions { hungary, } and not hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Croat Axemen"  1   0.67   5  0  requires factions { hungary, } and hidden_resource hungary
                recruit_pool "Croat Axemen"  0   0.34   2  0  requires factions { hungary, } and hidden_resource poland
                recruit_pool "Croat Axemen"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary
                recruit_pool "Slav Levies"  1   0.25   2  0  requires factions { hungary, } and event_counter ADV_MATCHLOCK 1
                recruit_pool "Slav Levies"  1   0.5   4  0  requires factions { hungary, } and event_counter first_watch 1 and not event_counter ADV_MATCHLOCK 1
                recruit_pool "Slav Levies"  1   0.5   4  0  requires factions { hungary, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1
                recruit_pool "Slav Levies"  1   0.34   3  0  requires factions { hungary, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Slav Levies"  1   0.25   2  0  requires factions { hungary, } and not event_counter new_era_begins 1 

                recruit_pool "Naffatun"  1   0.17   2  0  requires factions { mongols, timurids, } 

                recruit_pool "Norman Serjeants"  1   0.34   3  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Norman Serjeants"  0   0.25   2  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england

                recruit_pool "Armored Sergeants"  1   0.34   3  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Armored Sergeants"  0   0.25   2  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england

                recruit_pool "Armored Sergeants"  1   0.34   3  0  requires factions { hre, milan, venice, papal_states, sicily, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Armored Sergeants"  0   0.25   2  0  requires factions { hre, milan, venice, papal_states, sicily, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england               
				recruit_pool "Armored Sergeants"  1   0.25   2  0  requires factions { hre, milan, venice, papal_states, sicily, england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
				recruit_pool "Armored Sergeants"  0   0.17   1  0  requires factions { hre, milan, venice, papal_states, sicily, england, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england				
				recruit_pool "Armored Sergeants"  1   0.17   1  0  requires factions { hre, milan, venice, papal_states, sicily, england, } and event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
				recruit_pool "Armored Sergeants"  0   0.13   1  0  requires factions { hre, milan, venice, papal_states, sicily, england, } and event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england

				recruit_pool "Armored Sergeants"  1   0.25   3  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
                recruit_pool "Armored Sergeants"  0   0.17   2  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england               
				recruit_pool "Armored Sergeants"  1   0.17   2  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
				recruit_pool "Armored Sergeants"  0   0.13   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england				
				recruit_pool "Armored Sergeants"  1   0.13   1  0  requires factions { france, } and event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily or hidden_resource england
				recruit_pool "Armored Sergeants"  0   0.085   1  0  requires factions { france, } and event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource england
				
				recruit_pool "Sergeant Spearmen"  1   0.5   4  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.34   3  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  1   0.34   3  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.25   2  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter FULL_PLATE_ARMOR 1 and not event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  1   0.25   2  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter first_watch 1 and hidden_resource france or hidden_resource hre or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource sicily
                recruit_pool "Sergeant Spearmen"  0   0.17   1  0  requires factions { france, hre, milan, venice, papal_states, sicily, knights_templar, } and event_counter first_watch 1 and not hidden_resource france and not hidden_resource hre and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource sicily

				recruit_pool "Light Swordsmen"  1   0.25   3  0  requires factions { hre, spain, hungary, portugal, } and not event_counter new_era_begins 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.17   2  0  requires factions { hre, spain, hungary, portugal, } and not event_counter new_era_begins 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal				
				recruit_pool "Light Swordsmen"  1   0.17   3  0  requires factions { poland, milan, venice, papal_states, } and not event_counter new_era_begins 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.13   2  0  requires factions { poland, milan, venice, papal_states, } and not event_counter new_era_begins 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal				
				recruit_pool "Light Men at Arms"  1   0.25   3  0  requires factions { england, france, aragon, } and not event_counter new_era_begins 1 and hidden_resource england or hidden_resource france or hidden_resource aragon             
				recruit_pool "Light Men at Arms"  0   0.17   2  0  requires factions { england, france, aragon, } and not event_counter new_era_begins 1 and not hidden_resource england and not hidden_resource france and not hidden_resource aragon             
				recruit_pool "Light Swordsmen"  1   0.17   2  0  requires factions { hre, spain, hungary, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.13   1  0  requires factions { hre, spain, hungary, portugal, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal				
				recruit_pool "Light Swordsmen"  1   0.13   2  0  requires factions { poland, milan, venice, papal_states, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.085   1  0  requires factions { poland, milan, venice, papal_states, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal				
				recruit_pool "Light Men at Arms"  1   0.17   2  0  requires factions { england, france, aragon, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource france or hidden_resource aragon             
				recruit_pool "Light Men at Arms"  0   0.13   1  0  requires factions { england, france, aragon, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and not hidden_resource england and not hidden_resource france and not hidden_resource aragon             		
 				recruit_pool "Light Swordsmen"  1   0.13   1  0  requires factions { hre, spain, hungary, portugal, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.085   1  0  requires factions { hre, spain, hungary, portugal, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal				
 				recruit_pool "Light Swordsmen"  1   0.085   1  0  requires factions { poland, milan, venice, papal_states, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource poland or hidden_resource hre or hidden_resource spain or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource hungary or hidden_resource portugal
				recruit_pool "Light Swordsmen"  0   0.065   1  0  requires factions { poland, milan, venice, papal_states, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource poland and not hidden_resource hre and not hidden_resource spain and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource hungary and not hidden_resource portugal				
				recruit_pool "Light Men at Arms"  1   0.13   1  0  requires factions { england, france, aragon, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource england or hidden_resource france or hidden_resource aragon             
				recruit_pool "Light Men at Arms"  0   0.085   1  0  requires factions { england, france, aragon, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource england and not hidden_resource france and not hidden_resource aragon             

                recruit_pool "ME Peasants"  1   0.67   6  0  requires factions { mongols, } 
                recruit_pool "ME Peasants"  1   0.5   5  0  requires factions { timurids, } 
                recruit_pool "Afghan Javelinmen"  1   0.34   4  0  requires factions { timurids, } and hidden_resource kwarezm 
                recruit_pool "Afghan Javelinmen"  0   0.25   3  0  requires factions { timurids, }  and hidden_resource turks
		recruit_pool "Disamounted Turhagut"  1   0.13   1  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks 
		recruit_pool "Disamounted Turhagut"  0   0.085   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks 

			    recruit_pool "Urban Spear Militia"  1   0.25   1  1  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Baltic Spearmen"  1   0.25   1  0  requires factions { lithuania, } 
                recruit_pool "Spear Militia"  1   0.25   1  1  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, norway, } 
                recruit_pool "Spear Militia"  1   0.25   1  1  requires factions { teutonic_order, } 
                recruit_pool "EE Spear Militia"  1   0.25   1  1  requires factions { poland, russia, hungary, kievan_rus, cumans, } 
                recruit_pool "ME Spear Militia"  1   0.25   1  1  requires factions { moors, egypt, turks, kwarezm, } 

                recruit_pool "Templar Guard"  1   0.085   1  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource crusader
                recruit_pool "Templar Guard"  1   0.0575   1  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource crusader
                recruit_pool "Noble Spearmen"  1   0.13   2  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader
                recruit_pool "Noble Spearmen"  1   0.085   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader
		recruit_pool "Templar Zweihander"  1   0.13   2  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader
		recruit_pool "Templar Zweihander"  1   0.085   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader
		recruit_pool "Templar Squires"  1  0.13  2  0 requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader		
		recruit_pool "Templar Squires"  1  0.085  1  0 requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader		
		recruit_pool "Templar Sergeant" 1   0.085   1  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource crusader
		recruit_pool "Templar Sergeant" 1   0.0575   1  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource crusader
		recruit_pool "Templar Sergeant" 1   0.17   3  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and hidden_resource crusader and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Templar Sergeant" 1   0.13   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not hidden_resource crusader and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Templar Sergeant" 1   0.25   4  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and hidden_resource crusader and not event_counter new_era_begins 1
		recruit_pool "Templar Sergeant" 1   0.17   3  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not hidden_resource crusader and not event_counter new_era_begins 1

		recruit_pool "Light Men at Arms" 1   0.085   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 
		recruit_pool "Voulgier" 1   0.5   3  0  requires factions { jerusalem, } and event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Voulgier" 1   0.34   2  0  requires factions { jerusalem, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
		recruit_pool "Sergeant Spearmen" 1   0.13   1  0  requires factions { jerusalem, } and event_counter new_era_begins 1
		recruit_pool "Sergeant Spearmen" 1   0.17   2  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 and not event_counter new_era_begins 1
		recruit_pool "Syrian Auxilliaries"  1  0.17  2  0 requires factions { jerusalem, } and hidden_resource crusader and event_counter council_of_troyes 1

		recruit_pool "Light Men at Arms" 1   0.17   3  0  requires factions { jerusalem, } and not event_counter council_of_troyes 1
		recruit_pool "Sergeant Spearmen" 1   0.34   4  0  requires factions { jerusalem, } and not event_counter council_of_troyes 1
		recruit_pool "Syrian Auxilliaries"  1  0.25  3  0 requires factions { jerusalem, } and hidden_resource crusader and not event_counter council_of_troyes 1

                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}

building professional_military
{
    levels military_academy officers_academy 
    {
        military_academy city requires factions { france, england, spain, aragon, portugal, turks, scotland, hre, denmark, milan, venice, papal_states, hungary, norway, sicily, poland, russia, kievan_rus, knights_templar, lithuania,  teutonic_order, jerusalem, } and event_counter new_era_begins 1
        {
            capability
            {
                recruit_pool "Janissary Heavy Inf"  1   0.5   2  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Tercio Pikemen"  1   0.5   2  0  requires factions { spain, aragon, } and event_counter malleus_maleficarum 1
                recruit_pool "Mounted Arquebusiers"  1   0.5   2  0  requires factions { spain, aragon, portugal, milan, venice, papal_states, sicily, } and event_counter first_watch 1

				law_bonus bonus 1
		recruits_exp_bonus bonus 1
            }
            material wooden
            construction  6 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
                officers_academy
            }
        }
        officers_academy city requires factions { france , england, spain, aragon, portugal, turks, scotland, hre, denmark, milan, venice, papal_states, hungary, norway, sicily, poland, russia, kievan_rus, knights_templar, lithuania,  teutonic_order, jerusalem, } and event_counter new_era_begins 1
        {
            capability
            {
                recruit_pool "Janissary Heavy Inf"  1   0.67   3  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Gendarmes"  1   0.5   2  0  requires factions { france, spain, aragon, } and event_counter GOTHIC_ARMOR 1
                recruit_pool "Gendarmes"  1   0.34  1  0  requires factions { hre, } and event_counter first_watch 1 and hidden_resource france ; Burgundian Gendarmes
                recruit_pool "Gendarmes"  1   0.25  1  0  requires factions { milan, venice, papal_states, } and event_counter pike_and_shot 1
                recruit_pool "Late Tercio Pikemen"  1   0.5   2  0  requires factions { spain, aragon, } and event_counter first_watch 1 ;Late Tercio Pikemen
                recruit_pool "Tercio Pikemen"  1   0.5   2  0  requires factions { spain, aragon, } and event_counter first_watch 1
                recruit_pool "Tercio Pikemen"  1   0.67   3  0  requires factions { spain, aragon, } and event_counter malleus_maleficarum 1 and not event_counter first_watch 1
                recruit_pool "Mounted Arquebusiers"  1   0.67   3  0  requires factions { spain, aragon, portugal, milan, venice, papal_states, sicily, } and event_counter first_watch 1
                recruit_pool "Mounted Arquebusiers"  1   0.5   2  0  requires factions { hungary, poland, teutonic_order, knights_templar, norway, denmark, hre, england, } and event_counter pike_and_shot 1
                recruit_pool "Mounted Arquebusiers"  1   0.5   2  0  requires factions { france, } and event_counter ADV_MATCHLOCK 1

		law_bonus bonus 1
		recruits_exp_bonus bonus 1
		recruits_morale_bonus bonus 1
            }

            material wooden
            construction  8 
            cost  6000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building missiles
{
    levels bowyer practice_range archery_range marksmans_range 
    {
        bowyer castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { hre, france, spain, aragon, portugal, milan, venice, papal_states,  } 
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { jerusalem, } 
                recruit_pool "Peasant Archers"  1   0.5   3  0  requires factions { england, } 
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { denmark, norway, scotland, teutonic_order, } 
                recruit_pool "S Peasant Archers"  1   0.34   3  0  requires factions { hungary, } 
                recruit_pool "S Peasant Archers"  1   0.25   3  0  requires factions { sicily, knights_templar, } 
                recruit_pool "EE Peasant Archers"  1   0.34   3  0  requires factions { lithuania, cumans, } 
                recruit_pool "EE Peasant Archers"  1   0.25   3  0  requires factions { poland, } 
                recruit_pool "EE Peasant Archers"  1   0.5   3  0  requires factions { russia, kievan_rus, } 
                recruit_pool "ME Peasant Crossbowmen"  1   0.5   3  0  requires factions { moors, } 
                recruit_pool "ME Peasant Archers"  1   0.34   3  0  requires factions { egypt, kwarezm,  }
                recruit_pool "ME Peasant Archers"  1   0.5   3  0  requires factions { turks, }
                recruit_pool "ME Peasant Archers"  1   0.34   3  0  requires factions { mongols, timurids, }  
				recruit_pool "Toxotae"  1   0.17   2  0  requires factions { byzantium, }
                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  3 
            cost  1000 
            settlement_min town
            upgrades
            {
                practice_range
            }
        }
        practice_range castle requires factions { denmark, teutonic_order, jerusalem,  norway, hre, scotland, france, england, knights_templar, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                recruit_pool "Steppe Alans"  1   0.34   3  0  requires factions { cumans, } and hidden_resource cumans and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Steppe Alans"  0   0.17   1  0  requires factions { cumans, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Steppe Alans"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.25   2  0  requires factions { cumans, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Steppe Alans"  1   0.25   2  0  requires factions { cumans, } and hidden_resource cumans and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Steppe Alans"  0   0.13   1  0  requires factions { cumans, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Steppe Alans"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.34   3  0  requires factions { cumans, } and not event_counter HEAVY_MAIL_ARMOR 1
 
                recruit_pool "Saracen Archers"  1   0.34   3  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Saracen Archers"  0   0.17   1  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Saracen Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.25   2  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Saracen Archers"  1   0.25   2  0  requires factions { kwarezm, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Saracen Archers"  0   0.13   1  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Saracen Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.34   3  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Nubian Archers"  1   0.17   1  0  requires factions { egypt, } and hidden_resource egypt 
                recruit_pool "Nubian Archers"  0   0.13   1  0  requires factions { egypt, } and not hidden_resource egypt 
                recruit_pool "ME Peasant Archers"  1   0.5   4  0  requires factions { egypt, } 

                recruit_pool "Prussian Archers"  1   0.13   1  0  requires factions { teutonic_order, } 
                recruit_pool "Peasant Archers"  1   0.34   4  0  requires factions { teutonic_order, } 

                recruit_pool "Longbowmen"  1   0.67   4  0  requires factions { england, } and hidden_resource england and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1  and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Longbowmen"  1   0.5   3  0  requires factions { england, } and hidden_resource england and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Longbowmen"  0   0.25   1  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Longbowmen"  0   0.25   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Longbowmen"  1   0.34   2  0  requires factions { england, } and hidden_resource england and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Longbowmen"  0   0.17   1  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Longbowmen"  0   0.17   1  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Prussian Archers"  1   0.25   1  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.17   1  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Peasant Archers"  1   0.25   1  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Peasant Archers"  1   0.34   2  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Peasant Archers"  1   0.5   3  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 
                recruit_pool "Peasant Archers"  1   0.67   4  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Highland Archers"  1   0.25   3  0  requires factions { scotland, } and hidden_resource scotland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Highland Archers"  0   0.13   1  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Archers"  0   0.13   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Highland Archers"  1   0.17  2  0  requires factions { scotland, } and hidden_resource scotland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Highland Archers"  0   0.085   1  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Archers"  0   0.085   1  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Norse Archers"  1   0.25   3  0  requires factions { denmark, } and hidden_resource denmark and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  0   0.13   1  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource norway or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  1   0.17   2  0  requires factions { denmark, } and hidden_resource denmark and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  0   0.085   1  0  requires factions { denmark, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource norway or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  1   0.25   3  0  requires factions { norway, } and hidden_resource norway and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  0   0.13   1  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  1   0.17   2  0  requires factions { norway, } and hidden_resource norway and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  0   0.085   1  0  requires factions { norway, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Peasant Crossbowmen"  1   0.25   3  0  requires factions { hre, france, spain, aragon, portugal, } 
                recruit_pool "Peasant Crossbowmen"  1   0.5   3  0  requires factions { milan, venice, papal_states, } 
                recruit_pool "Peasant Archers"  1   0.17   2  0  requires factions { hre, france, spain, aragon, portugal, } 
                recruit_pool "Peasant Archers"  1   0.17   2  0  requires factions { milan, venice, papal_states, } 
                recruit_pool "Peasant Archers"  1   0.17   2  0  requires factions { scotland, denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { scotland, denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Sicilian Muslim Archers"  1   0.25   3  0  requires factions { sicily, } and hidden_resource sicily and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  0   0.13   1  0  requires factions { sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource venice or hidden_resource milan or hidden_resource papal_states
                recruit_pool "Sicilian Muslim Archers"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource sicily and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  1   0.25   3  0  requires factions { knights_templar, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "S Peasant Archers"  1   0.17   2  0  requires factions { sicily, knights_templar, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  1   0.17   2  0  requires factions { sicily, } and hidden_resource sicily and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  0   0.085   1  0  requires factions { sicily, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource venice or hidden_resource milan or hidden_resource papal_states
                recruit_pool "Sicilian Muslim Archers"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource sicily and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  1   0.17   2  0  requires factions { knights_templar, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "S Peasant Archers"  1   0.25   3  0  requires factions { sicily, knights_templar, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Ruthenian Archers"  1   0.17   1  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Ruthenian Archers"  0   0.13   1  0  requires factions { lithuania, } and not hidden_resource lithuania
                recruit_pool "Lithuanian Archers"  1   0.25   3  0  requires factions { poland, } and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.13   1  0  requires factions { poland, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Lithuanian Archers"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.17   1  0  requires factions { lithuania, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.17   2  0  requires factions { poland, lithuania, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  1   0.17   2  0  requires factions { poland, } and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.085   1  0  requires factions { poland, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Lithuanian Archers"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.13   1  0  requires factions { lithuania, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.34   3  0  requires factions { lithuania, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.25   3  0  requires factions { poland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Bosnian Archers"  1   0.34   3  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Bosnian Archers"  0   0.17   1  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1  and hidden_resource poland
                recruit_pool "Bosnian Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "S Peasant Archers"  1   0.34   3  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Bosnian Archers"  1   0.25   2  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Bosnian Archers"  0   0.13   1  0  requires factions { hungary, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland
                recruit_pool "Bosnian Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "S Peasant Archers"  1   0.5   4  0  requires factions { hungary, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Mourtatoi"  1   0.17   2  0  requires factions { byzantium, } and hidden_resource byzantium
                recruit_pool "Mourtatoi"  0   0.085   1  0  requires factions { byzantium, } and hidden_resource turks
                recruit_pool "Mourtatoi"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource byzantium
				recruit_pool "Toxotae"  1   0.17   2  0  requires factions { byzantium, }

                recruit_pool "Desert Archers"  1   0.25   1  0  requires factions { moors, } and hidden_resource moors
                recruit_pool "Desert Archers"  0   0.13   1 0  requires factions { moors, } and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors
                recruit_pool "Sudanese Javelinmen"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors
                recruit_pool "Sudanese Javelinmen"  0   0.17   1  0  requires factions { moors, } and hidden_resource egypt or hidden_resource spain
                recruit_pool "Sudanese Javelinmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors
                recruit_pool "ME Peasant Crossbowmen"  1   0.34   2  0  requires factions { moors, } 

                recruit_pool "Turkish Archers"  1   0.5   3  0  requires factions { turks, } and hidden_resource turks and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkish Archers"  0   0.25   1  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.34   2  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkish Archers"  1   0.34   2  0  requires factions { turks, } and hidden_resource turks and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkish Archers"  0   0.17   1  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Archers"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.5   3  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 

		recruit_pool "Prussian Archers" 1   0.13   1  0  requires factions { jerusalem, } and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
		recruit_pool "Prussian Archers" 0   0.085  1  0  requires factions { jerusalem, } and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Peasant Archers"  1   0.34   4  0  requires factions { jerusalem, } 
				
                recruit_pool "EE Peasant Archers"  1   0.67   4  0  requires factions { russia, kievan_rus, }
 
                recruit_pool "ME Peasant Archers"  1   0.34   3  0  requires factions { mongols, timurids, }  
                recruit_pool "Khabutu Archers"  1   0.25   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks  
                recruit_pool "Khabutu Archers"  0   0.13   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks 
				
				recruit_pool "Prussian Archers" 1   0.25   1  0  requires factions { russia, kievan_rus, } and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
				recruit_pool "Prussian Archers" 0   0.17   1  0  requires factions { russia, kievan_rus, } and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
				recruit_pool "Prussian Archers" 1   0.13   1  0  requires factions { milan, venice, papal_states, hre, france, spain, aragon, portugal, } and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
				recruit_pool "Prussian Archers" 0   0.085   1  0  requires factions { milan, venice, papal_states, hre, france, spain, aragon, portugal, } and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                 law_bonus bonus 1 requires event_counter is_the_ai 1
           }
            material wooden
            construction  4 
            cost  2000 
            settlement_min large_town
            upgrades
            {
                archery_range
            }
        }
        archery_range castle requires factions { denmark, teutonic_order, jerusalem,  norway, hre, scotland, france, england, knights_templar, egypt, turks, moors, kwarezm, mongols, eastern_european, greek, southern_european, slave, timurids, } 
        {
            capability
            {
                recruit_pool "Steppe Alans"  1   0.5   4  0  requires factions { cumans, } and hidden_resource cumans and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Steppe Alans"  0   0.25   2  0  requires factions { cumans, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Steppe Alans"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.34   3  0  requires factions { cumans, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Steppe Alans"  1   0.34   3  0  requires factions { cumans, } and hidden_resource cumans and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Steppe Alans"  0   0.17   1  0  requires factions { cumans, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Steppe Alans"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.5   4  0  requires factions { cumans, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "ME Heavy Archers"  1   0.5   2  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Persian Archers"  1   0.17   1  0  requires factions { kwarezm, } and hidden_resource kwarezm 
                recruit_pool "Persian Archers"  0   0.13   1  0  requires factions { kwarezm, } and not hidden_resource kwarezm 
                recruit_pool "Saracen Archers"  1   0.5   4  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Saracen Archers"  0   0.25   2  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Saracen Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.17   1  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.34   3  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Saracen Archers"  1   0.34   3  0  requires factions { kwarezm, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Saracen Archers"  0   0.17   1  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Saracen Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.5   4  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "ME Heavy Archers"  1   0.5   2  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Nubian Archers"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt 
                recruit_pool "Nubian Archers"  0   0.17   1  0  requires factions { egypt, } and not hidden_resource egypt 
                recruit_pool "Desert Archers"  1   0.34   3  0  requires factions { egypt, } and hidden_resource egypt and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Desert Archers"  0   0.17   1  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.25   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Desert Archers"  1   0.25   2  0  requires factions { egypt, } and hidden_resource egypt and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Desert Archers"  0   0.13   1  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.34   3  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Livonian Auxiliaries"  1   0.13   1  0  requires factions { teutonic_order, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Prussian Archers"  1   0.17   2  0  requires factions { teutonic_order, } 
                recruit_pool "Peasant Archers"  1   0.5   5  0  requires factions { teutonic_order, } 

                recruit_pool "Yeoman Archers"  1   0.84   3  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Yeoman Archers"  1   0.67   2  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Prussian Archers"  1   0.34   2  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.25   1  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  1   0.25   1  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.17   1  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Longbowmen"  1   0.67   4  0  requires factions { england, } and hidden_resource england and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1  and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Longbowmen"  1   0.67   4  0  requires factions { england, } and hidden_resource england and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Longbowmen"  1   0.5   3  0  requires factions { england, } and hidden_resource england and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Longbowmen"  0   0.25   1  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Longbowmen"  0   0.25   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.25   1  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Peasant Archers"  1   0.67   4  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 
                recruit_pool "Peasant Archers"  1   0.84   5  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Noble Highland Archers"  1   0.13   1  0  requires factions { scotland, } and hidden_resource scotland 
                recruit_pool "Noble Highland Archers"  0   0.085   1  0  requires factions { scotland, } and not hidden_resource scotland 
                recruit_pool "Highland Archers"  1   0.34   4  0  requires factions { scotland, } and hidden_resource scotland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Highland Archers"  0   0.17   2  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Archers"  0   0.17   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Highland Archers"  1   0.25   3  0  requires factions { scotland, } and hidden_resource scotland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Highland Archers"  0   0.13   1  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Archers"  0   0.13   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.34   4  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Venetian Archers"  1   0.5   3  0  requires factions { venice, } and event_counter new_era_begins 1
                recruit_pool "Venetian Archers"  1   0.34   2  0  requires factions { venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Prussian Archers"  1   0.17   2  0  requires factions { venice, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.13   1  0  requires factions { venice, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  1   0.13   1  0  requires factions { venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.085   1  0  requires factions { venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Peasant Crossbowmen"  1   0.5   3  0  requires factions { venice, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.13   1  0  requires factions { venice, } and event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.17   2  0  requires factions { venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Peasant Crossbowmen"  1   0.67   4  0  requires factions { venice, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.17   2  0  requires factions { venice, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Crossbowmen"  1   0.17   1  0  requires factions { hungary, } and hidden_resource france or hidden_resource denmark or hidden_resource hungary or hidden_resource norway
                recruit_pool "Crossbowmen"  0   0.13   1  0  requires factions { hungary, } and not hidden_resource france and not hidden_resource denmark and not hidden_resource hungary and not hidden_resource norway
                recruit_pool "Crossbowmen"  1   0.13   1  0  requires factions { france, } and hidden_resource france or hidden_resource denmark or hidden_resource hungary or hidden_resource norway
                recruit_pool "Crossbowmen"  0   0.085   1  0  requires factions { france, } and not hidden_resource france and not hidden_resource denmark and not hidden_resource hungary and not hidden_resource norway
                recruit_pool "Crossbowmen"  1   0.13   1  0  requires factions { denmark, norway, } and hidden_resource france or hidden_resource denmark or hidden_resource hungary or hidden_resource norway
                recruit_pool "Crossbowmen"  0   0.085   1  0  requires factions { denmark, norway, } and not hidden_resource france and not hidden_resource denmark and not hidden_resource hungary and not hidden_resource norway
                recruit_pool "Peasant Crossbowmen"  1   0.67   4  0  requires factions { milan, papal_states, } 
                recruit_pool "Peasant Crossbowmen"  1   0.34   4  0  requires factions { hre, france, spain, aragon, portugal, } 
                recruit_pool "Basque Archers"  1   0.25   3  0  requires factions { aragon, } and hidden_resource aragon and event_counter new_era_begins 1
                recruit_pool "Basque Archers"  0   0.13   1  0  requires factions { aragon, } and event_counter new_era_begins 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Basque Archers"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter new_era_begins 1
                recruit_pool "Basque Archers"  1   0.17   2  0  requires factions { aragon, } and hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Basque Archers"  0   0.085   1  0  requires factions { aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Basque Archers"  0   0.085   1  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.13   1  0  requires factions { aragon, } and event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.17   2  0  requires factions { aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { aragon, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Peasant Archers"  1   0.17   2  0  requires factions { milan, papal_states, } 
                recruit_pool "Peasant Archers"  1   0.17   2  0  requires factions { hre, france, spain, portugal, } 

				recruit_pool "Prussian Archers" 1   0.25   2  0  requires factions { aragon, } and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
				recruit_pool "Prussian Archers" 0   0.17   1  0  requires factions { aragon, } and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
				recruit_pool "Prussian Archers" 1   0.17   2  0  requires factions { milan, papal_states, hre, france, spain, portugal,  } and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
				recruit_pool "Prussian Archers" 0   0.13   1  0  requires factions { milan, papal_states, hre, france, spain, portugal,  } and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus


                recruit_pool "Norse Archers"  1   0.34   4  0  requires factions { denmark, } and hidden_resource denmark and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  0   0.17   2  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource norway or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  1   0.25   3  0  requires factions { denmark, } and hidden_resource denmark and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Norse Archers"  0   0.13   1  0  requires factions { denmark, } and not event_counter HEAVY_MAIL_ARMOR 1  and hidden_resource norway or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Norse Archers"  1   0.34   4  0  requires factions { norway, } and hidden_resource norway and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  0   0.17   2  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  1   0.25   3  0  requires factions { norway, } and hidden_resource norway and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Norse Archers"  0   0.13   1  0  requires factions { norway, } and not event_counter HEAVY_MAIL_ARMOR 1  and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.34   4  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Sicilian Muslim Archers"  1   0.34   4  0  requires factions { sicily, } and hidden_resource sicily and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  0   0.17   2  0  requires factions { sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource venice or hidden_resource milan or hidden_resource papal_states
                recruit_pool "Sicilian Muslim Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource sicily and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  1   0.34   4  0  requires factions { knights_templar, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "S Peasant Archers"  1   0.25   3  0  requires factions { sicily, knights_templar, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  1   0.25   3  0  requires factions { sicily, } and hidden_resource sicily and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  0   0.13   1  0  requires factions { sicily, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource venice or hidden_resource milan or hidden_resource papal_states
                recruit_pool "Sicilian Muslim Archers"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource sicily and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  1   0.25   3  0  requires factions { knights_templar, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "S Peasant Archers"  1   0.34   4  0  requires factions { sicily, knights_templar, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Lettish Crossbowmen"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Lettish Crossbowmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania
                recruit_pool "Ruthenian Archers"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Ruthenian Archers"  0   0.17   1  0  requires factions { lithuania, } and not hidden_resource lithuania
                recruit_pool "Lithuanian Archers"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.17   1  0  requires factions { lithuania, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.17   1  0  requires factions { lithuania, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.13   1  0  requires factions { lithuania, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.25   2  0  requires factions { lithuania, } and not event_counter HEAVY_MAIL_ARMOR 1
 
                recruit_pool "Lithuanian Archers"  1   0.34   4  0  requires factions { poland, } and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.17   2  0  requires factions { poland, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Lithuanian Archers"  1   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.25   3  0  requires factions { poland, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  1   0.25   3  0  requires factions { poland, } and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.13   1  0  requires factions { poland, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Lithuanian Archers"  1   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.34   4  0  requires factions { poland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Bosnian Archers"  1   0.5   4  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Bosnian Archers"  0   0.25   2  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1  and hidden_resource poland
                recruit_pool "Bosnian Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "S Peasant Archers"  1   0.5   4  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Bosnian Archers"  1   0.34   3  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Bosnian Archers"  0   0.17   1  0  requires factions { hungary, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland
                recruit_pool "Bosnian Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "S Peasant Archers"  1   0.67   5  0  requires factions { hungary, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Mourtatoi"  1   0.25   3  0  requires factions { byzantium, } and hidden_resource byzantium
                recruit_pool "Mourtatoi"  0   0.13   1  0  requires factions { byzantium, } and hidden_resource turks
                recruit_pool "Mourtatoi"  0   0.13   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, hungary, scotland, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource byzantium
				recruit_pool "Toxotae"  1   0.25   3  0  requires factions { byzantium, }

                recruit_pool "Granadine CB Cav"  1   0.25   2  0  requires factions { moors, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Granadine CB Cav"  0   0.13   1  0  requires factions { moors, } and event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Granadine CB Cav"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Desert Archers"  1   0.25   1  0  requires factions { moors, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Desert Archers"  0   0.13   1 0  requires factions { moors, } and event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Sudanese Javelinmen"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Sudanese Javelinmen"  0   0.17   1  0  requires factions { moors, } and event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Sudanese Javelinmen"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and event_counter new_era_begins 1

                recruit_pool "Desert Archers"  1   0.34   2  0  requires factions { moors, } and hidden_resource moors and not event_counter new_era_begins 1
                recruit_pool "Desert Archers"  0   0.17   1  0  requires factions { moors, } and not event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Archers"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and not event_counter new_era_begins 1
                recruit_pool "Sudanese Javelinmen"  1   0.5   3  0  requires factions { moors, } and hidden_resource moors and not event_counter new_era_begins 1
                recruit_pool "Sudanese Javelinmen"  0   0.25   1  0  requires factions { moors, } and not event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Sudanese Javelinmen"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and not event_counter new_era_begins 1
                recruit_pool "ME Peasant Crossbowmen"  1   0.34   2  0  requires factions { moors, } 

                recruit_pool "ME Heavy Archers"  1   0.67   2  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Ottoman Infantry"  1   0.67   2  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Turkish Archers"  1   0.5   3  0  requires factions { turks, } and hidden_resource turks and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkish Archers"  0   0.25   1  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.34   2  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Turkish Archers"  1   0.5   3  0  requires factions { turks, } and hidden_resource turks and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkish Archers"  0   0.25   1  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.67   4  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 
               
				recruit_pool "Pavise Crossbowmen"  1   0.17   1  0  requires factions { papal_states, sicily, } and hidden_resource hre or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource papal_states or hidden_resource sicily or hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  0   0.13   1  0  requires factions { papal_states, sicily, } and not hidden_resource hre and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  1   0.13   1  0  requires factions { poland, } and hidden_resource hre or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource papal_states or hidden_resource sicily or hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  0   0.085   1  0  requires factions { poland, } and not hidden_resource hre and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  1   0.13   1  0  requires factions { hre, spain, aragon, portugal,  } and hidden_resource hre or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource papal_states or hidden_resource sicily or hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  0   0.085   1  0  requires factions { hre, spain, aragon, portugal,  } and not hidden_resource hre and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource poland
                recruit_pool "Genoese Crossbowmen"  1   0.25   1  0  requires factions { milan, } and hidden_resource milan 
                recruit_pool "Genoese Crossbowmen"  0   0.17   1  0  requires factions { milan, } and not hidden_resource milan 

                recruit_pool "Templar Crossbowmen"  1   0.13   1  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 
		recruit_pool "Prussian Archers" 1   0.25   2  0  requires factions { jerusalem, } and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
		recruit_pool "Prussian Archers" 0   0.17   1  0  requires factions { jerusalem, } and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Peasant Archers"  1   0.5   5  0  requires factions { jerusalem, } 

                recruit_pool "Luchniki"  1   0.84   3  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1
                recruit_pool "Luchniki"  1   0.67   2  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
				recruit_pool "Dismounted Junior Druzhina" 1   0.17   1  0  requires factions { russia, kievan_rus, } and hidden_resource kievan_rus
				recruit_pool "Dismounted Junior Druzhina" 0   0.13   1  0  requires factions { russia, kievan_rus, } and not hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  1   0.34   2  0  requires factions { russia, kievan_rus, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.25   1  0  requires factions { russia, kievan_rus, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  1   0.25   1  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.17   1  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "EE Peasant Archers"  1   0.5   3  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1
                recruit_pool "EE Peasant Archers"  1   0.67   4  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "EE Peasant Archers"  1   0.84   5  0  requires factions { russia, kievan_rus, } and not event_counter HEAVY_MAIL_ARMOR 1
 
                recruit_pool "ME Peasant Archers"  1   0.5   4  0  requires factions { mongols, timurids, }  
                recruit_pool "Khabutu Archers"  1   0.34   3  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks  
                recruit_pool "Khabutu Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks 
                recruit_pool "Merguen Archers"  1   0.17   1  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks  
                recruit_pool "Merguen Archers"  0   0.13   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks 

                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  6 
            cost  4000 
            settlement_min city
            upgrades
            {
                marksmans_range
            }
        }
        marksmans_range castle requires factions { denmark, teutonic_order, jerusalem, norway, hre, france, england, knights_templar, turks, moors, mongols, timurids, southern_european, slave, timurids, } 
        {
            capability
            {
                recruit_pool "Steppe Alans"  1   0.67   5  0  requires factions { cumans, } and hidden_resource cumans and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Steppe Alans"  0   0.34   2  0  requires factions { cumans, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Steppe Alans"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.5   4  0  requires factions { cumans, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Steppe Alans"  1   0.5   4  0  requires factions { cumans, } and hidden_resource cumans and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Steppe Alans"  0   0.25   2  0  requires factions { cumans, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource kwarezm or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Steppe Alans"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource cumans and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.67   5  0  requires factions { cumans, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "ME Heavy Archers"  1   0.67   3  0  requires factions { kwarezm, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Heavy Archers"  1   0.5   2  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Persian Archers"  1   0.25   2  0  requires factions { kwarezm, } and hidden_resource kwarezm 
                recruit_pool "Persian Archers"  0   0.17   1  0  requires factions { kwarezm, } and not hidden_resource kwarezm 
                recruit_pool "Saracen Archers"  1   0.67   5  0  requires factions { kwarezm, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Saracen Archers"  0   0.34   2  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Saracen Archers"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.17   1  0  requires factions { kwarezm, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.34   3  0  requires factions { kwarezm, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1

                recruit_pool "Saracen Archers"  1   0.5   4  0  requires factions { kwarezm, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Saracen Archers"  0   0.25   2  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource cumans
                recruit_pool "Saracen Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource kwarezm and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.5   4  0  requires factions { kwarezm, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "ME Heavy Archers"  1   0.67   3  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Heavy Archers"  1   0.5   2  0  requires factions { egypt, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Nubian Archers"  1   0.34   3  0  requires factions { egypt, } and hidden_resource egypt 
                recruit_pool "Nubian Archers"  0   0.25   2  0  requires factions { egypt, } and not hidden_resource egypt 
                recruit_pool "Desert Archers"  1   0.34   3  0  requires factions { egypt, } and hidden_resource egypt and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Desert Archers"  0   0.17   1  0  requires factions { egypt, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Desert Archers"  1   0.5   4  0  requires factions { egypt, } and hidden_resource egypt and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Desert Archers"  0   0.25   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.25   2  0  requires factions { egypt, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1

                recruit_pool "Desert Archers"  1   0.34   3  0  requires factions { egypt, } and hidden_resource egypt and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Desert Archers"  0   0.17   1  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource turks or hidden_resource moors
                recruit_pool "Desert Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource egypt and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.34   3  0  requires factions { egypt, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Mounted Crossbowmen"  1   0.5   2  0  requires factions { teutonic_order, } and event_counter new_era_begins 1
                recruit_pool "Livonian Auxiliaries"  1   0.17   2  0  requires factions { teutonic_order, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Prussian Archers"  1   0.25   3  0  requires factions { teutonic_order, } 
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { teutonic_order, } and event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.5   5  0  requires factions { teutonic_order, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.67   6  0  requires factions { teutonic_order, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Dismounted Longbowmen"  1   0.67   2  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Yeoman Archers"  1   0.84   3  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Yeoman Archers"  1   0.84   3  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Longbowmen"  1   0.67   4  0  requires factions { england, } and hidden_resource england and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { england, } and event_counter FULL_PLATE_ARMOR 1  and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Longbowmen"  1   0.84   5  0  requires factions { england, } and hidden_resource england and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Longbowmen"  0   0.42   2  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Longbowmen"  0   0.42   3  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Longbowmen"  1   0.67   4  0  requires factions { england, } and hidden_resource england and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource scotland or hidden_resource ireland or hidden_resource france
                recruit_pool "Longbowmen"  0   0.34   2  0  requires factions { venice, scotland,  france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource england and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Prussian Archers"  1   0.5   3  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.34   2  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  1   0.34   2  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.25   1  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  1   0.25   1  0  requires factions { england, } and event_counter new_era_begins 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.17   1  0  requires factions { england, } and event_counter new_era_begins 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Peasant Archers"  1   0.25   1  0  requires factions { england, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Peasant Archers"  1   0.67   4  0  requires factions { england, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 
                recruit_pool "Peasant Archers"  1   1   6  0  requires factions { england, } and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Noble Highland Archers"  1   0.17   2  0  requires factions { scotland, } and hidden_resource scotland 
                recruit_pool "Noble Highland Archers"  0   0.13   2  0  requires factions { scotland, } and not hidden_resource scotland 
                recruit_pool "Highland Archers"  1   0.5   5  0  requires factions { scotland, } and hidden_resource scotland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Highland Archers"  0   0.25   2  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Archers"  0   0.25   3  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Highland Archers"  1   0.34   4  0  requires factions { scotland, } and hidden_resource scotland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Highland Archers"  0   0.17   2  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource ireland
                recruit_pool "Highland Archers"  0   0.17   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource scotland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { scotland, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.34   4  0  requires factions { scotland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Mounted Crossbowmen"  1   0.34   2  0  requires factions { venice, } and event_counter new_era_begins 1
                recruit_pool "Venetian Archers"  1   0.67   4  0  requires factions { venice, } and event_counter new_era_begins 1
                recruit_pool "Venetian Archers"  1   0.5   3  0  requires factions { venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
		recruit_pool "Prussian Archers" 1   0.13   1  0  requires factions { venice, } and event_counter HEAVY_MAIL_ARMOR 1
		recruit_pool "Prussian Archers" 1   0.25   3  0  requires factions { venice, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Crossbowmen"  1   0.67   4  0  requires factions { venice, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Crossbowmen"  1   0.84   5  0  requires factions { venice, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { venice, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.34   4  0  requires factions { venice, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Aventurier"  1   0.13   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource france
                recruit_pool "Aventurier"  0   0.085   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france
                recruit_pool "Aventurier"  1   0.25   1  0  requires factions { venice, milan, } and event_counter world_is_round 1 and hidden_resource milan or hidden_resource venice
                recruit_pool "Aventurier"  0   0.17   1  0  requires factions { venice, milan, } and event_counter world_is_round 1 and not hidden_resource milan and not hidden_resource venice
                recruit_pool "Aventurier"  1   0.13   1  0  requires factions { spain, aragon, } and event_counter world_is_round 1 and hidden_resource spain or hidden_resource aragon
                recruit_pool "Aventurier"  0   0.085   1  0  requires factions { spain, aragon, } and event_counter world_is_round 1 and not hidden_resource spain and not hidden_resource aragon
                recruit_pool "Scots Guard"  1   0.13   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and hidden_resource france
                recruit_pool "Scots Guard"  0   0.085   1  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1 and not hidden_resource france
                recruit_pool "Dismounted French Archers"  1   0.34   2  0  requires factions { knights_templar, jerusalem, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasant Crossbowmen"  1   0.34   4  0  requires factions { france, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasant Crossbowmen"  1   0.5   5  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Peasant Archers"  1   0.13   1  0  requires factions { france, } and not event_counter FULL_PLATE_ARMOR 1

                recruit_pool "Mounted Crossbowmen"  1   0.34   2  0  requires factions { milan, papal_states, } and event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.13   1  0  requires factions { milan, papal_states, } and not event_counter new_era_begins 1
                recruit_pool "Mounted Crossbowmen"  1   0.34   2  0  requires factions { hre, spain, portugal, } and event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.13   1  0  requires factions { hre, spain, portugal, } and not event_counter new_era_begins 1

                recruit_pool "Mounted Crossbowmen"  1   0.34   2  0  requires factions { aragon, } and event_counter new_era_begins 1
                recruit_pool "Basque Archers"  1   0.34   4  0  requires factions { aragon, } and hidden_resource aragon and event_counter new_era_begins 1
                recruit_pool "Basque Archers"  0   0.17   2  0  requires factions { aragon, } and event_counter new_era_begins 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Basque Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter new_era_begins 1
                recruit_pool "Basque Archers"  1   0.25   3  0  requires factions { aragon, } and hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Basque Archers"  0   0.13   1  0  requires factions { aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource portugal or hidden_resource spain
                recruit_pool "Basque Archers"  0   0.13   2  0  requires factions { venice, scotland,  england, france, portugal, spain, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource aragon and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
				recruit_pool "Prussian Archers" 1   0.13   1  0  requires factions { aragon, } and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
				recruit_pool "Prussian Archers" 0   0.085   1  0  requires factions { aragon, } and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { aragon, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.5   5  0  requires factions { aragon, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Mounted Crossbowmen"  1   0.34   2  0  requires factions { denmark, norway, } and event_counter new_era_begins 1
                recruit_pool "Norse Archers"  1   0.5   5  0  requires factions { denmark, } and hidden_resource denmark and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  0   0.25   2  0  requires factions { denmark, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource norway or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.25   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  1   0.34   4  0  requires factions { denmark, } and hidden_resource denmark and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Norse Archers"  0   0.17   2  0  requires factions { denmark, } and not event_counter HEAVY_MAIL_ARMOR 1  and hidden_resource norway or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource denmark and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Norse Archers"  1   0.5   5  0  requires factions { norway, } and hidden_resource norway and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  0   0.25   2  0  requires factions { norway, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.25   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Norse Archers"  1   0.34   4  0  requires factions { norway, } and hidden_resource norway and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Norse Archers"  0   0.17   2  0  requires factions { norway, } and not event_counter HEAVY_MAIL_ARMOR 1  and hidden_resource denmark or hidden_resource ireland
                recruit_pool "Norse Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource norway and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Peasant Archers"  1   0.13   1  0  requires factions { denmark, norway, } and event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.25   3  0  requires factions { denmark, norway, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Peasant Archers"  1   0.34   4  0  requires factions { denmark, norway, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Crossbowmen"  1   0.25   2  0  requires factions { hungary, } and hidden_resource france or hidden_resource denmark or hidden_resource hungary or hidden_resource norway
                recruit_pool "Crossbowmen"  0   0.17   1  0  requires factions { hungary, } and not hidden_resource france and not hidden_resource denmark and not hidden_resource hungary and not hidden_resource norway
                recruit_pool "Crossbowmen"  1   0.17   2  0  requires factions { france, } and hidden_resource france or hidden_resource denmark or hidden_resource hungary or hidden_resource norway
                recruit_pool "Crossbowmen"  0   0.13   1  0  requires factions { france, } and not hidden_resource france and not hidden_resource denmark and not hidden_resource hungary and not hidden_resource norway
                recruit_pool "Crossbowmen"  1   0.17   2  0  requires factions { denmark, norway, } and hidden_resource france or hidden_resource denmark or hidden_resource hungary or hidden_resource norway
                recruit_pool "Crossbowmen"  0   0.13   1  0  requires factions { denmark, norway, } and not hidden_resource france and not hidden_resource denmark and not hidden_resource hungary and not hidden_resource norway
                recruit_pool "Peasant Crossbowmen"  1   0.84   5  0  requires factions { milan, papal_states, } and not event_counter new_era_begins 1
                recruit_pool "Peasant Crossbowmen"  1   0.67   4  0  requires factions { milan, papal_states, } and event_counter new_era_begins 1
                recruit_pool "Peasant Crossbowmen"  1   0.5   5  0  requires factions { hre, spain, aragon, portugal, } and not event_counter new_era_begins 1
                recruit_pool "Peasant Crossbowmen"  1   0.34   4  0  requires factions { hre, spain, aragon, portugal, } and event_counter new_era_begins 1

				recruit_pool "Pavise Crossbowmen"  1   0.25   2  0  requires factions { papal_states, sicily, } and hidden_resource hre or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource papal_states or hidden_resource sicily or hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  0   0.17   1  0  requires factions { papal_states, sicily, } and not hidden_resource hre and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  1   0.17   2  0  requires factions { poland, } and hidden_resource hre or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource papal_states or hidden_resource sicily or hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  0   0.13   1  0  requires factions { poland, } and not hidden_resource hre and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  1   0.17   2  0  requires factions { hre, spain, aragon, portugal, } and hidden_resource hre or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource papal_states or hidden_resource sicily or hidden_resource poland
				recruit_pool "Pavise Crossbowmen"  0   0.13   1  0  requires factions { hre, spain, aragon, portugal, } and not hidden_resource hre and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource papal_states and not hidden_resource sicily and not hidden_resource poland
                recruit_pool "Genoese Crossbowmen"  1   0.34   2  0  requires factions { milan, } and hidden_resource milan 
                recruit_pool "Genoese Crossbowmen"  0   0.25   1  0  requires factions { milan, } and not hidden_resource milan 

				recruit_pool "Prussian Archers" 1   0.25   3  0  requires factions { milan, papal_states, hre, france, spain, aragon, portugal, } and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
				recruit_pool "Prussian Archers" 0   0.17   2  0  requires factions { milan, papal_states, hre, france, spain, aragon, portugal, } and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus

                recruit_pool "Templar Longbowmen"  1   0.13   1  0  requires factions { jerusalem, } and event_counter TRANSITIONAL_ARMOR 1 
                recruit_pool "Templar Crossbowmen"  1   0.17   2  0  requires factions { jerusalem, } and event_counter council_of_troyes 1 
		recruit_pool "Prussian Archers" 1   0.34   3  0  requires factions { jerusalem, } and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
		recruit_pool "Prussian Archers" 0   0.25   2  0  requires factions { jerusalem, } and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Peasant Archers"  1   0.5   5  0  requires factions { jerusalem, } and event_counter council_of_troyes 1
                recruit_pool "Peasant Archers"  1   0.67   6  0  requires factions { jerusalem, } and not event_counter council_of_troyes 1

                recruit_pool "Mounted Crossbowmen"  1   0.34   2  0  requires factions { sicily, } and event_counter new_era_begins 1
                recruit_pool "Sicilian Muslim Archers"  1   0.5   5  0  requires factions { sicily, } and hidden_resource sicily and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  0   0.25   2  0  requires factions { sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource venice or hidden_resource milan or hidden_resource papal_states
                recruit_pool "Sicilian Muslim Archers"  0   0.25   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource sicily and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  1   0.34   4  0  requires factions { sicily, } and hidden_resource sicily and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Sicilian Muslim Archers"  0   0.17   2  0  requires factions { sicily, } and not event_counter HEAVY_MAIL_ARMOR 1  and hidden_resource venice or hidden_resource milan or hidden_resource papal_states
                recruit_pool "Sicilian Muslim Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource sicily and not event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "S Peasant Archers"  1   0.17   2  0  requires factions { sicily, } and event_counter new_era_begins 1
                recruit_pool "S Peasant Archers"  1   0.25   3  0  requires factions { sicily, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "S Peasant Archers"  1   0.34   4  0  requires factions { sicily, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Sicilian Muslim Archers"  1   0.5   5  0  requires factions { knights_templar, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "S Peasant Archers"  1   0.25   3  0  requires factions { knights_templar, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Sicilian Muslim Archers"  1   0.34   4  0  requires factions { knights_templar, } and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "S Peasant Archers"  1   0.34   4  0  requires factions { knights_templar, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Lettish Crossbowmen"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Lettish Crossbowmen"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania
                recruit_pool "Ruthenian Archers"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania
                recruit_pool "Ruthenian Archers"  0   0.25   2  0  requires factions { lithuania, } and not hidden_resource lithuania
                recruit_pool "Lithuanian Archers"  1   0.5   4  0  requires factions { lithuania, } and hidden_resource lithuania and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.25   2  0  requires factions { lithuania, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.17   1  0  requires factions { lithuania, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  1   0.34   3  0  requires factions { lithuania, } and hidden_resource lithuania and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.17   1  0  requires factions { lithuania, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland or hidden_resource hungary or hidden_resource russia
                recruit_pool "Lithuanian Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.25   2  0  requires factions { lithuania, } and not event_counter HEAVY_MAIL_ARMOR 1
 
                recruit_pool "Lithuanian Archers"  1   0.5   5  0  requires factions { poland, } and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.25   2  0  requires factions { poland, } and event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Lithuanian Archers"  0   0.25   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.25   3  0  requires factions { poland, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  1   0.34   4  0  requires factions { poland, } and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Lithuanian Archers"  0   0.17   2  0  requires factions { poland, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource hungary or hidden_resource lithuania
                recruit_pool "Lithuanian Archers"  0   0.17   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource poland and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "EE Peasant Archers"  1   0.34   4  0  requires factions { poland, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Bosnian Archers"  1   0.67   5  0  requires factions { hungary, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Bosnian Archers"  0   0.34   2  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1  and hidden_resource poland
                recruit_pool "Bosnian Archers"  0   0.34   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "S Peasant Archers"  1   0.5   4  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1 
                recruit_pool "Bosnian Archers"  1   0.5   4  0  requires factions { hungary, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Bosnian Archers"  0   0.25   2  0  requires factions { hungary, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource poland
                recruit_pool "Bosnian Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "S Peasant Archers"  1   0.67   5  0  requires factions { hungary, } and not event_counter HEAVY_MAIL_ARMOR 1

                recruit_pool "Mourtatoi"  1   0.34   4  0  requires factions { byzantium, } and hidden_resource byzantium
                recruit_pool "Mourtatoi"  0   0.17   2  0  requires factions { byzantium, } and hidden_resource turks
                recruit_pool "Mourtatoi"  0   0.17   2  0  requires factions { venice,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, hungary, scotland, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource byzantium
		recruit_pool "Toxotae"  1   0.34   4  0  requires factions { byzantium, }

                recruit_pool "ME Heavy Archers"  1   0.5   2  0  requires factions { moors, } and event_counter new_era_begins 1
                recruit_pool "Granadine CB Cav"  1   0.34   3  0  requires factions { moors, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Granadine CB Cav"  0   0.17   1  0  requires factions { moors, } and event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Granadine CB Cav"  0   0.2   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Desert Archers"  1   0.25   1  0  requires factions { moors, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Desert Archers"  0   0.13   1 0  requires factions { moors, } and event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Sudanese Javelinmen"  1   0.25   1  0  requires factions { moors, } and hidden_resource moors and event_counter new_era_begins 1
                recruit_pool "Sudanese Javelinmen"  0   0.13   1 0  requires factions { moors, } and event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Sudanese Javelinmen"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and event_counter new_era_begins 1

                recruit_pool "Desert Archers"  1   0.5   3  0  requires factions { moors, } and hidden_resource moors and not event_counter new_era_begins 1
                recruit_pool "Desert Archers"  0   0.25   1  0  requires factions { moors, } and not event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Desert Archers"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and not event_counter new_era_begins 1
                recruit_pool "Sudanese Javelinmen"  1   0.67   4  0  requires factions { moors, } and hidden_resource moors and not event_counter new_era_begins 1
                recruit_pool "Sudanese Javelinmen"  0   0.34   2  0  requires factions { moors, } and not event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource spain
                recruit_pool "Sudanese Javelinmen"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource moors and not event_counter new_era_begins 1
                recruit_pool "ME Peasant Crossbowmen"  1   0.34   2  0  requires factions { moors, } 

                recruit_pool "ME Heavy Archers"  1   0.84   3  0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "ME Heavy Archers"  1   0.67   2  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Turkish Crossbowmen"  1   0.67   2  0  requires factions { turks, } and event_counter new_era_begins 1
                recruit_pool "Ottoman Infantry"  1   0.84   3  0  requires factions { turks, } and event_counter new_era_begins 1
                recruit_pool "Turkish Archers"  1   0.25   1  0  requires factions { turks, } and hidden_resource turks and event_counter FULL_PLATE_ARMOR 1 
                recruit_pool "Turkish Archers"  0   0.13   1 0  requires factions { turks, } and event_counter FULL_PLATE_ARMOR 1  and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Archers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks and event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Turkish Archers"  1   0.34   2  0  requires factions { turks, } and hidden_resource turks and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Turkish Archers"  0   0.17   1  0  requires factions { turks, } and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Archers"  0   0.17   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks and event_counter new_era_begins 1 and not event_counter FULL_PLATE_ARMOR 1
                recruit_pool "Ottoman Infantry"  1   0.84   3  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Turkish Archers"  1   0.67   4  0  requires factions { turks, } and hidden_resource turks and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Turkish Archers"  0   0.34   2  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Archers"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "ME Peasant Archers"  1   0.34   2  0  requires factions { turks, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "Turkish Archers"  1   0.67   4  0  requires factions { turks, } and hidden_resource turks and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Turkish Archers"  0   0.34   2  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource egypt or hidden_resource kwarezm
                recruit_pool "Turkish Archers"  0   0.34   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, jerusalem, knights_templar, egypt, byzantium, hungary, kievan_rus, teutonic_order, slave, } and hidden_resource turks and not event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "ME Peasant Archers"  1   0.84   5  0  requires factions { turks, } and not event_counter HEAVY_MAIL_ARMOR 1 

                recruit_pool "Luchniki"  1   1   4  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1
                recruit_pool "Luchniki"  1   0.84   3  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
				recruit_pool "Dismounted Junior Druzhina" 1   0.25   2  0  requires factions { russia, kievan_rus, } and hidden_resource kievan_rus
				recruit_pool "Dismounted Junior Druzhina" 0   0.17   1  0  requires factions { russia, kievan_rus, } and not hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  1   0.5   3  0  requires factions { russia, kievan_rus, } and not event_counter HEAVY_MAIL_ARMOR 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.34   2  0  requires factions { russia, kievan_rus, } and not event_counter HEAVY_MAIL_ARMOR 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  1   0.25   1  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and hidden_resource england or hidden_resource hre or hidden_resource france or hidden_resource spain or hidden_resource aragon or hidden_resource portugal or hidden_resource milan or hidden_resource venice or hidden_resource papal_states or hidden_resource jerusalem or hidden_resource russia or hidden_resource kievan_rus
                recruit_pool "Prussian Archers"  0   0.17   1  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1 and not hidden_resource england and not hidden_resource hre and not hidden_resource france and not hidden_resource spain and not hidden_resource aragon and not hidden_resource portugal and not hidden_resource milan and not hidden_resource venice and not hidden_resource papal_states and not hidden_resource jerusalem and not hidden_resource russia and not hidden_resource kievan_rus
                recruit_pool "EE Peasant Archers"  1   0.5   3  0  requires factions { russia, kievan_rus, } and event_counter new_era_begins 1
                recruit_pool "EE Peasant Archers"  1   0.67   4  0  requires factions { russia, kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1 and not event_counter new_era_begins 1
                recruit_pool "EE Peasant Archers"  1   0.84   5  0  requires factions { russia, kievan_rus, } and not event_counter HEAVY_MAIL_ARMOR 1  

                recruit_pool "ME Peasant Archers"  1   0.5   4  0  requires factions { mongols, timurids, }  
                recruit_pool "Khabutu Archers"  1   0.5   4  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks  
                recruit_pool "Khabutu Archers"  0   0.25   2  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks 
                recruit_pool "Merguen Archers"  1   0.25   2  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks  
                recruit_pool "Merguen Archers"  0   0.17   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks 
                recruit_pool "Dismounted Khorchi Archers"  1   0.17   1  0  requires factions { mongols, timurids, } and hidden_resource cumans or hidden_resource kwarezm or hidden_resource turks  
                recruit_pool "Dismounted Khorchi Archers"  0   0.13   1  0  requires factions { mongols, timurids, } and not hidden_resource cumans and not hidden_resource kwarezm and not hidden_resource turks 
				
                law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building siege
{
    convert_to castle_siege
    levels ballista_range catapult_range siege_works 
    {
        ballista_range city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 0
            capability
            {
           	recruit_pool "NE Ballista"  1  0.15  2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } 
           	recruit_pool "NE Ballista"  1  0.15  2  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } 
           	recruit_pool "NE Ballista"  1  0.15  2  0  requires factions { byzantium, } 
           	recruit_pool "ME Ballista"  1  0.15  2  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           	recruit_pool "ME Ballista"  1  0.15  2  0  requires factions { mongols, timurids, } 
            }
            material wooden
            construction  4 
            cost  1000 
            settlement_min town
            upgrades
            {
                catapult_range
            }
        }
        catapult_range city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 1
            capability
            {
           	recruit_pool "NE Catapult"  1  0.15  2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } 
           	recruit_pool "NE Catapult"  1  0.15  2  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } 
           	recruit_pool "NE Catapult"  1  0.15  2  0  requires factions { byzantium, } 
           	recruit_pool "ME Catapult"  1  0.15  2  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           	recruit_pool "ME Catapult"  1  0.15  2  0  requires factions { mongols, timurids, } 
           	recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } 
           	recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } 
           	recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { byzantium, } 
           	recruit_pool "ME Ballista"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           	recruit_pool "ME Ballista"  1  0.1  1  0  requires factions { mongols, timurids, } 
            }
            material wooden
            construction  6 
            cost  2000 
            settlement_min large_town
            upgrades
            {
                siege_works
            }
        }
        siege_works city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 2
            capability
            {
           recruit_pool "NE Trebuchet"  1  0.15  2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_rudder 1
           recruit_pool "NE Trebuchet"  1  0.15  2  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_rudder 1
           recruit_pool "NE Trebuchet"  1  0.15  2  0  requires factions { byzantium, } 
           recruit_pool "ME Trebuchet"  1  0.15  2  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           recruit_pool "ME Trebuchet"  1  0.15  2  0  requires factions { mongols, timurids, } 
           recruit_pool "Mangonel"  1  0.1  1  0  requires factions { egypt, turks, moors, kwarezm, cumans, } 
           recruit_pool "Mangonel"  1  0.1  1  0  requires factions { poland, hungary, } 
           recruit_pool "Mangonel"  1  0.1  1  0  requires factions { byzantium, } 
           recruit_pool "Mangonel"  1  0.1  1  0  requires factions { england, norway, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily,  teutonic_order, jerusalem, knights_templar, } 
           recruit_pool "NE Catapult"  1  0.1  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_rudder 1
           recruit_pool "NE Catapult"  1  0.1  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_rudder 1
           recruit_pool "NE Catapult"  1  0.2  3  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and not event_counter first_rudder 1
           recruit_pool "NE Catapult"  1  0.2  3  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and not event_counter first_rudder 1
           recruit_pool "NE Catapult"  1  0.1  1  0  requires factions { byzantium, } 
           recruit_pool "ME Catapult"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           recruit_pool "ME Catapult"  1  0.1  1  0  requires factions { mongols, timurids, } 
           recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_rudder 1
           recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_rudder 1
           recruit_pool "NE Ballista"  1  0.15  2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and not event_counter first_rudder 1
           recruit_pool "NE Ballista"  1  0.15  2  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and not event_counter first_rudder 1
           recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { byzantium, } 
           recruit_pool "ME Ballista"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           recruit_pool "ME Ballista"  1  0.1  1  0  requires factions { mongols, timurids, } 
           recruit_pool "Great Cross"  1  0.1  1  0  requires factions { knights_templar, jerusalem, } 
            }
            material wooden
            construction  7 
            cost  4000 
            settlement_min city
            upgrades
            {
            }
        }

    }
    plugins 
    {
    }
}
building castle_siege
{
    convert_to siege
    levels c_ballista_range c_catapult_range c_siege_works 
    {
        c_ballista_range castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 0
            capability
            {
                recruit_pool "NE Ballista"  1   0.1   1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } 
                recruit_pool "NE Ballista"  1   0.1   1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } 
                recruit_pool "NE Ballista"  1   0.1   1  0  requires factions { byzantium, } 
                recruit_pool "ME Ballista"  1   0.1   1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
                recruit_pool "ME Ballista"  1   0.1   1  0  requires factions { mongols, timurids, } 
            }
            material wooden
            construction  4 
            cost  1000 
            settlement_min large_town
            upgrades
            {
                c_catapult_range
            }
        }
        c_catapult_range castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 1
            capability
            {
           	recruit_pool "NE Catapult"  1  0.15  2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } 
           	recruit_pool "NE Catapult"  1  0.15  2  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } 
           	recruit_pool "NE Catapult"  1  0.15  2  0  requires factions { byzantium, } 
           	recruit_pool "ME Catapult"  1  0.15  2  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           	recruit_pool "ME Catapult"  1  0.15  2  0  requires factions { mongols, timurids, } 
           	recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } 
           	recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } 
           	recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { byzantium, } 
           	recruit_pool "ME Ballista"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           	recruit_pool "ME Ballista"  1  0.1  1  0  requires factions { mongols, timurids, } 
            }
            material wooden
            construction  6 
            cost  2000 
            settlement_min large_town
            upgrades
            {
                c_siege_works
            }
        }
        c_siege_works castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 2
            capability
            {
           recruit_pool "NE Trebuchet"  1  0.15  2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_rudder 1
           recruit_pool "NE Trebuchet"  1  0.15  2  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_rudder 1
           recruit_pool "NE Trebuchet"  1  0.15  2  0  requires factions { byzantium, } 
           recruit_pool "ME Trebuchet"  1  0.15  2  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           recruit_pool "ME Trebuchet"  1  0.15  2  0  requires factions { mongols, timurids, } 
           recruit_pool "Mangonel"  1  0.1  1  0  requires factions { egypt, turks, moors, kwarezm, cumans, } 
           recruit_pool "Mangonel"  1  0.1  1  0  requires factions { poland, hungary, } 
           recruit_pool "Mangonel"  1  0.1  1  0  requires factions { byzantium, } 
           recruit_pool "Mangonel"  1  0.1  1  0  requires factions { england, norway, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily,  teutonic_order, jerusalem, knights_templar, } 
           recruit_pool "NE Catapult"  1  0.1  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_rudder 1
           recruit_pool "NE Catapult"  1  0.1  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_rudder 1
           recruit_pool "NE Catapult"  1  0.2  3  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and not event_counter first_rudder 1
           recruit_pool "NE Catapult"  1  0.2  3  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and not event_counter first_rudder 1
           recruit_pool "NE Catapult"  1  0.1  1  0  requires factions { byzantium, } 
           recruit_pool "ME Catapult"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           recruit_pool "ME Catapult"  1  0.1  1  0  requires factions { mongols, timurids, } 
           recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_rudder 1
           recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_rudder 1
           recruit_pool "NE Ballista"  1  0.15  2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and not event_counter first_rudder 1
           recruit_pool "NE Ballista"  1  0.15  2  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and not event_counter first_rudder 1
           recruit_pool "NE Ballista"  1  0.1  1  0  requires factions { byzantium, } 
           recruit_pool "ME Ballista"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } 
           recruit_pool "ME Ballista"  1  0.1  1  0  requires factions { mongols, timurids, } 
           recruit_pool "Great Cross"  1  0.1  1  0  requires factions { knights_templar, jerusalem, } 
            }
            material wooden
            construction  7 
            cost  4000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building cannon
{
    convert_to castle_cannon
    levels gunsmith cannon_maker cannon_foundry royal_arsenal 
    {
        gunsmith city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 0
            capability
            {
           	recruit_pool "NE Bombard"  1  0.15  2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_blast_furnace 1
           	recruit_pool "NE Bombard"  1  0.15  2  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_blast_furnace 1
           	recruit_pool "NE Bombard"  1  0.15  2  0  requires factions { byzantium, } and event_counter first_blast_furnace 1 
           	recruit_pool "ME Bombard"  1  0.15  2  0  requires factions { moors, egypt, turks, kwarezm, cumans, } and event_counter CANNONS 1
           	recruit_pool "AS Rocket Launcher"  1  0.1  1  0  requires factions { mongols, timurids, } 
            }
            material wooden
            construction  4 
            cost  3000 
            settlement_min city
            upgrades
            {
                cannon_maker
            }
        }
        cannon_maker city requires factions { northern_european, egypt, moors, turks, greek, kwarezm, eastern_european, southern_european, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 1
            capability
            {
           	recruit_pool "NE Mortar"  1  0.15  1  0  requires factions { england, scotland, venice, papal_states, sicily, knights_templar,  jerusalem, } and event_counter hundred_years_war 1
           	recruit_pool "NE Grand Bombard"  1  0.15  1  0  requires factions { france, hre, spain, aragon, portugal, milan, teutonic_order, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.15  1  0  requires factions { denmark,  norway, }
           	recruit_pool "NE Ribault"  1  0.15  1  0  requires factions { poland, hungary, }
           	recruit_pool "NE Grand Bombard"  1  0.15  1  0  requires factions { russia, lithuania, kievan_rus, byzantium,  } and event_counter SHATIR 1 
           	recruit_pool "ME Grand Bombard"  1  0.15  1  0  requires factions { moors, egypt, turks, kwarezm, timurids, cumans, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.15  1  0  requires factions { england, scotland, spain, aragon, portugal, milan, venice, papal_states, sicily, } and event_counter first_blast_furnace 1
           	recruit_pool "NE Bombard"  1  0.1  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.1  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.1  1  0  requires factions { byzantium, } and event_counter first_blast_furnace 1 
           	recruit_pool "ME Bombard"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } and event_counter CANNONS 1 
           	recruit_pool "AS Rocket Launcher"  1  0.1  1  0  requires factions { mongols, timurids, } 
                weapon_naval_gunpowder 1
            }
            material wooden
            construction  6 
            cost  4500 
            settlement_min large_city
            upgrades
            {
                cannon_foundry
            }
        }
        cannon_foundry city requires factions { northern_european, egypt, moors, turks, greek, kwarezm, eastern_european, southern_european, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 2
            capability
            {
           	recruit_pool "NE Culverin"  1  0.2  2  0  requires factions { england, scotland, france, spain, aragon, portugal, milan, venice, papal_states,  } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.2  2  0  requires factions { hre, sicily, knights_templar, teutonic_order, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.15  1  0  requires factions { denmark, norway, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.15  1  0  requires factions { poland, lithuania, hungary, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.2  2  0  requires factions { russia, kievan_rus, byzantium, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "ME Cannon"  1  0.2  2  0  requires factions { moors, egypt, turks, kwarezm, cumans, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.15  1  0  requires factions { france, hre, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.2  2  0  requires factions { denmark, norway, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.2  2  0  requires factions { poland, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Mortar"  1  0.1  1  0  requires factions { england, scotland, venice, papal_states, sicily, knights_templar,  jerusalem, } and event_counter hundred_years_war 1
           	recruit_pool "NE Grand Bombard"  1  0.1  1  0  requires factions { france, hre, spain, aragon, portugal, milan, teutonic_order, } and event_counter SHATIR 1  
           	recruit_pool "NE Ribault"  1  0.15  1  0  requires factions { denmark,  norway, } 
           	recruit_pool "NE Ribault"  1  0.15  1  0  requires factions { poland, hungary, } 
           	recruit_pool "NE Grand Bombard"  1  0.1  1  0  requires factions { russia, lithuania, kievan_rus, byzantium,  } and event_counter SHATIR 1 
           	recruit_pool "ME Grand Bombard"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, timurids, cumans, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.15  1  0  requires factions { england, scotland, spain, aragon, portugal, milan, venice, papal_states, sicily, }
           	recruit_pool "NE Bombard"  1  0.1  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.1  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.1  1  0  requires factions { byzantium, } and event_counter first_blast_furnace 1 
           	recruit_pool "ME Bombard"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } and event_counter CANNONS 1 
           	recruit_pool "AS Rocket Launcher"  1  0.15  2  0  requires factions { mongols, timurids, } 
                weapon_naval_gunpowder 1
            }
            material wooden
            construction  7 
            cost  6000 
            settlement_min huge_city
            upgrades
            {
                royal_arsenal
            }
        }
        royal_arsenal city requires factions { hre, teutonic_order, france, turks, kwarezm, hungary, russia, venice, milan, portugal, spain, aragon, knights_templar, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 3
            capability
            {
           	recruit_pool "NE Basilisk"  1  0.15  1  0  requires factions { france, hre, spain, aragon, portugal, teutonic_order, } and event_counter science_da_vinci_ornithopter 1
           	recruit_pool "NE Monster Ribault"  1  0.1  1  0  requires factions { milan, venice, } and event_counter CANNONS 1
           	recruit_pool "NE Basilisk"  1  0.2  2  0  requires factions { russia, kievan_rus, hungary, } and event_counter science_da_vinci_ornithopter 1
           	recruit_pool "ME Monster Bombard"  1  0.1  1  0  requires factions { turks, kwarezm, } and event_counter MATCHLOCK 1 
           	recruit_pool "NE Culverin"  1  0.2  2  0  requires factions { england, scotland, france, spain, aragon, portugal, milan, venice, papal_states,  } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.2  2  0  requires factions { hre, sicily, knights_templar, teutonic_order, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.15  1  0  requires factions { denmark, norway, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.15  1  0  requires factions { poland, lithuania, hungary, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.15  2  0  requires factions { russia, lithuania, kievan_rus, byzantium, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "ME Cannon"  1  0.2  2  1  requires factions { moors, egypt, turks, kwarezm, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.15  1  0  requires factions { france, hre, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.2  2  0  requires factions { denmark, norway, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.2  2  0  requires factions { poland, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Mortar"  1  0.1  1  0  requires factions { england, scotland, venice, papal_states, sicily, knights_templar,  jerusalem, } and event_counter hundred_years_war 1
           	recruit_pool "NE Grand Bombard"  1  0.1  1  0  requires factions { france, hre, spain, aragon, portugal, milan, teutonic_order, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.15  1  0  requires factions { denmark,  norway, } 
           	recruit_pool "NE Ribault"  1  0.15  1  0  requires factions { poland, hungary, } 
           	recruit_pool "NE Grand Bombard"  1  0.1  1  0  requires factions { russia, lithuania, kievan_rus, byzantium,  } and event_counter SHATIR 1 
           	recruit_pool "ME Grand Bombard"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, timurids, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.15  1  0  requires factions { england, scotland, spain, aragon, portugal, milan, venice, papal_states, sicily, } 
           	recruit_pool "NE Bombard"  1  0.1  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.1  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.1  1  0  requires factions { byzantium, } and event_counter first_blast_furnace 1 
           	recruit_pool "ME Bombard"  1  0.1  1  0  requires factions { moors, egypt, turks, kwarezm, } and event_counter CANNONS 1 
           	recruit_pool "AS Rocket Launcher"  1  0.15  2  0  requires factions { mongols, timurids, } 
                weapon_naval_gunpowder 1
            }
            material wooden
            construction  9 
            cost  7500 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_cannon
{
    convert_to cannon
    levels c_gunsmith c_cannon_maker c_cannon_foundry c_royal_arsenal 
    {
        c_gunsmith castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 0
            capability
            {
           	recruit_pool "NE Bombard"  1  0.13  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_blast_furnace 1
           	recruit_pool "NE Bombard"  1  0.13  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_blast_furnace 1
           	recruit_pool "NE Bombard"  1  0.13  1  0  requires factions { byzantium, } and event_counter first_blast_furnace 1 
           	recruit_pool "ME Bombard"  1  0.13  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } and event_counter CANNONS 1
           	recruit_pool "AS Rocket Launcher"  1  0.1  1  0  requires factions { mongols, timurids, } 
            }
            material wooden
            construction  4 
            cost  3000 
            settlement_min city
            upgrades
            {
                c_cannon_maker
            }
        }
        c_cannon_maker castle requires factions { northern_european, egypt, moors, turks, greek, kwarezm, eastern_european, southern_european, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 1
            capability
            {
           	recruit_pool "NE Mortar"  1  0.13  1  0  requires factions { england, scotland, venice, papal_states, sicily, knights_templar,  jerusalem, } and event_counter hundred_years_war 1
           	recruit_pool "NE Grand Bombard"  1  0.13  1  0  requires factions { france, hre, spain, aragon, portugal, milan, teutonic_order, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.13  1  0  requires factions { denmark,  norway, }
           	recruit_pool "NE Ribault"  1  0.13  1  0  requires factions { poland, hungary, }
           	recruit_pool "NE Grand Bombard"  1  0.13  1  0  requires factions { russia, lithuania, kievan_rus, byzantium,  } and event_counter SHATIR 1 
           	recruit_pool "ME Grand Bombard"  1  0.13  1  0  requires factions { moors, egypt, turks, kwarezm, timurids, cumans, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.13  1  0  requires factions { england, scotland, spain, aragon, portugal, milan, venice, papal_states, sicily, } and event_counter first_blast_furnace 1
           	recruit_pool "NE Bombard"  1  0.085  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.085  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.085  1  0  requires factions { byzantium, } and event_counter first_blast_furnace 1 
           	recruit_pool "ME Bombard"  1  0.085  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } and event_counter CANNONS 1 
           	recruit_pool "AS Rocket Launcher"  1  0.1  1  0  requires factions { mongols, timurids, } 
                weapon_naval_gunpowder 1
            }
            material wooden
            construction  6 
            cost  4500 
            settlement_min large_city
            upgrades
            {
                c_cannon_foundry
            }
        }
        c_cannon_foundry castle requires factions { northern_european, egypt, moors, turks, greek, kwarezm, eastern_european, southern_european, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 2
            capability
            {
           	recruit_pool "NE Culverin"  1  0.17  2  0  requires factions { england, scotland, france, spain, aragon, portugal, milan, venice, papal_states,  } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.17  2  0  requires factions { hre, sicily, knights_templar, teutonic_order, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.13  1  0  requires factions { denmark, norway, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.13  1  0  requires factions { poland, lithuania, hungary, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.17  2  0  requires factions { russia, kievan_rus, byzantium, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "ME Cannon"  1  0.17  2  0  requires factions { moors, egypt, turks, kwarezm, cumans, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.13  1  0  requires factions { france, hre, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.17  2  0  requires factions { denmark, norway, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.17  2  0  requires factions { poland, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Mortar"  1  0.085  1  0  requires factions { england, scotland, venice, papal_states, sicily, knights_templar,  jerusalem, } and event_counter hundred_years_war 1
           	recruit_pool "NE Grand Bombard"  1  0.085  1  0  requires factions { france, hre, spain, aragon, portugal, milan, teutonic_order, } and event_counter SHATIR 1
           	recruit_pool "NE Ribault"  1  0.13  1  0  requires factions { denmark,  norway, } 
           	recruit_pool "NE Ribault"  1  0.13  1  0  requires factions { poland, hungary, } 
           	recruit_pool "NE Grand Bombard"  1  0.085  1  0  requires factions { russia, lithuania, kievan_rus, byzantium,  } and event_counter SHATIR 1 
           	recruit_pool "ME Grand Bombard"  1  0.085  1  0  requires factions { moors, egypt, turks, kwarezm, timurids, cumans, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.13  1  0  requires factions { england, scotland, spain, aragon, portugal, milan, venice, papal_states, sicily, }
           	recruit_pool "NE Bombard"  1  0.085  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.085  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.085  1  0  requires factions { byzantium, } and event_counter first_blast_furnace 1 
           	recruit_pool "ME Bombard"  1  0.085  1  0  requires factions { moors, egypt, turks, kwarezm, cumans, } and event_counter CANNONS 1 
           	recruit_pool "AS Rocket Launcher"  1  0.13  2  0  requires factions { mongols, timurids, } 
                weapon_naval_gunpowder 1
            }
            material wooden
            construction  7 
            cost  6000 
            settlement_min large_city
            upgrades
            {
                c_royal_arsenal
            }
        }
        c_royal_arsenal castle requires factions { hre, teutonic_order, france, turks, kwarezm, hungary, russia, venice, milan, portugal, spain, aragon, knights_templar, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 3
            capability
            {
           	recruit_pool "NE Basilisk"  1  0.13  1  0  requires factions { france, hre, spain, aragon, portugal, teutonic_order, } and event_counter science_da_vinci_ornithopter 1
           	recruit_pool "NE Monster Ribault"  1  0.085  1  0  requires factions { milan, venice, } and event_counter CANNONS 1
           	recruit_pool "NE Basilisk"  1  0.17  2  0  requires factions { russia, kievan_rus, hungary, } and event_counter science_da_vinci_ornithopter 1
           	recruit_pool "ME Monster Bombard"  1  0.085  1  0  requires factions { turks, kwarezm, } and event_counter MATCHLOCK 1 
           	recruit_pool "NE Culverin"  1  0.17  2  0  requires factions { england, scotland, france, spain, aragon, portugal, milan, venice, papal_states,  } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.17  2  0  requires factions { hre, sicily, knights_templar, teutonic_order, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.13  1  0  requires factions { denmark, norway, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.13  1  0  requires factions { poland, lithuania, hungary, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.17  2  0  requires factions { russia, lithuania, kievan_rus, byzantium, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "ME Cannon"  1  0.17  2  1  requires factions { moors, egypt, turks, kwarezm, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Serpentine"  1  0.13  1  0  requires factions { france, hre, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.17  2  0  requires factions { denmark, norway, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Cannon"  1  0.17  2  0  requires factions { poland, } and event_counter GOTHIC_ARMOR 1
           	recruit_pool "NE Mortar"  1  0.085  1  0  requires factions { england, scotland, venice, papal_states, sicily, knights_templar,  jerusalem, } and event_counter hundred_years_war 1
           	recruit_pool "NE Grand Bombard"  1  0.085  1  0  requires factions { france, hre, spain, aragon, portugal, milan, teutonic_order, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.13  1  0  requires factions { denmark,  norway, } 
           	recruit_pool "NE Ribault"  1  0.13  1  0  requires factions { poland, hungary, } 
           	recruit_pool "NE Grand Bombard"  1  0.085  1  0  requires factions { russia, lithuania, kievan_rus, byzantium,  } and event_counter SHATIR 1 
           	recruit_pool "ME Grand Bombard"  1  0.085  1  0  requires factions { moors, egypt, turks, kwarezm, timurids, } and event_counter SHATIR 1 
           	recruit_pool "NE Ribault"  1  0.13  1  0  requires factions { england, scotland, spain, aragon, portugal, milan, venice, papal_states, sicily, } 
           	recruit_pool "NE Bombard"  1  0.085  1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, milan, venice, papal_states, sicily, knights_templar,  norway, jerusalem, teutonic_order, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.085  1  0  requires factions { poland, lithuania, russia, kievan_rus, hungary, } and event_counter first_blast_furnace 1 
           	recruit_pool "NE Bombard"  1  0.085  1  0  requires factions { byzantium, } and event_counter first_blast_furnace 1 
           	recruit_pool "ME Bombard"  1  0.085  1  0  requires factions { moors, egypt, turks, kwarezm, } and event_counter CANNONS 1 
           	recruit_pool "AS Rocket Launcher"  1  0.13  2  0  requires factions { mongols, timurids, } 
                weapon_naval_gunpowder 1
            }
            material wooden
            construction  9 
            cost  7500 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building urban_equestrian
{
    levels racing_track sultans_racing_track 
    {
        racing_track city requires factions { middle_eastern, } 
        {
            capability
            {
                happiness_bonus bonus 1
                stage_races 1
            }
            material wooden
            construction  5 
            cost  1500 
            settlement_min city
            upgrades
            {
                sultans_racing_track
            }
        }
        sultans_racing_track city requires factions { middle_eastern, } 
        {
            capability
            {
                happiness_bonus bonus 3
                stage_races 2
            }
            material wooden
            construction  7 
            cost  3000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building smith
{
    convert_to castle_smith
    levels leather_tanner blacksmith armourer heavy_armourer plate_armourer gothic_armourer 
    {
        leather_tanner city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                armour 1
		armour 2 requires not factions { mongols, timurids, }
		armour 3 requires factions { mongols, timurids, }
            }
            material wooden
            construction  3 
            cost  600 
            settlement_min town
            upgrades
            {
                blacksmith
            }
        }
        blacksmith city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 1
            capability
            {
                armour 4 requires factions { northern_european, southern_european, eastern_european, }
                armour 5 
                armour 6 requires not factions { mongols, timurids, }
                armour 7 requires not factions { mongols, timurids, }
            }
            material wooden
            construction  4 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                armourer
            }
        }
        armourer city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 2
            capability
            {
                armour 8 requires factions { northern_european, southern_european, eastern_european, } and event_counter TRANSITIONAL_ARMOR 1
                armour 9 
                armour 10 requires not factions { mongols, timurids, }
                armour 11 requires not factions { mongols, timurids, } 
                ;armour 12 requires factions { northern_european, southern_european, eastern_european, }
            }
            material wooden
            construction  6 
            cost  2400 
            settlement_min city
            upgrades
            {
                heavy_armourer
            }
        }
        heavy_armourer city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } and event_counter TRANSITIONAL_ARMOR 1 ; and building_present_min_level market fairground 
        {
            convert_to 3
            capability
            {
                armour 13 requires factions { middle_eastern, } and event_counter HALF_PLATE_ARMOR 1
                armour 13 requires factions { northern_european, southern_european, eastern_european, } and event_counter HALF_PLATE_ARMOR 1
                armour 14 
                armour 15 requires factions { northern_european, southern_european, eastern_european, middle_eastern, }
                armour 16 requires factions { northern_european, southern_european, eastern_european, } and event_counter HALF_PLATE_ARMOR 1
                armour 17 requires factions { northern_european, southern_european, eastern_european, } and event_counter FULL_PLATE_ARMOR 1
            }
            material wooden
            construction  8 
            cost  4800 
            settlement_min large_city
            upgrades
            {
                plate_armourer
            }
        }
        plate_armourer city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } and event_counter FULL_PLATE_ARMOR 1 ; and building_present_min_level market great_market 
        {
            convert_to 4
            capability
            {
                armour 18 requires factions { middle_eastern, }
                armour 18 requires factions { northern_european, southern_european, eastern_european, }
                armour 19 requires factions { eastern_european, greek, }
                armour 20 requires factions { middle_eastern, }
                armour 21 requires factions { northern_european, southern_european, eastern_european, }
                armour 22 requires factions { northern_european, southern_european, eastern_european, } and event_counter spanish_inquisition 1
		armour 23 requires factions { venice, sicily, milan, papal_states, } and event_counter IMPROVED_METALLURGY 1
		armour 23 requires factions { hre, } and event_counter IMPROVED_METALLURGY 1 and hidden_resource venice or hidden_resource sicily or hidden_resource milan or hidden_resource papal_states 
		armour 23 requires factions { hre, } and event_counter MATCHLOCK 1 and not hidden_resource venice and not hidden_resource sicily and not hidden_resource milan and not hidden_resource papal_states
		armour 23 requires factions { denmark, scotland, france, england, portugal, poland, russia, spain, hungary, aragon, knights_templar, kievan_rus, teutonic_order, norway, middle_eastern, greek, } and event_counter IMPROVED_METALLURGY 1 and hidden_resource venice or hidden_resource sicily or hidden_resource milan or hidden_resource papal_states 
		armour 23 requires factions { denmark, scotland, france, england, portugal, poland, russia, spain, hungary, aragon, knights_templar, kievan_rus, teutonic_order, norway, middle_eastern, greek, } and event_counter GOTHIC_ARMOR 1 and not hidden_resource venice and not hidden_resource sicily and not hidden_resource milan and not hidden_resource papal_states
            }
            material wooden
            construction  9 
            cost  6000 
            settlement_min huge_city
            upgrades
            {
                gothic_armourer
            }
        }
        gothic_armourer city requires factions { northern_european, eastern_european, southern_european, slave, } and event_counter GOTHIC_ARMOR 1 ; and building_present_min_level market great_market 
        {
            convert_to 5
            capability
            {
		armour 23 requires factions { denmark, scotland, france, england, portugal, poland, russia, spain, hungary, aragon, knights_templar, kievan_rus, teutonic_order, norway, middle_eastern, greek, } and event_counter GOTHIC_ARMOR 1 and not hidden_resource venice and not hidden_resource sicily and not hidden_resource milan and not hidden_resource papal_states
                armour 24 requires factions { northern_european, southern_european, eastern_european, }
                armour 25 requires factions { northern_european, southern_european, eastern_european, } and event_counter pike_and_shot 1
		armour 26 requires factions { venice, sicily, milan, papal_states, hre, england, } and event_counter ADVANCED_METALLURGY 1
		armour 26 requires factions { denmark, scotland, france, portugal, poland, russia, spain, hungary, aragon, knights_templar, kievan_rus, teutonic_order,  norway, } and event_counter ADVANCED_METALLURGY 1 and hidden_resource venice or hidden_resource sicily or hidden_resource milan or hidden_resource papal_states or hidden_resource hre or hidden_resource england
		armour 26 requires factions { denmark, scotland, france, portugal, poland, russia, spain, hungary, aragon, knights_templar, kievan_rus, teutonic_order,  norway, } and event_counter ADV_MATCHLOCK 1 and not hidden_resource venice and not hidden_resource sicily and not hidden_resource milan and not hidden_resource papal_states and not hidden_resource hre and not hidden_resource england
                armour 27 requires event_counter the_flintlock 1
           }
            material wooden
            construction  10 
            cost  8000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_smith
{
    convert_to smith
    levels c_leather_tanner c_blacksmith c_armourer c_heavy_armourer c_plate_armourer c_gothic_armourer 
    {
        c_leather_tanner castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                armour 1
		armour 2 requires not factions { mongols, timurids, }
		armour 3 requires factions { mongols, timurids, }
            }
            material wooden
            construction  3 
            cost  600 
            settlement_min town
            upgrades
            {
                c_blacksmith
            }
        }
        c_blacksmith castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 1
            capability
            {
                armour 4 requires factions { northern_european, southern_european, eastern_european, }
                armour 5 
                armour 6 requires not factions { mongols, timurids, }
                armour 7 requires not factions { mongols, timurids, }
            }
            material wooden
            construction  4 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                c_armourer
            }
        }
        c_armourer castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }
        {
            convert_to 2
            capability
            {
                armour 8 requires factions { northern_european, southern_european, eastern_european, } and event_counter TRANSITIONAL_ARMOR 1
                armour 9 
                armour 10 requires not factions { mongols, timurids, }
                armour 11 requires not factions { mongols, timurids, } 
                ;armour 12 requires factions { northern_european, southern_european, eastern_european, }
            }
            material wooden
            construction  6 
            cost  2400 
            settlement_min city
            upgrades
            {
                c_heavy_armourer
            }
        }
        c_heavy_armourer castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } and event_counter TRANSITIONAL_ARMOR 1
        {
            convert_to 3
            capability
            {
                armour 13 requires factions { middle_eastern, } and event_counter HALF_PLATE_ARMOR 1
                armour 13 requires factions { northern_european, southern_european, eastern_european, } and event_counter HALF_PLATE_ARMOR 1
                armour 14 
                armour 15 requires factions { northern_european, southern_european, eastern_european, middle_eastern, }
                armour 16 requires factions { northern_european, southern_european, eastern_european, } and event_counter HALF_PLATE_ARMOR 1
                armour 17 requires factions { northern_european, southern_european, eastern_european, } and event_counter FULL_PLATE_ARMOR 1
            }
            material wooden
            construction  8 
            cost  4800 
            settlement_min large_city
            upgrades
            {
                c_plate_armourer
            }
        }
        c_plate_armourer castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } and event_counter FULL_PLATE_ARMOR 1
        {
            convert_to 4
            capability
            {
                armour 18 requires factions { middle_eastern, }
                armour 18 requires factions { northern_european, southern_european, eastern_european, }
                armour 19 requires factions { eastern_european, greek, }
                armour 20 requires factions { middle_eastern, }
                armour 21 requires factions { northern_european, southern_european, eastern_european, }
                armour 22 requires factions { northern_european, southern_european, eastern_european, } and event_counter spanish_inquisition 1
		armour 23 requires factions { venice, sicily, milan, papal_states, } and event_counter IMPROVED_METALLURGY 1
		armour 23 requires factions { hre, } and event_counter IMPROVED_METALLURGY 1 and hidden_resource venice or hidden_resource sicily or hidden_resource milan or hidden_resource papal_states 
		armour 23 requires factions { hre, } and event_counter MATCHLOCK 1 and not hidden_resource venice and not hidden_resource sicily and not hidden_resource milan and not hidden_resource papal_states
		armour 23 requires factions { denmark, scotland, france, england, portugal, poland, russia, spain, hungary, aragon, knights_templar, kievan_rus, teutonic_order, norway, middle_eastern, greek, } and event_counter IMPROVED_METALLURGY 1 and hidden_resource venice or hidden_resource sicily or hidden_resource milan or hidden_resource papal_states 
		armour 23 requires factions { denmark, scotland, france, england, portugal, poland, russia, spain, hungary, aragon, knights_templar, kievan_rus, teutonic_order, norway, middle_eastern, greek, } and event_counter GOTHIC_ARMOR 1 and not hidden_resource venice and not hidden_resource sicily and not hidden_resource milan and not hidden_resource papal_states
            }
            material wooden
            construction  9 
            cost  6000 
            settlement_min large_city
            upgrades
            {
                c_gothic_armourer
            }
        }
        c_gothic_armourer castle requires factions { northern_european, eastern_european, southern_european, slave, } and event_counter GOTHIC_ARMOR 1
        {
            convert_to 5
            capability
            {
                armour 24 requires factions { northern_european, southern_european, eastern_european, }
                armour 25 requires factions { northern_european, southern_european, eastern_european, } and event_counter pike_and_shot 1
		armour 26 requires factions { venice, sicily, milan, papal_states, hre, england, } and event_counter ADVANCED_METALLURGY 1
		armour 26 requires factions { denmark, scotland, france, portugal, poland, russia, spain, hungary, aragon, knights_templar, kievan_rus, teutonic_order,  norway, } and event_counter ADVANCED_METALLURGY 1 and hidden_resource venice or hidden_resource sicily or hidden_resource milan or hidden_resource papal_states or hidden_resource hre or hidden_resource england
		armour 26 requires factions { denmark, scotland, france, portugal, poland, russia, spain, hungary, aragon, knights_templar, kievan_rus, teutonic_order,  norway, } and event_counter ADV_MATCHLOCK 1 and not hidden_resource venice and not hidden_resource sicily and not hidden_resource milan and not hidden_resource papal_states and not hidden_resource hre and not hidden_resource england
                armour 27 requires event_counter the_flintlock 1
            }
            material wooden
            construction  10 
            cost  8000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building port
{
    convert_to castle_port
    levels port shipwright dockyard naval_drydock 
    {
        port city requires factions { northern_european, moors, turks, egypt, kwarezm, mongols, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                recruit_pool "cog"  1   0.5   2  0  requires factions { hre, teutonic_order, france, scotland, england, knights_templar,  } 
                recruit_pool "longboat"  1   0.5   2  0  requires factions { denmark, norway, } 
                recruit_pool "dhow"  1   0.5   2  0  requires factions { moors, turks, egypt, kwarezm, } 
                recruit_pool "dhow"  1   0.34   2  0  requires factions { mongols, } 
                recruit_pool "cog"  1   0.5   2  0  requires factions { hungary, lithuania, poland, } 
                recruit_pool "ladya"  1   0.5   2  0  requires factions { russia, cumans, kievan_rus, } 
                recruit_pool "dromon"  1   0.5   2  0  requires factions { greek, } 
                recruit_pool "galley"  1   0.5   2  0  requires factions { sicily, milan, venice, jerusalem, } 
                recruit_pool "cog"  1   0.5   2  0  requires factions { portugal, spain, aragon, } 
                trade_base_income_bonus bonus 2
                trade_fleet 1
            }
            material wooden
            construction  3 
            cost  1000 
            settlement_min large_town
            upgrades
            {
                shipwright
            }
        }
        shipwright city requires factions { northern_european, moors, turks, kwarezm, egypt, mongols, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 1
            capability
            {
                recruit_pool "cog"  1   0.5   2  0  requires factions { hre, teutonic_order, france, scotland, england, knights_templar,  } 
                recruit_pool "longboat"  1   0.5   2  0  requires factions { denmark, norway, } 
                recruit_pool "holk"  1   0.5   2  0  requires factions { hre, scotland, france, england, knights_templar,  teutonic_order, } 
                recruit_pool "dragon boat"  1   0.5   2  0  requires factions { denmark, norway, } 
                recruit_pool "dhow"  1   0.5   2  0  requires factions { moors, turks, egypt, kwarezm, } 
                recruit_pool "dhow"  1   0.5   3  0  requires factions { mongols, } 
                recruit_pool "war galley"  1   0.5   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "cog"  1   0.5   2  0  requires factions { hungary, lithuania, poland, } 
                recruit_pool "ladya"  1   0.5   2  0  requires factions { russia, cumans, kievan_rus, } 
                recruit_pool "war galley"  1   0.5   2  0  requires factions { hungary, jerusalem, } 
                recruit_pool "holk"  1   0.5   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, } 
                recruit_pool "dromon"  1   0.5   2  0  requires factions { greek, } 
                recruit_pool "fire ship"  1   0.5   2  0  requires factions { greek, } 
                recruit_pool "galley"  1   0.5   2  0  requires factions { sicily, milan, jerusalem, } 
                recruit_pool "galley"  1   0.7   2  0  requires factions { venice, } 
                recruit_pool "cog"  1   0.5   2  0  requires factions { portugal, spain, aragon, } 
                recruit_pool "war galley"  1   0.5   2  0  requires factions { southern_european, } 
                trade_base_income_bonus bonus 3
                trade_fleet 1
            }
            material wooden
            construction  5 
            cost  2000 
            settlement_min city
            upgrades
            {
                dockyard
            }
        }
        dockyard city requires factions { northern_european, moors, turks, kwarezm, egypt, mongols, eastern_european, greek, southern_european, slave, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 2
            capability
            {
                recruit_pool "cog"  1   0.25   2  0  requires factions { hre, teutonic_order, france, scotland, england, knights_templar,  } 
                recruit_pool "longboat"  1   0.25   2  0  requires factions { denmark, norway, } 
                recruit_pool "holk"  1   0.5   2  0  requires factions { hre, scotland, france, england, knights_templar,  teutonic_order, } 
                recruit_pool "dragon boat"  1   0.5   2  0  requires factions { denmark, norway, } 
                recruit_pool "gun holk"  1   0.5   2  0  requires factions { northern_european, } 
                recruit_pool "dhow"  1   0.25   2  0  requires factions { moors, turks, egypt, kwarezm, } 
                recruit_pool "dhow"  1   0.5   4  0  requires factions { mongols, } 
                recruit_pool "war galley"  1   0.5   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "lanternas"  1   0.5   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "cog"  1   0.25   2  0  requires factions { hungary, lithuania, poland, } 
                recruit_pool "ladya"  1   0.25   2  0  requires factions { russia, cumans, kievan_rus, } 
                recruit_pool "war galley"  1   0.5   2  0  requires factions { hungary, jerusalem, } 
                recruit_pool "holk"  1   0.5   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, } 
                recruit_pool "gun holk"  1   0.5   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, teutonic_order, } 
                recruit_pool "lanternas"  1   1   2  0  requires factions { hungary, } 
                recruit_pool "dromon"  1   0.25   2  0  requires factions { greek, } 
                recruit_pool "fire ship"  1   0.5   2  0  requires factions { greek, } 
                recruit_pool "lanternas"  1   0.5   2  0  requires factions { greek, } 
                recruit_pool "galley"  1   0.25   2  0  requires factions { sicily, milan, venice, jerusalem, } 
                recruit_pool "cog"  1   0.25   2  0  requires factions { portugal, spain, aragon, } 
                recruit_pool "war galley"  1   0.5   2  0  requires factions { southern_european, } 
                recruit_pool "lanternas"  1   0.5   2  0  requires factions { portugal, spain, aragon, milan, sicily, } 
                recruit_pool "caravel"  1   0.5   2  0  requires factions { portugal, spain, aragon, }  and event_counter world_is_round 1 
                recruit_pool "galleass"  1   0.7   2  0  requires factions { venice, } 
                trade_base_income_bonus bonus 4
                trade_fleet 2
            }
            material wooden
            construction  7 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                naval_drydock
            }
        }
        naval_drydock city requires factions { northern_european, moors, turks, kwarezm, egypt, eastern_european, greek, southern_european, slave, }  and event_counter world_is_round 1  
        {
            convert_to 3
            capability
            {
                recruit_pool "cog"  1   0.25   1  0  requires factions { hre, teutonic_order, france, scotland, england, knights_templar,  } 
                recruit_pool "longboat"  1   0.25   1  0  requires factions { denmark, norway, } 
                recruit_pool "holk"  1   0.5   2  0  requires factions { hre, scotland, france, england, knights_templar,  teutonic_order, } 
                recruit_pool "dragon boat"  1   0.5   2  0  requires factions { denmark, norway, } 
                recruit_pool "gun holk"  1   0.5   2  0  requires factions { northern_european, } 
                recruit_pool "carrack"  1   0.5   2  0  requires factions { northern_european, } 
                recruit_pool "dhow"  1   0.25   1  0  requires factions { moors, turks, egypt, kwarezm, } 
                recruit_pool "dhow"  1   0.5   2  0  requires factions { mongols, } 
                recruit_pool "war galley"  1   0.5   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "lanternas"  1   0.5   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "baghlah"  1   0.5   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "cog"  1   0.25   1  0  requires factions { hungary, lithuania, poland, } 
                recruit_pool "ladya"  1   0.25   1  0  requires factions { russia, cumans, kievan_rus, } 
                recruit_pool "war galley"  1   0.5   2  0  requires factions { hungary, jerusalem, } 
                recruit_pool "holk"  1   0.5   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, } 
                recruit_pool "gun holk"  1   0.5   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, teutonic_order, } 
                recruit_pool "lanternas"  1   0.5   2  0  requires factions { hungary, } 
                recruit_pool "carrack"  1   0.5   2  0  requires factions { eastern_european, } 
                recruit_pool "dromon"  1   0.25   1  0  requires factions { greek, } 
                recruit_pool "fire ship"  1   0.5   2  0  requires factions { greek, } 
                recruit_pool "lanternas"  1   0.5   2  0  requires factions { greek, } 
                recruit_pool "carrack"  1   0.5   2  0  requires factions { greek, } 
                recruit_pool "galley"  1   0.25   1  0  requires factions { sicily, milan, venice, jerusalem, } 
                recruit_pool "cog"  1   0.25   1  0  requires factions { portugal, spain, aragon, } 
                recruit_pool "war galley"  1   0.5   2  0  requires factions { southern_european, } 
                recruit_pool "lanternas"  1   0.5   2  0  requires factions { portugal, spain, aragon, milan, sicily, } 
                recruit_pool "caravel"  1   0.5   2  0  requires factions { portugal, spain, aragon, } 
                recruit_pool "galleass"  1   0.7   2  0  requires factions { venice, } 
                recruit_pool "carrack"  1   0.5   2  0  requires factions { sicily, milan, venice, } 
                recruit_pool "grande carrack"  1   0.5   2  0  requires factions { portugal, spain, aragon, } 
                trade_base_income_bonus bonus 5
                trade_fleet 3
            }
            material wooden
            construction  9
            cost  6000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_port
{
    convert_to port
    levels c_port c_shipwright c_dockyard c_naval_drydock 
    {
        c_port castle requires factions { northern_european, moors, turks, kwarezm, egypt, mongols, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                recruit_pool "cog"  1   0.34   2  0  requires factions { hre, teutonic_order, france, scotland, england, knights_templar,  } 
                recruit_pool "longboat"  1   0.34   2  0  requires factions { denmark, norway, } 
                recruit_pool "dhow"  1   0.34   2  0  requires factions { moors, turks, egypt, kwarezm, } 
                recruit_pool "dhow"  1   0.25   2  0  requires factions { mongols, } 
                recruit_pool "cog"  1   0.34   2  0  requires factions { hungary, lithuania, poland, } 
                recruit_pool "ladya"  1   0.34   2  0  requires factions { russia, cumans, kievan_rus, } 
                recruit_pool "dromon"  1   0.34   2  0  requires factions { greek, } 
                recruit_pool "galley"  1   0.34   2  0  requires factions { sicily, milan, venice, jerusalem, } 
                recruit_pool "cog"  1   0.34   2  0  requires factions { portugal, spain, aragon, } 
                trade_base_income_bonus bonus 1
                trade_fleet 1
            }
            material wooden
            construction  3 
            cost  1000 
            settlement_min large_town
            upgrades
            {
                c_shipwright
            }
        }
        c_shipwright castle requires factions { northern_european, moors, turks, kwarezm, egypt, mongols, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 1
            capability
            {
                recruit_pool "cog"  1   0.25   2  0  requires factions { hre, teutonic_order, france, scotland, england, knights_templar,  } 
                recruit_pool "longboat"  1   0.25   2  0  requires factions { denmark, norway, } 
                recruit_pool "holk"  1   0.34   2  0  requires factions { hre, scotland, france, england, knights_templar,  teutonic_order, } 
                recruit_pool "dragon boat"  1   0.34   2  0  requires factions { denmark, norway, } 
                recruit_pool "dhow"  1   0.25   2  0  requires factions { moors, turks, egypt, kwarezm, } 
                recruit_pool "dhow"  1   0.34   2  0  requires factions { mongols, } 
                recruit_pool "war galley"  1   0.34   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "cog"  1   0.25   2  0  requires factions { hungary, lithuania, poland, } 
                recruit_pool "ladya"  1   0.25   2  0  requires factions { russia, cumans, kievan_rus, } 
                recruit_pool "war galley"  1   0.34   2  0  requires factions { hungary, jerusalem, } 
                recruit_pool "holk"  1   0.34   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, } 
                recruit_pool "dromon"  1   0.25   2  0  requires factions { greek, } 
                recruit_pool "fire ship"  1   0.34   2  0  requires factions { greek, } 
                recruit_pool "galley"  1   0.25   2  0  requires factions { sicily, milan, venice, jerusalem, } 
                recruit_pool "cog"  1   0.25   2  0  requires factions { portugal, spain, aragon, } 
                recruit_pool "war galley"  1   0.34   2  0  requires factions { southern_european, } 
                trade_base_income_bonus bonus 2
                trade_fleet 1
            }
            material wooden
            construction  5 
            cost  2000 
            settlement_min city
            upgrades
            {
                c_dockyard
            }
        }
        c_dockyard castle requires factions { northern_european, moors, turks, kwarezm, egypt, mongols, eastern_european, greek, southern_european, slave, }  and event_counter gunpowder_discovered 1 
        {
            convert_to 2
            capability
            {
                recruit_pool "cog"  1   0.25   2  0  requires factions { hre, teutonic_order, france, scotland, england, knights_templar,  } 
                recruit_pool "longboat"  1   0.25   2  0  requires factions { denmark, norway, } 
                recruit_pool "holk"  1   0.34   2  0  requires factions { hre, scotland, france, england, knights_templar,  teutonic_order, } 
                recruit_pool "dragon boat"  1   0.34   2  0  requires factions { denmark, norway, } 
                recruit_pool "gun holk"  1   0.34   2  0  requires factions { northern_european, } 
                recruit_pool "dhow"  1   0.25   2  0  requires factions { moors, turks, egypt, kwarezm, } 
                recruit_pool "dhow"  1   0.34   3  0  requires factions { mongols, } 
                recruit_pool "war galley"  1   0.34   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "lanternas"  1   0.34   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "cog"  1   0.25   2  0  requires factions { hungary, lithuania, poland, } 
                recruit_pool "ladya"  1   0.25   2  0  requires factions { russia, cumans, kievan_rus, } 
                recruit_pool "war galley"  1   0.34   2  0  requires factions { hungary, jerusalem, } 
                recruit_pool "holk"  1   0.34   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, } 
                recruit_pool "gun holk"  1   0.34   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, } 
                recruit_pool "lanternas"  1   0.34   2  0  requires factions { hungary, } 
                recruit_pool "dromon"  1   0.25   2  0  requires factions { greek, } 
                recruit_pool "fire ship"  1   0.34   2  0  requires factions { greek, } 
                recruit_pool "lanternas"  1   0.34   2  0  requires factions { greek, } 
                recruit_pool "galley"  1   0.25   2  0  requires factions { sicily, milan, venice, jerusalem, } 
                recruit_pool "cog"  1   0.25   2  0  requires factions { portugal, spain, aragon, } 
                recruit_pool "war galley"  1   0.34   2  0  requires factions { southern_european, } 
                recruit_pool "lanternas"  1   0.34   2  0  requires factions { portugal, spain, aragon, milan, sicily, } 
                recruit_pool "caravel"  1   0.34   2  0  requires factions { portugal, spain, aragon, }  and event_counter world_is_round 1 
                recruit_pool "galleass"  1   0.34   2  0  requires factions { venice, } 
                trade_base_income_bonus bonus 2
                trade_fleet 1
            }
            material wooden
            construction  7 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                c_naval_drydock
            }
        }
        c_naval_drydock castle requires factions { northern_european, moors, turks, kwarezm, egypt, eastern_european, greek, southern_european, slave, }  and event_counter world_is_round 1 
        {
            convert_to 3
            capability
            {
                recruit_pool "cog"  1   0.25   1  0  requires factions { hre, teutonic_order, france, scotland, england, knights_templar,  } 
                recruit_pool "longboat"  1   0.25   1  0  requires factions { denmark, norway, } 
                recruit_pool "holk"  1   0.34   2  0  requires factions { hre, scotland, france, england, knights_templar,  teutonic_order, } 
                recruit_pool "dragon boat"  1   0.34   2  0  requires factions { denmark, norway, } 
                recruit_pool "gun holk"  1   0.34   2  0  requires factions { northern_european, } 
                recruit_pool "carrack"  1   0.34   2  0  requires factions { northern_european, } 
                recruit_pool "dhow"  1   0.25   1  0  requires factions { moors, turks, egypt, kwarezm, } 
                recruit_pool "war galley"  1   0.34   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "lanternas"  1   0.34   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "baghlah"  1   0.34   2  0  requires factions { egypt, moors, turks, kwarezm, } 
                recruit_pool "cog"  1   0.25   1  0  requires factions { hungary, lithuania, poland, } 
                recruit_pool "ladya"  1   0.25   1  0  requires factions { russia, cumans, kievan_rus, } 
                recruit_pool "war galley"  1   0.34   2  0  requires factions { hungary, jerusalem, } 
                recruit_pool "holk"  1   0.34   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, } 
                recruit_pool "gun holk"  1   0.34   2  0  requires factions { russia, cumans, lithuania, kievan_rus, poland, } 
                recruit_pool "lanternas"  1   0.34   2  0  requires factions { hungary, } 
                recruit_pool "carrack"  1   0.34   2  0  requires factions { eastern_european, } 
                recruit_pool "dromon"  1   0.25   1  0  requires factions { greek, } 
                recruit_pool "fire ship"  1   0.34   2  0  requires factions { greek, } 
                recruit_pool "lanternas"  1   0.34   2  0  requires factions { greek, } 
                recruit_pool "carrack"  1   0.34   2  0  requires factions { greek, } 
                recruit_pool "galley"  1   0.25   1  0  requires factions { sicily, milan, venice, jerusalem, } 
                recruit_pool "cog"  1   0.25   1  0  requires factions { portugal, spain, aragon, } 
                recruit_pool "war galley"  1   0.34   2  0  requires factions { southern_european, } 
                recruit_pool "lanternas"  1   0.34   2  0  requires factions { portugal, spain, aragon, milan, sicily, } 
                recruit_pool "caravel"  1   0.34   2  0  requires factions { portugal, spain, aragon, } 
                recruit_pool "galleass"  1   0.34   2  0  requires factions { venice, } 
                recruit_pool "carrack"  1   0.34   2  0  requires factions { sicily, milan, venice, } 
                recruit_pool "grande carrack"  1   0.34   2  0  requires factions { portugal, spain, aragon, } 
                trade_base_income_bonus bonus 3
                trade_fleet 1
            }
            material wooden
            construction  9 
            cost  6000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building river_port
{
    levels river_port large_river_port 
    {
        river_port city requires factions { northern_european, moors, turks, egypt, kwarezm, mongols, eastern_european, greek, southern_european, slave, } and hidden_resource river_trade
        {
            capability
            {
                trade_base_income_bonus bonus 1
                population_growth_bonus bonus 1
            }
            material wooden
            construction  2 
            cost  1000 
            settlement_min large_town
            upgrades
            {
                large_river_port
            }
        }
        large_river_port  city requires factions { northern_european, moors, turks, kwarezm, egypt, mongols, eastern_european, greek, southern_european, slave, } and hidden_resource river_trade 
        {
            capability
            {
                trade_base_income_bonus bonus 2
                population_growth_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building sea_trade
{
    levels merchants_wharf warehouse docklands 
    {
        merchants_wharf city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and building_present_min_level port port
        {
            capability
            {
                trade_fleet 2
                trade_base_income_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min city
            upgrades
            {
                warehouse
            }
        }
        warehouse city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and building_present_min_level port shipwright
        {
            capability
            {
                trade_fleet 3
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                docklands
            }
        }
        docklands city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and building_present_min_level port shipwright
        {
            capability
            {
                trade_fleet 4
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building admiralty
{
    levels naval_academy admiralty 
    {
        naval_academy city requires factions { denmark, norway, england, portugal, venice, }  and building_present_min_level port port
        {
            capability
            {
                recruitment_cost_bonus_naval bonus 1
                navy_bonus 1
            }
            material wooden
            construction  5 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                admiralty
            }
        }
        admiralty city requires factions { denmark, norway, england, portugal, venice, } 
        {
            capability
            {
                recruitment_cost_bonus_naval bonus 2
                navy_bonus 2
            }
            material wooden
            construction  8 
            cost  4000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building market
{
    levels corn_exchange market fairground great_market merchants_quarter 
    {
        corn_exchange city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            { 
                agent merchant  0  requires factions { northern_european, } 
                agent merchant  0  requires factions { middle_eastern, } 
                agent merchant  0  requires factions { eastern_european, } 
                agent merchant  0  requires factions { greek, } 
                agent merchant  0  requires factions { southern_european, } 
                agent_limit merchant 1
                trade_base_income_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  600 
            settlement_min town
            upgrades
            {
                market
            }
        }
        market city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
		agent merchant  0  requires factions { northern_european, } 
                agent merchant  0  requires factions { middle_eastern, } 
                agent merchant  0  requires factions { eastern_european, } 
                agent merchant  0  requires factions { greek, } 
                agent merchant  0  requires factions { southern_european, } 
                agent_limit merchant 1
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                fairground
            }
        }
        fairground city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent merchant  0  requires factions { northern_european, } 
                agent merchant  0  requires factions { middle_eastern, } 
                agent merchant  0  requires factions { eastern_european, } 
                agent merchant  0  requires factions { greek, } 
                agent merchant  0  requires factions { southern_european, } 
                agent_limit merchant 1
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  6 
            cost  2000 
            settlement_min city
            upgrades
            {
                great_market
            }
        }
        great_market city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent merchant  1  requires factions { northern_european, } 
                agent merchant  1  requires factions { middle_eastern, } 
                agent merchant  1  requires factions { eastern_european, } 
                agent merchant  1  requires factions { greek, } 
                agent merchant  1  requires factions { southern_european, } 
                agent_limit merchant 1
                trade_base_income_bonus bonus 4
            }
            material wooden
            construction  8 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                merchants_quarter
            }
        }
        merchants_quarter city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent merchant  2  requires factions { northern_european, } 
                agent merchant  2  requires factions { middle_eastern, } 
                agent merchant  2  requires factions { eastern_european, } 
                agent merchant  2  requires factions { greek, } 
                agent merchant  2  requires factions { southern_european, } 
							
                agent_limit merchant 2
                trade_base_income_bonus bonus 4
            }
            material wooden
            construction  10 
            cost  6000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_roads
{
    convert_to hinterland_castle_roads
    levels roads paved_roads highways 
    {
        roads city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                road_level 0
                trade_base_income_bonus bonus 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                paved_roads
            }
        }
        paved_roads city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } and hidden_resource improved_roads
        {
            convert_to 1
            capability
            {
                road_level 1
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min city
            upgrades
            {
		highways
            }
        }
	highways city requires factions { greek, } and hidden_resource improved_roads
        {
            convert_to 2
            capability
            {
                road_level 2
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  6 
            cost  4000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_castle_roads
{
    convert_to hinterland_roads
    levels c_roads c_paved_roads c_highways
    {
        c_roads castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                road_level 0
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                c_paved_roads
            }
        }
        c_paved_roads castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and hidden_resource improved_roads
        {
            convert_to 1
            capability
            {
                road_level 1
                trade_base_income_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min city
            upgrades
            {
		c_highways
            }
        }
        c_highways castle requires factions { greek, }  and hidden_resource improved_roads
        {
            convert_to 2
            capability
            {
                road_level 2
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  4000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_farms
{
    convert_to hinterland_farms
    levels farms farms+1 farms+2 farms+3 
    {
        farms  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 0
            capability
            {
                farming_level 1
            }
            material wooden
            construction  3 
            cost  600 
            settlement_min town
            upgrades
            {
                farms+1
            }
        }
        farms+1  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 1
            capability
            {
                farming_level 2
            }
            material wooden
            construction  5 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                farms+2
            }
        }
        farms+2  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 2
            capability
            {
                farming_level 3
            }
            material wooden
            construction  7 
            cost  2000 
            settlement_min city
            upgrades
            {
                farms+3
            }
        }
        farms+3  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            convert_to 3
            capability
            {
                farming_level 4
            }
            material wooden
            construction  9 
            cost  4000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_mines
{
    convert_to hinterland_castle_mines
    levels mines mines+1 
    {
        mines city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            convert_to 0
            capability
            {
                mine_resource 5
            }
            material wooden
            construction  4 
            cost  1800 
            settlement_min large_town
            upgrades
            {
                mines+1
            }
        }
        mines+1 city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            convert_to 1
            capability
            {
                mine_resource 8
            }
            material wooden
            construction  6 
            cost  3600 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_castle_mines
{
    convert_to hinterland_mines
    levels c_mines c_mines+1 
    {
        c_mines castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            convert_to 0
            capability
            {
                mine_resource 4
            }
            material wooden
            construction  4 
            cost  1800 
            settlement_min large_town
            upgrades
            {
                c_mines+1
            }
        }
        c_mines+1 castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            convert_to 1
            capability
            {
                mine_resource 7
            }
            material wooden
            construction  6 
            cost  3600 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building health
{
    levels public_baths aqueduct 
    {
        public_baths city requires factions { greek, }  and building_present_min_level market market
        {
            capability
            {
                population_health_bonus bonus 1
            }
            material wooden
            construction  6 
            cost  1200 
            settlement_min large_city
            upgrades
            {
                aqueduct
            }
        }
        aqueduct city requires factions { greek, }  and building_present_min_level market great_market
        {
            capability
            {
                population_health_bonus bonus 2
                population_growth_bonus bonus 1
            }
            material wooden
            construction  8 
            cost  2400 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hospital
{
    levels bimaristan great_bimaristan 
    {
        bimaristan city requires factions { kwarezm, egypt, turks, moors, timurids, greek, } and building_present_min_level city_hall city_hall
        {
            capability
            {
                retrain_cost_bonus bonus 1
                population_health_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                great_bimaristan
            }
        }
        great_bimaristan city requires factions { kwarezm, egypt, turks, moors, timurids, greek, } and building_present_min_level city_hall mayors_palace
        {
            capability
            {
                retrain_cost_bonus bonus 2
                population_health_bonus bonus 4
            }
            material wooden
            construction  10 
            cost  6000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building academic
{
    levels alchemists_lab alchemy_school 
    {
        alchemists_lab city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and event_counter gunpowder_discovered 1 and building_present_min_level market great_market
        {
            capability
            {
                weapon_missile_gunpowder 1
				recruit_pool "Naffatun"  1   0.13   1  0  requires factions { egypt, turks, }
            }
            material wooden
            construction 5 
            cost 2000 
            settlement_min large_city
            upgrades
            {
                alchemy_school
            }
        }
        alchemy_school city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and event_counter gunpowder_discovered 1  and building_present_min_level market merchants_quarter
        {
            capability
            {
                weapon_missile_gunpowder 1
                weapon_artillery_gunpowder 1
				recruit_pool "Naffatun"  1   0.17   1  0  requires factions { egypt, turks, }
            }
            material wooden
            construction  7 
            cost  4000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_dievas
{
    convert_to temple_dievas_castle
    religion pagan
    levels dievas_altar dievas_sanctuary dievas_temple 
    {
        dievas_altar city requires factions { lithuania, }  and not building_present temple_giltine and not building_present temple_perkunas
        {
            convert_to 0
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                religion_level bonus 2
                law_bonus bonus 1
                happiness_bonus bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  2
            cost  600 
            settlement_min town
            upgrades
            {
                dievas_sanctuary
            }
        }
        dievas_sanctuary city requires factions { lithuania, }  and not building_present temple_giltine and not building_present temple_perkunas
        {
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                religion_level bonus 3
                law_bonus bonus 2
                happiness_bonus bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  3
            cost  1200 
            settlement_min large_town
            upgrades
            {
                dievas_temple
            }
        }
        dievas_temple city requires factions { lithuania, }  and not building_present temple_giltine and not building_present temple_perkunas
        {
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                recruit_pool "Dievas Guard"  1   0.17   1  0  requires factions { lithuania, } 
                religion_level bonus 4
                law_bonus bonus 3
                happiness_bonus 3
                agent_limit priest 2
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  4
            cost  2000  
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_dievas_castle
{
    convert_to temple_dievas
    religion pagan
    levels c_dievas_altar 
    {
        c_dievas_altar castle requires factions { lithuania, }  and not building_present temple_giltine and not building_present temple_perkunas
        {
            convert_to 0
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                religion_level bonus 2
                happiness_bonus bonus 2
                law_bonus bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  2
            cost  600 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_perkunas
{
    convert_to temple_perkunas_castle
    religion pagan
    levels perkunas_altar perkunas_sanctuary perkunas_temple 
    {
        perkunas_altar city requires factions { lithuania, }  and not building_present temple_giltine and not building_present temple_dievas
        {
            convert_to 0
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                population_health_bonus 1
                religion_level bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                perkunas_sanctuary
            }
        }
        perkunas_sanctuary city requires factions { lithuania, }  and not building_present temple_giltine and not building_present temple_dievas
        {
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                recruit_pool "Followers of Perkunas"  1   0.17   1  0  requires factions { lithuania, } 
                population_health_bonus 2
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                perkunas_temple
            }
        }
        perkunas_temple city requires factions { lithuania, }  and not building_present temple_giltine and not building_present temple_dievas
        {
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                recruit_pool "Followers of Perkunas"  1   0.25   2  0  requires factions { lithuania, } 
                population_health_bonus 3
                religion_level bonus 3
                agent_limit priest 2
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_perkunas_castle
{
    convert_to temple_perkunas
    religion pagan
    levels c_perkunas_altar 
    {
        c_perkunas_altar castle requires factions { lithuania, }  and not building_present temple_giltine and not building_present temple_dievas
        {
            convert_to 0
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                recruit_pool "Lettish Crossbowmen"  1   0.17   1  0  requires factions { lithuania, } 
                population_health_bonus 1
                religion_level bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_giltine
{
    convert_to temple_giltine_castle
    religion pagan
    levels giltine_altar giltine_sanctuary giltine_temple 
    {
        giltine_altar city requires factions { lithuania, }  and not building_present temple_perkunas and not building_present temple_dievas
        {
            convert_to 0
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                law_bonus bonus 1
				religion_level bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                giltine_sanctuary
            }
        }
        giltine_sanctuary city requires factions { lithuania, }  and not building_present temple_perkunas and not building_present temple_dievas
        {
            capability
            {
                agent priest  1  requires factions {  lithuania, } 
                law_bonus bonus 2
			    religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                giltine_temple
            }
        }
        giltine_temple city requires factions { lithuania, }  and not building_present temple_perkunas and not building_present temple_dievas
        {
            capability
            {
                agent priest  1  requires factions {  lithuania, } 
                recruit_pool "Giltines Chosen"  1   0.17   1  0  requires factions { lithuania, } 
                law_bonus bonus 3
				religion_level bonus 3
                recruits_morale_bonus bonus 1
                agent_limit priest 2
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_giltine_castle
{
    convert_to temple_giltine
    religion pagan
    levels c_giltine_altar 
    {
        c_giltine_altar castle requires factions { lithuania, }  and not building_present temple_perkunas and not building_present temple_dievas
        {
            convert_to 0
            capability
            {
                agent priest  1  requires factions { lithuania, } 
                recruit_pool "Lettish Crossbowmen"  1   0.17   1  0  requires factions { lithuania, } 
                law_bonus bonus 1
				religion_level bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  600 
settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_tengir
{
    convert_to temple_tengir_castle
    religion pagan
    levels tengir_altar tengir_sanctuary tengir_temple 
    {
        tengir_altar city requires factions { cumans, mongols, }
        {
            convert_to 0
            capability
            {
                agent priest  1  requires factions { cumans, mongols, } 
                recruit_pool "Pechenegs"  1   0.13   1  1  requires factions { cumans, } 
                religion_level bonus 1
                law_bonus bonus 1
                happiness_bonus bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  2
            cost  600 
            settlement_min town
            upgrades
            {
                tengir_sanctuary
            }
        }
        tengir_sanctuary city requires factions { cumans, mongols, }
        {
            capability
            {
                agent priest  1  requires factions { cumans, mongols, } 
                recruit_pool "Yasi Archers"  1   0.13   1  1  requires factions { cumans, } 
                religion_level bonus 2
                law_bonus bonus 2
                happiness_bonus bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  3
            cost  1200 
            settlement_min large_town
            upgrades
            {
                tengir_temple
            }
        }
        tengir_temple city requires factions { cumans, mongols, }
        {
            capability
            {
                agent priest  1  requires factions { cumans, mongols, } 
                recruit_pool "Behk Druzhina"  1   0.13   1  1  requires factions { cumans, } 
                religion_level bonus 3
                law_bonus bonus 2
                happiness_bonus 3
                agent_limit priest 2
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  4
            cost  2000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_tengir_castle
{
    convert_to temple_tengir
    religion pagan
    levels c_tengir_altar 
    {
        c_tengir_altar castle requires factions { cumans, mongols, }
        {
            convert_to 0
            capability
            {
                agent priest  1  requires factions { cumans, mongols, } 
                recruit_pool "Yasi Archers"  1   0.13   1  1  requires factions { cumans, } 
                religion_level bonus 1
                law_bonus bonus 1
                happiness_bonus bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  2
            cost  600 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_catholic
{
    convert_to temple_catholic_castle
    religion catholic
    levels small_church church abbey cathedral huge_cathedral 
    {
        small_church city requires factions { denmark, teutonic_order, jerusalem, norway,  hre, scotland, france, england, hungary, poland, venice, papal_states, portugal, spain, aragon, sicily, milan, knights_templar, } 
        {
            convert_to 0
            capability
            {
                agent priest  0  requires factions { denmark, teutonic_order, jerusalem, norway,  scotland, hre, france, england, knights_templar, } 
                agent priest  0  requires factions { hungary, poland, } 
                agent priest  0  requires factions { papal_states, portugal, spain, aragon, sicily, milan, venice, } 
                happiness_bonus bonus 1
                religion_level bonus 1
                pope_disapproval 1
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  750 
            settlement_min town
            upgrades
            {
                church
            }
        }
        church city requires factions { denmark, teutonic_order, jerusalem, norway,  hre, scotland, france, england, hungary, poland, venice, papal_states, portugal, spain, aragon, sicily, milan, knights_templar, } 
        {
            convert_to 1
            capability
            {
                agent priest  0  requires factions { denmark, teutonic_order, jerusalem, norway,  scotland, hre, france, england, knights_templar, } 
                agent priest  0  requires factions { hungary, poland, } 
                agent priest  0  requires factions { papal_states, portugal, spain, aragon, sicily, milan, venice, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                agent_limit priest 1
                pope_disapproval 1
            }
            material wooden
            construction  3 
            cost  1500 
            settlement_min large_town
            upgrades
            {
                abbey
            }
        }
        abbey city requires factions { denmark, teutonic_order, jerusalem, norway,  hre, scotland, france, england, hungary, poland, venice, papal_states, portugal, spain, aragon, sicily, milan, knights_templar, } 
        {
            capability
            {
                agent priest  0  requires factions { denmark, teutonic_order, jerusalem, norway,  scotland, hre, france, england, knights_templar, } 
                agent priest  0  requires factions { hungary, poland, } 
                agent priest  0  requires factions { papal_states, portugal, spain, aragon, sicily, milan, venice, } 
                recruit_pool "Dismounted Armored Clergy"  1   0.085   1  0  requires factions { denmark, norway, } and event_counter HALF_PLATE_ARMOR 1
                ;recruit_pool "Clergymen"  1   0.13   1  0  requires factions { teutonic_order, } 
                happiness_bonus bonus 2
                religion_level bonus 3
                agent_limit priest 2
                pope_disapproval 1
		population_health_bonus bonus 1
            }
            material wooden
            construction  5 
            cost  3000 
            settlement_min city
            upgrades
            {
                cathedral
            }
        }
        cathedral city requires factions { denmark, teutonic_order, jerusalem, norway,  hre, scotland, france, england, hungary, poland, venice, papal_states, portugal, spain, aragon, sicily, milan, venice, knights_templar, } 
        {
            capability
            {
                agent priest  1  requires factions { denmark, teutonic_order, jerusalem, norway,  scotland, hre, france, england, knights_templar, } 
                agent priest  1  requires factions { hungary, poland, } 
                agent priest  1  requires factions { papal_states, portugal, spain, aragon, sicily, milan, venice, } 
                recruit_pool "Armored Clergy"  1   0.085   1  0  requires factions { denmark, norway, } and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Dismounted Armored Clergy"  1   0.13   2  0  requires factions { denmark, norway, } and event_counter HALF_PLATE_ARMOR 1
                ;recruit_pool "Clergymen"  1   0.2   2  0  requires factions { teutonic_order, } 
                happiness_bonus bonus 2
                religion_level bonus 4
                agent_limit priest 2
                pope_disapproval 1
                pope_approval 1
		population_health_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  7 
            cost  6000 
            settlement_min large_city
            upgrades
            {
                huge_cathedral
            }
        }
        huge_cathedral city requires factions { denmark, teutonic_order, jerusalem, norway,  hre, scotland, france, england, hungary, poland, venice, papal_states, portugal, spain, aragon, sicily, milan, knights_templar, } 
        {
            capability
            {
                agent priest  1  requires factions { denmark, teutonic_order, jerusalem, norway,  scotland, hre, france, england, knights_templar, } 
                agent priest  1  requires factions { hungary, poland, } 
                agent priest  1  requires factions { papal_states, portugal, spain, aragon, sicily, milan, venice, } 
                recruit_pool "Armored Clergy"  1   0.13   2  0  requires factions { denmark, norway, } and event_counter HALF_PLATE_ARMOR 1
                recruit_pool "Dismounted Armored Clergy"  1   0.17   3  0  requires factions { denmark, norway, } and event_counter HALF_PLATE_ARMOR 1
                ;recruit_pool "Clergymen"  1   0.34   3  0  requires factions { teutonic_order, } 
                happiness_bonus bonus 3
                religion_level bonus 5
                agent_limit priest 2
                pope_disapproval 1
                pope_approval 1
		population_health_bonus bonus 3
		;free_upkeep bonus 1 requires factions { denmark, norway, teutonic_order, }
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  10 
            cost  9000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_catholic_castle
{
    convert_to temple_catholic
    religion catholic
    levels small_chapel chapel 
    {
        small_chapel castle requires factions { denmark, teutonic_order, jerusalem, norway,  hre, scotland, france, england, hungary, poland, venice, papal_states, portugal, spain, aragon, sicily, milan, knights_templar, } 
        {
            convert_to 0
            capability
            {
                agent priest  0  requires factions { denmark, teutonic_order, jerusalem, norway,  scotland, hre, france, england, knights_templar, } 
                agent priest  0  requires factions { hungary, poland, } 
                agent priest  0  requires factions { papal_states, portugal, spain, aragon, sicily, milan, venice, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                pope_disapproval 1
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  750 
            settlement_min town
            upgrades
            {
                chapel
            }
        }
        chapel castle requires factions { denmark, teutonic_order, jerusalem, norway,  hre, scotland, france, england, hungary, poland, venice, papal_states, portugal, spain, aragon, sicily, milan, knights_templar, } 
        {
            convert_to 1
            capability
            {
                agent priest  0  requires factions { denmark, teutonic_order, jerusalem, norway,  scotland, hre, france, england, knights_templar, } 
                agent priest  0  requires factions { hungary, poland, } 
                agent priest  0  requires factions { papal_states, portugal, spain, aragon, sicily, milan, venice, } 
                happiness_bonus bonus 1
                religion_level bonus 3
                agent_limit priest 1
                pope_disapproval 1		
		population_health_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  1500 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_orthodox
{
    convert_to temple_orthodox_castle
    religion orthodox
    levels small_church_o church_o abbey_o cathedral_o huge_cathedral_o 
    {
        small_church_o city requires factions { russia, kievan_rus, byzantium, } 
        {
            convert_to 0
            capability
            {
                agent priest  0  requires factions { russia, kievan_rus, } 
                agent priest  0  requires factions { byzantium, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  750 
            settlement_min town
            upgrades
            {
                church_o
            }
        }
        church_o city requires factions { russia, kievan_rus, byzantium, } 
        {
            convert_to 1
            capability
            {
                agent priest  0  requires factions { russia, kievan_rus, } 
                agent priest  0  requires factions { byzantium, } 
                happiness_bonus bonus 1
                religion_level bonus 3
                agent_limit priest 1
            }
            material wooden
            construction  3 
            cost  1500 
            settlement_min large_town
            upgrades
            {
                abbey_o
            }
        }
        abbey_o city requires factions { russia, kievan_rus, byzantium, } 
        {
            capability
            {
                agent priest  0  requires factions { russia, kievan_rus, } 
                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  5 
            cost  3000 
            settlement_min city
            upgrades
            {
                cathedral_o
            }
        }
        cathedral_o city requires factions { russia, kievan_rus, byzantium, } 
        {
            capability
            {
                agent priest  1  requires factions { russia, kievan_rus, } 
                agent priest  1  requires factions { byzantium, } 
                happiness_bonus bonus 2
                religion_level bonus 5
                agent_limit priest 2
		population_health_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  7 
            cost  6000 
            settlement_min large_city
            upgrades
            {
                huge_cathedral_o
            }
        }
        huge_cathedral_o city requires factions { russia, kievan_rus, byzantium, } 
        {
            capability
            {
                agent priest  1  requires factions { russia, kievan_rus, } 
                agent priest  1  requires factions { byzantium, } 
                happiness_bonus bonus 3
                religion_level bonus 6
                agent_limit priest 2
		population_health_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  10 
            cost  9000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_orthodox_castle
{
    convert_to temple_orthodox
    religion orthodox
    levels small_chapel_o chapel_o 
    {
        small_chapel_o castle requires factions { russia, kievan_rus, byzantium, } 
        {
            convert_to 0
            capability
            {
                agent priest  0  requires factions { russia, kievan_rus, } 
                agent priest  0  requires factions { byzantium, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  750 
            settlement_min town
            upgrades
            {
                chapel_o
            }
        }
        chapel_o castle requires factions { russia, kievan_rus, byzantium, } 
        {
            convert_to 1
            capability
            {
                agent priest  0  requires factions { russia, kievan_rus, } 
                agent priest  0  requires factions { byzantium, } 
                happiness_bonus bonus 1
                religion_level bonus 3
                agent_limit priest 1
		population_health_bonus bonus 1
            }
            material wooden
            construction  4
            cost  1500 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_muslim
{
    convert_to temple_muslim_castle
    religion islam
    levels small_masjid masjid minareted_masjid jama great_jama 
    {
        small_masjid city requires factions { egypt, moors, turks, kwarezm, timurids, } 
        {
            convert_to 0
            capability
            {
                agent priest  0  requires factions { egypt, moors, turks, kwarezm, timurids, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  750 
            settlement_min town
            upgrades
            {
                masjid
            }
        }
        masjid city requires factions { egypt, moors, turks, kwarezm, timurids, } 
        {
            convert_to 1
            capability
            {
                agent priest  0  requires factions { egypt, moors, turks, kwarezm, timurids, } 
                happiness_bonus bonus 1
                religion_level bonus 3
                agent_limit priest 1
            }
            material wooden
            construction  3 
            cost  1500 
            settlement_min large_town
            upgrades
            {
                minareted_masjid
            }
        }
        minareted_masjid city requires factions { egypt, moors, turks, kwarezm, timurids, } 
        {
            capability
            {
                agent priest  0  requires factions { egypt, moors, turks, kwarezm, timurids, } 
                happiness_bonus bonus 2
                religion_level bonus 4
                agent_limit priest 2
		population_health_bonus bonus 1
            }
            material wooden
            construction  5 
            cost  3000 
            settlement_min city
            upgrades
            {
                jama
            }
        }
        jama city requires factions { egypt, moors, turks, kwarezm, timurids, } 
        {
            capability
            {
                agent priest  1  requires factions { egypt, moors, turks, kwarezm, timurids, } 
                happiness_bonus bonus 2
                religion_level bonus 5
                agent_limit priest 2
		population_health_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  7 
            cost  6000 
            settlement_min large_city
            upgrades
            {
                great_jama
            }
        }
        great_jama city requires factions { egypt, moors, turks, kwarezm, timurids, } 
        {
            capability
            {
                agent priest  1  requires factions { egypt, moors, turks, kwarezm, timurids, } 
                happiness_bonus bonus 3
                religion_level bonus 6
                agent_limit priest 2
		population_health_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  10 
            cost  9000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_muslim_castle
{
    convert_to temple_muslim
    religion islam
    levels c_small_masjid c_masjid 
    {
        c_small_masjid castle requires factions { egypt, moors, turks, kwarezm, timurids, } 
        {
            convert_to 0
            capability
            {
                agent priest  0  requires factions { egypt, moors, turks, kwarezm, timurids, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  750 
            settlement_min town
            upgrades
            {
                c_masjid
            }
        }
        c_masjid castle requires factions { egypt, moors, turks, kwarezm, timurids, } 
        {
            convert_to 1
            capability
            {
                agent priest  0  requires factions { egypt, moors, turks, kwarezm, timurids, } 
                happiness_bonus bonus 1
                religion_level bonus 3
                agent_limit priest 1
		population_health_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  1500 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building taverns
{
    levels brothel inn tavern coaching_house pleasure_palace 
    {
        brothel city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent spy  0  requires factions { northern_european, } 
                agent spy  0  requires factions { middle_eastern, } 
                agent spy  0  requires factions { eastern_european, } 
                agent spy  0  requires factions { greek, } 
                agent spy  0  requires factions { southern_european, } 
                happiness_bonus bonus 1
                agent_limit spy 2
            }
            material wooden
            construction  3 
            cost  750 
            settlement_min town
            upgrades
            {
                inn
            }
        }
        inn city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent spy  0  requires factions { northern_european, } 
                agent assassin  0  requires factions { northern_european, } 
                agent spy  0  requires factions { middle_eastern, } 
                agent assassin  0  requires factions { middle_eastern, } 
                agent spy  0  requires factions { eastern_european, } 
                agent assassin  0  requires factions { eastern_european, } 
                agent spy  0  requires factions { greek, } 
                agent assassin  0  requires factions { greek, } 
                agent spy  0  requires factions { southern_european, } 
                agent assassin  0  requires factions { southern_european, } 
                happiness_bonus bonus 2
                agent_limit assassin 1
                agent_limit spy 2
            }
            material wooden
            construction  4 
            cost  1500 
            settlement_min large_town
            upgrades
            {
                tavern
            }
        }
        tavern city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent spy  0  requires factions { northern_european, } 
                agent assassin  0  requires factions { northern_european, } 
                agent spy  0  requires factions { middle_eastern, } 
                agent assassin  0  requires factions { middle_eastern, } 
                agent spy  0  requires factions { eastern_european, } 
                agent assassin  0  requires factions { eastern_european, } 
                agent spy  0  requires factions { greek, } 
                agent assassin  0  requires factions { greek, } 
                agent spy  0  requires factions { southern_european, } 
                agent assassin  0  requires factions { southern_european, } 
                recruit_pool "Transilvanian Peasants"  1   0.34   3  0  requires factions { hungary, } and hidden_resource hungary and event_counter new_era_begins 1
				recruit_pool "Transilvanian Peasants"  0   0.2   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter new_era_begins 1
                happiness_bonus bonus 3
                agent_limit assassin 2
                agent_limit spy 3
            }
            material wooden
            construction  6 
            cost  3000 
            settlement_min city
            upgrades
            {
                coaching_house
            }
        }
        coaching_house city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent spy  1  requires factions { northern_european, } 
                agent assassin  0  requires factions { northern_european, } 
                agent spy  1  requires factions { middle_eastern, } 
                agent assassin  0  requires factions { middle_eastern, } 
                agent spy  1  requires factions { eastern_european, } 
                agent assassin  0  requires factions { eastern_european, } 
                agent spy  1  requires factions { greek, } 
                agent assassin  0  requires factions { greek, } 
                agent spy  1  requires factions { southern_european, } 
                agent assassin  0  requires factions { southern_european, } 
                recruit_pool "Transilvanian Peasants"  1   0.5   4  0  requires factions { hungary, } and hidden_resource hungary and event_counter new_era_begins 1
				recruit_pool "Transilvanian Peasants"  0   0.25   2  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter new_era_begins 1
                happiness_bonus bonus 4
                agent_limit assassin 2
                agent_limit spy 3
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min large_city
            upgrades
            {
                pleasure_palace
            }
        }
        pleasure_palace city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent spy  2  requires factions { northern_european, } 
                agent assassin  1  requires factions { northern_european, } 
                agent spy  2  requires factions { middle_eastern, } 
                agent assassin  1  requires factions { middle_eastern, } 
                agent spy  2  requires factions { eastern_european, } 
                agent assassin  1  requires factions { eastern_european, } 
                agent spy  2  requires factions { greek, } 
                agent assassin  1  requires factions { greek, } 
                agent spy  2  requires factions { southern_european, } 
                agent assassin  1  requires factions { southern_european, } 
                recruit_pool "Transilvanian Peasants"  1   0.67   5  0  requires factions { hungary, } and hidden_resource hungary and event_counter new_era_begins 1
				recruit_pool "Transilvanian Peasants"  0   0.3   3  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, lithuania, cumans, kwarezm, turks, jerusalem, knights_templar, egypt, byzantium, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource hungary and event_counter new_era_begins 1
                happiness_bonus bonus 5
                agent_limit assassin 3
                agent_limit spy 3
            }
            material wooden
            construction  10
            cost  9000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building city_hall
{
    levels town_hall council_chambers city_hall mayors_palace 
    {
        town_hall city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent diplomat  0  requires factions { northern_european, } 
                agent diplomat  0  requires factions { middle_eastern, } 
                agent diplomat  0  requires factions { eastern_european, } 
                agent diplomat  0  requires factions { greek, } 
                agent diplomat  0  requires factions { southern_european, } 
                law_bonus bonus 1
                population_health_bonus bonus 1
                agent_limit diplomat 1
            }
            material wooden
            construction  3 
            cost  750 
            settlement_min large_town
            upgrades
            {
                council_chambers
            }
        }
        council_chambers city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent diplomat  0  requires factions { northern_european, } 
                agent diplomat  0  requires factions { middle_eastern, } 
                agent diplomat  0  requires factions { eastern_european, } 
                agent diplomat  0  requires factions { greek, } 
                agent diplomat  0  requires factions { southern_european, } 
                law_bonus bonus 2
                population_health_bonus bonus 2
                agent_limit diplomat 2
				trade_base_income_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  1500 
            settlement_min city
            upgrades
            {
                city_hall
            }
        }
        city_hall city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent diplomat  1  requires factions { northern_european, } 
                agent diplomat  1  requires factions { middle_eastern, } 
                agent diplomat  1  requires factions { eastern_european, } 
                agent diplomat  1  requires factions { greek, } 
                agent diplomat  1  requires factions { southern_european, } 
                recruit_pool "Carroccio Standard M"  1   0.13   1  0  requires factions { milan, } 
                recruit_pool "Carroccio Standard V"  1   0.13   1  0  requires factions { venice, }
				
                law_bonus bonus 3
		population_health_bonus bonus 3
                agent_limit diplomat 2
				trade_base_income_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                mayors_palace
            }
        }
        mayors_palace city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, slave, } 
        {
            capability
            {
                agent diplomat  1  requires factions { northern_european, } 
                agent diplomat  1  requires factions { middle_eastern, } 
                agent diplomat  1  requires factions { eastern_european, } 
                agent diplomat  1  requires factions { greek, } 
                agent diplomat  1  requires factions { southern_european, } 
                recruit_pool "Forlorn Hope"  1   0.25   2  0  requires factions { hre, } and event_counter new_era_begins 1
                recruit_pool "Famiglia Ducale"  1   0.085   1  0  requires factions { milan, } and event_counter first_piano 1
                recruit_pool "Kievan Palace Guard"  1   0.17   1  0  requires factions { kievan_rus, } and event_counter HEAVY_MAIL_ARMOR 1
                recruit_pool "Carroccio Standard M"  1   0.2   2  0  requires factions { milan, } 
                recruit_pool "Carroccio Standard V"  1   0.2   2  0  requires factions { venice, }
				
		recruit_pool "English Huscarls"  1   0.1   1  1  requires factions { byzantium, } and not event_counter HEAVY_MAIL_ARMOR 1 
		recruit_pool "Varangian Guard"  1   0.1   1  0  requires factions { byzantium, } and event_counter HEAVY_MAIL_ARMOR 1 

                law_bonus bonus 4
				population_health_bonus bonus 4
                agent_limit diplomat 3
				trade_base_income_bonus bonus 2
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building byzantine_mercenary_barracks
{
    levels mercenary_barracks, mercenary_barracks2, mercenary_barracks3
    {
        mercenary_barracks castle requires factions { byzantium, } and event_counter HEAVY_MAIL_ARMOR 1
        {
            capability
            {					
                recruit_pool "Skythikoi"  1   0.13   1  0  requires factions { byzantium, }
				law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  2 
            cost  1000 
            settlement_min large_town
            upgrades
            {
				mercenary_barracks2
            }
        }
		mercenary_barracks2 castle requires factions { byzantium, } and event_counter HEAVY_MAIL_ARMOR 1 
        {
            capability
            {					
                recruit_pool "Latinikon"  1   0.13   1  0  requires factions { byzantium, } 
                recruit_pool "Skythikoi"  1   0.17   1  0  requires factions { byzantium, } 
                law_bonus bonus 1
				law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  3 
            cost  2000 
            settlement_min city
            upgrades
            {
				mercenary_barracks3
            }
        }		
		mercenary_barracks3 castle requires factions { byzantium, } and event_counter HEAVY_MAIL_ARMOR 1
        {
            capability
            {					
                recruit_pool "Alamanoi"  1   0.13   1  0  requires factions { byzantium, } 
                recruit_pool "Latinikon"  1   0.17   1  0  requires factions { byzantium, } 
                recruit_pool "Skythikoi"  1   0.25   2  0  requires factions { byzantium, } 
                law_bonus bonus 1
				law_bonus bonus 1 requires event_counter is_the_ai 1
            }
            material wooden
            construction  4 
            cost  4000 
            settlement_min large_city
            upgrades
            {
            }
        }		
    }
    plugins 
    {
    }
} 
building art
{
    levels artist_studio artist_gallery 
    {
        artist_studio city requires factions { milan, venice, sicily, } 
        {
            capability
            {
                happiness_bonus bonus 2
            }
            material wooden
            construction  5 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                artist_gallery
            }
        }
        artist_gallery city requires factions { milan, venice, sicily, } 
        {
            capability
            {
                happiness_bonus bonus 3
            }
            material wooden
            construction  8 
            cost  4000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building bullring
{
    levels plaza_del_toro 
    {
        plaza_del_toro city requires factions { portugal, spain, aragon, } 
        {
            capability
            {
                happiness_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  4000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building bank
{
    levels merchant_bank merchant_vault 
    {
        merchant_bank city requires factions { hre, venice, milan, knights_templar, } 
        {
            capability
            {
                trade_base_income_bonus bonus 2
                agent_limit merchant 1
            }
            material wooden
            construction  5 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                merchant_vault
            }
        }
        merchant_vault city requires factions { hre, venice, milan, knights_templar, } 
        {
            capability
            {
                trade_base_income_bonus bonus 3
                agent_limit merchant 2
            }
            material wooden
            construction  8 
            cost  8000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building paper
{
    levels printing_press printing_house 
    {
        printing_press city requires factions { hre, poland, } 
        {
            capability
            {
                happiness_bonus bonus 1
                trade_base_income_bonus bonus 1
            }
            material wooden
            construction  5 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                printing_house
            }
        }
        printing_house city requires factions { hre, poland, } 
        {
            capability
            {
                happiness_bonus bonus 2
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  8 
            cost  8000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building icon_art
{
    levels ikoner_studio master_ikoner_studio 
    {
        ikoner_studio city requires factions { russia, kievan_rus, greek, } 
        {
            capability
            {
		population_health_bonus bonus 1
                amplify_religion_level 2
            }
            material wooden
            construction  5 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                master_ikoner_studio
            }
        }
        master_ikoner_studio city requires factions { russia, kievan_rus, greek, } 
        {
            capability
            {
                population_health_bonus bonus 2
                amplify_religion_level 3
            }
            material wooden
            construction  8 
            cost  8000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building music
{
    levels theatre conservatorium 
    {
        theatre city requires factions { france, } 
        {
            capability
            {
                happiness_bonus bonus 1
            }
            material wooden
            construction  5 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                conservatorium
            }
        }
        conservatorium city requires factions { france, } 
        {
            capability
            {
                happiness_bonus bonus 2
            }
            material wooden
            construction  8 
            cost  8000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building tourney
{
    levels jousting_lists tourney_fields 
    {
        jousting_lists castle requires factions { hre, teutonic_order, france, england, portugal, spain, aragon, knights_templar, jerusalem, poland, hungary, } 
        {
            capability
            {
                heavy_cavalry_bonus bonus 1
                happiness_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  2000 
            settlement_min city
            upgrades
            {
                tourney_fields
            }
        }
        tourney_fields castle requires factions { hre, teutonic_order, france, england, portugal, spain, aragon, knights_templar, jerusalem, poland, hungary, } 
        {
            capability
            {
                happiness_bonus bonus 1
                free_upkeep bonus 1
                heavy_cavalry_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  4000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_academic
{
    levels castle_library academy 
    {
        castle_library castle requires factions { denmark, teutonic_order, norway, scotland, hungary, poland, knights_templar, } 
        {
            capability
            {
                agent spy  0  requires factions { northern_european, } 
                agent diplomat  0  requires factions { northern_european, } 
                agent spy  0  requires factions { eastern_european, } 
                agent diplomat  0  requires factions { eastern_european, } 
                agent_limit diplomat 1
                agent_limit spy 1
            }
            material wooden
            construction  4 
            cost  1200 
            settlement_min city
            upgrades
            {
                academy
            }
        }
        academy castle requires factions { denmark, teutonic_order, norway, scotland, hungary, poland, knights_templar, } 
        {
            capability
            {
                agent spy  0  requires factions { northern_european, } 
                agent diplomat  0  requires factions { northern_european, } 
                agent assassin  0  requires factions { northern_european, } 
                agent spy  0  requires factions { eastern_european, } 
                agent diplomat  0  requires factions { eastern_european, } 
                agent assassin  0  requires factions { eastern_european, } 
                agent_limit diplomat 1
                agent_limit spy 1
                agent_limit assassin 1
            }
            material wooden
            construction  8 
            cost  2400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building caravan
{
    levels caravan_stop caravanersary 
    {
        caravan_stop castle requires factions { moors, } 
        {
            capability
            {
                recruit_pool "Tuareg Camel Spearmens"  1   0.25   2  1  requires factions { moors, } and hidden_resource moors or hidden_resource egypt  
                trade_level_bonus bonus 2
            }
            material wooden
            construction  3 
            cost  1500 
            settlement_min large_town
            upgrades
            {
                caravanersary
            }
        }
        caravanersary castle requires factions { moors, } 
        {
            capability
            {
                recruit_pool "Tuareg Camel Spearmens"  1   0.34   3  2  requires factions { moors, } and hidden_resource moors or hidden_resource egypt
                recruit_pool "Camel Gunners"  1   0.17   1  0  requires factions { moors, }  and event_counter pike_and_shot 1 and hidden_resource moors or hidden_resource egypt
                trade_level_bonus bonus 3
            }
            material wooden
            construction  6 
            cost  3000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_assassins_guild
{
    levels assassins_guild m_assassins_guild gm_assassins_guild 
    {
        assassins_guild city requires factions { northern_european, eastern_european, greek, southern_european, } 
        {
            capability
            {
		recruit_pool "Battlefield Assassins"  1   0.34   1  0  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1
                law_bonus bonus 1
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_assassins_guild
            }
        }
        m_assassins_guild city requires factions { northern_european, eastern_european, greek, southern_european, } 
        {
            capability
            {
                recruit_pool "Battlefield Assassins"  1   0.5   2  1  requires factions { hungary, } and event_counter HEAVY_MAIL_ARMOR 1
                law_bonus bonus 2
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_assassins_guild
            }
        }
        gm_assassins_guild city requires factions { northern_european, eastern_european, greek, southern_european, } and event_counter HEAVY_MAIL_ARMOR 1
        {
            capability
            {
                recruit_pool "Battlefield Assassins"  1   0.67   3  2  requires factions { hungary, } 
                law_bonus bonus 3
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_assassins_muslim_guild
{
    levels eastern_assassins_guild m_eastern_assassins_guild gm_eastern_assassins_guild 
    {
        eastern_assassins_guild city requires factions { middle_eastern, } 
        {
            capability
            {
                recruit_pool "Hashishim"  1   0.34   1  0  requires factions { moors, egypt, turks, kwarezm, }
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_eastern_assassins_guild
            }
        }
        m_eastern_assassins_guild city requires factions { middle_eastern, } 
        {
            capability
            {
                recruit_pool "Hashishim"  1   0.5   2  1  requires factions { moors, egypt, turks, kwarezm,}
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_eastern_assassins_guild
            }
        }
        gm_eastern_assassins_guild city requires factions { middle_eastern, } 
        {
            capability
            {
                recruit_pool "Hashishim"  1   0.67   3  2  requires factions { moors, egypt, turks, kwarezm, }
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_masons_guild
{
    levels masons_guild m_masons_guild gm_masons_guild 
    {
        masons_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                ;recruit_pool "Baltic Spearmen"  1   0.25   2  0  requires factions { lithuania, } 
                ;recruit_pool "Fyrd Spearmen"  1   0.25   2  0  requires factions { england, } 
                ;recruit_pool "Spear Militia"  1   0.25   2  0  requires factions { scotland, france, hre, denmark, spain, aragon, portugal, norway,  } 
                ;recruit_pool "Pavise Spear Militia"  1   0.25   2  0  requires factions { milan, venice, papal_states, sicily, } 
                ;recruit_pool "EE Spear Militia"  1   0.25   2  0  requires factions { poland, russia, kievan_rus, hungary, cumans, } 
                ;recruit_pool "Contaratoi"  1   0.25   2  0  requires factions { byzantium, } 
                ;recruit_pool "ME Spear Militia"  1   0.25   2  0  requires factions { moors, egypt, turks, kwarezm, } 
                ;recruit_pool "Order Militia"  1   0.25   2  0  requires factions { teutonic_order, } 

                construction_cost_bonus_stone bonus 30
                happiness_bonus bonus 1
            }
            material stone
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_masons_guild
            }
        }
        m_masons_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                ;recruit_pool "Baltic Spearmen"  1   0.34   3  0  requires factions { lithuania, } 
                ;recruit_pool "NE_Urban_Militia"  1   0.25   2  0  requires factions { england, } and event_counter new_era_begins 1  
                ;recruit_pool "Fyrd Spearmen"  1   0.34   3  0  requires factions { england, } and not event_counter new_era_begins 1  
                ;recruit_pool "Scots Pike Militia"  1   0.25   2 0  requires factions { scotland, } and event_counter new_era_begins 1 
                ;recruit_pool "Spear Militia"  1   0.34   3 0  requires factions { scotland, } and not event_counter new_era_begins 1 
                ;recruit_pool "Partisan Militia"  1   0.25   2  0  requires factions { france, } and event_counter new_era_begins 1 
                ;recruit_pool "Spear Militia"  1   0.34   3  0  requires factions { france, } and not event_counter new_era_begins 1 
                ;recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { hre, } and event_counter new_era_begins 1 
                ;recruit_pool "Spear Militia"  1   0.34   3  0  requires factions { hre, } and not event_counter new_era_begins 1 
                ;recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1
                ;recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { papal_states, sicily, } and not event_counter new_era_begins 1 
                ;recruit_pool "Halberd Militia"  1   0.25   2  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 
                ;recruit_pool "EE Spear Militia"  1   0.34   3  0  requires factions { poland, hungary, } and not event_counter new_era_begins 1 
                ;recruit_pool "Swordstaff Militia"  1   0.25   2  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 
                ;recruit_pool "Spear Militia"  1   0.34   3  0  requires factions { denmark, norway, } and not event_counter new_era_begins 1 
                ;recruit_pool "Swordsmen Militia"  1   0.34   2  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1
                ;recruit_pool "Spear Militia"  1   0.34   2  0  requires factions { spain, aragon, portugal, } and not event_counter new_era_begins 1
                ;recruit_pool "Pavise Spear Militia"  1   0.34   3  0  requires factions { milan, venice, } 
                ;recruit_pool "EE Spear Militia"  1   0.34   3  0  requires factions { russia, kievan_rus, cumans, } 
                ;recruit_pool "Castrophilakae"  1   0.25   2  0  requires factions { byzantium, }
                ;recruit_pool "Urban Militia"  1   0.25   2  0  requires factions { moors, } 
                ;recruit_pool "ME Halberd Militia"  1   0.25   2  0  requires factions { egypt, turks, } and event_counter new_era_begins 1 
                ;recruit_pool "ME Spear Militia"  1   0.34   3  0  requires factions { egypt, turks, } and not event_counter new_era_begins 1 
                ;recruit_pool "ME Spear Militia"  1   0.34   3  0  requires factions { kwarezm, } 
                ;recruit_pool "Burgher Pikemen"  1   0.25   2  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 
                ;recruit_pool "Order Militia"  1   0.34   3  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1 

                construction_cost_bonus_stone bonus 30
                happiness_bonus bonus 1
            }
            faction_capability
            {
                construction_cost_bonus_stone bonus 20
            }
            material stone
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_masons_guild
            }
        }
        gm_masons_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                ;recruit_pool "Ducal Axe"  1   0.17   1  0  requires factions { lithuania, } 
                ;recruit_pool "Baltic Spearmen"  1   0.34   3  0  requires factions { lithuania, } 
                ;recruit_pool "Militia Serjeants"  1   0.25   2  0  requires factions { england, } and event_counter new_era_begins 1  
                ;recruit_pool "Fyrd Spearmen"  1   0.5   4  0  requires factions { england, } and not event_counter new_era_begins 1  
                ;recruit_pool "Heavy Pike Militia"  1   0.25   2 0  requires factions { scotland, } and event_counter new_era_begins 1 
                ;recruit_pool "Spear Militia"  1   0.5   4 0  requires factions { scotland, } and not event_counter new_era_begins 1 
                ;recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { france, } and event_counter new_era_begins 1 
                ;recruit_pool "Spear Militia"  1   0.5   4  0  requires factions { france, } and not event_counter new_era_begins 1 
                ;recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { hre, } and event_counter new_era_begins 1 
                ;recruit_pool "Spear Militia"  1   0.5   4  0  requires factions { hre, } and not event_counter new_era_begins 1 
                ;recruit_pool "Pike Militia"  1   0.25   2  0  requires factions { papal_states, sicily, } and event_counter new_era_begins 1
                ;recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { papal_states, sicily, } and not event_counter new_era_begins 1 
                ;recruit_pool "Halberd Militia"  1   0.34   3  0  requires factions { poland, hungary, } and event_counter new_era_begins 1 
                ;recruit_pool "EE Spear Militia"  1   0.5   4  0  requires factions { poland, hungary, } and not event_counter new_era_begins 1 
                ;recruit_pool "Swordstaff Militia"  1   0.34   3  0  requires factions { denmark, norway, } and event_counter new_era_begins 1 
                ;recruit_pool "Spear Militia"  1   0.5   4  0  requires factions { denmark, norway, } and not event_counter new_era_begins 1 
                ;recruit_pool "Pike Militia"  1   0.34   2  0  requires factions { spain, aragon, portugal, } and event_counter new_era_begins 1
                ;recruit_pool "Spear Militia"  1   0.5   4  0  requires factions { spain, aragon, portugal, } and not event_counter new_era_begins 1
                ;recruit_pool "Pike Militia"  1   0.34   2  0  requires factions { milan, venice, } and event_counter new_era_begins 1
                ;recruit_pool "Pavise Spear Militia"  1   0.5   4  0  requires factions { milan, venice, } and not event_counter new_era_begins 1
                ;recruit_pool "Berdiche Axemen"  1   0.34   2  0  requires factions { russia, } 
                ;recruit_pool "Berdiche Militia"  1   0.34   3  0  requires factions { kievan_rus, }
                ;recruit_pool "EE Spear Militia"  1   0.5   4  0  requires factions { russia, kievan_rus, cumans, } 
                ;recruit_pool "Castrophilakae"  1   0.34   3  0  requires factions { byzantium, }
                ;recruit_pool "Urban Militia"  1   0.34   3  0  requires factions { moors, } 
                ;recruit_pool "ME Halberd Militia"  1   0.34   3  0  requires factions { egypt, turks, } and event_counter new_era_begins 1 
                ;recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { egypt, turks, } and not event_counter new_era_begins 1 
                ;recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { kwarezm, } 
                ;recruit_pool "Burgher Pikemen"  1   0.34   3  0  requires factions { teutonic_order, } and event_counter new_era_begins 1 
                ;recruit_pool "Order Militia"  1   0.5   4  0  requires factions { teutonic_order, } and not event_counter new_era_begins 1 

                construction_cost_bonus_stone bonus 30
                happiness_bonus bonus 2
            }
            faction_capability
            {
                construction_cost_bonus_stone bonus 30
            }
            material stone
            construction  1 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_theologians_guild
{
    levels theologians_guild m_theologians_guild gm_theologians_guild 
    {
        theologians_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
		religion_level bonus 2
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_theologians_guild
            }
        }
        m_theologians_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
		religion_level bonus 4
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_theologians_guild
            }
        }
        gm_theologians_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
		religion_level bonus 6
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_merchants_guild
{
    levels merchants_guild m_merchants_guild gm_merchants_guild 
    {
        merchants_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                recruit_pool "L Cavalry Militia"  1   0.13   1  0  requires factions { lithuania, } 
                recruit_pool "Merchant Cavalry Militia"  1   0.13   1  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, poland, hungary, knights_templar,  norway, teutonic_order, } 
                recruit_pool "Italian Cavalry Militia"  1   0.13   1  0  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Senior Mounted Militia"  1   0.13   1  0  requires factions { russia, kievan_rus, } 
                recruit_pool "Latin Handgunners"  1   0.13   1  0  requires factions { byzantium, } and event_counter first_watch 1
                recruit_pool "Arab Cavalry"  1   0.13   1  0  requires factions { moors, egypt, } 
                trade_base_income_bonus bonus 1
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_merchants_guild
            }
        }
        m_merchants_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                recruit_pool "L Cavalry Militia"  1   0.17   2  0  requires factions { lithuania, } 
                recruit_pool "Merchant Cavalry Militia"  1   0.17   2  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, poland, hungary, knights_templar,  norway, teutonic_order, } 
                recruit_pool "Italian Cavalry Militia"  1   0.17   2  0  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Senior Mounted Militia"  1   0.17   2  0  requires factions { russia, kievan_rus, } 
                recruit_pool "Latin Handgunners"  1   0.17   2  0  requires factions { byzantium, } and event_counter first_watch 1
                recruit_pool "Arab Cavalry"  1   0.17   2  0  requires factions { moors, egypt, } 
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_merchants_guild
            }
        }
        gm_merchants_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                recruit_pool "L Cavalry Militia"  1   0.25   3  0  requires factions { lithuania, } 
                recruit_pool "Merchant Cavalry Militia"  1   0.25   3  0  requires factions { england, scotland, france, hre, denmark, spain, aragon, portugal, poland, hungary, knights_templar,  norway, teutonic_order, } 
                recruit_pool "Italian Cavalry Militia"  1   0.25   3  0  requires factions { milan, venice, papal_states, sicily, } 
                recruit_pool "Senior Mounted Militia"  1   0.25   3  0  requires factions { russia, kievan_rus, } 
                recruit_pool "Latin Handgunners"  1   0.25   3  0  requires factions { byzantium, } and event_counter first_watch 1
                recruit_pool "Arab Cavalry"  1   0.25   3  0  requires factions { moors, egypt, } 
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_hanseatic_guild
{
    levels hanseatic_guild 
    {
        hanseatic_guild  requires factions { northern_european, eastern_european, }
        {
            capability
            {
            }
            faction_capability
            {
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  1 
            cost  4000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_alchemists_guild
{
    levels alchemists_guild m_alchemists_guild gm_alchemists_guild 
    {
        alchemists_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                gun_bonus 1
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_alchemists_guild
            }
        }
        m_alchemists_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                gun_bonus 2
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_alchemists_guild
            }
        }
        gm_alchemists_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                gun_bonus 2
            }
            faction_capability
            {
                gun_bonus 1
            }
            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 { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
				 law_bonus bonus 1
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_thieves_guild
            }
        }
        m_thieves_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
				 law_bonus bonus 2
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_thieves_guild
            }
        }
        gm_thieves_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
				 law_bonus bonus 3
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_explorers_guild
{
    levels explorers_guild m_explorers_guild gm_explorers_guild 
    {
        explorers_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                trade_base_income_bonus bonus 1
		trade_fleet 1
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_explorers_guild
            }
        }
        m_explorers_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                trade_base_income_bonus bonus 2
		trade_fleet 2		
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_explorers_guild
            }
        }
        gm_explorers_guild city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                trade_base_income_bonus bonus 3
		trade_fleet 3
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_swordsmiths_guild
{
    convert_to guild_swordsmiths_guild
    levels swordsmiths_guild m_swordsmiths_guild gm_swordsmiths_guild 
    {
        swordsmiths_guild  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 0
            capability
            {
                ;weapon_melee_blade 1
		recruits_exp_bonus bonus 1
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_swordsmiths_guild
            }
        }
        m_swordsmiths_guild  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 1
            capability
            {
                ;weapon_melee_blade 1
		recruits_exp_bonus bonus 2
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_swordsmiths_guild
            }
        }
        gm_swordsmiths_guild  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 2
            capability
            {
                ;weapon_melee_blade 1
		recruits_exp_bonus bonus 2
            }
            faction_capability
            {
                ;heavy_cavalry_bonus bonus 1
		recruits_exp_bonus bonus 1
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_templars_chapter_house
{
    convert_to guild_templars_chapter_house
    levels templars_minor_ch templars_major_ch templars_hq 
    {
        templars_minor_ch  requires factions { england, jerusalem, norway, france, scotland, denmark, hungary, poland, papal_states, milan, sicily, venice, knights_templar, jerusalem,  } 
        {
            convert_to 0
            capability
            {
                recruit_pool "Knights Templar"  1   0.085   1  0  requires factions { england, jerusalem, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem,  } 
				trade_base_income_bonus bonus 1            
			}
            material stone
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                templars_major_ch
            }
        }
        templars_major_ch  requires factions { england, jerusalem, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, knights_templar, jerusalem,  } 
        {
            convert_to 1
            capability
            {
                recruit_pool "Knights Templar"  1   0.13   2  0  requires factions { england, jerusalem, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem,  }
                recruit_pool "Dismounted Knights Templar"  1   0.085   1  0  requires factions { england, jerusalem, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem,  } 
				trade_base_income_bonus bonus 2
			}
            material stone
            construction  1 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                templars_hq
            }
        }
        templars_hq  requires factions { england, jerusalem, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, knights_templar, jerusalem,  } 
        {
            convert_to 2
            capability
            {
                recruit_pool "Knights Templar"  1   0.17   3  1  requires factions { england, jerusalem, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem,  }
                recruit_pool "Dismounted Knights Templar"  1   0.13   2  1  requires factions { england, jerusalem, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem,  } 
				trade_base_income_bonus bonus 3
	    	;free_upkeep bonus 1
            }
            material stone
            construction  1 
            cost  5000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_st_johns_chapter_house
{
    convert_to guild_st_johns_chapter_house
    levels st_johns_minor_ch st_johns_major_ch st_johns_hq 
    {
        st_johns_minor_ch  requires factions { england, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, knights_templar, jerusalem, } 
        {
            convert_to 0
            capability
            {
                recruit_pool "Knights Hospitaller"  1   0.085   1  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem, }
                population_health_bonus bonus 1
            }
            material stone
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                st_johns_major_ch
            }
        }
        st_johns_major_ch  requires factions { england, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, knights_templar, jerusalem, } 
        {
            convert_to 1
            capability
            {
                recruit_pool "Knights Hospitaller"  1   0.13   2  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem, } 
                recruit_pool "Dismounted Knights Hospitaller"  1   0.085   1  0  requires factions { england, scotland, france, denmark, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem, } 
                population_health_bonus bonus 2
            }
            material stone
            construction  1 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                st_johns_hq
            }
        }
        st_johns_hq  requires factions { england, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, knights_templar, jerusalem, } 
        {
            convert_to 2
            capability
            {
                recruit_pool "Knights Hospitaller"  1   0.17   3  1  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem, } 
                recruit_pool "Dismounted Knights Hospitaller"  1   0.13   2  1  requires factions { england, scotland, france, denmark, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem, } 
                population_health_bonus bonus 3
	    	;free_upkeep bonus 1
            }
            material stone
            construction  1 
            cost  5000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_montesa_chapter_house
{
    convert_to guild_montesa_chapter_house
    levels montesa_minor_ch montesa_major_ch montesa_hq 
    {
        montesa_minor_ch  requires factions { aragon, } 
        {
            convert_to 0
            capability
            {
                recruit_pool "Knights of Montesa"  1   0.085   1  0  requires factions { aragon, }  
            }
            material stone
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                montesa_major_ch
            }
        }
        montesa_major_ch  requires factions { aragon, } 
        {
            convert_to 1
            capability
            {
                recruit_pool "Knights of Montesa"  1   0.13   2  0  requires factions { aragon, } 
                recruit_pool "Dismounted KM"  1   0.085   1  0  requires factions { aragon, } 
                population_health_bonus bonus 1
            }
            material stone
            construction  1 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                montesa_hq
            }
        }
        montesa_hq  requires factions { aragon, } 
        {
            convert_to 2
            capability
            {
                recruit_pool "Knights of Montesa"  1   0.17   3  1  requires factions { aragon, } 
                recruit_pool "Dismounted KM"  1   0.13   2  1  requires factions { aragon, } 
                population_health_bonus bonus 2
	    	;free_upkeep bonus 1
            }
            material stone
            construction  1 
            cost  5000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_teutonic_knights_chapter_house
{
    convert_to guild_teutonic_knights_chapter_house
    levels teutonic_knights_minor_ch teutonic_knights_major_ch teutonic_knights_hq 
    {
        teutonic_knights_minor_ch  requires factions { hre, } 
        {
            convert_to 0
            capability
            {
                recruit_pool "Ritterbruder"  1   0.085   1  0  requires factions { hre, }
				religion_level bonus 1
            }
            material stone
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                teutonic_knights_major_ch
            }
        }
        teutonic_knights_major_ch  requires factions { hre, } 
        {
            convert_to 1
            capability
            {
                recruit_pool "Ritterbruder"  1   0.13   2  0  requires factions { hre, } 
                recruit_pool "Dismounted Ritterbruder"  1   0.085   1  0  requires factions { hre, }
				religion_level bonus 2
            }
            material stone
            construction  1 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                teutonic_knights_hq
            }
        }
        teutonic_knights_hq  requires factions { hre, } 
        {
            convert_to 2
            capability
            {
                recruit_pool "Ritterbruder"  1   0.17   3  1  requires factions { hre, }
                recruit_pool "Dismounted Ritterbruder"  1   0.13   2  1  requires factions { hre, } 
				religion_level bonus 3
	    	;free_upkeep bonus 1
            }
            material stone
            construction  1 
            cost  5000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_knights_of_santiago_chapter_house
{
    convert_to guild_knights_of_santiago_chapter_house
    levels knights_of_santiago_minor_ch knights_of_santiago_major_ch knights_of_santiago_hq 
    {
        knights_of_santiago_minor_ch  requires factions { portugal, spain, aragon, } 
        {
            convert_to 0
            capability
            {
                recruit_pool "Knights of Santiago"  1   0.085   1  0  requires factions { spain, aragon, portugal, } 
				law_bonus bonus 1
            }
            material stone
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                knights_of_santiago_major_ch
            }
        }
        knights_of_santiago_major_ch  requires factions { portugal, spain, aragon, } 
        {
            convert_to 1
            capability
            {
                recruit_pool "Knights of Santiago"  1   0.13   2  0  requires factions { spain, aragon, portugal, } 
                recruit_pool "Dismounted Knights of Santiago"  1   0.085   1  0  requires factions { spain, aragon, portugal, }
				law_bonus bonus 2
            }
            material stone
            construction  1 
            cost  3000 
            settlement_min large_city
            upgrades
            {
                knights_of_santiago_hq
            }
        }
        knights_of_santiago_hq  requires factions { portugal, spain, aragon, } 
        {
            convert_to 2
            capability
            {
                recruit_pool "Knights of Santiago"  1   0.17   3  1  requires factions { spain, aragon, portugal, } 
                recruit_pool "Dismounted Knights of Santiago"  1   0.13   2  1  requires factions { spain, aragon, portugal, }
				law_bonus bonus 3
	    	;free_upkeep bonus 1
            }
            material stone
            construction  1 
            cost  5000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_woodsmens_guild
{
    levels woodsmens_guild m_woodsmens_guild gm_woodsmens_guild 
    {
        woodsmens_guild castle requires factions { england, } 
        {
            capability
            {
                archer_bonus 1
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_woodsmens_guild
            }
        }
        m_woodsmens_guild castle requires factions { england, } 
        {
            capability
            {
                recruit_pool "Sherwood Archers"  1   0.25   2  0  requires factions { england, } and hidden_resource england
                archer_bonus 2
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_woodsmens_guild
            }
        }
        gm_woodsmens_guild castle requires factions { england, } 
        {
            capability
            {
                recruit_pool "Sherwood Archers"  1   0.34   3  1  requires factions { england, } and hidden_resource england 
                archer_bonus 2
            }
            faction_capability
            {
                archer_bonus 1
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building guild_horse_breeders_guild
{
    levels horse_breeders_guild m_horse_breeders_guild gm_horse_breeders_guild 
    {
        horse_breeders_guild  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                cavalry_bonus 1
            }
            material wooden
            construction  1 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_horse_breeders_guild
            }
        }
        m_horse_breeders_guild  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                cavalry_bonus 2
            }
            material wooden
            construction  1 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_horse_breeders_guild
            }
        }
        gm_horse_breeders_guild  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                cavalry_bonus 2
            }
            faction_capability
            {
                cavalry_bonus 1
            }
            material wooden
            construction  1 
            cost  3000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building convert_to_castle
{
    convert_to convert_to_city
    levels village_to_wooden_castle small_town_to_stone_keep large_town_to_castle 
    {
        village_to_wooden_castle city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 0
            capability
            {
            }
            material wooden
            construction  2 
            cost  3000
            settlement_min village
            upgrades
            {
                small_town_to_stone_keep
            }
        }
        small_town_to_stone_keep city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 1
            capability
            {
            }
            material wooden
            construction  4
            cost  6000 
            settlement_min town
            upgrades
            {
                large_town_to_castle
            }
        }
        large_town_to_castle city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 2
            capability
            {
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building convert_to_city
{
    convert_to convert_to_castle
    levels wooden_castle_to_village stone_keep_to_small_town castle_to_large_town large_castle_to_city fortress_to_city 
    {
        wooden_castle_to_village castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 0
            capability
            {
            }
            material wooden
            construction  2 
            cost  3000 
            settlement_min village
            upgrades
            {
                stone_keep_to_small_town
            }
        }
        stone_keep_to_small_town castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 1
            capability
            {
            }
            material wooden
            construction  4 
            cost  6000 
            settlement_min town
            upgrades
            {
                castle_to_large_town
            }
        }
        castle_to_large_town castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
        {
            convert_to 2
            capability
            {
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min large_town
            upgrades
            {
                large_castle_to_city
            }
        }
        large_castle_to_city castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  8 
            cost  12500 
            settlement_min city
            upgrades
            {
                fortress_to_city
            }
        }
        fortress_to_city castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  10
            cost  15000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_pagan
{
    religion pagan
    levels high_temple 
    {
        high_temple city requires factions { mesoamerican, } 
        {
            capability
            {
                happiness_bonus bonus 2
                religion_level bonus 10
                law_bonus bonus 5
            }
            material wooden
            construction  1 
            cost  6000 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;----------------------------- WONDERS ------------------------------
building wonders1
{
    levels wonder_aqueduct
    {
        wonder_aqueduct city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource wonder1
        {
            capability
            {
                population_health_bonus bonus 2
                population_growth_bonus bonus 1
            }
            material wooden
            construction  12 
            cost  8000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building wonders2
{
    levels wonder_hagia_sophia
    {
        wonder_hagia_sophia city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource wonder2
        {
            capability
            {
                happiness_bonus bonus 2
                law_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  12 
            cost  8000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
} 
;People happy to have wonder, but to many pilgrims, who do bring trade
building wonders3
{
    levels wonder_holy_sepulchre
    {
        wonder_holy_sepulchre city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource wonder3
        {
            capability
            {
                recruit_pool "Canons of the Holy Sepulcher"  1   0.085 1  0  requires factions { jerusalem, } and hidden_resource Constable
                happiness_bonus bonus 1
                law_bonus bonus 1 
		recruits_morale_bonus bonus 1 
            }
            material wooden
            construction  12 
            cost  8000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building wonders4
{
    levels wonder_dome_rock
    {
        wonder_dome_rock city requires factions { northern_european, middle_eastern, greek, southern_european, } and hidden_resource wonder4
        {
            capability
            {
                happiness_bonus bonus 1
                law_bonus bonus 1  
                trade_base_income_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  12 
            cost  8000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building wonders5
{
    levels wonder_kaaba
    {
       wonder_kaaba city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource wonder5
        {
            capability
            {
                happiness_bonus bonus 2
                trade_base_income_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  12 
            cost  8000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
;Dodges kept spending all their money on it
building wonders6
{
    levels wonder_st_marks_basilica
    {
        wonder_st_marks_basilica city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource wonder6
        {
            capability
            {
                happiness_bonus bonus 2
                law_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  12 
            cost  8000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building wonders7
{
    levels wonder_notre_dame
    {
        wonder_notre_dame city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and event_counter notre_dame 1 and hidden_resource wonder7
        {
            capability
            {
                happiness_bonus bonus 1
                law_bonus bonus 1
		recruits_morale_bonus bonus 1  
            }
            material wooden
            construction  12 
            cost  8000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building wonders8
{
    levels wonder_cordoba_mosque
    {
        wonder_cordoba_mosque city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource wonder8
        {
            capability
            {
                happiness_bonus bonus 1
                law_bonus bonus 1
		recruits_morale_bonus bonus 1
            }
            material wooden
            construction  12 
            cost  8000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building education_libraries
{
    levels library great_library 
    {
        library city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                happiness_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  1500 
            settlement_min city
            upgrades
            {
                great_library
            }
        }
        great_library city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource education1
        {
            capability
            {
                happiness_bonus bonus 1
                law_bonus bonus 1
            }
            material wooden
            construction  8 
            cost  3000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building education_university
{
    levels school university great_university 
    {
        school city requires factions { northern_european, egypt, moors, turks, kwarezm, poland, hungary, russia, kievan_rus, greek, southern_european, } 
        {
            capability
            {
                happiness_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                university
            }
        }
        university city requires factions { northern_european, egypt, moors, turks, kwarezm, poland, hungary, russia, kievan_rus, greek, southern_european, } 
        {
            capability
            {
                happiness_bonus bonus 2
				trade_base_income_bonus bonus 1
            }
            material wooden
            construction  6 
            cost  3600 
            settlement_min city
            upgrades
            {
                great_university
            }
        }
        great_university city requires factions { northern_european, egypt, moors, turks, kwarezm, poland, hungary, russia, kievan_rus, greek, southern_european, } and hidden_resource education2 
        {
            capability
            {
                happiness_bonus bonus 2
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building trade_routes
{
    levels trade_centre great_trade_centre 
    {
        trade_centre requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource trade1
        {
            capability
            {
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  1600 
            settlement_min city
            upgrades
            {
                great_trade_centre
            }
        }
        great_trade_centre city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource trade2
        {
            capability
            {
                trade_base_income_bonus bonus 4
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}