;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; This file is generated from a spreadsheet
; Please do not modify by hand
;
; Currently used hidden resources: 61
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; AoR 2^8 Hidden Resources - all duplicates, total in use 20
; R1 R2 R3 R4 R5 R6 R7 R8
; R1, Venetia; R2, Lombardy; R3, Liguria; R4, Provence; R5, Piedmont
; R1&R2, Burgundy; R1&R3, Swabia; R1&R4, Swiss; R1&R5, Bavaria
; R6&R1, Heredity Lands; R2&R3, Hungary; R2&R4, Croatia; R2&R5, Dalmatia
; R7&R1, Romagna; R6&R2, Tuscany; R3&R4, Papal States; R3&R5, South Italy
; R8&R1, Sicily; R7&R2, Africa; R6&R3, Corsica & Sardinia
; 
; Each recruitment area has an unique unit entry, to prevent any errors like R1 & R2, 
; would become 'Burgundy', but meant was 'Venetia' and 'Lombardy'.
;
; There are three different levels: home, border, farOff
; 'home' - represents the home provinces, in which the faction can muster its complete unit roster
; 'border' - still close enough to the home provinces, but there is already a decrease in the availability of units
; 'farOff' - far far away in a galaxy long ago.. ah hold on, silly me!! ah only local units are available
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                                                       ;;
; 'home' provinces:                                     ;;  'border' provinces:
;       - Venetia -> venice, modena, mantua             ;;          - Venetia -> milan, genoa, bologna, hre, savoy, florence, siena, urbino, papal states
;       - Lombardy -> milan, montferrat                 ;;          - Lombardy -> swiss, savoy, genoa, venice, hre, ferrara, mantua
;       - Liguaria -> genoa                             ;;          - Liguria -> milan, montferrat, savoy, france, florence, venice, ferrara, mantua, siena
;       - Provence -> france                            ;;          - Provence -> genoa, savoy
;       - Piedmont -> savoy                             ;;          - Piedmont -> france, swiss, genoa, milan, montferrat
;       - Burgundy -> france                            ;;          - Burgundy -> hre, swabian league, swiss, savoy
;       - Swabia -> swabian league, hre                 ;;          - Swabia -> france, swiss
;       - Swiss -> swiss                                ;;          - Swiss -> swabian league, hre, france, savoy, milan, montferrat
;       - Bavaria -> swabian league, hre                ;;          - Bavaria -> swiss
;       - Heredity Lands -> hre                         ;;          - Heredity Lands -> hungary
;       - Hungary -> hungary                            ;;          - Hungary -> hre, ottomans
;       - Croatia -> hungary                            ;;          - Croatia -> hre, ottomans, ragusa
;       - Dalmatia -> ragusa                            ;;          - Dalmatia -> ottomans, hungary, venice
;       - Romagna -> bologna, papal states, urbino      ;;          - Romagna -> venice, ferrara, mantua, florence, siena, milan, montferrat, genoa
;       - Tuscany -> florence, siena                    ;;          - Tuscany -> genoa, venice, bologna, urbino, papal_states
;       - Papal States -> papal states                  ;;          - Papal States -> florence, siena, naples, urbino, bologna
;       - South Italy -> naples                         ;;          - South Italy -> papal states
;       - Sicily -> naples                              ;;          - Sicily -> spain, hafsids
;       - Africa -> hafsids                             ;;          - Africa -> ottomans
;       - Corsica & Sardinia ->                         ;;          - Corsica & Sardinia -> genoa, hafsids, spain
;                                                       ;;
;   Local 'home' provinces:                             ;; 
;       - Palermo -> spain                              ;;
;       - Sarajevo -> ottomans                          ;;
;                                                       ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                                                       
; 'farOff' provinces:                                   
;       - Venetia -> france, swabian league, swiss, hungary, ottomans, ragusa, naples, spain, hafsids
;
;       - Lombardy -> france, swabian league, hungary, ottomans, ragusa, naples, spain, hafsids
;
;       - Liguria -> swiss, swabian league, hre, hungary, ottomans, ragusa, papal states, bologna, urbino, naples, spain, hafsids    
;
;       - Provence -> swiss, swabian league, hre, hungary, ottomans, ragusa, venice, mantua, ferrara, milan, montferrat, bologna urbino, florence, siena, papal, ;         states, naples, spain, hafsids
;
;       - Piedmont -> swabian league, hre, hungary, ottomans, ragusa, venice, mantua, ferrara, bologna, urbino, papal states, florence, siena, papal states, ;         spain, hafsids
;
;       - Burgundy -> hungary, ottomans, ragusa, venice, mantua, ferrara, milan, montferrat, genoa, bologna, urbino, florence, siena, papal states, naples, ;         spain, hafsids
;
;       - Swabia -> hungary, ottomans, ragusa, venice, mantua, ferrara, milan, montferrat, savoy, genoa, bologna, urbino, florence, siena, papal states, naples, ;         spain, hafsids
;
;       - Swiss -> hungary, ottomans, ragusa, venice, mantua, ferrara, genoa, bologna, urbino, florence, siena, papal states, naples, spain, hafsids
;
;       - Bavaria -> france, hungary, ottomans, ragusa, venice, mantua, ferrara, milan, montferrat, savoy, genoa, bologna, urbino, florence, siena, papal states, ;         naples, spain, hafsids
;
;       - Heredity Lands -> france, swiss, swabian league, ottomans, ragusa, venice, ferrara, mantua, milan, montferrat, savoy, genoa, bologna, urbino, florence, ;         siena, papal states, naples, spain, hafsids 
;
;       - Hungary -> france, swiss, swabian league, ragusa, venice, ferrara, mantua, milan, montferrat, savoy, genoa, bologna, urbino, florence, siena, papal ;         states, naples, spain, hafsids
;
;       - Croatia -> france, swiss, swabian league, venice, ferrara, mantua, milan, montferrat, savoy, genoa, bologna, urbino, florence, siena, papal sates, ;         naples, spain, hafsids
;
;       - Dalmatia -> france, swiss, swabian league, hre, milan, montferrat, savoy, genoa, bologna, urbino, florence, siena, papal states, naples, spain, hafsids
;
;       - Romagna -> france, swiss, swabian league, hre, hungary, ottomans, ragusa, savoy, naples, spain, hafsids
;
;       - Tuscany -> france, swiss, swabian league, hre, hungary, ottomans, ragusa, savoy, milan, montferrat, naples, spain, hafsids
;
;       - Papal States -> france, swiss, swabian league, hre, hungary, ottomans, ragusa, savoy, milan, montferrat, genoa, spain, hafsids
;
;       - South Italy -> france, swiss, swabian league, hre, hungary, ottomans, ragusa, venice, mantua, ferrara, savoy, genoa, milan, montferrat, bologna, ;         urbino, florence, siena, spain, hafsids
;
;       - Sicily -> france, swiss, swabian league, hre, hungary, ottomans, ragusa, venice, mantua, ferrara, milan, montferrat, savoy, genoa, bologna, urbino, ;         florence, siena, papal states
;
;       - Africa -> france, swiss, swabian league, hre, hungary, ragusa, venice, mantua, ferrara, milan, montferrat, savoy, genoa, bologna, urbino, florence, ;         siena, papal states, spain
;
;       - Corsica & Sardinia -> france, swiss, swabian league, hre, hungary, ragusa, venice, mantua, ferrara, milan, montferrat, savoy, bologna, urbino, ;         florence, siena, papal states
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

hidden_resources sparta rome italy america atlantic explorers_guild crusade jihad hospitaller horde_target no_pirates no_brigands mantua siena modena monferrat lucca piombino noli ragusa ancona gaeta kleinstadt mittelstadt grossstadt rottweil stammburg_waldburg stammburg_montfort schwarzwald ulm augsburg stuttgart roma ferrara modena hafen tunis R1 R2 R3 R4 R5 R6 R7 R8 R9 cattle_market welser fugger mason weapon_smith silk_weaver wool_weaver turkish_home spanish_home west north east north_italy middle_italy south_italy

building core_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, } 
        {
            capability
            {
                wall_level 0
                tower_level 1
                free_upkeep bonus 2
                happiness_bonus bonus 1
                recruitment_slots 1 
;------------------------------------------------------------------------------
;--------------- Heimatprovinzen ----------------------------------------------
;------------------------------------------------------------------------------

;Türken
                recruit_pool "Anatolian Javelineers"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home  

            }
            material wooden
            construction  2 
            cost  800 
            settlement_min village
            upgrades
            {
                wooden_wall
            }
        }
        wooden_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                wall_level 1
                gate_strength 1
                tower_level 1
                free_upkeep bonus 3
                happiness_bonus bonus 1

                recruitment_slots 2

                recruit_pool "Dismounted Norman Knights"  1   0.15   1  0  requires factions { all, } and not factions { montferrat, turks, egypt, moors, aztecs, mongols, peasants, }  and hidden_resource monferrat
		        recruit_pool "Arquebusiers Venedig"  1   0.15   1  0  requires factions { all, } and not factions { turks, egypt, moors, aztecs, mongols, peasants, }  and hidden_resource piombino

;------------------------------------------------------------------------------
;--------------- Heimatprovinzen ----------------------------------------------
;------------------------------------------------------------------------------
;Türken
                recruit_pool "Anatolian Javelineers"  1   0.37   3  0  requires factions { turks, }  and hidden_resource turkish_home  

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Swabia
                recruit_pool "AoR Landschneckt Pikemen Swabia"  1   0.3   1  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3
;Bavaria
                recruit_pool "AoR Landschneckt Pikemen Bavaria"  1   0.3   1  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Landschneckt Pikemen Heredity Land"  1   0.3   1  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6

            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min town
            upgrades
            {
                stone_wall
            }
        }
        stone_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource kleinstadt
        {
            capability
            {
                wall_level 2
                tower_level 1
                gate_strength 1
                free_upkeep bonus 4
                happiness_bonus bonus 1

                recruitment_slots 2

                recruit_pool "Dismounted Norman Knights"  1   0.25   2  0    requires factions { all, } and not factions { montferrat, turks, egypt, moors, aztecs, mongols, peasants, }  and hidden_resource monferrat
		        recruit_pool "Arquebusiers Venedig"  1   0.25   2  0    requires factions { all, } and not factions { turks, egypt, moors, aztecs, mongols, peasants, }  and hidden_resource piombino

;------------------------------------------------------------------------------
;--------------- Heimatprovinzen ----------------------------------------------
;------------------------------------------------------------------------------

;Türken
                recruit_pool "Anatolian Javelineers"  1   0.45   4  0  requires factions { turks, }  and hidden_resource turkish_home  
 
                recruit_pool "Azab"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home    
;HRR
    ;Swabia
                recruit_pool "Landsknecht Pikeniere"  1   0.3   1  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3
    ;Bavaria
                recruit_pool "Landsknecht Pikeniere"  1   0.3   1  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5
    ;Heredity Land
                recruit_pool "Landsknecht Pikeniere"  1   0.3   1  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6
;Schwaben
    ;Swabia
                recruit_pool "SW Landsknecht Pikeniere"  1   0.3   1  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3
                recruit_pool "Landsknecht Halberd"  1   0.3   1  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "SW Landsknecht Pikeniere"  1   0.3   1  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5
                recruit_pool "Landsknecht Halberd"  1   0.3   1  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Swabia
                recruit_pool "AoR Landschneckt Pikemen Swabia"  1   0.37   2  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3                             
;Bavaria
                recruit_pool "AoR Landschneckt Pikemen Bavaria"  1   0.37   2  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Landschneckt Pikemen Heredity Land"  1   0.37  2  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6

            }
            material stone
            construction  6 
            cost  4000 
            settlement_min large_town
            upgrades
            {
                large_stone_wall
            }
        }
        large_stone_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource mittelstadt 
        {
            capability
            {
                wall_level 3
                tower_level 1
                gate_strength 2
                free_upkeep bonus 5
                happiness_bonus bonus 2

                recruitment_slots 3

                recruit_pool "Dismounted Norman Knights"  1   0.25   2  1    requires factions { all, } and not factions { montferrat, turks, egypt, moors, aztecs, mongols, peasants, }  and hidden_resource monferrat
		        recruit_pool "Arquebusiers Venedig"  1   0.25   2  1    requires factions { all, } and not factions { turks, egypt, moors, aztecs, mongols, peasants, }  and hidden_resource piombino

;------------------------------------------------------------------------------
;--------------- Heimatprovinzen ----------------------------------------------
;------------------------------------------------------------------------------

;Türken
                recruit_pool "Anatolian Javelineers"  1   0.52   4  0  requires factions { turks, }  and hidden_resource turkish_home  

                recruit_pool "Azab"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home 
;HRR
    ;Swabia
                recruit_pool "Landsknecht Pikeniere"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3  and not event_counter vater_der_knechte 1
                recruit_pool "Landsknecht Pikeniere"  1   0.3   2  1  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3  and event_counter vater_der_knechte 1
    ;Bavaria
                recruit_pool "Landsknecht Pikeniere"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and not event_counter vater_der_knechte 1
                recruit_pool "Landsknecht Pikeniere"  1   0.3   2  1  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and event_counter vater_der_knechte 1
    ;Heredity Land
                recruit_pool "Landsknecht Pikeniere"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6  and not event_counter vater_der_knechte 1
                recruit_pool "Landsknecht Pikeniere"  1   0.3   2  1  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6  and event_counter vater_der_knechte 1
;Schwaben
    ;Swabia
                recruit_pool "SW Landsknecht Pikeniere"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3
                recruit_pool "Landsknecht Halberd"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "SW Landsknecht Pikeniere"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5
                recruit_pool "Landsknecht Halberd"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Swabia
                recruit_pool "AoR Landschneckt Pikemen Swabia"  1   0.45   3  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3 
;Bavaria
                recruit_pool "AoR Landschneckt Pikemen Bavaria"  1   0.45   3  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Landschneckt Pikemen Heredity Land"  1   0.45   3  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6

            }
            material stone
            construction  8 
            cost  6000 
            settlement_min city
            upgrades
            {
                huge_stone_wall
            }
        }
        huge_stone_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource grossstadt
        {
            capability
            {
                wall_level 4
                tower_level 1
                gate_strength 2
                free_upkeep bonus 6
                happiness_bonus bonus 3

                recruitment_slots 4
              
                recruit_pool "Dismounted Norman Knights"  1   0.3   2  2  requires factions { all, } and not factions { montferrat, turks, egypt, moors, aztecs, mongols, peasants, }  and hidden_resource monferrat
		        recruit_pool "Arquebusiers Venedig"  1   0.3   2  2  requires factions { all, } and not factions { turks, egypt, moors, aztecs, mongols, peasants, }  and hidden_resource piombino

;------------------------------------------------------------------------------
;--------------- Heimatprovinzen ----------------------------------------------
;------------------------------------------------------------------------------

;Türken
                recruit_pool "Anatolian Javelineers"  1   0.52   4  0  requires factions { turks, }  and hidden_resource turkish_home  

                recruit_pool "Azab"  1   0.45   4  0  requires factions { turks, }  and hidden_resource turkish_home    
;HRR
    ;Swabia
                recruit_pool "Landsknecht Pikeniere"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3  and not event_counter vater_der_knechte 1
                recruit_pool "Landsknecht Pikeniere"  1   0.45   4  2  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3  and event_counter vater_der_knechte 1
                recruit_pool "Forlorn Hope"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3  and not event_counter vater_der_knechte 1
                recruit_pool "Forlorn Hope"  1   0.37   3  1  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3  and event_counter vater_der_knechte 1
    ;Bavaria
                recruit_pool "Landsknecht Pikeniere"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and not event_counter vater_der_knechte 1
                recruit_pool "Landsknecht Pikeniere"  1   0.45   4  2  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and event_counter vater_der_knechte 1
                recruit_pool "Forlorn Hope"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and not event_counter vater_der_knechte 1
                recruit_pool "Forlorn Hope"  1   0.37   3  1  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and event_counter vater_der_knechte 1
    ;Heredity Land
                recruit_pool "Landsknecht Pikeniere"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6  and not event_counter vater_der_knechte 1
                recruit_pool "Landsknecht Pikeniere"  1   0.45   4  2  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6  and event_counter vater_der_knechte 1
                recruit_pool "Forlorn Hope"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6  and not event_counter vater_der_knechte 1
                recruit_pool "Forlorn Hope"  1   0.37   3  1  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6  and event_counter vater_der_knechte 1

;Schwaben
    ;Swabia
                recruit_pool "SW Landsknecht Pikeniere"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3
                recruit_pool "Landsknecht Halberd"  1   0.45   4  2  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3
                recruit_pool "S Doppelsoldner"  1   0.37   3  1  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3      
    ;Bavaria
                recruit_pool "SW Landsknecht Pikeniere"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5
                recruit_pool "Landsknecht Halberd"  1   0.45   4  2  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5
                recruit_pool "S Doppelsoldner"  1   0.37   3  1  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5      

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Swabia
                recruit_pool "AoR Landschneckt Pikemen Swabia"  1   0.45   4  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3 
;Bavaria
                recruit_pool "AoR Landschneckt Pikemen Bavaria"  1   0.45   4  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Landschneckt Pikemen Heredity Land"  1   0.45   4  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6

            }
            material stone
            construction  10 
            cost  8000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building core_castle_building
{
    levels motte_and_bailey wooden_castle castle fortress citadel 
    {
        motte_and_bailey castle requires factions {  } 
        {
            capability
            {
                wall_level 0
                tower_level 1
                law_bonus bonus 1
                recruitment_slots 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min village
            upgrades
            {
                wooden_castle
            }
        }
        wooden_castle castle requires factions {  } 
        {
            capability
            {
                wall_level 1
                gate_strength 1
                tower_level 1
                law_bonus bonus 2
                recruitment_slots 2
            }
            material wooden
            construction  2 
            cost  1200 
            settlement_min village
            upgrades
            {
                castle
            }
        }
        castle castle requires factions {  } 
        {
            capability
            {
                wall_level 2
                tower_level 1
                gate_strength 1
                law_bonus bonus 3
                recruitment_slots 3
            }
            material stone
            construction  3 
            cost  2400 
            settlement_min town
            upgrades
            {
                fortress
            }
        }
        fortress castle requires factions {  } 
        {
            capability
            {
                wall_level 3
                tower_level 1
                gate_strength 2
                law_bonus bonus 4
                recruitment_slots 3
            }
            material stone
            construction  3 
            cost  4800 
            settlement_min large_town
            upgrades
            {
                citadel
            }
        }
        citadel castle requires factions {  } 
        {
            capability
            {
                wall_level 4
                tower_level 1
                gate_strength 2
                law_bonus bonus 5
                recruitment_slots 3
            }
            material stone
            construction  4 
            cost  9600 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building tower
{
    levels ballista_towers cannon_towers 
    {
        ballista_towers city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource mittelstadt
        {
            capability
            {
                tower_level 2
            }
            material stone
            construction  4 
            cost  5000 
            settlement_min large_city
            upgrades
            {
                cannon_towers
            }
        }
        cannon_towers city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource grossstadt
        {
            capability
            {
                tower_level 3
            }
            material stone
            construction  6 
            cost  7500 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}

building patrician_villas
{
    levels urban_villa urban_palace
    {
        urban_villa city requires factions { venice, denmark, poland, timurids, scotland, russia, lucca, }  and hidden_resource kleinstadt
        {
            capability
            {
                taxable_income_bonus bonus 5
                happiness_bonus bonus -1

;------------------------------------------------------------------------------
;--------------- Heimatprovinzen ----------------------------------------------
;------------------------------------------------------------------------------

;Venedig
                recruit_pool "Dismounted Broken Lances"  1   0.25   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Florenz
                recruit_pool "Dismounted Broken Lances"  1   0.25   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter  miliz 1 and not event_counter ghz_erstellt 1  
;GHZ
                recruit_pool "GHZ Dismounted Broken Lances"  1   0.25   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1                 
;Genua
                recruit_pool "Dismounted Italian Knights"  1   0.25   2  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "Italian Knights"  1   0.25   1  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Siena
                recruit_pool "Dismounted Italian Knights"  1   0.25   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "S Italian Knights"  1   0.25   1  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2 
;Ragusa
                recruit_pool "Dismounted Ragusan Knights"  1   0.25   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                
                recruit_pool "Ragusan Knights"  1   0.25   1  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Bologna
                recruit_pool "Dismounted Italian Knights"  1   0.25   2  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "B Italian Knights"  1   0.25   1  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1                 
;Lucca
                recruit_pool "Dismounted Nobile"  1   0.25   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

            }
            material stone
            construction  3 
            cost  4500
            settlement_min large_town
            upgrades
            {
                urban_palace
            }
        }
        urban_palace city requires factions { venice, denmark, poland, timurids, scotland, russia, lucca, }  and hidden_resource mittelstadt
        {
            capability
            {
                taxable_income_bonus bonus 10
                happiness_bonus bonus -2
;Venedig
                recruit_pool "Dismounted Broken Lances"  1   0.25   3  1  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8                   
;Florenz
                recruit_pool "Dismounted Broken Lances"  1   0.25   3  1  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  and not event_counter  miliz 1 and not event_counter ghz_erstellt 1 
;GHZ
                recruit_pool "GHZ Dismounted Broken Lances"  1   0.25   3  1  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
;Genua
                recruit_pool "Dismounted Italian Knights"  1   0.25   3  1  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "Italian Knights"  1   0.25   2  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Siena
                recruit_pool "Dismounted Italian Knights"  1   0.25   3  1  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "S Italian Knights"  1   0.25   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2 
;Ragusa
                recruit_pool "Dismounted Ragusan Knights"  1   0.25   3  1  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5

                recruit_pool "Ragusan Knights"  1   0.25  2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5                                                     
;Bologna
                recruit_pool "Dismounted Italian Knights"  1   0.25   3  1  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "B Italian Knights"  1   0.25   2  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1   
;Lucca
                recruit_pool "Dismounted Nobile"  1   0.25   3  1  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "Nobile"  1   0.25   3  1  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
            }
            material stone
            construction  6
            cost  6500 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building noble_estates
{
    levels manor large_manor
    {
        manor city requires factions { savoy, montferrat, england, byzantium, urbino, papal_states, sicily, spain, france, hre, normans, hungary, milan, }  and hidden_resource kleinstadt
        {
            capability
            {
                taxable_income_bonus bonus -5
                law_bonus bonus 1 
;Papststaaten
    ;Romagna
                recruit_pool "Dismounted Broken Lances"  1   0.25   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
    ;Papal States
                recruit_pool "Dismounted Broken Lances"  1   0.25   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
;Mailand
                recruit_pool "Dismounted Broken Lances"  1   0.25   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Neapel
                recruit_pool "Dismounted Gendarmes"  1   0.25   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
;Frankreich
    ;Burgundy
                recruit_pool "Dismounted Noble Knights"  1   0.37   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 

                recruit_pool "Noble Knights"  1   0.3   1  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2
    ;Provence
                recruit_pool "Dismounted Noble Knights"  1   0.37   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3   

                recruit_pool "Noble Knights"  1   0.3   1  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;HRR
    ;Swabia
                recruit_pool "Imperial Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R3 and hidden_resource R1  and not event_counter ritteraufstand 1
                recruit_pool "Imperial Knights"  1   0.3   1  0  requires factions { hre, }  and hidden_resource R3 and hidden_resource R1  and event_counter ritteraufstand 1
    ;Bavaria
                recruit_pool "Imperial Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and not event_counter ritteraufstand 1
                recruit_pool "Imperial Knights"  1   0.3   1  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and event_counter ritteraufstand 1
    ;Heredity Land
                recruit_pool "Imperial Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1  and not event_counter ritteraufstand 1
                recruit_pool "Imperial Knights"  1   0.3   1  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1  and event_counter ritteraufstand 1 
;Schwaben
    ;Swabia
                recruit_pool "S Imperial Knights"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R3 and hidden_resource R1 
    ;Bavaria
                recruit_pool "S Imperial Knights"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5   
;Mantua
                recruit_pool "Italian Condottiere"  1   0.3   1  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Modena
                recruit_pool "Dismounted Broken Lances"  1   0.3   2  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 

                recruit_pool "Fer Knights"  1   0.3   1  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Montferrat
                recruit_pool "Dismounted Nobile"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                
                recruit_pool "Nobile"  1   0.3   1  0  requires factions { montferrat, }
;Urbino
                recruit_pool "Dismounted Nobile"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
                
                recruit_pool "Nobile"  1   0.3   1  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
;Savoyen
                recruit_pool "Dismounted Nobile"  1   0.3   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                
                recruit_pool "Nobile"  1   0.3   1  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
            }
            material stone
            construction  3 
            cost  4000
            settlement_min large_town
            upgrades
            {
                large_manor
            }
        }
        large_manor city requires factions { savoy, montferrat, england, byzantium, urbino, papal_states, sicily, spain, france, hre, normans, hungary, milan, }  and hidden_resource mittelstadt
        {
            capability
            {
                taxable_income_bonus bonus -10
                law_bonus bonus 3 
;Papststaaten
    ;Romagna
                recruit_pool "Dismounted Broken Lances"  1   0.3   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
    ;Papal States
                recruit_pool "Dismounted Broken Lances"  1   0.3   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
;Mailand
                recruit_pool "Dismounted Broken Lances"  1   0.3   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 

                recruit_pool "Famiglia Ducale"  1   0.37   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Neapel
                recruit_pool "Dismounted Gendarmes"  1   0.3   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
;Frankreich
    ;Burgundy
                recruit_pool "Dismounted Noble Knights"  1   0.37   4  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 

                recruit_pool "Noble Knights"  1   0.45   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2
    ;Provence
                recruit_pool "Dismounted Noble Knights"  1   0.37   4  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 

                recruit_pool "Noble Knights"  1   0.45   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 

;HRR
    ;Swabia
                recruit_pool "Imperial Knights"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R3 and hidden_resource R1  and not event_counter ritteraufstand 1
                recruit_pool "Imperial Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R3 and hidden_resource R1  and event_counter ritteraufstand 1
    ;Bavaria
                recruit_pool "Imperial Knights"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and not event_counter ritteraufstand 1
                recruit_pool "Imperial Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  and event_counter ritteraufstand 1
    ;Heredity Land
                recruit_pool "Imperial Knights"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1  and not event_counter ritteraufstand 1 
                recruit_pool "Imperial Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1  and event_counter ritteraufstand 1 
;Schwaben
    ;Swabia
                recruit_pool "S Imperial Knights"  1   0.3   3  0  requires factions { normans, }  and hidden_resource R3 and hidden_resource R1
    ;Bavaria
                recruit_pool "S Imperial Knights"  1   0.3   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5   
;Mantua
                recruit_pool "Italian Condottiere"  1   0.4   3  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Modena
                recruit_pool "Dismounted Broken Lances"  1   0.3   3  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 

                recruit_pool "Fer Knights"  1   0.3   2  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Montferrat
                recruit_pool "Dismounted Nobile"  1   0.3   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                
                recruit_pool "Nobile"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Urbino
                recruit_pool "Dismounted Nobile"  1   0.3   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1 
                
                recruit_pool "Nobile"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1 
;Savoyen
                recruit_pool "Dismounted Nobile"  1   0.3   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                
                recruit_pool "Nobile"  1   0.3   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 

            }
            material stone
            construction  7
            cost  7000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}

building equestrian
{
    levels knights_stables barons_stables earls_stables
    {
        knights_stables city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
;Venedig
                recruit_pool "Italian Cavalry Militia"  1   0.3   2  0  requires factions { venice, } and hidden_resource north_italy
                recruit_pool "Stradiots"  1   0.3   1  0  requires factions { venice, } and hidden_resource R2 and hidden_resource R5                 
;Ungarn
    ;Hungary
                recruit_pool "Hungarian Nobles"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3  
    ;Croatia
                recruit_pool "Hungarian Nobles"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4   
;Spanien
                recruit_pool "S Italian Cavalry Militia"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home
;Papststaaten
                recruit_pool "Italian Cavalry Militia"  1   0.3   2  0  requires factions { papal_states, } and hidden_resource middle_italy 
;Mailand
                recruit_pool "Italian Cavalry Militia"  1   0.3   2  0  requires factions { milan, } and hidden_resource north_italy  
;Florenz
                recruit_pool "Italian Cavalry Militia" 1   0.3   2  0  requires factions { poland, } and hidden_resource middle_italy and not event_counter ghz_erstellt 1

                recruit_pool "M Mounted Crossbowmen" 1   0.3   2  0  requires factions { poland, } and hidden_resource middle_italy and event_counter miliz 1
;GHZ
                recruit_pool "GHZ Italian Cavalry Militia" 1   0.3   2  0  requires factions { poland, } and hidden_resource middle_italy  and event_counter ghz_erstellt 1 
;Neapel
                recruit_pool "Italian Cavalry Militia" 1   0.3   2  0  requires factions { sicily, } and hidden_resource south_italy
;Frankreich
    ;Burgundy
                recruit_pool "Frz Gendarmes"  1   0.3   1  0  requires factions { france, } and hidden_resource R1 and hidden_resource R2
    ;Provence
                recruit_pool "Frz Gendarmes"  1   0.3   1  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3                   
;Eidgenossen
                recruit_pool "Swiss Knights"  1   0.3   2  0  requires factions { saxons, } and hidden_resource R1 and hidden_resource R4 
;Schwaben
    ;Swabia
                recruit_pool "S Broken Lances"  1   0.3   2  0  requires factions { normans, } and hidden_resource R1 and hidden_resource R3
    ;Bavaria
                recruit_pool "S Broken Lances"  1   0.3   2  0  requires factions { normans, } and hidden_resource R1 and hidden_resource R5
;Türken
                recruit_pool "Cebeli"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home  
;Hafsiden
                recruit_pool "H Tuareg Camel Spearmens"  1   0.3   2  0  requires factions { egypt, } and hidden_resource R7 and hidden_resource R2 
;Lucca
                recruit_pool "Italian Cavalry Militia" 1   0.3   2  0  requires factions { lucca, } and hidden_resource middle_italy

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Burgundy
                recruit_pool "AoR Burgundian Knights"  1   0.3   1  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Swabia
                recruit_pool "AoR Swabian Knights"  1   0.3   1  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3
;Swabia
                recruit_pool "AoR Bavarian Knights"  1   0.3   1  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Heredity Land Knights"  1   0.3   1  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6


            }
            material wooden
            construction  3 
            cost  3000 
            settlement_min large_town
            upgrades
            {
                barons_stables
            }
        }
        barons_stables city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt 
        {
            capability
            {
;Venedig
                recruit_pool "Italian Cavalry Militia"  1   0.37   3  0  requires factions { venice, } and hidden_resource north_italy 
                recruit_pool "Stradiots"  1   0.3   2  0  requires factions { venice, } and hidden_resource R2 and hidden_resource R5
                recruit_pool "Mounted Crossbowmen"  1   0.3   2  0  requires factions { venice, } and hidden_resource north_italy
;Ungarn
    ;Hungary
                recruit_pool "Hungarian Nobles"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3  
                recruit_pool "Hussars"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia
                recruit_pool "Hungarian Nobles"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4  
                recruit_pool "Hussars"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
;Spanien
                recruit_pool "Mounted Crossbowmen"  1   0.3   2  0  requires factions { spain, }   and hidden_resource spanish_home
                recruit_pool "S Italian Cavalry Militia"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Gendarmes"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home
;Papststaaten
                recruit_pool "Italian Cavalry Militia"  1   0.37   3  0  requires factions { papal_states, } and hidden_resource middle_italy 
                recruit_pool "Mounted Crossbowmen"  1   0.3   2  0  requires factions { papal_states, } and hidden_resource middle_italy 
;Mailand
                recruit_pool "Italian Cavalry Militia"  1   0.37   3  0  requires factions { milan, } and hidden_resource north_italy 
                recruit_pool "Mounted Crossbowmen"  1   0.3   2  0  requires factions { milan, } and hidden_resource north_italy 
;Florenz
                recruit_pool "Italian Cavalry Militia"  1   0.37   3  0  requires factions { poland, } and hidden_resource middle_italy and not event_counter ghz_erstellt 1 
                recruit_pool "Mounted Crossbowmen"  1   0.3   2  0  requires factions { poland, } and hidden_resource middle_italy and not event_counter ghz_erstellt 1

                recruit_pool "M Mounted Crossbowmen" 1   0.37   3  0  requires factions { poland, } and hidden_resource middle_italy and event_counter miliz 1
                recruit_pool "M Lancers" 1   0.3   1  0  requires factions { poland, } and hidden_resource middle_italy and event_counter miliz 1
;GHZ
                recruit_pool "GHZ Italian Cavalry Militia"  1   0.37   3  0  requires factions { poland, } and hidden_resource middle_italy and event_counter ghz_erstellt 1  
                recruit_pool "GHZ Lancers"  1   0.3   2  0  requires factions { poland, } and hidden_resource middle_italy and event_counter ghz_erstellt 1 
;Neapel
                recruit_pool "Italian Cavalry Militia"  1   0.37   3  0  requires factions { sicily, } and hidden_resource south_italy 
                recruit_pool "Mounted Crossbowmen"  1   0.3   2  0  requires factions { sicily, } and hidden_resource south_italy
;Frankreich
    ;Burgundy
                recruit_pool "Frz Gendarmes"  1   0.3   2  0  requires factions { france, } and hidden_resource R1 and hidden_resource R2 
                recruit_pool "FR Mounted Crossbowmen"  1   0.37   3  0  requires factions { france, } and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "Frz Gendarmes"  1   0.3   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "FR Mounted Crossbowmen"  1   0.37   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;HRR
    ;Swabia
                recruit_pool "Reiters"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "Reiters"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
    ;Heredity Land
                recruit_pool "Reiters"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6
 
;Eidgenossen
                recruit_pool "Swiss Mounted Crossbowmen"  1   0.37   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4
                recruit_pool "Swiss Knights"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4
;Schwaben
    ;Swabia
                recruit_pool "S Broken Lances"  1   0.3   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3
                recruit_pool "S Reiters"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "S Broken Lances"  1   0.3   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "S Reiters"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
;Türken
                recruit_pool "Cebeli"  1   0.3   1  0  requires factions { turks, }  and hidden_resource turkish_home 
                recruit_pool "Turkmen"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home   
;Hafsiden
                recruit_pool "H Tuareg Camel Spearmens"  1   0.3   1  0  requires factions { egypt, } and hidden_resource R7 and hidden_resource R2 
                recruit_pool "H Italian MAA"  1   0.3   1  0  requires factions { egypt, } and hidden_resource R7 and hidden_resource R2               			
;Lucca
                recruit_pool "Italian Cavalry Militia"  1   0.37   3  0  requires factions { lucca, } and hidden_resource middle_italy

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Burgundy
                recruit_pool "AoR Burgundian Knights"  1   0.3   2  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Swabia
                recruit_pool "AoR Swabian Knights"  1   0.3   2  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3
;Bavaria
                recruit_pool "AoR Bavarian Knights"  1   0.3   2  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Heredity Land Knights"  1   0.3   2  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6

            }
            material wooden
            construction  4 
            cost  6000 
            settlement_min city
            upgrades
            {
                earls_stables
            }
        }
        earls_stables city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt 
        {
            capability
            {
;Venedig
                recruit_pool "Italian Cavalry Militia"  1   0.52   4  0  requires factions { venice, } and hidden_resource north_italy 
                recruit_pool "Mounted Crossbowmen"  1   0.45   4  0  requires factions { venice, } and hidden_resource north_italy
                recruit_pool "Stradiots"  1   0.45   4  0  requires factions { venice, } and hidden_resource R2 and hidden_resource R5
                recruit_pool "Broken Lances"  1   0.3   2  0  requires factions { venice, } and hidden_resource north_italy 
;Ungarn
    ;Hungary
                recruit_pool "Hungarian Nobles"  1   0.52   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3  
                recruit_pool "Hussars"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3  
                recruit_pool "Royal Banderium"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3  
                recruit_pool "Flugelhussaren"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3  
    ;Croatia
                recruit_pool "Hungarian Nobles"  1   0.52   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4  
                recruit_pool "Hussars"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4
                recruit_pool "Royal Banderium"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4  
                recruit_pool "Flugelhussaren"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4  
;Spanien
                recruit_pool "Mounted Crossbowmen"  1   0.45   4  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Gendarmes"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Conquistadores"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "S Italian Cavalry Militia"  1   0.45   3  0  requires factions { spain, }  and hidden_resource spanish_home
;Papststaaten
                recruit_pool "Italian Cavalry Militia"  1   0.52   4  0  requires factions { papal_states, } and hidden_resource middle_italy  
                recruit_pool "Mounted Crossbowmen"  1   0.45   4  0  requires factions { papal_states, } and hidden_resource middle_italy 
                recruit_pool "Broken Lances"  1   0.3   2  0  requires factions { papal_states, } and hidden_resource middle_italy 
;Mailand
                recruit_pool "Italian Cavalry Militia"  1   0.52   4  0  requires factions { milan, } and hidden_resource north_italy 
                recruit_pool "Mounted Crossbowmen"  1   0.45   4  0  requires factions { milan, } and hidden_resource north_italy   
                recruit_pool "Broken Lances"  1   0.3   2  0  requires factions { milan, } and hidden_resource north_italy  
;Florenz
                recruit_pool "Italian Cavalry Militia"  1   0.52   4  0  requires factions { poland, } and hidden_resource middle_italy and not event_counter ghz_erstellt 1 
                recruit_pool "Mounted Crossbowmen"  1   0.45   4  0  requires factions { poland, } and hidden_resource middle_italy and not event_counter ghz_erstellt 1
                recruit_pool "Broken Lances"  1   0.3   2  0  requires factions { poland, } and hidden_resource middle_italy and not event_counter ghz_erstellt 1 

                recruit_pool "M Mounted Crossbowmen" 1   0.52   4  0  requires factions { poland, } and hidden_resource middle_italy and event_counter miliz 1
                recruit_pool "M Lancers" 1   0.37   2  0  requires factions { poland, } and hidden_resource middle_italy and event_counter miliz 1
;GHZ
                recruit_pool "GHZ Italian Cavalry Militia"  1   0.52   4  0  requires factions { poland, } and hidden_resource middle_italy and event_counter ghz_erstellt 1  
                recruit_pool "GHZ Lancers"  1   0.45   4  0  requires factions { poland, } and hidden_resource middle_italy and event_counter ghz_erstellt 1 
                recruit_pool "Spanish Dragoons"  1   0.3   2  0  requires factions { poland, } and hidden_resource middle_italy and event_counter ghz_erstellt 1  
                recruit_pool "GHZ Broken Lances"  1   0.3   2  0  requires factions { poland, } and hidden_resource middle_italy and event_counter ghz_erstellt 1
;Neapel
                recruit_pool "Italian Cavalry Militia"  1   0.52   4  0  requires factions { sicily, } and hidden_resource south_italy
                recruit_pool "Mounted Crossbowmen"  1   0.37   3  0  requires factions { sicily, } and hidden_resource south_italy
                recruit_pool "Arquebusiers Sizilien Pferd"  1   0.3   2  0  requires factions { sicily, } and hidden_resource south_italy
;Frankreich
    ;Burgundy
                recruit_pool "Frz Gendarmes"  1   0.37   3  0  requires factions { france, } and hidden_resource R1 and hidden_resource R2 
                recruit_pool "FR Mounted Crossbowmen"  1   0.45   4  0  requires factions { france, } and hidden_resource R1 and hidden_resource R2 
                recruit_pool "Lancers"  1   0.3   2  0  requires factions { france, } and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "Frz Gendarmes"  1   0.37   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "FR Mounted Crossbowmen"  1   0.45   4  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "Lancers"  1   0.3   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;HRR
    ;Swabia
                recruit_pool "Reiters"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Gothic Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "Reiters"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Gothic Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
    ;Heredity Land
                recruit_pool "Reiters"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
                recruit_pool "Gothic Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
;Eidgenossen
                recruit_pool "Swiss Mounted Crossbowmen"  1   0.45   4  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "Swiss Knights"  1   0.37   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4                 
;Schwaben
    ;Swabia
                recruit_pool "S Broken Lances"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3
                recruit_pool "S Reiters"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
    ;Bavaria
                recruit_pool "S Broken Lances"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5
                recruit_pool "S Reiters"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
;Türken
                recruit_pool "Cebeli"  1   0.37   3  0  requires factions { turks, }  and hidden_resource turkish_home  
                recruit_pool "Turkmen"  1   0.37   3  0  requires factions { turks, }  and hidden_resource turkish_home  
;Hafsiden
                recruit_pool "H Tuareg Camel Spearmens"  1   0.45   4  0  requires factions { egypt, } and hidden_resource R7 and hidden_resource R2 
                recruit_pool "H Italian MAA"  1   0.37   3  0  requires factions { egypt, } and hidden_resource R7 and hidden_resource R2                  				
;Lucca
                recruit_pool "Italian Cavalry Militia"  1   0.52   4  0  requires factions { lucca, } and hidden_resource middle_italy
;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Burgundy
                recruit_pool "AoR Burgundian Knights"  1   0.3   3  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Swabia
                recruit_pool "AoR Swabian Knights"  1   0.3   3  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3
;Bavaria
                recruit_pool "AoR Bavarian Knights"  1   0.3   3  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Heredity Land Knights"  1   0.3   3  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6

            }
            material wooden
            construction  5 
            cost  9000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building barracks
{
    levels town_watch town_guard city_watch militia_drill_square army_barracks
    {
        town_watch city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, } 
        {
            capability
            {          
                law_bonus bonus 2
;Frankreich
                recruit_pool "NE Spear Militia"  1   0.3   2  0  requires factions {  france, }  and hidden_resource west 
;HRR
                recruit_pool "DE Spear Militia"  1   0.3   2  0  requires factions { hre, }  and hidden_resource north 
;Schwaben
                recruit_pool "DE Spear Militia"  1   0.3   2  0  requires factions { normans, }  and hidden_resource north 
;Venedig
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { venice, }  and hidden_resource north_italy 
;Spanien
                recruit_pool "NE Spear Militia"  1   0.3   2  0  requires factions { spain, } 
;Papststaaten
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource middle_italy 
;Mailand
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { milan, }  and hidden_resource north_italy 
;Schweiz
                recruit_pool "Swiss Militia"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource north 
;Florenz
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { poland, }  and hidden_resource middle_italy and not event_counter ghz_erstellt 1  
;GHZ
                recruit_pool "GHZ Italian Spear Militia"  1   0.3   2  0  requires factions { poland, }  and hidden_resource middle_italy and event_counter ghz_erstellt 1  
;Neapel
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource south_italy 
;Genua
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { denmark, }  and hidden_resource north_italy 
;Mantua
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { byzantium, }  and hidden_resource north_italy
;Modena
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { england, }  and hidden_resource north_italy 
;Siena
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { russia, }  and hidden_resource middle_italy 
;Ragusa
                recruit_pool "Ragusan Nights Watch"  1   0.3   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Savoyen
                recruit_pool "NE Spear Militia"  1   0.3   2  0  requires factions {  savoy, }  and hidden_resource north_italy 
;Montferrat
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource north_italy 
;Bologna
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { timurids, }  and hidden_resource middle_italy 
;Urbino
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource middle_italy 
;Hafsiden
                recruit_pool "Igdish Spear Militia"  1   0.3   2  0  requires factions { egypt, } and hidden_resource R7 and hidden_resource R2  
;Lucca
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { lucca, }  and hidden_resource middle_italy

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Venetia
                recruit_pool "AoR Pavise Militia Venetia"  1   0.3   1  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "AoR Pavise Crossbowmen Venetia"  1   0.3   1  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Lombardy
                recruit_pool "AoR Provisionati Swordsmen Lombardy"  1   0.3   1  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "AoR Pavise Crossbowmen Lombardy"  1   0.3   1  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Liguria
                recruit_pool "AoR Provisionati Spearmen Liguria"  1   0.3   1  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "AoR Pavise Crossbowmen Liguria"  1   0.3   1  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
;Provence
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3

                recruit_pool "AoR Arquebusiers Provence"  1   0.3   1  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Piedmont
                recruit_pool "AoR Provisionati Spearmen Piedmont"  1   0.3   1  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3

                recruit_pool "AoR Arquebusiers Piedmont"  1   0.3   1  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3  
;Burgundy
                recruit_pool "AoR Arquebusiers Burgundy"  1   0.3   1  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Swabia
                recruit_pool "AoR Crossbowmen Swabia"  1   0.3   1  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3
;Swiss
                recruit_pool "AoR Pikemen Swiss"  1   0.3   1  0  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4

                recruit_pool "AoR Crossbowmen Swiss"  1   0.3   1  0  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4
;Bavaria
                recruit_pool "AoR Arquebusiers Bavaria"  1   0.3   1  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Arquebusiers Heredity Land"  1   0.3   1  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6
;Hungary
                recruit_pool "AoR Spearmen Hungary"  1   0.3   1  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
                recruit_pool "AoR Hussars Hungary"  1   0.3   1  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3

                recruit_pool "AoR Pavise Crossbowmen Hungary"  1   0.3   1  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
;Croatia
                recruit_pool "AoR Croatian Lancers"  1   0.3   1  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R4
;Dalmatia
                recruit_pool "AoR Dalmatian Infantry"  1   0.3   1  0  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Romagna
                recruit_pool "AoR Provisionati Spearmen Romagna"  1   0.3   1  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "AoR Arquebusiers Romagna"  1   0.3   1  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
;Tuscany
                recruit_pool "AoR Italian Spear Militia Tuscany"  1   0.3   1  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "AoR Pavise Crossbowmen Tuscany"  1   0.3   1  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
;Papal States
                recruit_pool "AoR Pavise Militia Papal States"  1   0.3   1  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4

                recruit_pool "AoR Pavise Crossbowmen Papal States"  1   0.3   1  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
;South Italy
                recruit_pool "AoR Provisionati Swordsmen South Italy"  1   0.3   1  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5

                recruit_pool "AoR Arquebusiers South Italy"  1   0.3   1  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
;Sicily
                recruit_pool "AoR Provisionati Swordsmen Sicily"  1   0.3   1  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1

                recruit_pool "AoR Pavise Crossbowmen Sicily"  1   0.3   1  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
;Africa
                recruit_pool "AoR Sudanese Tribesmen"  1   0.3   1  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
                recruit_pool "AoR Bedouin Camel Riders"  1   0.3   1  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2

                recruit_pool "AoR Desert Archers"  1   0.3   1  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;Corsica
                recruit_pool "AoR Condottiere"  1   0.3   1  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3

                recruit_pool "AoR Arquebusiers Corsica Sardinia"  1   0.3   1  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3
            }
            material wooden
            construction  2 
            cost  800 
            settlement_min town
            upgrades
            {
                town_guard
            }
        }
        town_guard city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, } 
        {
            capability
            {
;Türken 
                recruit_pool "ME Halberd Militia"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home  
;HRR
                recruit_pool "DE Spear Militia"  1   0.37   3  0  requires factions { hre, }  and hidden_resource north 
                recruit_pool "Halberd Militia"  1   0.3   2  0  requires factions { hre, }  and hidden_resource north
;Schwaben
                recruit_pool "DE Spear Militia"  1   0.37   3  0  requires factions { normans, }  and hidden_resource north
                recruit_pool "S Swordsmen Militia"  1   0.3   2  0  requires factions { normans, }  and hidden_resource north
;Frankreich
                recruit_pool "NE Spear Militia"  1   0.37   3  0  requires factions {  france, }  and hidden_resource west
                recruit_pool "Partisan Militia"  1   0.3   2  0  requires factions { france, }  and hidden_resource west 
;Venedig
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { venice, }  and hidden_resource north_italy 

                recruit_pool "Dalmatian Archers"  1   0.3   2  0  requires factions { venice, }  and hidden_resource north_italy 
;Ungarn
                recruit_pool "Halberd Militia_ug"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource east 
;Spanien
                recruit_pool "NE Spear Militia"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Swordsmen Militia"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home
;Papststaaten
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { papal_states, }  and hidden_resource middle_italy 
                recruit_pool "Halberd Militia"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource middle_italy
;Mailand
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { milan, }  and hidden_resource north_italy 
;Schweiz
                recruit_pool "Swiss Militia"  1   0.37   3  0  requires factions { saxons, }  and hidden_resource north 
                recruit_pool "Swiss Halbediers"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource north 
;Florenz
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource middle_italy and not event_counter ghz_erstellt 1 and not event_counter miliz 1  
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource middle_italy and not event_counter ghz_erstellt 1 and not event_counter miliz 1 

                recruit_pool "M Pike Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource middle_italy and event_counter  miliz 1 and not event_counter ghz_erstellt 1  
                recruit_pool "M Crossbowmen"  1   0.37   3  0  requires factions { poland, }  and hidden_resource middle_italy and event_counter  miliz 1 and not event_counter ghz_erstellt 1
;GHZ
                recruit_pool "GHZ Italian Spear Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource middle_italy and event_counter ghz_erstellt 1  
                recruit_pool "GHZ Swordsmen Militia"  1   0.3   2  0  requires factions { poland, }  and hidden_resource middle_italy and event_counter ghz_erstellt 1  
;Neapel
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { sicily, } and hidden_resource south_italy 

                recruit_pool "Pavise Crossbow Militia Si"  1   0.3   2  0  requires factions { sicily, } and hidden_resource south_italy
;Genua
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { denmark, }  and hidden_resource north_italy 

                recruit_pool "G Genoese Crossbowmen"  1   0.3   2  0  requires factions { denmark, }  and hidden_resource north_italy
;Mantua
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { byzantium, }  and hidden_resource north_italy 

                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { byzantium, }  and hidden_resource north_italy
;Modena
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { england, }  and hidden_resource north_italy 
                recruit_pool "Ferrareser Hellebardiere"  1   0.37   3  0  requires factions { england, }  and hidden_resource north_italy

                recruit_pool "F Crossbowmen"  1   0.3   2  0  requires factions { england, }  and hidden_resource north_italy
;Siena
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { russia, }  and hidden_resource middle_italy 
                recruit_pool "S Halberd Militia"  1   0.37   3  0  requires factions { russia, }  and hidden_resource middle_italy

                recruit_pool "C Crossbowmen"  1   0.3   2  0  requires factions { russia, }  and hidden_resource middle_italy
;Ragusa
                recruit_pool "Ragusan Nights Watch"  1   0.37   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                recruit_pool "Ragusan Sword Militia"  1   0.37   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5

                recruit_pool "R Crossbowmen"  1   0.3   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Savoyen
                recruit_pool "NE Spear Militia"  1   0.37   3  0  requires factions { savoy, }  and hidden_resource north_italy 

                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { savoy, }  and hidden_resource north_italy 
;Montferrat
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { montferrat, }  and hidden_resource north_italy 

                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource north_italy 
;Bologna
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { timurids, }  and hidden_resource middle_italy 
                recruit_pool "City Watch"  1   0.3   2  0  requires factions { timurids, }  and hidden_resource middle_italy 

                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { timurids, }  and hidden_resource middle_italy 
;Urbino
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { urbino, }  and hidden_resource middle_italy 
                recruit_pool "Halberd Militia"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource middle_italy 

                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource middle_italy 
;Hafsiden
                recruit_pool "Igdish Spear Militia"  1   0.37   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                
                recruit_pool "Igdish Archer Militia"  1   0.3   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
;Lucca
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { lucca, }  and hidden_resource middle_italy
                recruit_pool "Halberd Militia"  1   0.3   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "FL Genoese Crossbowmen"  1   0.3   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Venetia
                recruit_pool "AoR Pavise Militia Venetia"  1   0.37   2  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "AoR Pavise Crossbowmen Venetia"  1   0.37   2  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Lombardy
                recruit_pool "AoR Provisionati Swordsmen Lombardy"  1   0.37   2  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7

                recruit_pool "AoR Pavise Crossbowmen Lombardy"  1   0.37   2  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Liguria
                recruit_pool "AoR Provisionati Spearmen Liguria"  1   0.37   2  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "AoR Pavise Crossbowmen Liguria"  1   0.37   2  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Provence
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3

                recruit_pool "AoR Arquebusiers Provence"  1   0.37   2  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Piedmont
                recruit_pool "AoR Provisionati Spearmen Piedmont"  1   0.37   2  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                
                recruit_pool "AoR Arquebusiers Piedmont"  1   0.37   2  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3   
;Burgundy
                recruit_pool "AoR Arquebusiers Burgundy"  1   0.37   2  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Swabia
                recruit_pool "AoR Crossbowmen Swabia"  1   0.37   2  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3
;Swiss
                recruit_pool "AoR Pikemen Swiss"  1   0.37   2  0  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4

                recruit_pool "AoR Crossbowmen Swiss"  1   0.37   2  0  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4
;Bavaria
                recruit_pool "AoR Arquebusiers Bavaria"  1   0.37   2  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Arquebusiers Heredity Land"  1   0.37   2  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6
;Hungary
                recruit_pool "AoR Spearmen Hungary"  1   0.37   2  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
                recruit_pool "AoR Hussars Hungary"  1   0.37   2  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3

                recruit_pool "AoR Pavise Crossbowmen Hungary"  1   0.37   2  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
;Croatia
                recruit_pool "AoR Croatian Lancers"  1   0.37   2  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R4
;Dalmatia
                recruit_pool "AoR Dalmatian Infantry"  1   0.37   2  0  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Romagna
                recruit_pool "AoR Provisionati Spearmen Romagna"  1   0.37   2  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "AoR Arquebusiers Romagna"  1   0.37   2  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
;Tuscany
                recruit_pool "AoR Italian Spear Militia Tuscany"  1   0.37   2  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "AoR Pavise Crossbowmen Tuscany"  1   0.37   2  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
;Papal States
                recruit_pool "AoR Pavise Militia Papal States"  1   0.37   2  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4

                recruit_pool "AoR Pavise Crossbowmen Papal States"  1   0.37   2  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
;South Italy
                recruit_pool "AoR Provisionati Swordsmen South Italy"  1   0.37   2  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5

                recruit_pool "AoR Arquebusiers South Italy"  1   0.37   2  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
;Sicily
                recruit_pool "AoR Provisionati Swordsmen Sicily"  1   0.37   2  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1

                recruit_pool "AoR Pavise Crossbowmen Sicily"  1   0.37   2  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
;Africa
                recruit_pool "AoR Sudanese Tribesmen"  1   0.37   2  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
                recruit_pool "AoR Bedouin Camel Riders"  1   0.37   2  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2

                recruit_pool "AoR Desert Archers"  1   0.37   2  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;Corsica
                recruit_pool "AoR Condottiere"  1   0.37   2  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3

                recruit_pool "AoR Arquebusiers Corsica Sardinia"  1   0.37   2  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3

               law_bonus bonus 2
            }
            material wooden
            construction  3 
            cost  1500 
            settlement_min large_town
            upgrades
            {
                city_watch
            }
        }
        city_watch city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource kleinstadt
        {
            capability
            {
;Türken
                recruit_pool "ME Halberd Militia"  1   0.37   3  0  requires factions { turks, }  and hidden_resource turkish_home  
;HRR
    ;Swabia
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Hre Pike Militia"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 

                recruit_pool "Hre Hand Gunners"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Hre Pike Militia"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 

                recruit_pool "Hre Hand Gunners"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
    ;Heredity Land
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
                recruit_pool "Hre Pike Militia"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 

                recruit_pool "Hre Hand Gunners"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
;Schwaben
    ;Swabia
                recruit_pool "S Swordsmen Militia"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "S Pike Militia"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 

                recruit_pool "W Hand Gunners"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3
                recruit_pool "S Crossbowmen"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "S Swordsmen Militia"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "S Pike Militia"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 

                recruit_pool "W Hand Gunners"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5
                recruit_pool "S Crossbowmen"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
;Frankreich
    ;Burgundy
                recruit_pool "Partisan Militia"  1   0.37   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "Frz Pike Militia"  1   0.3   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
 
                recruit_pool "Dismounted French Archers"  1   0.3   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "Partisan Militia"  1   0.37   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "Frz Pike Militia"  1   0.3   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
 
                recruit_pool "Dismounted French Archers"  1   0.3   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Venedig
                recruit_pool "Pike Militia"  1   0.3   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 

                recruit_pool "Dalmatian Archers"  1   0.37   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Ven Hand Gunners"  1   0.3   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Ungarn
    ;Hungary
                recruit_pool "Halberd Militia_ug"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
                recruit_pool "Footmen"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia
                recruit_pool "Halberd Militia_ug"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "Footmen"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
;Spanien
                recruit_pool "Sp Pike Militia"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home 

                recruit_pool "Sp Hand Gunners"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home 
;Papststaaten
    ;Papal States
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Pike Militia"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 

                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Hand Gunners"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
    ;Romagna
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Pike Militia"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Hand Gunners"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1
;Mailand
                recruit_pool "Mai Pike Militia"  1   0.3   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7

                recruit_pool "Genoese Crossbowmen"  1   0.3   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "Hand Gunners"  1   0.3   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Schweiz
                recruit_pool "Swiss Halbediers"  1   0.37   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4
                recruit_pool "Swiss Pike"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 

                recruit_pool "Swiss Crossbowmen"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "Swiss Handgunners"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
;Florenz        
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1 and not event_counter miliz 1 
                recruit_pool "FL Pike Militia"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1 and not event_counter miliz 1 

                recruit_pool "FL Genoese Crossbowmen"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1 and not event_counter miliz 1 
                recruit_pool "Hand Gunners"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  and not event_counter miliz 1 and not event_counter ghz_erstellt 1 

                recruit_pool "M Pike Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "M Crossbowmen"  1   0.3   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "M Pikemen"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "M Arquebusiers"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "Shield Bearer"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
;GHZ         
                recruit_pool "GHZ Swordsmen Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1  
                recruit_pool "GHZ Halberd Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
                recruit_pool "GHZ FL Pike Militia"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 

                recruit_pool "P Crossbowmen"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1  
                recruit_pool "P Hand Gunners"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
;Neapel
    ;South Italy
                recruit_pool "NE Sword and Buckler Men"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "NE Pike Militia"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5

                recruit_pool "NE Hand Gunners"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "Pavise Crossbow Militia Si"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
    ;Sicily
                recruit_pool "NE Sword and Buckler Men"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "NE Pike Militia"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1

                recruit_pool "NE Hand Gunners"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "Pavise Crossbow Militia Si"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
;Genua
                recruit_pool "Li Pike Militia"  1   0.3   2  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "K Arquebusiers"  1   0.3   2  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
                recruit_pool "G Genoese Crossbowmen"  1   0.3   2  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
;Mantua
                recruit_pool "C Pike Militia"  1   0.3   2  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pavise Militia"  1   0.3   2  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Modena
                recruit_pool "Ferrareser Hellebardiere"  1   0.37   3  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pike Militia"  1   0.3   2  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "Fer Arquebusiers"  1   0.3   2  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "F Crossbowmen"  1   0.3   2  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Siena
                recruit_pool "FL Pike Militia"  1   0.3   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "C Arquebusiers"  1   0.3   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2
;Ragusa
                recruit_pool "R Pike Militia"  1   0.3   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5

                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "R Crossbowmen"  1   0.3   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Savoyen
                recruit_pool "T Pike Militia"  1   0.3   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3

                recruit_pool "Cha Arquebusiers"  1   0.3   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Montferrat
                recruit_pool "Casa Pike Militia"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7

                recruit_pool "A Arquebusiers"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Bologna
                recruit_pool "City Watch"  1   0.37   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "Pike Militia"  1   0.3   2  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1  
;Urbino
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "Mark Pike Militia"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "F Arquebusiers"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Pavise Crossbowmen"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1                                
;Hafsiden
                recruit_pool "Igdish Spear Militia"  1   0.37   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "Sudanese Guard"  1   0.3   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2

                recruit_pool "Igdish Archer Militia"  1   0.3   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "H Crossbowmen"  1   0.2   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
;Lucca 
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "FL Pike Militia"  1   0.3   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "FL Genoese Crossbowmen"  1   0.3   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Venetia
                recruit_pool "AoR Pavise Militia Venetia"  1   0.45   3  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "AoR Pavise Crossbowmen Venetia"  1   0.45   3  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Lombardy
                recruit_pool "AoR Provisionati Swordsmen Lombardy"  1   0.45   3  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7

                recruit_pool "AoR Pavise Crossbowmen Lombardy"  1   0.45  3  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Liguria
                recruit_pool "AoR Provisionati Spearmen Liguria"  1   0.45   3  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "AoR Pavise Crossbowmen Liguria"  1   0.45   3  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Provence
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3

                recruit_pool "AoR Arquebusiers Provence"  1   0.45   3  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Piedmont
                recruit_pool "AoR Provisionati Spearmen Piedmont"  1   0.45   3  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                
                recruit_pool "AoR Arquebusiers Piedmont"  1   0.45   3  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Burgundy
                recruit_pool "AoR Arquebusiers Burgundy"  1   0.45   3  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Swabia
                recruit_pool "AoR Crossbowmen Swabia"  1   0.45   3  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3
;Swiss
                recruit_pool "AoR Pikemen Swiss"  1   0.45   3  0  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4

                recruit_pool "AoR Crossbowmen Swiss"  1   0.45   3  0  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4
;Bavaria
                recruit_pool "AoR Arquebusiers Bavaria"  1   0.45   3  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Arquebusiers Heredity Land"  1   0.45   3  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6
;Hungary
                recruit_pool "AoR Spearmen Hungary"  1   0.45   3  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
                recruit_pool "AoR Hussars Hungary"  1   0.45   3  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3

                recruit_pool "AoR Pavise Crossbowmen Hungary"  1   0.45   3  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
;Croatia
                recruit_pool "AoR Croatian Lancers"  1   0.45   3  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R4
;Dalmatia
                recruit_pool "AoR Dalmatian Infantry"  1   0.45   3  0  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Romagna
                recruit_pool "AoR Provisionati Spearmen Romagna"  1   0.45   3  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "AoR Arquebusiers Romagna"  1   0.45   3  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
;Tuscany
                recruit_pool "AoR Italian Spear Militia Tuscany"  1   0.45   3  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "AoR Pavise Crossbowmen Tuscany"  1   0.45   3  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
;Papal States
                recruit_pool "AoR Pavise Militia Papal States"  1   0.45   3  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4

                recruit_pool "AoR Pavise Crossbowmen Papal States"  1   0.45   3  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
;South Italy
                recruit_pool "AoR Provisionati Swordsmen South Italy"  1   0.45  3  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5

                recruit_pool "AoR Arquebusiers South Italy"  1   0.45   3  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
;Sicily
                recruit_pool "AoR Provisionati Swordsmen Sicily"  1   0.45   3  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1

                recruit_pool "AoR Pavise Crossbowmen Sicily"  1   0.45   3  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
;Africa
                recruit_pool "AoR Sudanese Tribesmen"  1   0.45   3  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
                recruit_pool "AoR Bedouin Camel Riders"  1   0.45   3  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2

                recruit_pool "AoR Desert Archers"  1   0.45   3  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;Corsica
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3

                recruit_pool "AoR Arquebusiers Corsica Sardinia"  1   0.45   3  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3

                law_bonus bonus 3
            }
            material wooden
            construction  5 
            cost  3000 
            settlement_min city
            upgrades
            {
                militia_drill_square
            }
        }
        militia_drill_square city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource mittelstadt
        {
            capability
            {
;Türken
                recruit_pool "ME Halberd Militia"  1   0.45   4  0  requires factions { turks, }  and hidden_resource turkish_home  
                recruit_pool "Janissary Heavy Inf"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home  
                recruit_pool "Serdengecti"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home 

                recruit_pool "Janissary Archers"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home 
;HRR
    ;Swabia
                recruit_pool "Halberd Militia"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Hre Pike Militia"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 

                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Hre Hand Gunners"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Hre Arquebusiers"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "Halberd Militia"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Hre Pike Militia"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 

                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Hre Hand Gunners"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Hre Arquebusiers"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
    ;Heredity Land
                recruit_pool "Halberd Militia"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
                recruit_pool "Hre Pike Militia"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 

                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
                recruit_pool "Hre Hand Gunners"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
                recruit_pool "Hre Arquebusiers"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
;Schwaben
    ;Swabia
                recruit_pool "S Swordsmen Militia"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
                recruit_pool "S Pike Militia"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  

                recruit_pool "S Crossbowmen"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
                recruit_pool "W Hand Gunners"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
    ;Bavaria
                recruit_pool "S Swordsmen Militia"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
                recruit_pool "S Pike Militia"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  

                recruit_pool "S Crossbowmen"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
                recruit_pool "W Hand Gunners"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
;Frankreich
    ;Burgundy
                recruit_pool "Partisan Militia"  1   0.45   4  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "Frz Pike Militia"  1   0.37   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "Pikemen"  1   0.3   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 

                recruit_pool "Aventurier"  1   0.3   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2
                recruit_pool "Dismounted French Archers"  1   0.37   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2  
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "Partisan Militia"  1   0.45   4  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "Frz Pike Militia"  1   0.37   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "Pikemen"  1   0.3   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 

                recruit_pool "Aventurier"  1   0.3   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "Dismounted French Archers"  1   0.37   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3  
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Venedig
                recruit_pool "Pike Militia"  1   0.37   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Venetian Heavy Infantry"  1   0.3   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 

                recruit_pool "Dalmatian Archers"  1   0.45   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Ven Hand Gunners"  1   0.3   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Venetian Archers"  1   0.3   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Ungarn
    ;Hungary
                recruit_pool "Halberd Militia_ug"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
                recruit_pool "Footmen"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 

                recruit_pool "Arquebusiers_ug"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia
                recruit_pool "Halberd Militia_ug"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "Footmen"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 

                recruit_pool "Arquebusiers_ug"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
;Spanien 
                recruit_pool "Sp Pike Militia"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Tercio Pikemen"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home

                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Sp Hand Gunners"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home 

;Papststaaten
    ;Papal States
                recruit_pool "Halberd Militia"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Pike Militia"  1   0.37   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
                recruit_pool "Papal Guard"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 

                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Hand Gunners"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Pap Arquebusiers"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
    ;Romagna
                recruit_pool "Halberd Militia"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "Pike Militia"  1   0.37   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1  
                recruit_pool "Papal Guard"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1  

                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1  
                recruit_pool "Hand Gunners"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1  
                recruit_pool "Pap Arquebusiers"  1   0.3   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1  
;Mailand
                recruit_pool "Mai Pike Militia"  1   0.37   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 

                recruit_pool "Genoese Crossbowmen"  1   0.37   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "Hand Gunners"  1   0.3   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Schweiz
                recruit_pool "Swiss Halbediers"  1   0.45   4  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "Swiss Pike"  1   0.37   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "Swiss Guard Pikemen"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  

                recruit_pool "Swiss Crossbowmen"  1   0.37   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "Swiss Handgunners"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "Swiss Arquebusiers"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
;Florenz        
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1 and not event_counter miliz 1 
                recruit_pool "FL Pike Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1 and not event_counter miliz 1 

                recruit_pool "FL Genoese Crossbowmen"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1 and not event_counter miliz 1  
                recruit_pool "Hand Gunners"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  and not event_counter miliz 1 and not event_counter ghz_erstellt 1 
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  and not event_counter miliz 1 and not event_counter ghz_erstellt 1 

                recruit_pool "M Pike Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "M Crossbowmen"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "M Pikemen"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "M Arquebusiers"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "Shield Bearer"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
;GHZ        
                recruit_pool "GHZ Halberd Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
                recruit_pool "GHZ FL Pike Militia"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 

                recruit_pool "P Crossbowmen"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1  
                recruit_pool "P Hand Gunners"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
                recruit_pool "GHZ Arquebusiers"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
;Neapel
    ;South Italy
                recruit_pool "NE Sword and Buckler Men"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "NE Pike Militia"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5

                recruit_pool "NE Hand Gunners"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "Arquebusiers Sizilien"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "Pavise Crossbow Militia Si"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
    ;Sicily
                recruit_pool "NE Sword and Buckler Men"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "NE Pike Militia"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1

                recruit_pool "NE Hand Gunners"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "Arquebusiers Sizilien"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "Pavise Crossbow Militia Si"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
;Genua
                recruit_pool "Li Pike Militia"  1   0.37   3  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "K Arquebusiers"  1   0.3   2  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
                recruit_pool "G Genoese Crossbowmen"  1   0.37   3  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
;Mantua
                recruit_pool "C Pike Militia"  1   0.37   3  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pavise Militia"  1   0.3   3  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Modena
                recruit_pool "Ferrareser Hellebardiere"  1   0.37   3  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pike Militia"  1   0.37   3  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "Fer Arquebusiers"  1   0.3   2  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "F Crossbowmen"  1   0.37   3  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Siena
                recruit_pool "FL Pike Militia"  1   0.37   3  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "C Arquebusiers"  1   0.3   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2
;Ragusa
                recruit_pool "R Pike Militia"  1   0.37   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "Barabanti"  1   0.3   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5

                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "R Crossbowmen"  1   0.37   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Savoyen
                recruit_pool "T Pike Militia"  1   0.37   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "Piedmont Infantery"  1   0.3   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3                 

                recruit_pool "Cha Arquebusiers"  1   0.3   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Montferrat
                recruit_pool "Casa Pike Militia"  1   0.37   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "Provisionati Infantry"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7  

                recruit_pool "A Arquebusiers"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Bologna
                recruit_pool "City Watch"  1   0.37   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Pike Militia"  1   0.37   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Romagnol Infantry"  1   0.3   2  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1                  

                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1  
;Urbino
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "Mark Pike Militia"  1   0.37   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Condottiere Pikemen"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1 

                recruit_pool "F Arquebusiers"  1   0.3   2  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Pavise Crossbowmen"  1   0.37   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1 
;Hafsiden
                recruit_pool "Igdish Spear Militia"  1   0.37   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "Sudanese Guard"  1   0.37   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2
                recruit_pool "Ghulam Halberd"  1   0.3   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "Janawa"  1   0.3   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 

                recruit_pool "Igdish Archer Militia"  1   0.37   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "H Crossbowmen"  1   0.3   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "Sudanese Archers"  1   0.3   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
;Lucca 
                recruit_pool "Halberd Militia"  1   0.37   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "FL Pike Militia"  1   0.37   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "Provisionati Infantry"  1   0.3   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2 

                recruit_pool "FL Genoese Crossbowmen"  1   0.37   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "Arquebusiers"  1   0.3   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Venetia
                recruit_pool "AoR Pavise Militia Venetia"  1   0.45   4  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "AoR Pavise Crossbowmen Venetia"  1   0.45   4  0  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Lombardy
                recruit_pool "AoR Provisionati Swordsmen Lombardy"  1   0.45  4  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7

                recruit_pool "AoR Pavise Crossbowmen Lombardy"  1   0.45   4  0  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Liguria
                recruit_pool "AoR Provisionati Spearmen Liguria"  1   0.45   4  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "AoR Pavise Crossbowmen Liguria"  1   0.45   4  0  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Provence
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3

                recruit_pool "AoR Arquebusiers Provence"  1   0.45   4  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Piedmont
                recruit_pool "AoR Provisionati Spearmen Piedmont"  1   0.45   4  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                
                recruit_pool "AoR Arquebusiers Piedmont"  1   0.45   4  0  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Burgundy
                recruit_pool "AoR Arquebusiers Burgundy"  1   0.45   4  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Swabia
                recruit_pool "AoR Crossbowmen Swabia"  1   0.45   4  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3
;Swiss
                recruit_pool "AoR Pikemen Swiss"  1   0.45   4  0  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4

                recruit_pool "AoR Crossbowmen Swiss"  1   0.45   4  0  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4
;Bavaria
                recruit_pool "AoR Arquebusiers Bavaria"  1   0.45   4  0  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Arquebusiers Heredity Land"  1   0.45   4  0  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6
;Hungary
                recruit_pool "AoR Spearmen Hungary"  1   0.45   4  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
                recruit_pool "AoR Hussars Hungary"  1   0.45   3  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3

                recruit_pool "AoR Pavise Crossbowmen Hungary"  1   0.45   4  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
;Croatia
                recruit_pool "AoR Croatian Lancers"  1   0.45   3  1  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R4
;Dalmatia
                recruit_pool "AoR Dalmatian Infantry"  1   0.45   4  0  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Romagna
                recruit_pool "AoR Provisionati Spearmen Romagna"  1   0.45   4  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "AoR Arquebusiers Romagna"  1   0.45   4  0  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
;Tuscany
                recruit_pool "AoR Italian Spear Militia Tuscany"  1   0.45   4  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "AoR Pavise Crossbowmen Tuscany"  1   0.45   4  0  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
;Papal States
                recruit_pool "AoR Pavise Militia Papal States"  1   0.45   4  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4

                recruit_pool "AoR Pavise Crossbowmen Papal States"  1   0.45   4  0  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
;South Italy
                recruit_pool "AoR Provisionati Swordsmen South Italy"  1   0.45  4  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5

                recruit_pool "AoR Arquebusiers South Italy"  1   0.45   4  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
;Sicily
                recruit_pool "AoR Provisionati Swordsmen Sicily"  1   0.45   4  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1

                recruit_pool "AoR Pavise Crossbowmen Sicily"  1   0.45   4  0  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
;Africa
                recruit_pool "AoR Sudanese Tribesmen"  1   0.45   4  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
                recruit_pool "AoR Bedouin Camel Riders"  1   0.45   3  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2

                recruit_pool "AoR Desert Archers"  1   0.45   4  0  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;Corsica
                recruit_pool "AoR Condottiere"  1   0.45   3  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3

                recruit_pool "AoR Arquebusiers Corsica Sardinia"  1   0.45   4  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3

                law_bonus bonus 3
            }
            material wooden
            construction  6 
            cost  4800 
            settlement_min large_city
            upgrades
            {
                army_barracks
            }
        }
        army_barracks city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource grossstadt
        {
            capability
            {
;Türken
                recruit_pool "ME Halberd Militia"  1   0.52   4  0  requires factions { turks, }  and hidden_resource turkish_home  
                recruit_pool "Janissary Heavy Inf"  1   0.45   4  0  requires factions { turks, }  and hidden_resource turkish_home 
                recruit_pool "Serdengecti"  1   0.45   4  0  requires factions { turks, }  and hidden_resource turkish_home 

                recruit_pool "Janissary Archers"  1   0.37   3  0  requires factions { turks, }  and hidden_resource turkish_home 
                recruit_pool "Janissary Musketeers"  1   0.3   2  0  requires factions { turks, }  and hidden_resource turkish_home 
;HRR
    ;Swabia
                recruit_pool "Halberd Militia"  1   0.52   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Hre Pike Militia"  1   0.52   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Dismounted Gothic Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 

                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Hre Hand Gunners"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Hre Arquebusiers"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "Halberd Militia"  1   0.52   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Hre Pike Militia"  1   0.52   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Dismounted Gothic Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 

                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Hre Hand Gunners"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "Hre Arquebusiers"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
    ;Heredity Land
                recruit_pool "Halberd Militia"  1   0.52   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
                recruit_pool "Hre Pike Militia"  1   0.52   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
                recruit_pool "Dismounted Gothic Knights"  1   0.3   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 

                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
                recruit_pool "Hre Hand Gunners"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
                recruit_pool "Hre Arquebusiers"  1   0.37   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R6 
;Schwaben
    ;Swabia
                recruit_pool "S Swordsmen Militia"  1   0.52   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "S Pike Militia"  1   0.52   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 

                recruit_pool "S Crossbowmen"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "W Hand Gunners"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "Arquebusiers"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3
    ;Bavaria
                recruit_pool "S Swordsmen Militia"  1   0.52   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
                recruit_pool "S Pike Militia"  1   0.52   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  

                recruit_pool "S Crossbowmen"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
                recruit_pool "W Hand Gunners"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
                recruit_pool "Arquebusiers"  1   0.37   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
;Frankreich
    ;Burgundy
                recruit_pool "Partisan Militia"  1   0.52   4  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "Frz Pike Militia"  1   0.52   4  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "Pikemen"  1   0.45   4  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 

                recruit_pool "Dismounted French Archers"  1   0.45   4  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "Arquebusiers"  1   0.37   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "Aventurier"  1   0.45   4  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "Partisan Militia"  1   0.52   4  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "Frz Pike Militia"  1   0.52   4  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "Pikemen"  1   0.45   4  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 

                recruit_pool "Dismounted French Archers"  1   0.45   4  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "Arquebusiers"  1   0.37   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "Aventurier"  1   0.45   4  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Venedig
                recruit_pool "Pike Militia"  1   0.52   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Venetian Heavy Infantry"  1   0.45   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                
                recruit_pool "Dalmatian Archers"  1   0.45   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Ven Hand Gunners"  1   0.45   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Venetian Archers"  1   0.45   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Arquebusiers"  1   0.37   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "Musketeers"  1   0.3   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Ungarn
    ;Hungary
                recruit_pool "Halberd Militia_ug"  1   0.52   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3  
                recruit_pool "Footmen"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 

                recruit_pool "Arquebusiers_ug"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia
                recruit_pool "Halberd Militia_ug"  1   0.52   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4  
                recruit_pool "Footmen"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 

                recruit_pool "Arquebusiers_ug"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
;Spanien
                recruit_pool "Sp Pike Militia"  1   0.52   4  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Tercio Pikemen"  1   0.45   4  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Sword and Buckler Men"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home 

                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Sp Hand Gunners"  1   0.45   4  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Arquebusiers"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home
                recruit_pool "Sp Musketeers"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home
;Papststaaten
    ;Papal States
                recruit_pool "Halberd Militia"  1   0.52   4  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Pike Militia"  1   0.52   4  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Papal Guard"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Swiss Guard"  1   0.37   3  2  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4  and event_counter schweizergarde 1

                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Hand Gunners"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "Pap Arquebusiers"  1   0.37   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
    ;Romagna
                recruit_pool "Halberd Militia"  1   0.52   4  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Pike Militia"  1   0.52   4  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "Papal Guard"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "Swiss Guard"  1   0.37   3  2  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1  and event_counter schweizergarde 1

                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "Hand Gunners"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "Pap Arquebusiers"  1   0.37   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
;Mailand
                recruit_pool "Mai Pike Militia"  1   0.52   4  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 

                recruit_pool "Genoese Crossbowmen"  1   0.45   4  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "Hand Gunners"  1   0.45   4  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "Arquebusiers"  1   0.37   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "Musketeers"  1   0.3   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Schweiz
                recruit_pool "Swiss Halbediers"  1   0.52   4  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "Swiss Pike"  1   0.52   4  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
                recruit_pool "Swiss Guard Elite"  1   0.37   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
                recruit_pool "Swiss Guard Pikemen"  1   0.37   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  

                recruit_pool "Swiss Crossbowmen"  1   0.45   4  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
                recruit_pool "Swiss Handgunners"  1   0.45   5  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
                recruit_pool "Swiss Arquebusiers"  1   0.37   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
                recruit_pool "Swiss Arquebusiers Heavy"  1   0.3   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
;Florenz 
                recruit_pool "Halberd Militia"  1   0.52   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  and not event_counter ghz_erstellt 1 and not event_counter miliz 1 
                recruit_pool "FL Pike Militia"  1   0.52   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1 and not event_counter miliz 1 
                recruit_pool "FL Landsknecht Pikeniere"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1 and not event_counter miliz 1 

                recruit_pool "FL Genoese Crossbowmen"  1   0.45   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1 and not event_counter miliz 1  
                recruit_pool "Hand Gunners"  1   0.45   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  and not event_counter  miliz 1 and not event_counter ghz_erstellt 1 
                recruit_pool "Arquebusiers"  1   0.37   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  and not event_counter  miliz 1 and not event_counter ghz_erstellt 1 

                recruit_pool "M Pike Militia"  1   0.45   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "M Crossbowmen"  1   0.45   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "M Pikemen"  1   0.45   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "M Arquebusiers"  1   0.45   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
                recruit_pool "Shield Bearer"  1   0.45   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter  miliz 1 and not event_counter ghz_erstellt 1
;GHZ
                recruit_pool "GHZ Halberd Militia"  1   0.52   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
                recruit_pool "GHZ FL Pike Militia"  1   0.52   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
                recruit_pool "GHZ NE Tercio Pikemen"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1  

                recruit_pool "P Crossbowmen"  1   0.45   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1  
                recruit_pool "P Hand Gunners"  1   0.45   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
                recruit_pool "GHZ Arquebusiers"  1   0.37   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1 
;Neapel
    ;South Italy
                recruit_pool "NE Sword and Buckler Men"  1   0.52   4  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "NE Tercio Pikemen"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5 
                recruit_pool "NE Pike Militia"  1   0.52   4  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "Venetian Heavy Infantry Si"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "Aventuros Si"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5

                recruit_pool "NE Hand Gunners"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "Arquebusiers Sizilien"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "Pavise Crossbow Militia Si"  1   0.45   4  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
    ;Sicily
                recruit_pool "NE Sword and Buckler Men"  1   0.52   4  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "NE Tercio Pikemen"  1   0.37   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1 
                recruit_pool "NE Pike Militia"  1   0.52   4  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "Venetian Heavy Infantry Si"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "Aventuros Si"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1

                recruit_pool "NE Hand Gunners"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "Arquebusiers Sizilien"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "Pavise Crossbow Militia Si"  1   0.45   4  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1
;Genua
                recruit_pool "Li Pike Militia"  1   0.52   4  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "K Arquebusiers"  1   0.37   4  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
                recruit_pool "G Genoese Crossbowmen"  1   0.45   4  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
;Mantua
                recruit_pool "C Pike Militia"  1   0.52   4  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pavise Militia"  1   0.37   3  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Deut Wache"  1   0.3   2  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "Arquebusiers"  1   0.37   4  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Modena
                recruit_pool "Ferrareser Hellebardiere"  1   0.52   4  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "Pike Militia"  1   0.52   4  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "Fer Arquebusiers"  1   0.37   4  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "F Crossbowmen"  1   0.45   4  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Siena
                recruit_pool "FL Pike Militia"  1   0.52   4  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "Regular Sword"  1   0.45   4  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "C Arquebusiers"  1   0.37   4  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2
;Ragusa
                recruit_pool "R Pike Militia"  1   0.52   4  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "Barabanti"  1   0.37   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "Gospari"  1   0.3   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5

                recruit_pool "Arquebusiers"  1   0.37   4  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "R Crossbowmen"  1   0.45   4  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Savoyen
                recruit_pool "T Pike Militia"  1   0.52   4  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "Piedmont Infantery"  1   0.37   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "Savoyian Guard"  1   0.3   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3                                 

                recruit_pool "Cha Arquebusiers"  1   0.37   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Montferrat
                recruit_pool "Casa Pike Militia"  1   0.52   4  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "Provisionati Infantry"  1   0.37   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "Paleologi Guard"  1   0.3   2  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 

                recruit_pool "A Arquebusiers"  1   0.37   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Bologna
                recruit_pool "City Watch"  1   0.52   4  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "Pike Militia"  1   0.52   4  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Romagnol Infantry"  1   0.37   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1 

                recruit_pool "Arquebusiers"  1   0.37   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1 
;Urbino
                recruit_pool "Halberd Militia"  1   0.52   4  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Mark Pike Militia"  1   0.52   4  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Condottiere Pikemen"  1   0.37   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "F Arquebusiers"  1   0.37   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "Pavise Crossbowmen"  1   0.45   4  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
;Hafsiden
                recruit_pool "Igdish Spear Militia"  1   0.52   4  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "Sudanese Guard"  1   0.52   4  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2
                recruit_pool "Ghulam Halberd"  1   0.37   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "Janawa"  1   0.3   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 

                recruit_pool "Igdish Archer Militia"  1   0.45   4  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "H Crossbowmen"  1   0.3   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "Sudanese Archers"  1   0.37   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
;Lucca 
                recruit_pool "Halberd Militia"  1   0.52   4  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "FL Pike Militia"  1   0.52   4  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "Provisionati Infantry"  1   0.37   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2 

                recruit_pool "FL Genoese Crossbowmen"  1   0.45   4  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "Arquebusiers"  1   0.37   4  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Venetia
                recruit_pool "AoR Pavise Militia Venetia"  1   0.45   4  1  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8

                recruit_pool "AoR Pavise Crossbowmen Venetia"  1   0.45   4  1  requires factions { all, } and not factions { venice, byzantium, england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Lombardy
                recruit_pool "AoR Provisionati Swordsmen Lombardy"  1   0.45   4  1  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7

                recruit_pool "AoR Pavise Crossbowmen Lombardy"  1   0.45   4  1  requires factions { all, } and not factions { milan, montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Liguria
                recruit_pool "AoR Provisionati Spearmen Liguria"  1   0.45   4  1  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6

                recruit_pool "AoR Pavise Crossbowmen Liguria"  1   0.45   4  1  requires factions { all, } and not factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Provence
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3

                recruit_pool "AoR Arquebusiers Provence"  1   0.45   4  1  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Piedmont
                recruit_pool "AoR Provisionati Spearmen Piedmont"  1   0.45   4  1  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
                
                recruit_pool "AoR Arquebusiers Piedmont"  1   0.45   4  1  requires factions { all, } and not factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Burgundy
                recruit_pool "AoR Arquebusiers Burgundy"  1   0.45   4  1  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Swabia
                recruit_pool "AoR Crossbowmen Swabia"  1   0.45   4  1  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R3
;Swiss
                recruit_pool "AoR Pikemen Swiss"  1   0.45   4  1  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4

                recruit_pool "AoR Crossbowmen Swiss"  1   0.45   4  1  requires factions { all, } and not factions { saxons, }  and hidden_resource R1 and hidden_resource R4
;Bavaria
                recruit_pool "AoR Arquebusiers Bavaria"  1   0.45   4  1  requires factions { all, } and not factions { normans, hre, }  and hidden_resource R1 and hidden_resource R5
;Heredity Land
                recruit_pool "AoR Arquebusiers Heredity Land"  1   0.45   4  1  requires factions { all, } and not factions { hre, }  and hidden_resource R1 and hidden_resource R6
;Hungary
                recruit_pool "AoR Spearmen Hungary"  1   0.45   4  1  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
                recruit_pool "AoR Hussars Hungary"  1   0.45   3  1  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3

                recruit_pool "AoR Pavise Crossbowmen Hungary"  1   0.45   4  1  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R3
;Croatia
                recruit_pool "AoR Croatian Lancers"  1   0.45   3  2  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R4
;Dalmatia
                recruit_pool "AoR Dalmatian Infantry"  1   0.45   4  1  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Romagna
                recruit_pool "AoR Provisionati Spearmen Romagna"  1   0.45   4  1  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1

                recruit_pool "AoR Arquebusiers Romagna"  1   0.45   4  1  requires factions { all, } and not factions { timurids, papal_states, urbino, }  and hidden_resource R7 and hidden_resource R1
;Tuscany
                recruit_pool "AoR Italian Spear Militia Tuscany"  1   0.45   4  1  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "AoR Pavise Crossbowmen Tuscany"  1   0.45   4  1  requires factions { all, } and not factions { russia, poland, lucca, }  and hidden_resource R6 and hidden_resource R2
;Papal States
                recruit_pool "AoR Pavise Militia Papal States"  1   0.45   4  1  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4

                recruit_pool "AoR Pavise Crossbowmen Papal States"  1   0.45   4  1  requires factions { all, } and not factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
;South Italy
                recruit_pool "AoR Provisionati Swordsmen South Italy"  1   0.45  4  1  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5

                recruit_pool "AoR Arquebusiers South Italy"  1   0.45   4  1  requires factions { all, } and not factions { sicily, }  and hidden_resource R3 and hidden_resource R5
;Sicily
                recruit_pool "AoR Provisionati Swordsmen Sicily"  1   0.45   4  1  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1

                recruit_pool "AoR Pavise Crossbowmen Sicily"  1   0.45   4  1  requires factions { all, } and not factions { sicily, }  and hidden_resource R8 and hidden_resource R1
;Africa
                recruit_pool "AoR Sudanese Tribesmen"  1   0.45   4  1  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
                recruit_pool "AoR Bedouin Camel Riders"  1   0.45   3  1  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2

                recruit_pool "AoR Desert Archers"  1   0.45   4  1  requires factions { all, } and not factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;Corsica
                recruit_pool "AoR Condottiere"  1   0.45   3  1  requires factions { all, }  and hidden_resource R6 and hidden_resource R3

                recruit_pool "AoR Arquebusiers Corsica Sardinia"  1   0.45   4  1  requires factions { all, }  and hidden_resource R6 and hidden_resource R3

                law_bonus bonus 3
            }
            material wooden
            construction  8 
            cost  9600 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_barracks
{
    levels mustering_hall garrison_quarters drill_square barracks armoury 
    {
        mustering_hall castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  1 
            cost  600 
            settlement_min village
            upgrades
            {
                garrison_quarters
            }
        }
        garrison_quarters castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  2 
            cost  1200 
            settlement_min town
            upgrades
            {
                drill_square
            }
        }
        drill_square castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  3 
            cost  2400 
            settlement_min large_town
            upgrades
            {
                barracks
            }
        }
        barracks castle requires factions { denmark, hre, france, scotland, england, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  4 
            cost  4800 
            settlement_min city
            upgrades
            {
                armoury
            }
        }
        armoury castle requires factions { denmark, hre, france, scotland, england, turks, egypt, moors, hungary, greek, sicily, venice, portugal, spain, } 
        {
            capability
            {
            }
            material wooden
            construction  6 
            cost  9600 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building professional_military
{
    levels military_academy officers_academy 
    {
        military_academy city requires factions { milan, papal_states, france, hungary, venice, spain, hre, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource mittelstadt
        {
            capability
            {
;Frankreich
    ;Burgundy            
                recruit_pool "NE Late Bodyguard"  1   0.3   1  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "NE Late Bodyguard"  1   0.3   1  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Ungarn
    ;Hungary                
                recruit_pool "NE Late Bodyguard"  1   0.3   1  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia                
                recruit_pool "NE Late Bodyguard"  1   0.3   1  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4
;HRE
    ;Swabia                 
                recruit_pool "NE Late Bodyguard"  1   0.3   1  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3
    ;Bavaria
                recruit_pool "NE Late Bodyguard"  1   0.3   1  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5
    ;Heredity Land
                recruit_pool "NE Late Bodyguard"  1   0.3   1  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1
;Schwaben
    ;Swabia                 
                recruit_pool "NE Late Bodyguard"  1   0.3   1  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria      
                recruit_pool "NE Late Bodyguard"  1   0.3   1  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
;Eidgenossen
                recruit_pool "Swiss Bodyguard"  1   0.3   1  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4
;Mailand
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Venedig                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { venice, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Papststaaten
    ;Papal States
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
    ;Romagna
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1
;Spanien                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { spain, }  and hidden_resource spanish_home
;Florenz                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2
;Neapel                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
;Genua                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
;Mantua                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Modena
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Siena                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2
;Ragusa                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Bologna
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1  
;Montferrat
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Savoyen
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Urbino
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1  
;Lucca                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

                heavy_cavalry_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                officers_academy
            }
        }
        officers_academy city requires factions { milan, papal_states, france, hungary, venice, spain, hre, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource grossstadt
        {
            capability
            {
;Frankreich
    ;Burgundy            
                recruit_pool "NE Late Bodyguard"  1   0.3   1  1  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "NE Late Bodyguard"  1   0.3   1  1  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Ungarn
    ;Hungary                
                recruit_pool "NE Late Bodyguard"  1   0.3   1  1  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia                
                recruit_pool "NE Late Bodyguard"  1   0.3   1  1  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4
;HRE
    ;Swabia                 
                recruit_pool "NE Late Bodyguard"  1   0.3   1  1  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3
    ;Bavaria
                recruit_pool "NE Late Bodyguard"  1   0.3   1  1  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5
    ;Heredity Land
                recruit_pool "NE Late Bodyguard"  1   0.3   1  1  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1
;Schwaben
    ;Swabia                 
                recruit_pool "NE Late Bodyguard"  1   0.3   1  1  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria      
                recruit_pool "NE Late Bodyguard"  1   0.3   1  1  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
;Eidgenossen
                recruit_pool "Swiss Bodyguard"  1   0.3   1  1  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4
;Mailand
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Venedig                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { venice, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Papststaaten
    ;Papal States
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
    ;Romagna
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1
;Spanien                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { spain, }  and hidden_resource spanish_home
;Florenz                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2
;Neapel                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5
;Genua                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
;Mantua                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { byzantium, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Modena
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { england, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Siena                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2
;Ragusa                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Bologna
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1  
;Montferrat
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Savoyen
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Urbino
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1  
;Lucca                
                recruit_pool "SE Late Bodyguard"  1   0.3   1  1  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

                heavy_cavalry_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  8000 
            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, } 
        {
            capability
            {
            }
            material wooden
            construction  2 
            cost  1200 
            settlement_min town
            upgrades
            {
                practice_range
            }
        }
        practice_range castle requires factions { denmark, hre, scotland, france, england, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  3 
            cost  2400 
            settlement_min large_town
            upgrades
            {
                archery_range
            }
        }
        archery_range castle requires factions { denmark, hre, scotland, france, england, egypt, turks, moors, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  4 
            cost  4800 
            settlement_min city
            upgrades
            {
                marksmans_range
            }
        }
        marksmans_range castle requires factions { denmark, hre, france, england, egypt, turks, moors, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  5 
            cost  9600 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building siege
{
    levels ballista_range catapult_range siege_works 
    {
        ballista_range city requires factions {  } 
        {
            capability
            {
            }
            material wooden
            construction  3 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                catapult_range
            }
        }
        catapult_range city requires factions {  } 
        {
            capability
            {
            }
            material wooden
            construction  4 
            cost  3200 
            settlement_min city
            upgrades
            {
                siege_works
            }
        }
        siege_works city requires factions {  } 
        {
            capability
            {
            }
            material wooden
            construction  5 
            cost  6400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_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, } 
        {
            capability
            {
            }
            material wooden
            construction  3 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                c_catapult_range
            }
        }
        c_catapult_range castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  4 
            cost  3200 
            settlement_min city
            upgrades
            {
                c_siege_works
            }
        }
        c_siege_works castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
            }
            material wooden
            construction  5 
            cost  6400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building cannon
{
    levels gunsmith cannon_maker cannon_foundry royal_arsenal 
    {
        gunsmith city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource kleinstadt
        {
            capability
            {
;Türken
                recruit_pool "ME Bombard"  1   0.15   2  0  requires factions { turks, }  and hidden_resource turkish_home  
                recruit_pool "ME Grand Bombard"  1   0.15   2  0  requires factions { turks, }  and hidden_resource turkish_home 
;HRR
    ;Swabia
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3  
    ;Bavaria
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
    ;Heredity Land
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1  
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1  
;Schwaben
    ;Swabia
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
;Frankreich
    ;Burgundy
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Venedig
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Ungarn
    ;Hungary
                recruit_pool "EE Serpentine"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3
                recruit_pool "EE Ribault"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia
                recruit_pool "EE Serpentine"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "EE Ribault"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
;Spanien
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Ribault"  1   0.4   3  0  requires factions { spain, }  and hidden_resource spanish_home 
;Papststaaten
    ;Papal States
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4  
    ;Romagna
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1  
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1   
;Mailand
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Schweiz
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "NE Grand Bombard"  1   0.15   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
;Florenz
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  
;Neapel
    ;South Italy
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
    ;Sicily
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
;Genua
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Mantua
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Modena
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Siena
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2  
;Ragusa
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5  
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5  
;Hafsiden
                recruit_pool "ME Bombard"  1   0.15   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2  
                recruit_pool "ME Grand Bombard"  1   0.15   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
;Bologna
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1  
;Montferrat
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Savoyen
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Urbino
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1  
;Lucca
                recruit_pool "NE Serpentine"  1   0.15   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2 
             }
            material wooden
            construction  4 
            cost  2000 
            settlement_min city
            upgrades
            {
                cannon_maker
            }
        }
        cannon_maker city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource mittelstadt
        {
            capability
            {
;Türken
                recruit_pool "ME Bombard"  1   0.22   3  0  requires factions { turks, }  and hidden_resource turkish_home  
                recruit_pool "ME Grand Bombard"  1   0.15   2  0  requires factions { turks, }  and hidden_resource turkish_home 
                recruit_pool "ME Cannon"  1   0.15   2  0  requires factions { turks, }  and hidden_resource turkish_home 
;HRR
    ;Swabia
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5  
    ;Heredity Land
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1  
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1  
;Schwaben
    ;Swabia
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
    ;Bavaria
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
;Frankreich
    ;Burgundy
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2  
    ;Provence
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3  
;Venedig
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Ungarn
    ;Hungary
                recruit_pool "EE Serpentine"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3
                recruit_pool "EE Ribault"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
                recruit_pool "EE Cannon"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3
    ;Croatia
                recruit_pool "EE Serpentine"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4
                recruit_pool "EE Ribault"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "EE Cannon"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4
;Spanien
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { spain, }  and hidden_resource spanish_home
                recruit_pool "NE Ribault"  1   0.4   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { spain, }  and hidden_resource spanish_home 
;Papststaaten
    ;Papal States
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4
    ;Romagna
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
;Mailand
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7  
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7  
;Schweiz
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4
;Florenz
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2  
;Neapel
    ;South Italy
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
    ;Sicily
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
;Genua
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Mantua
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Modena
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
                recruit_pool "F Basilisk"  1   0.15   1  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  and not event_counter no_cannon 1  
;Siena
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2  
;Ragusa
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5  
                recruit_pool "NE Ribault"  1   0.15   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
;Hafsiden
                recruit_pool "ME Bombard"  1   0.22   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "ME Grand Bombard"  1   0.15   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
;Bologna
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1                 
;Montferrat
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { montferrat, }
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { montferrat, } 
;Savoyen
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Urbino
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1 
;Lucca
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2  

                weapon_naval_gunpowder 1
            }
            material wooden
            construction  6 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                cannon_foundry
            }
        }
        cannon_foundry city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource grossstadt
        {
            capability
            {
;Türken
                recruit_pool "ME Bombard"  1   0.22   3  0  requires factions { turks, }  and hidden_resource turkish_home  
                recruit_pool "ME Grand Bombard"  1   0.22   3  0  requires factions { turks, }  and hidden_resource turkish_home 
                recruit_pool "ME Cannon"  1   0.15   2  0  requires factions { turks, }  and hidden_resource turkish_home 
;HRR
    ;Swabia
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
    ;Heredity Land
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1 
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1 
;Schwaben
    ;Swabia
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
;Frankreich
    ;Burgundy
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3   
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3   
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3   
;Venedig
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Ungarn
    ;Hungary
                recruit_pool "EE Serpentine"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
                recruit_pool "EE Ribault"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
                recruit_pool "EE Mortar"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia
                recruit_pool "EE Serpentine"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "EE Ribault"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "EE Mortar"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
;Spanien
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { spain, }  and hidden_resource spanish_home 
;Papststaaten
    ;Papal States
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4  
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4  
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
    ;Romagna
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1  
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1   
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1   
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1  
;Mailand
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Schweiz
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
;Florenz
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2   
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2
;Neapel
    ;South Italy
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5 
    ;Sicily
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1   
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1 
;Genua
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6  
                recruit_pool "NE Cannon"  1   0.15   2  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Mantua
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Modena
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "F Basilisk"  1   0.15   1  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 and not event_counter no_cannon 1  
;Siena
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2 
;Ragusa
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5  
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                recruit_pool "NE Culverin"  1   0.15   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
;Hafsiden
                recruit_pool "ME Bombard"  1   0.22   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "ME Grand Bombard"  1   0.22   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;Bologna
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1                
;Montferrat
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Savoyen
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Urbino
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
;Lucca
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2  

                weapon_naval_gunpowder 1
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min huge_city
            upgrades
            {
                royal_arsenal
            }
        }
        royal_arsenal city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource grossstadt
        {
            capability
            {
;Türken
                recruit_pool "ME Bombard"  1   0.22   3  0  requires factions { turks, }  and hidden_resource turkish_home  
                recruit_pool "ME Grand Bombard"  1   0.22   3  0  requires factions { turks, }  and hidden_resource turkish_home  
                recruit_pool "ME Cannon"  1   0.22   3  0  requires factions { turks, }  and hidden_resource turkish_home 
                recruit_pool "ME Monster Bombard"  1   0.15   2  0  requires factions { turks, }  and hidden_resource turkish_home 
;HRR
    ;Swabia
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Cannon"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Cannon"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
    ;Heredity Land
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1 
                recruit_pool "NE Cannon"  1   0.22   3  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1 
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1 
;Schwaben
    ;Swabia
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Cannon"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3 
    ;Bavaria
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Cannon"  1   0.22   3  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
;Frankreich
    ;Burgundy
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3   
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3   
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3   
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3   
;Venedig
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Mortar"  1   0.15   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Monster Ribault"  1   0.15   2  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Ungarn
    ;Hungary
                recruit_pool "EE Serpentine"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
                recruit_pool "EE Mortar"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
                recruit_pool "EE Cannon"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3
                recruit_pool "EE Ribault"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
                recruit_pool "EE Basilisk"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia
                recruit_pool "EE Serpentine"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "EE Mortar"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "EE Cannon"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4
		        recruit_pool "EE Ribault"  1   0.22   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "EE Basilisk"  1   0.15   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
;Spanien
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { spain, }  and hidden_resource spanish_home 
;Papststaaten
    ;Papal States
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4  
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4  
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4  
                recruit_pool "NE Mortar"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4  
    ;Romagna
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1   
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1   
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1   
                recruit_pool "NE Mortar"  1   0.15   2  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1   
;Mailand
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "NE Mortar"  1   0.22   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
                recruit_pool "NE Monster Ribault"  1   0.15   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Schweiz
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
                recruit_pool "NE Cannon"  1   0.22   3  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
                recruit_pool "NE Mortar"  1   0.15   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4  
;Florenz
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Mortar"  1   0.15   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2
                recruit_pool "NE Monster Ribault"  1   0.15   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2
;Neapel
    ;South Italy
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5  
                recruit_pool "NE Mortar"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R3 and hidden_resource R5 
    ;Sicily
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
                recruit_pool "NE Mortar"  1   0.15   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1 
;Genua
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
                recruit_pool "NE Cannon"  1   0.22   3  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Mantua
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Modena
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
                recruit_pool "F Basilisk"  1   0.15   1  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 and not event_counter no_cannon 1  
;Siena
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2 
;Ragusa
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                recruit_pool "NE Ribault"  1   0.22   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                recruit_pool "NE Basilisk"  1   0.15   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Hafsiden
                recruit_pool "ME Bombard"  1   0.22   3  2  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2 
                recruit_pool "ME Grand Bombard"  1   0.22   3  1  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;Bologna
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1                
;Montferrat
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Savoyen
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Urbino
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
;Lucca
                recruit_pool "NE Serpentine"  1   0.22   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "NE Culverin"  1   0.22   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2  

                weapon_naval_gunpowder 1
            }
            material wooden
            construction  10 
            cost  8000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_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, } 
        {
            capability
            {
            }
            material wooden
            construction  3 
            cost  800 
            settlement_min city
            upgrades
            {
                c_cannon_maker
            }
        }
        c_cannon_maker castle requires factions { northern_european, timurids, egypt, moors, turks, eastern_european, southern_european, } 
        {
            capability
            {
                weapon_naval_gunpowder 1
            }
            material wooden
            construction  4 
            cost  1600 
            settlement_min large_city
            upgrades
            {
                c_cannon_foundry
            }
        }
        c_cannon_foundry castle requires factions { northern_european, egypt, timurids, moors, turks, eastern_european, southern_european, } 
        {
            capability
            {
                weapon_naval_gunpowder 1
            }
            material wooden
            construction  5 
            cost  3200 
            settlement_min large_city
            upgrades
            {
                c_royal_arsenal
            }
        }
        c_royal_arsenal castle requires factions { hre, france, turks, hungary, russia, venice, milan, portugal, spain, poland, } 
        {
            capability
            {
                weapon_naval_gunpowder 1
            }
            material wooden
            construction  6 
            cost  6400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building urban_equestrian
{
    levels racing_track sultans_racing_track 
    {
        racing_track city requires factions { turks, } 
        {
            capability
            {
                happiness_bonus bonus 1
                stage_races 1
            }
            material wooden
            construction  3 
            cost  2500 
            settlement_min city
            upgrades
            {
                sultans_racing_track
            }
        }
        sultans_racing_track city requires factions { turks, } 
        {
            capability
            {
                happiness_bonus bonus 2
                stage_races 2
            }
            material wooden
            construction  5 
            cost  5000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building 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, } 
        {
            capability
            {
                armour 1
		weapon_missile_gunpowder 1 requires factions { northern_european, eastern_european, greek, southern_european, }  and event_counter wheel_lock 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                blacksmith
            }
        }
        blacksmith city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                armour 2
                trade_base_income_bonus bonus 1
		weapon_missile_gunpowder 1 requires factions { northern_european, eastern_european, greek, southern_european, }  and event_counter wheel_lock 1
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                armourer
            }
        }
        armourer city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt
        {
            capability
            {
                armour 3
                trade_base_income_bonus bonus 1
                population_health_bonus bonus -1
		weapon_missile_gunpowder 1 requires factions { northern_european, eastern_european, greek, southern_european, }  and event_counter wheel_lock 1
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min city
            upgrades
            {
                heavy_armourer
            }
        }
        heavy_armourer city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt
        {
            capability
            {
                armour 4
                weapon_melee_blade 1
                trade_base_income_bonus bonus 2
                population_health_bonus bonus -1
		weapon_missile_gunpowder 1 requires factions { northern_european, eastern_european, greek, southern_european, }  and event_counter wheel_lock 1
            }
            material wooden
            construction  5 
            cost  4800 
            settlement_min large_city
            upgrades
            {
                plate_armourer
            }
        }
        plate_armourer city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource grossstadt
        {
            capability
            {
                armour 5
                weapon_melee_blade 1
                trade_base_income_bonus bonus 2
                population_health_bonus bonus -1
		weapon_missile_gunpowder 1 requires factions { northern_european, eastern_european, greek, southern_european, }  and event_counter wheel_lock 1
            }
            material wooden
            construction  6 
            cost  5600 
            settlement_min huge_city
            upgrades
            {
                gothic_armourer
            }
        }
        gothic_armourer city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource grossstadt
        {
            capability
            {
                armour 6
                weapon_melee_blade 1
                trade_base_income_bonus bonus 3
                population_health_bonus bonus -1
		weapon_missile_gunpowder 1 requires factions { northern_european, eastern_european, greek, southern_european, }  and event_counter wheel_lock 1
            }
            material wooden
            construction  7 
            cost  9600 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_smith
{
    levels c_leather_tanner c_blacksmith c_armourer c_heavy_armourer c_plate_armourer c_gothic_armourer 
    {
        c_leather_tanner castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                armour 1
            }
            material wooden
            construction  2 
            cost  600 
            settlement_min town
            upgrades
            {
                c_blacksmith
            }
        }
        c_blacksmith castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                armour 2
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min large_town
            upgrades
            {
                c_armourer
            }
        }
        c_armourer castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                armour 3
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min city
            upgrades
            {
                c_heavy_armourer
            }
        }
        c_heavy_armourer castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                armour 4
            }
            material wooden
            construction  5 
            cost  6400 
            settlement_min large_city
            upgrades
            {
                c_plate_armourer
            }
        }
        c_plate_armourer castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                armour 5
            }
            material wooden
            construction  6 
            cost  10000 
            settlement_min large_city
            upgrades
            {
                c_gothic_armourer
            }
        }
        c_gothic_armourer castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                armour 6
            }
            material wooden
            construction  7 
            cost  15000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building port
{
    levels port shipwright dockyard naval_drydock 
    {
        port city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource hafen
        {
            capability
            {
;Frankreich
                recruit_pool "Marine"  1   0.3   2  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Venedig
                recruit_pool "Marine"  1   0.3   2  0  requires factions { venice, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Spanien
                recruit_pool "Marine"  1   0.3   2  0  requires factions { spain, }  and hidden_resource spanish_home
;Hafsiden
                recruit_pool "Korsaren"  1   0.3   2  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;GHZ
                recruit_pool "GHZ Marine"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1
;Genua
		        recruit_pool "G Marine"  1   0.3   2  1  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6  
;Ragusa
		        recruit_pool "Sailor"  1   0.3   2  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5

                trade_base_income_bonus bonus 2
		        recruitment_cost_bonus_naval bonus 2 requires factions { northern_european, eastern_european, southern_european, } and event_counter drydock 1
            }
            material wooden
            construction  2 
            cost  1000 
            settlement_min large_town
            upgrades
            {
                shipwright
            }
        }
        shipwright city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca,}  and hidden_resource kleinstadt  and hidden_resource hafen
        {
            capability
            {
;Frankreich
                recruit_pool "Marine"  1   0.37   3  0  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Venedig
                recruit_pool "Marine"  1   0.37   3  0  requires factions { venice, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Spanien
                recruit_pool "Marine"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home
;Hafsiden
                recruit_pool "Korsaren"  1   0.37   3  0  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;GHZ
                recruit_pool "GHZ Marine"  1   0.37   3  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1
;Genua
		        recruit_pool "G Marine"  1   0.37   3  2  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6   
;Ragusa
		        recruit_pool "Sailor"  1   0.37   3  1  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5  

                recruit_pool "holk"  1   0.3   3  0  requires factions { hre, france, saxons, normans, } 
                recruit_pool "war galley"  1   0.3   3  0  requires factions { hungary, milan, spain, venice, papal_states, turks, poland, sicily, denmark, byzantium, england, russia, scotland, savoy, montferrat, timurids, urbino, lucca, }
                recruit_pool "baghlah"  1   0.3   3  0  requires factions { turks, egypt, }

                trade_base_income_bonus bonus 3
		        recruitment_cost_bonus_naval bonus 3 requires factions { northern_european, eastern_european, southern_european, } and event_counter drydock 1
            }
            material wooden
            construction  4 
            cost  2400 
            settlement_min city
            upgrades
            {
                dockyard
            }
        }
        dockyard city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource mittelstadt  and hidden_resource hafen
        {
            capability
            {
;Frankreich
                recruit_pool "Marine"  1   0.4   3  1  requires factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Venedig
                recruit_pool "Marine"  1   0.4   3  1  requires factions { venice, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Spanien
                recruit_pool "Marine"  1   0.4   3  1  requires factions { spain, }  and hidden_resource spanish_home
;Hafsiden
                recruit_pool "Korsaren"  1   0.4   3  1  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;GHZ
                recruit_pool "GHZ Marine"  1   0.4   3  1  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1
;Genoa
		        recruit_pool "G Marine"  1   0.4   3  3  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6   
;Ragusa  
		        recruit_pool "Sailor"  1   0.4   3  2  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5   

                recruit_pool "holk"  1   0.4   3  0  requires factions { hre, france, saxons, normans, } 
                recruit_pool "war galley"  1   0.4   3  0  requires factions { hungary, milan, spain, venice, papal_states, turks, poland, sicily, denmark, savoy, montferrat, timurids, urbino, lucca, } 
                recruit_pool "gun holk"  1   0.3   3  0  requires factions { hre, france, saxons, normans, } 
                recruit_pool "lanternas"  1   0.3   3  0  requires factions { hungary, milan, spain, papal_states, turks, poland, sicily, scotland, } 
                recruit_pool "galleass"  1   0.3   3  0  requires factions { venice, denmark, scotland, }
                recruit_pool "baghlah"  1   0.3   3  0  requires factions { turks, egypt, }

                trade_base_income_bonus bonus 4
		        recruitment_cost_bonus_naval bonus 4 requires factions { northern_european, eastern_european, southern_european, } and event_counter drydock 1
            }
            material wooden
            construction  6 
            cost  4500 
            settlement_min large_city
            upgrades
            {
                naval_drydock
            }
        }
        naval_drydock city requires factions { hre, france, venice, hungary, spain, papal_states, milan, turks, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource grossstadt  and hidden_resource hafen
        {
            capability
            {
;Frankreich
                recruit_pool "Marine"  1   0.4   3  2  requires factions { venice, france, spain, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Venedig
                recruit_pool "Marine"  1   0.4   3  2  requires factions { venice, france, spain, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
;Spanien
                recruit_pool "Marine"  1   0.4   3  2  requires factions { venice, france, spain, }  and hidden_resource spanish_home
;Hafsiden
                recruit_pool "Korsaren"  1   0.4   3  2  requires factions { egypt, }  and hidden_resource R7 and hidden_resource R2
;GHZ
                recruit_pool "GHZ Marine"  1   0.4   3  2  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1
;Genua
		        recruit_pool "G Marine"  1   0.4   3  3  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6
;Ragusa 
		        recruit_pool "Sailor"  1   0.4   3  3  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5  

                recruit_pool "holk"  1   0.5   3  0  requires factions { hre, france, saxons, normans, } 
                recruit_pool "war galley"  1   0.5   3  0  requires factions { hungary, milan, spain, venice, papal_states, poland, sicily, denmark, byzantium, england, russia, scotland, savoy, montferrat, timurids, urbino, lucca, } 
                recruit_pool "gun holk"  1   0.4   3  0  requires factions { hre, france, saxons, normans, } 
                recruit_pool "lanternas"  1   0.4   3  0  requires factions { scotland, hungary, milan, spain, papal_states, turks, poland, sicily, } 
                recruit_pool "galleass"  1   0.4   3  0  requires factions { venice, denmark, scotland, } 
                recruit_pool "carrack"  1   0.3   3  0  requires factions { hre, france, hungary, papal_states, milan, venice, saxons, poland, sicily, normans, } 
                recruit_pool "grande carrack"  1   0.3   3  0  requires factions { spain, } 
                recruit_pool "baghlah"  1   0.3   3  0  requires factions { turks, egypt, }
                
                trade_base_income_bonus bonus 5
		        recruitment_cost_bonus_naval bonus 5 requires factions { northern_european, eastern_european, southern_european, } and event_counter drydock 1
            }
            material wooden
            construction  8 
            cost  9000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_port
{
    levels c_port c_shipwright c_dockyard c_naval_drydock 
    {
        c_port castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  2 
            cost  800 
            settlement_min large_town
            upgrades
            {
                c_shipwright
            }
        }
        c_shipwright castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  3 
            cost  1600 
            settlement_min city
            upgrades
            {
                c_dockyard
            }
        }
        c_dockyard castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                trade_base_income_bonus bonus 4
            }
            material wooden
            construction  5 
            cost  3200 
            settlement_min large_city
            upgrades
            {
                c_naval_drydock
            }
        }
        c_naval_drydock castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                trade_base_income_bonus bonus 5
            }
            material wooden
            construction  6 
            cost  6400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building sea_trade
{
    levels merchants_wharf warehouse docklands 
    {
        merchants_wharf city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and building_present_min_level port port and hidden_resource kleinstadt
        {
            capability
            {
                trade_fleet 1
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min city
            upgrades
            {
                warehouse
            }
        }
        warehouse city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and building_present_min_level port port and hidden_resource mittelstadt
        {
            capability
            {
                trade_fleet 2
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  6 
            cost  4500 
            settlement_min large_city
            upgrades
            {
                docklands
            }
        }
        docklands city requires factions { turks, hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, egypt, savoy, montferrat, urbino, timurids, lucca, }  and building_present_min_level port port and hidden_resource grossstadt
        {
            capability
            {
                trade_fleet 3
                trade_base_income_bonus bonus 4
            }
            material wooden
            construction  8 
            cost  9000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building admiralty
{
    levels naval_academy admiralty 
    {
        naval_academy city requires factions { spain, venice, denmark, scotland, }  and building_present_min_level port port and hidden_resource mittelstadt
        {
            capability
            {
                recruitment_cost_bonus_naval bonus 1
                navy_bonus 1
            }
            material wooden
            construction  4 
            cost  3000 
            settlement_min city
            upgrades
            {
                admiralty
            }
        }
        admiralty city requires factions { spain, venice, denmark, scotland, }  and building_present_min_level port port and hidden_resource grossstadt
        {
            capability
            {
                recruitment_cost_bonus_naval bonus 2
                navy_bonus 1
            }
            material wooden
            construction  6 
            cost  6000 
            settlement_min large_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, } 
        {
            capability
            {
                trade_base_income_bonus bonus 2
		                trade_base_income_bonus bonus 2 requires factions { turks, } and event_counter ragusa_un 1
		                trade_base_income_bonus bonus 1 requires factions { turks, } and event_counter balkan_bonus 1
		                trade_base_income_bonus bonus 2 requires factions { milan, } and event_counter genua_un 1
		                trade_base_income_bonus bonus 2 requires factions { sicily, } and event_counter gaeta_un 1
		                trade_base_income_bonus bonus 2 requires factions { papal_states, } and event_counter ancona_un 1
            }
            material wooden
            construction  2 
            cost  800 
            settlement_min town
            upgrades
            {
                market
            }
        }
        market city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
        {
            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, } 

                trade_base_income_bonus bonus 3 requires not factions { spain, }

                trade_base_income_bonus bonus 3  requires factions { spain, } and not event_counter casa_contratacion 1
                trade_base_income_bonus bonus 4  requires factions { spain, } and event_counter casa_contratacion 1
		trade_base_income_bonus bonus 2 requires factions { turks, } and event_counter ragusa_un 1
		                trade_base_income_bonus bonus 1 requires factions { turks, } and event_counter balkan_bonus 1
		                trade_base_income_bonus bonus 2 requires factions { milan, } and event_counter genua_un 1
		                trade_base_income_bonus bonus 2 requires factions { sicily, } and event_counter gaeta_un 1
		                trade_base_income_bonus bonus 2 requires factions { papal_states, } and event_counter ancona_un 1

                agent_limit merchant 1
            }
            material wooden
            construction  3 
            cost  1500 
            settlement_min large_town
            upgrades
            {
                fairground
            }
        }
        fairground city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt
        {
            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, } 

                trade_base_income_bonus bonus 4 requires not factions { spain, }

                trade_base_income_bonus bonus 4  requires factions { spain, } and not event_counter casa_contratacion 1
                trade_base_income_bonus bonus 5  requires factions { spain, } and event_counter casa_contratacion 1
		trade_base_income_bonus bonus 2 requires factions { turks, } and event_counter ragusa_un 1
		                trade_base_income_bonus bonus 1 requires factions { turks, } and event_counter balkan_bonus 1
		                trade_base_income_bonus bonus 2 requires factions { milan, } and event_counter genua_un 1
		                trade_base_income_bonus bonus 2 requires factions { sicily, } and event_counter gaeta_un 1
		                trade_base_income_bonus bonus 2 requires factions { papal_states, } and event_counter ancona_un 1

                agent_limit merchant 1
            }
            material wooden
            construction  5 
            cost  3000 
            settlement_min city
            upgrades
            {
                great_market
            }
        }
        great_market city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt
        {
            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, } 

                trade_base_income_bonus bonus 5 requires not factions { spain, }

                trade_base_income_bonus bonus 5  requires factions { spain, } and not event_counter casa_contratacion 1
                trade_base_income_bonus bonus 6  requires factions { spain, } and event_counter casa_contratacion 1

		trade_base_income_bonus bonus 2 requires factions { turks, } and event_counter ragusa_un 1
		                trade_base_income_bonus bonus 1 requires factions { turks, } and event_counter balkan_bonus 1
		                trade_base_income_bonus bonus 2 requires factions { milan, } and event_counter genua_un 1
		                trade_base_income_bonus bonus 2 requires factions { sicily, } and event_counter gaeta_un 1
		                trade_base_income_bonus bonus 2 requires factions { papal_states, } and event_counter ancona_un 1

                agent_limit merchant 1
            }
            material wooden
            construction  7 
            cost  5400 
            settlement_min large_city
            upgrades
            {
                merchants_quarter
            }
        }
        merchants_quarter city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource grossstadt
        {
            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, } 

                trade_base_income_bonus bonus 6 requires not factions { spain, }

                trade_base_income_bonus bonus 6  requires factions { spain, } and not event_counter casa_contratacion 1
                trade_base_income_bonus bonus 7  requires factions { spain, } and event_counter casa_contratacion 1

		trade_base_income_bonus bonus 2 requires factions { turks, } and event_counter ragusa_un 1
		                trade_base_income_bonus bonus 1 requires factions { turks, } and event_counter balkan_bonus 1
		                trade_base_income_bonus bonus 2 requires factions { milan, } and event_counter genua_un 1
		                trade_base_income_bonus bonus 2 requires factions { sicily, } and event_counter gaeta_un 1
		                trade_base_income_bonus bonus 2 requires factions { papal_states, } and event_counter ancona_un 1

                agent_limit merchant 1
            }
            material wooden
            construction  10 
            cost  11500 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_roads
{
    levels roads paved_roads 
    {
        roads city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                road_level 0
;Schwaben                
		        recruit_pool "Sherwood Archers" 1   0.3   2  0  requires factions { normans, }  and hidden_resource schwarzwald 
;Ungarn
    ;Hungary
                recruit_pool "Uskoken"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3  and event_counter sinj_ungarn 1
    ;Croatia
                recruit_pool "Uskoken"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4  and event_counter sinj_ungarn 1   
;Türken                
                recruit_pool "Akinjis"  1   0.3   4  0  requires factions { turks, }  

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Croatia
                recruit_pool "AoR Uskoken"  1   0.3   2  0  requires factions { all, } and not factions { hungary, turks, }  and hidden_resource R2 and hidden_resource R4
;Dalmatia
                recruit_pool "AoR Uskoken"  1   0.3   2  0  requires factions { all, } and not factions { scotland, turks, }  and hidden_resource R2 and hidden_resource R5

            }
            material wooden
            construction  1 
            cost  400 
            settlement_min town
            upgrades
            {
                paved_roads
            }
        }
        paved_roads city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt
        {
            capability
            {
                road_level 1
;Schwaben                
		        recruit_pool "Sherwood Archers" 1   0.4   3  1  requires factions { normans, }  and hidden_resource schwarzwald 
;Ungarn
    ;Hungary
                recruit_pool "Uskoken"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3  and event_counter sinj_ungarn 1
    ;Croatia
                recruit_pool "Uskoken"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4  and event_counter sinj_ungarn 1
;Türken
                recruit_pool "Akinjis"  1   0.45   7  0  requires factions { turks, }

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Croatia
                recruit_pool "AoR Uskoken"  1   0.37   4  0  requires factions { all, } and not factions { hungary, turks, }  and hidden_resource R2 and hidden_resource R4
;Dalmatia
                recruit_pool "AoR Uskoken"  1   0.37   4  0  requires factions { all, } and not factions { scotland, turks, }  and hidden_resource R2 and hidden_resource R5

            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_castle_roads
{
    levels c_roads c_paved_roads 
    {
        c_roads castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                road_level 0
            }
            material wooden
            construction  1 
            cost  400 
            settlement_min town
            upgrades
            {
                c_paved_roads
            }
        }
        c_paved_roads castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                road_level 1
            }
            material wooden
            construction  3 
            cost  1200 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_farms
{
    levels farms farms+1 farms+2 farms+3 
    {
        farms  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                farming_level 1 requires not factions { spain, }
		        happiness_bonus bonus 1 requires factions { normans, } and event_counter forderungen_yes 1

                farming_level 1 requires factions { spain, } and not event_counter duerre_start 1 
;Türken
                recruit_pool "Dismounted Sipahi Lancers"  1   0.2   1  0  requires factions { turks, } 
;Ungarn
    ;Hungary
                recruit_pool "EE Spear Militia"  1   0.3   2  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R3
                recruit_pool "Jobbagy Levy"  1   0.3   3  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R3  
    ;Croatia
                recruit_pool "EE Spear Militia"  1   0.3   2  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R4
                recruit_pool "Jobbagy Levy"  1   0.3   3  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R4  

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Provence
                recruit_pool "AoR Levy Spear Militia Provence"  1   0.3   3  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Burgundy
                recruit_pool "AoR Levy Spear Militia Burgundy"  1   0.3   3  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2 
;Corsica
                recruit_pool "AoR Levy Spear Militia Corsica Sardinia"  1   0.3   3  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3  
;Croatia
                recruit_pool "AoR Croatian Levy"  1   0.3   3  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R4

            }
            material wooden
            construction  2 
            cost  800 
            settlement_min village
            upgrades
            {
                farms+1
            }
        }
        farms+1  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                farming_level 2 requires not factions { spain, }
		        happiness_bonus bonus 2 requires factions { normans, } and event_counter forderungen_yes 1
                farming_level 2 requires factions { spain, } and not event_counter duerre_start 1 
;Türken
                recruit_pool "Dismounted Sipahi Lancers"  1   0.2   2  0  requires factions { turks, }                 
;Ungarn
    ;Hungary
                recruit_pool "EE Spear Militia"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3
                recruit_pool "Jobbagy Levy"  1   0.37   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3

                recruit_pool "Bosnian Archers"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3
    ;Croatia
                recruit_pool "EE Spear Militia"  1   0.37   3  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4
                recruit_pool "Jobbagy Levy"  1   0.37   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4

                recruit_pool "Bosnian Archers"  1   0.3   2  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Provence
                recruit_pool "AoR Levy Spear Militia Provence"  1   0.37   4  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Burgundy
                recruit_pool "AoR Levy Spear Militia Burgundy"  1   0.37   4  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Corsica
                recruit_pool "AoR Levy Spear Militia Corsica Sardinia"  1   0.37   4  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3
;Croatia
                recruit_pool "AoR Croatian Levy"  1   0.37   4  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R4

            }
            material wooden
            construction  4 
            cost  1500 
            settlement_min town
            upgrades
            {
                farms+2
            }
        }
        farms+2  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
        {
            capability
            {
                farming_level 3 requires not factions { spain, }
		        happiness_bonus bonus 3 requires factions { normans, } and event_counter forderungen_yes 1
                farming_level 3 requires factions { spain, } and not event_counter duerre_start 1 

;Türken
                recruit_pool "Dismounted Sipahi Lancers"  1   0.52   4  0  requires factions { turks, }

                recruit_pool "Sipahis"  1   0.3   1  0  requires factions { turks, }       
;Ungarn
    ;Hungary
                recruit_pool "EE Spear Militia"  1   0.45   4  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R3 
                recruit_pool "Jobbagy Levy"  1   0.45   5  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R3

                recruit_pool "Bosnian Archers"  1   0.37   3  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R3  
    ;Croatia
                recruit_pool "EE Spear Militia"  1   0.45   4  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R4
                recruit_pool "Jobbagy Levy"  1   0.45   5  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R4

                recruit_pool "Bosnian Archers"  1   0.37   3  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R4 

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Provence
                recruit_pool "AoR Levy Spear Militia Provence"  1   0.45   5  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Burgundy
                recruit_pool "AoR Levy Spear Militia Burgundy"  1   0.45   5  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Corsica
                recruit_pool "AoR Levy Spear Militia Corsica Sardinia"  1   0.45   5  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3
;Croatia
                recruit_pool "AoR Croatian Levy"  1   0.45   5  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R4

            }
            material wooden
            construction  6 
            cost  3000 
            settlement_min large_town
            upgrades
            {
                farms+3
            }
        }
        farms+3  requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt
        {
            capability
            {
                farming_level 4 requires not factions { spain, }
		        happiness_bonus bonus 4 requires factions { normans, } and event_counter forderungen_yes 1
                farming_level 4 requires factions { spain, } and not event_counter duerre_start 1 
;Türken
                recruit_pool "Dismounted Sipahi Lancers"  1   0.52   4  0  requires factions { turks, }

                recruit_pool "Sipahis"  1   0.3   2  0  requires factions { turks, }                  
;Ungarn
    ;Hungary
                recruit_pool "EE Spear Militia"  1   0.52   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
                recruit_pool "Jobbagy Levy"  1   0.52   6  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3

                recruit_pool "Bosnian Archers"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R3 
    ;Croatia
                recruit_pool "EE Spear Militia"  1   0.52   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 
                recruit_pool "Jobbagy Levy"  1   0.52   6  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4

                recruit_pool "Bosnian Archers"  1   0.45   4  0  requires factions { hungary, }  and hidden_resource R2 and hidden_resource R4 

;------------------------------------------------------------------------------
;--------------- Ferne Provinzen  ---------------------------------------------
;------------------------------------------------------------------------------

;Provence
                recruit_pool "AoR Levy Spear Militia Provence"  1   0.52   6  0  requires factions { all, } and not factions { france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3
;Burgundy
                recruit_pool "AoR Levy Spear Militia Burgundy"  1   0.52   6  0  requires factions { all, } and not factions { france, }  and hidden_resource R1 and hidden_resource R2
;Corsica
                recruit_pool "AoR Levy Spear Militia Corsica Sardinia"  1   0.52   6  0  requires factions { all, }  and hidden_resource R6 and hidden_resource R3
;Croatia
                recruit_pool "AoR Croatian Levy"  1   0.52   6  0  requires factions { all, } and not factions { hungary, }  and hidden_resource R2 and hidden_resource R4

            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_mines
{
    levels mines mines+1 
    {
        mines city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and resource silver or resource gold or resource iron or resource sulfur or resource coal
        {
            capability
            {
;Ungarn
                recruit_pool "Miner Militia"  1   0.37   2  0  requires factions { hungary, } and hidden_resource R2 and hidden_resource R3

                mine_resource 3  requires resource iron
                mine_resource 2  requires resource sulfur
                mine_resource 1  requires resource coal
                mine_resource 4  requires resource silver
                mine_resource 5  requires resource gold
            }
            material wooden
            construction  4 
            cost  2500 
            settlement_min large_town
            upgrades
            {
                mines+1
            }
        }
        mines+1 city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and hidden_resource kleinstadt and resource silver or resource gold or resource iron or resource sulfur or resource coal
        {
            capability
            {
;Ungarn
                recruit_pool "Miner Militia"  1   0.37   3  1  requires factions { hungary, } and hidden_resource R2 and hidden_resource R3

                mine_resource 5  requires resource iron
                mine_resource 3  requires resource sulfur
                mine_resource 2  requires resource coal
                mine_resource 8  requires resource silver
                mine_resource 9  requires resource gold
            }
            material wooden
            construction  6 
            cost  5000 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_castle_mines
{
    levels c_mines c_mines+1 
    {
        c_mines castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            capability
            {
                mine_resource 4
            }
            material wooden
            construction  2 
            cost  2000 
            settlement_min large_town
            upgrades
            {
                c_mines+1
            }
        }
        c_mines+1 castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
        {
            capability
            {
                mine_resource 7
            }
            material wooden
            construction  3 
            cost  3500 
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building bullring
{
    levels plaza_del_toro 
    {
        plaza_del_toro city requires factions {  } 
        {
            capability
            {
                happiness_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  6000 
            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 2
                population_growth_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  800 
            settlement_min large_city
            upgrades
            {
                aqueduct
            }
        }
        aqueduct city requires factions { greek, }  and building_present_min_level market great_market
        {
            capability
            {
                population_health_bonus bonus 4
                population_growth_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  1600 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hospital
{
    levels bimaristan great_bimaristan 
    {
        bimaristan city requires factions { middle_eastern, }  and hidden_resource mittelstadt
        {
            capability
            {
                retrain_cost_bonus bonus 1
                population_health_bonus bonus 2
            }
            material wooden
            construction  5 
            cost  6400 
            settlement_min large_city
            upgrades
            {
                great_bimaristan
            }
        }
        great_bimaristan city requires factions { middle_eastern, }  and hidden_resource grossstadt
        {
            capability
            {
                retrain_cost_bonus bonus 2
                population_health_bonus bonus 4
            }
            material wooden
            construction  8 
            cost  9600 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building academic
{
    levels alchemists_lab alchemy_school university 
    {
        alchemists_lab city requires factions { northern_european, eastern_european, greek, southern_european, }  and building_present_min_level market market and hidden_resource mittelstadt
        {
            capability
            {
                law_bonus bonus 1
                weapon_missile_gunpowder 1
                population_health_bonus bonus 1 requires factions { hre, france, venice, milan, papal_states, hungary, spain, saxons, poland, normans, sicily, denmark, byzantium, england, russia, scotland, lucca, } and event_counter andreas_vesalius 1
		law_bonus bonus -1 requires factions { northern_european, eastern_european, greek, southern_european, } and event_counter kopernikus 1
            }
            material wooden
            construction  4 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                alchemy_school
            }
        }
        alchemy_school city requires factions { northern_european, eastern_european, greek, southern_european, }  and building_present_min_level market great_market and hidden_resource grossstadt
        {
            capability
            {
                law_bonus bonus 2
                weapon_missile_gunpowder 1
                weapon_artillery_gunpowder 1
                population_health_bonus bonus 2 requires factions { hre, france, venice, milan, papal_states, hungary, spain, saxons, poland, normans, sicily, denmark, byzantium, england, russia, scotland, lucca, } and event_counter andreas_vesalius 1
		law_bonus bonus -1 requires factions { northern_european, eastern_european, greek, southern_european, } and event_counter kopernikus 1
            }
            material wooden
            construction  6 
            cost  4500 
            settlement_min huge_city
            upgrades
            {
                university
            }
        }
        university city requires factions { northern_european, eastern_european, greek, southern_european, }  and building_present_min_level market merchants_quarter and hidden_resource grossstadt
        {
            capability
            {
                law_bonus bonus 3
                weapon_projectile 1
                population_health_bonus bonus 3 requires factions { hre, france, venice, milan, papal_states, hungary, spain, saxons, poland, normans, sicily, denmark, byzantium, england, russia, scotland, lucca, } and event_counter andreas_vesalius 1
		law_bonus bonus -1 requires factions { northern_european, eastern_european, greek, southern_european, } and event_counter kopernikus 1
            }
            material wooden
            construction  8 
            cost  9000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_catholic
{
    religion catholic
    levels small_church church abbey cathedral huge_cathedral 
    {
        small_church city requires factions { hre, france, hungary, papal_states, spain, milan, venice, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } and event_counter catholic 1
        {
            capability
            {
                agent priest  0  requires factions { hre, france, hungary, papal_states, spain, milan, venice, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } 
                agent priest  0  requires factions { saxons, }
                happiness_bonus bonus 1 requires factions { hre, france, hungary, papal_states, spain, milan, venice, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }
                happiness_bonus bonus 1 requires factions { poland, }  and not event_counter drohung_papst 1
                religion_level bonus 1
                pope_disapproval 1
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                church
            }
        }
        church city requires factions { hre, france, hungary, papal_states, spain, milan, venice, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } and event_counter catholic 1
        {
            capability
            {
                agent priest  0  requires factions { hre, france, hungary, papal_states, spain, milan, venice, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } 
                agent priest  0  requires factions { saxons, }
                happiness_bonus bonus 1 requires factions { hre, france, hungary, papal_states, spain, milan, venice, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }
                happiness_bonus bonus 1 requires factions { poland, }  and not event_counter drohung_papst 1
                religion_level bonus 2
                agent_limit priest 1
                pope_disapproval 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                abbey
            }
        }
        abbey city requires factions { hre, france, hungary, papal_states, spain, milan, venice, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } and hidden_resource kleinstadt and event_counter catholic 1
        {
            capability
            {
                agent priest  0  requires factions { hre, france, hungary, papal_states, spain, milan, venice, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } 
                agent priest  0  requires factions { saxons, }
                happiness_bonus bonus 2 requires factions { hre, france, hungary, papal_states, spain, milan, venice, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }
                happiness_bonus bonus 2 requires factions { poland, }  and not event_counter drohung_papst 1
                religion_level bonus 3
                agent_limit priest 1
                pope_disapproval 1
                population_health_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  3200 
            settlement_min city
            upgrades
            {
                cathedral
            }
        }
        cathedral city requires factions { hre, france, hungary, papal_states, spain, milan, venice, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } and hidden_resource mittelstadt and event_counter catholic 1
        {
            capability
            {
                agent priest  0  requires factions { hre, france, hungary, papal_states, spain, milan, venice, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } 
                agent priest  0  requires factions { saxons, }
                happiness_bonus bonus 2 requires factions { hre, france, hungary, papal_states, spain, milan, venice, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }
                happiness_bonus bonus 2 requires factions { poland, }  and not event_counter drohung_papst 1
                religion_level bonus 4
                agent_limit priest 1
                pope_disapproval 1
                pope_approval 1
                population_health_bonus bonus 2
            }
            material wooden
            construction  7 
            cost  7500 
            settlement_min large_city
            upgrades
            {
                huge_cathedral
            }
        }
        huge_cathedral city requires factions { hre, france, hungary, papal_states, spain, milan, venice, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } and hidden_resource grossstadt and event_counter catholic 1
        {
            capability
            {
                agent priest  0  requires factions { hre, france, hungary, papal_states, spain, milan, venice, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } 
                agent priest  0  requires factions { saxons, }
                happiness_bonus bonus 3 requires factions { hre, france, hungary, papal_states, spain, milan, venice, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }
                happiness_bonus bonus 3 requires factions { poland, }  and not event_counter drohung_papst 1
                religion_level bonus 5
                agent_limit priest 1
                pope_disapproval 1
                pope_approval 1
                population_health_bonus bonus 3
            }
            material wooden
            construction  10 
            cost  12500 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_catholic_castle
{
    religion catholic
    levels small_chapel chapel 
    {
        small_chapel castle requires factions { normans, denmark, hre, scotland, france, england, hungary, poland, venice, papal_states, portugal, spain, sicily, milan, } 
        {
            capability
            {
                agent priest  0  requires factions { normans, denmark, scotland, hre, france, england, } 
                agent priest  0  requires factions { hungary, poland, } 
                agent priest  0  requires factions { papal_states, portugal, spain, sicily, milan, venice, } 
                happiness_bonus bonus 1
                religion_level bonus 2
                pope_disapproval 1
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                chapel
            }
        }
        chapel castle requires factions { normans, denmark, hre, scotland, france, england, hungary, poland, venice, papal_states, portugal, spain, sicily, milan, } 
        {
            capability
            {
                agent priest  0  requires factions { normans, denmark, scotland, hre, france, england, } 
                agent priest  0  requires factions { hungary, poland, } 
                agent priest  0  requires factions { papal_states, portugal, spain, sicily, milan, venice, } 
                happiness_bonus bonus 1
                religion_level bonus 3
                agent_limit priest 1
                pope_disapproval 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_orthodox
{
    religion orthodox
    levels small_church_o church_o abbey_o cathedral_o huge_cathedral_o 
    {
        small_church_o city requires factions { saxons, normans, } and event_counter protestant 1
        {
            capability
            {
                agent priest  0  requires factions { saxons, normans, }
                happiness_bonus bonus 1
                religion_level bonus 1
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                church_o
            }
        }
        church_o city requires factions { saxons, normans, } and event_counter protestant 1
        {
            capability
            {
                agent priest  0  requires factions { saxons, normans, }
                happiness_bonus bonus 1
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                abbey_o
            }
        }
        abbey_o city requires factions { saxons, normans, } and hidden_resource kleinstadt and event_counter protestant 1
        {
            capability
            {
                agent priest  0  requires factions { saxons, normans, }
                happiness_bonus bonus 2
                religion_level bonus 3
                agent_limit priest 1
                population_health_bonus bonus 1
            }
            material wooden
            construction  4 
            cost  3200 
            settlement_min city
            upgrades
            {
                cathedral_o
            }
        }
        cathedral_o city requires factions { saxons, normans, } and hidden_resource mittelstadt and event_counter protestant 1
        {
            capability
            {
                agent priest  0  requires factions { saxons, normans, }
                happiness_bonus bonus 2
                religion_level bonus 4
                agent_limit priest 1
                population_health_bonus bonus 2
            }
            material wooden
            construction  7
            cost  7500 
            settlement_min large_city
            upgrades
            {
                huge_cathedral_o
            }
        }
        huge_cathedral_o city requires factions { saxons, normans, } and hidden_resource grossstadt and event_counter protestant 1
        {
            capability
            {
                agent priest  0  requires factions { saxons, normans, }
                happiness_bonus bonus 3
                religion_level bonus 5
                agent_limit priest 1
                population_health_bonus bonus 3
            }
            material wooden
            construction  10 
            cost  12500 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_orthodox_castle
{
    religion orthodox
    levels small_chapel_o chapel_o 
    {
        small_chapel_o castle requires factions {   }  
        {
            capability
            {
                agent priest  0  requires factions {   }  
                agent priest  0  requires factions {   }  
                happiness_bonus bonus 1
                religion_level bonus 4
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                chapel_o
            }
        }
        chapel_o castle requires factions {   } 
        {
            capability
            {
                agent priest  0  requires factions {   } 
                agent priest  0  requires factions {   } 
                happiness_bonus bonus 1
                religion_level bonus 6
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_muslim
{
    religion islam
    levels small_masjid masjid minareted_masjid jama great_jama 
    {
        small_masjid city requires factions { turks, egypt, } 
        {
            capability
            {
                agent priest  0  requires factions { turks, egypt, } 
                happiness_bonus bonus 1 requires factions { egypt, }
                happiness_bonus bonus 1 requires factions { turks, }  and not event_counter mimar_sinan 1
		        happiness_bonus bonus 10 requires factions { turks, }  and event_counter mimar_sinan 1 
                religion_level bonus 2
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                masjid
            }
        }
        masjid city requires factions { turks, egypt, } 
        {
            capability
            {
                agent priest  0  requires factions { turks, egypt, } 
                happiness_bonus bonus 1 requires factions { egypt, }
                happiness_bonus bonus 1 requires factions { turks, }  and not event_counter mimar_sinan 1
		happiness_bonus bonus 10 requires factions { turks, }  and event_counter mimar_sinan 1 
                religion_level bonus 4
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                minareted_masjid
            }
        }
        minareted_masjid city requires factions { turks, egypt, }  and hidden_resource kleinstadt
        {
            capability
            {
                agent priest  0  requires factions { turks, egypt, } 
                happiness_bonus bonus 2 requires factions { egypt, }
                happiness_bonus bonus 2 requires factions { turks, }  and not event_counter mimar_sinan 1
		happiness_bonus bonus 10 requires factions { turks, }  and event_counter mimar_sinan 1 
                religion_level bonus 6
                agent_limit priest 1
            }
            material wooden
            construction  4 
            cost  3200 
            settlement_min city
            upgrades
            {
                jama
            }
        }
        jama city requires factions { turks, egypt, }  and hidden_resource mittelstadt
        {
            capability
            {
                agent priest  0  requires factions { turks, egypt, } 
                happiness_bonus bonus 2 requires factions { egypt, }
                happiness_bonus bonus 2 requires factions { turks, }  and not event_counter mimar_sinan 1
		happiness_bonus bonus 10 requires factions { turks, }  and event_counter mimar_sinan 1 
                religion_level bonus 8
                agent_limit priest 1
            }
            material wooden
            construction  7 
            cost  7500 
            settlement_min large_city
            upgrades
            {
                great_jama
            }
        }
        great_jama city requires factions { turks, egypt, }  and hidden_resource grossstadt
        {
            capability
            {
                agent priest  0  requires factions { turks, egypt, } 
                happiness_bonus bonus 3 requires factions { egypt, }
                happiness_bonus bonus 3 requires factions { turks, }  and not event_counter mimar_sinan 1
		happiness_bonus bonus 10 requires factions { turks, }  and event_counter mimar_sinan 1 
                religion_level bonus 10
                agent_limit priest 1
            }
            material wooden
            construction  10 
            cost  12500 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building temple_muslim_castle
{
    religion islam
    levels c_small_masjid c_masjid 
    {
        c_small_masjid castle requires factions { turks, } 
        {
            capability
            {
                agent priest  0  requires factions { turks, } 
                happiness_bonus bonus 1
                religion_level bonus 4
                agent_limit priest 1
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min town
            upgrades
            {
                c_masjid
            }
        }
        c_masjid castle requires factions { turks, } 
        {
            capability
            {
                agent priest  0  requires factions { turks, } 
                happiness_bonus bonus 1
                religion_level bonus 6
                agent_limit priest 1
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building taverns
{
    levels brothel inn tavern coaching_house pleasure_palace 
    {
        brothel city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            capability
            {
                happiness_bonus bonus 1
            }
            material wooden
            construction  2 
            cost  800 
            settlement_min town
            upgrades
            {
                inn
            }
        }
        inn city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
        {
            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, } 

                agent_limit spy 1
                happiness_bonus bonus 2
                population_health_bonus bonus 1 requires factions { hre, }  and event_counter reinheitsgebot 1
;Ungarn
                recruit_pool "Hajducken"  1   0.3   2  0  requires factions { hungary, }  and event_counter bihac_ungarn 1 
            }
            material wooden
            construction  4 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                tavern
            }
        }
        tavern city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt
        {
            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, } 

                agent_limit spy 1
                agent_limit assassin 1
                happiness_bonus bonus 3
                population_health_bonus bonus 1 requires factions { hre, }  and event_counter reinheitsgebot 1
;Ungarn
                recruit_pool "Hajducken"  1   0.45   3  0  requires factions { hungary, }  and event_counter bihac_ungarn 1                 
            }
            material wooden
            construction  6 
            cost  3200 
            settlement_min city
            upgrades
            {
                coaching_house
            }
        }
        coaching_house city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt
        {
            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, } 

                agent_limit spy 1
                agent_limit assassin 1
                happiness_bonus bonus 4
                population_health_bonus bonus 2 requires factions { hre, }  and event_counter reinheitsgebot 1
            }
            material wooden
            construction  8 
            cost  7500 
            settlement_min large_city
            upgrades
            {
                pleasure_palace
            }
        }
        pleasure_palace city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource grossstadt
        {
            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, } 

                agent_limit spy 1
                agent_limit assassin 1
                happiness_bonus bonus 5
                population_health_bonus bonus 2 requires factions { hre, }  and event_counter reinheitsgebot 1
            }
            material wooden
            construction  10 
            cost  10000 
            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, } 
        {
            capability
            {
                recruit_pool "Heavy Bill Militia Si"  1   0.3   1  0  requires factions { poland, hre, papal_states, hungary, france, spain, milan, venice, saxons, sicily, normans, savoy, lucca, }  and hidden_resource siena 
                recruit_pool "U Halberd Militia"  1   0.3   1  0  requires factions { normans, }  and hidden_resource ulm
                recruit_pool "A Halberd Militia"  1   0.3   1  0  requires factions { normans, }  and hidden_resource augsburg 
                recruit_pool "Wu Arquebusiers"  1   0.3   1  0  requires factions { normans, }  and hidden_resource stuttgart
                recruit_pool "Carroccio Standard M"  1   0.3   1  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "Carroccio Standard V"  1   0.3   1  0  requires factions { venice, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                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, } 
                agent_limit diplomat 1
                law_bonus bonus 1
                population_health_bonus bonus 1
                happiness_bonus bonus 1 requires factions { spain, }  and event_counter inquisition_neapel_no 1
            }
            material wooden
            construction  2 
            cost  1000 
            settlement_min large_town
            upgrades
            {
                council_chambers
            }
        }
        council_chambers city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt
        {
            capability
            {
                recruit_pool "Heavy Bill Militia Si"  1   0.4   2  0  requires factions { poland, hre, papal_states, hungary, france, spain, milan, venice, saxons, sicily, normans, lucca, }  and hidden_resource siena
                recruit_pool "U Halberd Militia"  1   0.4   2  0  requires factions { normans, }  and hidden_resource ulm
                recruit_pool "A Halberd Militia"  1   0.4   2  0  requires factions { normans, }  and hidden_resource augsburg
                recruit_pool "Wu Arquebusiers"  1   0.4   2  0  requires factions { normans, }  and hidden_resource stuttgart
                recruit_pool "Carroccio Standard M"  1   0.4   2  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "Carroccio Standard V"  1   0.4   2  0  requires factions { venice, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                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, } 
                agent_limit diplomat 1
                law_bonus bonus 2
                population_health_bonus bonus 2
                happiness_bonus bonus 1 requires factions { spain, }  and event_counter inquisition_neapel_no 1

;HRR
    ;Swabia
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3    
    ;Bavaria
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5   
    ;Heredity Land
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1    
;Schwaben
    ;Swabia
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
    ;Bavaria
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
;Frankreich
    ;Burgundy
                recruit_pool "NE Spear Militia"  1   0.45   4  0  requires factions {  france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "NE Spear Militia"  1   0.45   4  0  requires factions {  france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Venedig
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Spanien
                recruit_pool "NE Spear Militia"  1   0.45   4  0  requires factions { spain, }  and hidden_resource spanish_home  
                recruit_pool "Swordsmen Militia"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home  
;Papststaaten
    ;Papal States
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
    ;Romagna
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
;Mailand
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Schweiz
                recruit_pool "Swiss Militia"  1   0.45   4  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
;Florenz        
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1  
;GHZ        
                recruit_pool "GHZ Italian Spear Militia"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1  
;Neapel
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1 
;Genua
                recruit_pool "Italian Spear Militia"  1   0.37   3  1  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Mantua
                recruit_pool "Italian Spear Militia"  1   0.37   3  1  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Modena
                recruit_pool "Italian Spear Militia"  1   0.37   3  1  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Siena
                recruit_pool "Italian Spear Militia"  1   0.37   3  1  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "S Halberd Militia"  1   0.37   3  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "C Crossbowmen"  1   0.3   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2
;Ragusa
                recruit_pool "Ragusan Nights Watch"  1   0.37   3  1  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                recruit_pool "Ragusan Sword Militia"  1   0.37   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Savoyen
                recruit_pool "NE Spear Militia"  1   0.37   3  0  requires factions {  savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3  
;Montferrat
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Bologna
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1 
;Urbino
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1
;Lucca        
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2

            }
            material wooden
            construction  4 
            cost  2500 
            settlement_min city
            upgrades
            {
                city_hall
            }
        }
        city_hall city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt
        {
            capability
            {
                recruit_pool "Heavy Bill Militia Si"  1   0.45   2  1  requires factions { poland, hre, papal_states, hungary, france, spain, milan, venice, saxons, sicily, normans, lucca, }  and hidden_resource siena 
                recruit_pool "U Halberd Militia"  1   0.45   2  1  requires factions { normans, }  and hidden_resource ulm
                recruit_pool "A Halberd Militia"  1   0.45  2  1  requires factions { normans, }  and hidden_resource augsburg
                recruit_pool "Wu Arquebusiers"  1   0.45  2  1  requires factions { normans, }  and hidden_resource stuttgart
                recruit_pool "Carroccio Standard M"  1   0.45   2  1  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "Carroccio Standard V"  1   0.45   2  1  requires factions { venice, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                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, } 
                agent_limit diplomat 1
                law_bonus bonus 3
                population_health_bonus bonus 3
                happiness_bonus bonus 2 requires factions { spain, }  and event_counter inquisition_neapel_no 1

;HRR
    ;Swabia
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3    
    ;Bavaria
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5   
    ;Heredity Land
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1    
;Schwaben
    ;Swabia
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
    ;Bavaria
                recruit_pool "DE Spear Militia"  1   0.45   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5 
;Frankreich
    ;Burgundy
                recruit_pool "NE Spear Militia"  1   0.45   4  0  requires factions {  france, }  and hidden_resource R1 and hidden_resource R2 
    ;Provence
                recruit_pool "NE Spear Militia"  1   0.45   4  0  requires factions {  france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Venedig
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Spanien
                recruit_pool "NE Spear Militia"  1   0.45   4  0  requires factions { spain, }  and hidden_resource spanish_home  
                recruit_pool "Swordsmen Militia"  1   0.37   3  0  requires factions { spain, }  and hidden_resource spanish_home  
;Papststaaten
    ;Papal States
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
    ;Romagna
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1 
;Mailand
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
;Schweiz
                recruit_pool "Swiss Militia"  1   0.45   4  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
;Florenz        
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1  
;GHZ        
                recruit_pool "GHZ Italian Spear Militia"  1   0.3   2  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1  
;Neapel
                recruit_pool "Italian Spear Militia"  1   0.3   2  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1 
;Genua
                recruit_pool "Italian Spear Militia"  1   0.37   3  1  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Mantua
                recruit_pool "Italian Spear Militia"  1   0.37   3  1  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Modena
                recruit_pool "Italian Spear Militia"  1   0.37   3  1  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Siena
                recruit_pool "Italian Spear Militia"  1   0.37   3  1  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "S Halberd Militia"  1   0.37   3  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "C Crossbowmen"  1   0.3   2  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2
;Ragusa
                recruit_pool "Ragusan Nights Watch"  1   0.37   3  1  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                recruit_pool "Ragusan Sword Militia"  1   0.37   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Savoyen
                recruit_pool "NE Spear Militia"  1   0.37   3  0  requires factions {  savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3  
;Montferrat
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Bologna
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1 
;Urbino
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1                 
;Lucca        
                recruit_pool "Italian Spear Militia"  1   0.37   3  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
            }
            material wooden
            construction  6 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                mayors_palace
            }
        }
        mayors_palace city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }  and hidden_resource grossstadt
        {
            capability
            {
                recruit_pool "Heavy Bill Militia Si"  1   0.5   3  1  requires factions { poland, hre, papal_states, hungary, france, spain, milan, venice, saxons, sicily, normans, lucca, }  and hidden_resource siena
                recruit_pool "U Halberd Militia"  1   0.5   3  1  requires factions { normans, }
                recruit_pool "A Halberd Militia"  1   0.5   3  1  requires factions { normans, }
                recruit_pool "Wu Arquebusiers"  1   0.5   3  1  requires factions { normans, }
                recruit_pool "Carroccio Standard M"  1   0.5   3  1  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7
                recruit_pool "Carroccio Standard V"  1   0.5   3  1  requires factions { venice, }  and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8
                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, } 
                agent_limit diplomat 1
                law_bonus bonus 4
                population_health_bonus bonus 4
                happiness_bonus bonus 2 requires factions { spain, }  and event_counter inquisition_neapel_no 1
;HRR
    ;Swabia
                recruit_pool "DE Spear Militia"  1   0.52   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R3  
    ;Bavaria
                recruit_pool "DE Spear Militia"  1   0.52   4  0  requires factions { hre, }  and hidden_resource R1 and hidden_resource R5 
    ;Heredity Land
                recruit_pool "DE Spear Militia"  1   0.52   4  0  requires factions { hre, }  and hidden_resource R6 and hidden_resource R1  
;Schwaben
    ;Swabia
                recruit_pool "DE Spear Militia"  1   0.52   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R3  
    ;Bavaria
                recruit_pool "DE Spear Militia"  1   0.52   4  0  requires factions { normans, }  and hidden_resource R1 and hidden_resource R5  
;Frankreich
    ;Burgundy
                recruit_pool "NE Spear Militia"  1   0.52   4  0  requires factions {  france, }  and hidden_resource R1 and hidden_resource R2  
    ;Provence
                recruit_pool "NE Spear Militia"  1   0.52   4  0  requires factions {  france, }  and hidden_resource R4 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 
;Venedig
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { venice, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8 
;Spanien
                recruit_pool "NE Spear Militia"  1   0.52   4  0  requires factions { spain, }  and hidden_resource spanish_home 
                recruit_pool "Swordsmen Militia"  1   0.52   4  0  requires factions { spain, }  and hidden_resource spanish_home
;Papststaaten
    ;Papal States
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { papal_states, }  and hidden_resource R3 and hidden_resource R4 
    ;Romagna
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { papal_states, }  and hidden_resource R7 and hidden_resource R1
;Mailand
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { milan, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Schweiz
                recruit_pool "Swiss Militia"  1   0.52   4  0  requires factions { saxons, }  and hidden_resource R1 and hidden_resource R4 
;Florenz        
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and not event_counter ghz_erstellt 1  
;GHZ        
                recruit_pool "GHZ Italian Spear Militia"  1   0.52   4  0  requires factions { poland, }  and hidden_resource R6 and hidden_resource R2 and event_counter ghz_erstellt 1  
;Neapel
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { sicily, }  and hidden_resource R8 and hidden_resource R1  
;Genua
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { denmark, }  and hidden_resource R3 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 
;Mantua
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { byzantium, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Modena
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { england, } and hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 and not hidden_resource R8  
;Siena
                recruit_pool "Italian Spear Militia"  1   0.52   4  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2 
                recruit_pool "S Halberd Militia"  1   0.52   4  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2

                recruit_pool "C Crossbowmen"  1   0.45   4  0  requires factions { russia, }  and hidden_resource R6 and hidden_resource R2
;Ragusa
                recruit_pool "Ragusan Nights Watch"  1   0.52   4  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5 
                recruit_pool "Ragusan Sword Militia"  1   0.37   3  0  requires factions { scotland, }  and hidden_resource R2 and hidden_resource R5
;Savoyen
                recruit_pool "NE Spear Militia"  1   0.45   4  0  requires factions {  savoy, }  and hidden_resource R5 and not hidden_resource R1 and not hidden_resource R2 and not hidden_resource R3  
;Montferrat
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { montferrat, }  and hidden_resource R2 and not hidden_resource R1 and not hidden_resource R3 and not hidden_resource R4 and not hidden_resource R5 and not hidden_resource R6 and not hidden_resource R7 
;Bologna
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { timurids, }  and hidden_resource R7 and hidden_resource R1 
;Urbino
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { urbino, }  and hidden_resource R7 and hidden_resource R1                        
;Lucca        
                recruit_pool "Italian Spear Militia"  1   0.45   4  0  requires factions { lucca, }  and hidden_resource R6 and hidden_resource R2
            }
            material wooden
            construction  8 
            cost  6000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building art
{
    levels artist_studio artist_gallery 
    {
        artist_studio city requires factions { milan, venice, papal_states, poland, sicily, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource mittelstadt
        {
            capability
            {
                happiness_bonus bonus 2
            }
            material wooden
            construction  3 
            cost  2500 
            settlement_min large_city
            upgrades
            {
                artist_gallery
            }
        }
        artist_gallery city requires factions { milan, venice, papal_states, poland, sicily, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource grossstadt
        {
            capability
            {
                happiness_bonus bonus 2
                population_health_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  5000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building bank
{
    levels merchant_bank merchant_vault 
    {
        merchant_bank city requires factions { hre, venice, milan, poland, sicily, normans, denmark, russia, lucca, }  and hidden_resource mittelstadt
        {
            capability
            {
                trade_base_income_bonus bonus 2 requires not factions { hre, denmark, }
		
		trade_base_income_bonus bonus 3  requires factions {  poland, russia, lucca, }

                trade_base_income_bonus bonus 2  requires factions { hre, }  and not event_counter jakob_fugger 1
                trade_base_income_bonus bonus 4  requires factions { hre, }  and event_counter jakob_fugger 1

                agent_limit merchant 1
            }
            material wooden
            construction  4 
            cost  5000 
            settlement_min large_city
            upgrades
            {
                merchant_vault
            }
        }
        merchant_vault city requires factions { hre, venice, milan, poland, sicily, denmark, russia, lucca, }  and hidden_resource grossstadt
        {
            capability
            {
                trade_base_income_bonus bonus 4 requires not factions { hre, denmark, }

		trade_base_income_bonus bonus 5  requires factions {  poland, russia, lucca, }

                trade_base_income_bonus bonus 4  requires factions { hre, }  and not event_counter jakob_fugger 1
                trade_base_income_bonus bonus 6  requires factions { hre, }  and event_counter jakob_fugger 1

                agent_limit merchant 1
            }
            material wooden
            construction 8 
            cost  10000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building paper
{
    levels printing_press printing_house 
    {
        printing_press city requires factions { hre, saxons, milan, venice, spain, papal_states, france, hungary, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource mittelstadt
        {
            capability
            {
                happiness_bonus bonus 1
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  5000 
            settlement_min large_city
            upgrades
            {
                printing_house
            }
        }
        printing_house city requires factions { hre, saxons, milan, venice, spain, papal_states, france, hungary, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource grossstadt
        {
            capability
            {
                happiness_bonus bonus 2
                trade_base_income_bonus bonus 4
            }
            material wooden
            construction  8 
            cost  1000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building icon_art
{
    levels ikoner_studio master_ikoner_studio 
    {
        ikoner_studio city requires factions { greek, } 
        {
            capability
            {
                population_health_bonus bonus 1
                amplify_religion_level 1.5
            }
            material wooden
            construction  3 
            cost  4800 
            settlement_min large_city
            upgrades
            {
                master_ikoner_studio
            }
        }
        master_ikoner_studio city requires factions { greek, } 
        {
            capability
            {
                population_health_bonus bonus 2
                amplify_religion_level 2
            }
            material wooden
            construction  6 
            cost  9600 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building music
{
    levels theatre conservatorium 
    {
        theatre city requires factions { france, spain, byzantium, england, }  and hidden_resource mittelstadt
        {
            capability
            {
                happiness_bonus bonus 2
            }
            material wooden
            construction  4 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                conservatorium
            }
        }
        conservatorium city requires factions { france, spain, byzantium, england, }  and hidden_resource grossstadt
        {
            capability
            {
                happiness_bonus bonus 4
            }
            material wooden
            construction  6 
            cost  8000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building tourney
{
    levels jousting_lists tourney_fields 
    {
        jousting_lists castle requires factions { hre, france, england, portugal, spain, byzantium, england, }
        {
            capability
            {
                heavy_cavalry_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  2000 
            settlement_min city
            upgrades
            {
                tourney_fields
            }
        }
        tourney_fields castle requires factions { hre, france, england, portugal, spain, byzantium, england, }
        {
            capability
            {
                happiness_bonus bonus 1
                heavy_cavalry_bonus bonus 2
            }
            material wooden
            construction  6 
            cost  4500 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building castle_academic
{
    levels library academy 
    {
        library castle requires factions { denmark, scotland, hungary, poland, } 
        {
            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, } 
            }
            material wooden
            construction  3 
            cost  1600 
            settlement_min large_city
            upgrades
            {
                academy
            }
        }
        academy castle requires factions { denmark, scotland, hungary, poland, } 
        {
            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, } 
            }
            material wooden
            construction  6 
            cost  3200 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building caravan
{
    levels caravan_stop caravanersary 
    {
        caravan_stop castle requires factions { egypt, } 
        {
            capability
            {
                trade_level_bonus bonus 3
            }
            material wooden
            construction  3 
            cost  2400 
            settlement_min large_town
            upgrades
            {
                caravanersary
            }
        }
        caravanersary castle requires factions { egypt, } 
        {
            capability
            {
                trade_level_bonus bonus 6
            }
            material wooden
            construction  6 
            cost  4800 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building masons_guild
{
    levels masons_guild m_masons_guild gm_masons_guild 
    {
        masons_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt
        {
            capability
            {
                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, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt
        {
            capability
            {
                construction_cost_bonus_stone bonus 30
                happiness_bonus bonus 1
            }
            faction_capability
            {
                construction_cost_bonus_stone bonus 20
            }
            material stone
            construction  2
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_masons_guild
            }
        }
        gm_masons_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource grossstadt
        {
            capability
            {
                construction_cost_bonus_stone bonus 30
                happiness_bonus bonus 2
            }
            faction_capability
            {
                construction_cost_bonus_stone bonus 30
            }
            material stone
            construction  4 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building merchants_guild
{
    levels merchants_guild m_merchants_guild gm_merchants_guild 
    {
        merchants_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt
        {
            capability
            {
                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, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt
        {
            capability
            {
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  2 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_merchants_guild
            }
        }
        gm_merchants_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource grossstadt
        {
            capability
            {
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  4 
            cost  3000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building st_johns_chapter_house
{
    religion catholic
    levels st_johns_minor_ch st_johns_major_ch st_johns_hq 
    {
        st_johns_minor_ch  requires factions { hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, denmark, byzantium, england, russia, scotland, savoy, montferrat, timurids, urbino, lucca, }  and hidden_resource kleinstadt
        {
            capability
            {
                population_health_bonus bonus 1
                religion_level bonus 1
            }
            material stone
            construction  4 
            cost  3500 
            settlement_min city
            upgrades
            {
                st_johns_major_ch
            }
        }
        st_johns_major_ch  requires factions { hre, france, venice, hungary, spain, papal_states, milan, saxons, sicily, poland, denmark, byzantium, england, russia, scotland, savoy, montferrat, timurids, urbino, lucca, }  and hidden_resource hospitaller and hidden_resource mittelstadt
        {
            capability
            {
                recruit_pool "Johanniter Schwert"  1   0.3   2  0  requires factions { hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, byzantium, england, russia, scotland, denmark, savoy, montferrat, timurids, urbino, lucca, } 
                population_health_bonus bonus 2
                religion_level bonus 1
            }
            material stone
            construction  6 
            cost  6000 
            settlement_min large_city
            upgrades
            {
                st_johns_hq
            }
        }
        st_johns_hq  requires factions { hre, france, venice, hungary, spain, papal_states, milan, saxons, sicily, poland, denmark, byzantium, england, russia, scotland, savoy, montferrat, timurids, urbino, lucca, }  and hidden_resource hospitaller and hidden_resource grossstadt
        {
            capability
            {
                recruit_pool "Johanniter Schwert"  1   0.37   2  1  requires factions { hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, byzantium, england, russia, scotland, denmark, montferrat, timurids, urbino, lucca, } 
                recruit_pool "Crossbowmen"  1   0.37   2  1  requires factions { hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, byzantium, england, russia, scotland, denmark, montferrat, timurids, urbino, lucca, } 
                recruit_pool "Johanniter Beritten"  1   0.3   1  0  requires factions { hre, france, venice, hungary, spain, papal_states, milan, saxons, poland, sicily, normans, byzantium, england, russia, scotland, denmark, montferrat, timurids, urbino, lucca, } 
                population_health_bonus bonus 3
                religion_level bonus 1
            }
            material stone
            construction  8 
            cost  7500 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building swordsmiths_guild
{
    levels swordsmiths_guild m_swordsmiths_guild gm_swordsmiths_guild 
    {
        swordsmiths_guild  requires factions { northern_european, eastern_european, greek, southern_european, }   and hidden_resource kleinstadt  and hidden_resource weapon_smith
        {
            capability
            {
                weapon_melee_blade 1
                weapon_projectile 1

            }
            material wooden
            construction  2 
            cost  1000 
            settlement_min city
            upgrades
            {
                m_swordsmiths_guild
            }
        }
        m_swordsmiths_guild  requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt  and hidden_resource weapon_smith 
        {
            capability
            {
                weapon_melee_blade 1
                weapon_projectile 1
            }
            faction_capability
            {
                heavy_cavalry_bonus bonus 1
            }
            material wooden
            construction  3 
            cost  2000 
            settlement_min large_city
            upgrades
            {
                gm_swordsmiths_guild
            }
        }
        gm_swordsmiths_guild  requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource grossstadt  and hidden_resource weapon_smith 
        {
            capability
            {
                weapon_melee_blade 1
                weapon_projectile 1
            }
            faction_capability
            {
                heavy_cavalry_bonus bonus 1
            }
            material wooden
            construction  5 
            cost  3000 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building wool_weaver_guild
{
    levels weaver_guild m_weaver_guild gm_weaver_guild 
    {
        weaver_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt  and hidden_resource wool_weaver
        {
            capability
            {
                taxable_income_bonus bonus 1
                trade_base_income_bonus bonus 1
            }
            material stone
            construction  2 
            cost  2000 
            settlement_min city
            upgrades
            {
                m_weaver_guild
            }
        }
        m_weaver_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt and hidden_resource wool_weaver
        {
            capability
            {
                taxable_income_bonus bonus 5
                trade_base_income_bonus bonus 2
            }
            material stone
            construction  4 
            cost  4000 
            settlement_min large_city
            upgrades
            {
                gm_weaver_guild
            }
        }
        gm_weaver_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource grossstadt and hidden_resource wool_weaver
        {
            capability
            {
                taxable_income_bonus bonus 10
                trade_base_income_bonus bonus 2
                retrain_cost_bonus bonus 1
            }
            material stone
            construction  7
            cost  6000
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building silk_weaver_guild
{
    levels silk_guild m_silk_guild gm_silk_guild 
    {
        silk_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource kleinstadt  and hidden_resource silk_weaver
        {
            capability
            {
                taxable_income_bonus bonus 2
                trade_base_income_bonus bonus 1
            }
            material stone
            construction  2 
            cost  2500
            settlement_min city
            upgrades
            {
                m_silk_guild
            }
        }
        m_silk_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource mittelstadt and hidden_resource silk_weaver
        {
            capability
            {
                taxable_income_bonus bonus 3
                trade_base_income_bonus bonus 2
                happiness_bonus bonus 1
            }
            material stone
            construction  4
            cost  4500 
            settlement_min large_city
            upgrades
            {
                gm_silk_guild
            }
        }
        gm_silk_guild city requires factions { northern_european, eastern_european, greek, southern_european, }  and hidden_resource grossstadt and hidden_resource silk_weaver
        {
            capability
            {
                taxable_income_bonus bonus 5
                trade_base_income_bonus bonus 3
                happiness_bonus bonus 2
            }
            material stone
            construction  7 
            cost  6500
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building convert_to_castle
{
    levels village_to_wooden_castle small_town_to_stone_keep large_town_to_castle 
    {
        village_to_wooden_castle city requires factions {  } 
        {
            capability
            {
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min village
            upgrades
            {
                small_town_to_stone_keep
            }
        }
        small_town_to_stone_keep city requires factions {  } 
        {
            capability
            {
            }
            material wooden
            construction  1 
            cost  1600 
            settlement_min town
            upgrades
            {
                large_town_to_castle
            }
        }
        large_town_to_castle city requires factions {  } 
        {
            capability
            {
            }
            material wooden
            construction  2 
            cost  3200 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building convert_to_city
{
    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 {  } 
        {
            capability
            {
            }
            material wooden
            construction  1 
            cost  800 
            settlement_min village
            upgrades
            {
                stone_keep_to_small_town
            }
        }
        stone_keep_to_small_town castle requires factions {  } 
        {
            capability
            {
            }
            material wooden
            construction  1 
            cost  1200 
            settlement_min town
            upgrades
            {
                castle_to_large_town
            }
        }
        castle_to_large_town castle requires factions {  } 
        {
            capability
            {
            }
            material wooden
            construction  2 
            cost  1600 
            settlement_min large_town
            upgrades
            {
                large_castle_to_city
            }
        }
        large_castle_to_city castle requires factions { } 
        {
            capability
            {
            }
            material wooden
            construction  2 
            cost  3200 
            settlement_min city
            upgrades
            {
                fortress_to_city
            }
        }
        fortress_to_city castle requires factions {  } 
        {
            capability
            {
            }
            material wooden
            construction  3 
            cost  6400 
            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  15000 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building town_quarter_jewish
{
    religion pagan
    levels jewish_quarter
    {
        jewish_quarter city requires factions { hre, france, hungary, venice, milan, spain, saxons, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource kleinstadt
        {
            capability
            {
                trade_base_income_bonus bonus 2
                population_health_bonus bonus 2
                law_bonus bonus -1
            }
            material stone
            construction  7
            cost  6000
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building catholic_jesuiten_kolleg
{
    religion catholic
    levels jesuiten_kolleg
    {
        jesuiten_kolleg city requires factions { hre, france, hungary, venice, milan, spain, saxons, papal_states, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, } and event_counter jesuiten 1 and hidden_resource mittelstadt
        {
            capability
            {
                religion_level bonus 2
                law_bonus bonus 1
            }
            material stone
            construction  4
            cost  2500
            settlement_min city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building prinzen_schule_mantua
{
    levels prinzen_schule
    {
        prinzen_schule city requires factions { hre, france, hungary, venice, milan, spain, saxons, papal_states, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource mantua
        {
            capability
            {
                religion_level bonus 2
                law_bonus bonus 3
                heavy_cavalry_bonus bonus 2
            }
            material stone
            construction  5
            cost  5000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building palazzo_ducale_modena
{
    levels palazzo_ducale
    {
        palazzo_ducale city requires factions { hre, france, hungary, venice, milan, spain, saxons, papal_states, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource modena
        {
            capability
            {
                taxable_income_bonus bonus -10
		        free_upkeep bonus 2
                law_bonus bonus 3
                happiness_bonus bonus 1
            }
            material stone
            construction  8
            cost  10000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building seidenmanufaktur_lucca
{
    levels seidenmanufaktur
    {
        seidenmanufaktur city requires factions { hre, france, hungary, venice, milan, spain, saxons, papal_states, poland, sicily, normans, denmark, byzantium, england, russia, scotland, savoy, montferrat, urbino, timurids, lucca, }  and hidden_resource lucca
        {
            capability
            {
                trade_base_income_bonus bonus 4
            }
            material stone
            construction  6
            cost  4500
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_handel_noli
{
    levels handel_noli
    {
        handel_noli city requires factions { northern_european, middle_eastern, greek, eastern_european, southern_european, } and hidden_resource noli
        {
            capability
            {
                trade_fleet 1
                trade_base_income_bonus bonus 2
            }
            material wooden
            construction  1 
            cost  400 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_handel_ragusa
{
    levels handel_ragusa
    {
        handel_ragusa city requires factions { northern_european, middle_eastern, greek, eastern_european, southern_european, } and hidden_resource ragusa
        {
            capability
            {
                trade_fleet 3
                trade_base_income_bonus bonus 4
            }
            material wooden
            construction  1 
            cost  400 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_handel_ancona
{
    levels handel_ancona
    {
        handel_ancona city requires factions { northern_european, middle_eastern, greek, eastern_european, southern_european, } and hidden_resource ancona
        {
            capability
            {
                trade_fleet 2
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  1 
            cost  400 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_handel_gaeta
{
    levels handel_gaeta
    {
        handel_gaeta city requires factions { northern_european, middle_eastern, greek, eastern_european, southern_european, } and hidden_resource gaeta
        {
            capability
            {
                trade_fleet 2
                trade_base_income_bonus bonus 3
            }
            material wooden
            construction  1 
            cost  400 
            settlement_min town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building ros_temp_buildings
{
    levels ros_po_bonus ros_target
    {
        ros_po_bonus city requires factions {   } 
        {
            capability
            {
                law_bonus bonus 20 requires not building_present_min_level ros_temp_buildings ros_target
                population_health_bonus bonus 20 requires not building_present_min_level ros_temp_buildings ros_target
                happiness_bonus bonus 20 requires not building_present_min_level ros_temp_buildings ros_target
            }
            material wooden
            construction  1 
            cost  0 
            settlement_min village
            upgrades
            {
                ros_target
            }
        }
        ros_target city requires factions {   } 
        {
            capability
            {
                law_bonus bonus -20
                population_health_bonus bonus -20
                happiness_bonus bonus -20
            }
            material wooden
            construction  1 
            cost  0 
            settlement_min village
            upgrades
            {
            }
        }
    }
    plugins
    {
    }
}
building kaiserliches_hofgericht_rottweil
{
    levels kaiserliches_hofgericht
    {
        kaiserliches_hofgericht city requires factions { hre, normans, }  and hidden_resource rottweil
        {
            capability
            {
                law_bonus bonus 3
                trade_base_income_bonus bonus 2
            }
            material stone
            construction  4
            cost  4000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building hinterland_burg_waldburg
{
    levels waldburg
    {
        waldburg city requires factions { normans, }  and hidden_resource stammburg_waldburg
        {
            capability
            {
                recruit_pool "wald_Imperial Knights"  1   0.3   1  0  requires factions { normans, } and not event_counter no_waldburg 1 
                law_bonus bonus 3
            }
            material stone
            construction  4
            cost  4000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}

building hinterland_burg_montfort
{
    levels montfort
    {
        montfort city requires factions { normans, }  and hidden_resource stammburg_montfort
        {
            capability
            {
                recruit_pool "mont_Imperial Knights"  1   0.3   1  0  requires factions { normans, } and not event_counter no_montfort 1  
                law_bonus bonus 3
            }
            material stone
            construction  4
            cost  4000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building petersdom_rom
{
    levels petersdom
    {
        petersdom city requires factions { papal_states, }  and hidden_resource grossstadt and hidden_resource roma
        {
            capability
            {
                happiness_bonus bonus 5 requires factions { papal_states, }
                agent_limit priest 1
                population_health_bonus bonus 4
            }
            material stone
            construction  10 
            cost  60000 
            settlement_min huge_city
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building burg_ferrara
{
    levels castello
    {
        castello city requires factions { england, }  and hidden_resource mittelstadt and hidden_resource ferrara
        {
            capability
            {
                happiness_bonus bonus 10 requires factions { england, }
                law_bonus bonus 4
            }
            material stone
            construction  8 
            cost  9000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building modena_ghirlondina 
{
    levels ghirlondina 
    {
        ghirlondina city requires factions { england, }  and hidden_resource mittelstadt and hidden_resource modena
        {
            capability
            {
                happiness_bonus bonus 2
		religion_level bonus 10
            }
            material stone
            construction  5 
            cost  7000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building genoa_bank
{
    levels banco
    {
        banco city requires factions { denmark, }  and hidden_resource mittelstadt and hidden_resource sparta
        {
            capability
            {
                happiness_bonus bonus 1
		trade_base_income_bonus bonus 2
		trade_fleet 2
		free_upkeep bonus 1
		construction_cost_bonus_stone 10
            }
            material stone
            construction  6 
            cost  9500 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building genoa_leuchtturm
{
    levels leuchtturm
    {
        leuchtturm city requires factions { denmark, }  and hidden_resource mittelstadt and hidden_resource sparta
        {
            capability
            {
                happiness_bonus bonus 1
		trade_base_income_bonus bonus 2
		trade_fleet 2
            }
            material stone
            construction  5
            cost  8000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building palazzo_ducale_mantua
{
    levels palazzo_ducale_m
    {
        palazzo_ducale_m city requires factions { byzantium, }  and hidden_resource mantua
        {
            capability
            {
                taxable_income_bonus bonus -10
                law_bonus bonus 3
                happiness_bonus bonus 1
            }
            material stone
            construction  8
            cost  10000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building palazzo_pubblico_siena
{
    levels palazzo_pubblico
    {
        palazzo_pubblico city requires factions { russia, }  and hidden_resource siena
        {
            capability
            {
				free_upkeep bonus 1
                law_bonus bonus 2
                happiness_bonus bonus 1
            }
            material stone
            construction  6
            cost  8000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building ospedale_siena
{
    levels ospedale
    {
        ospedale city requires factions { russia, }  and hidden_resource siena
        {
            capability
            {
                happiness_bonus bonus 2
				population_growth_bonus bonus 1
				population_health_bonus bonus 2
            }
            material stone
            construction  5
            cost  6500
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building madrasat_tunis 
{
    levels madrasat
    {
        madrasat city requires factions { egypt, }  and hidden_resource mittelstadt and hidden_resource tunis
        {
            capability
            {
                happiness_bonus bonus 2
				religion_level bonus 10
				agent_limit priest 1
            }
            material stone
            construction  5 
            cost  7000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building souks_tunis
{
    levels souks
    {
        souks city requires factions { egypt, }  and hidden_resource tunis
        {
            capability
            {
                taxable_income_bonus bonus 10
                happiness_bonus bonus 1
				trade_base_income_bonus bonus 2
				population_growth_bonus bonus 1
            }
            material stone
            construction  4
            cost  5000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building rektoren_palast_ragusa
{
    levels rektoren_palast
    {
        rektoren_palast city requires factions { scotland, }  and hidden_resource ragusa
        {
            capability
            {
				free_upkeep bonus 1
                law_bonus bonus 2
                happiness_bonus bonus 1
            }
            material stone
            construction  6
            cost  8000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building festung_lovrijenac_ragusa
{
    levels festung_lovrijenac
    {
        festung_lovrijenac city requires factions { scotland, }  and hidden_resource ragusa
        {
            capability
            {
				free_upkeep bonus 2
                law_bonus bonus 2
                taxable_income_bonus bonus -5
            }
            material stone
            construction  6
            cost  8000
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building trading_post_fugger 
{
    levels fugger_factory
    {
        fugger_factory city requires factions { northern_european, southern_european, eastern_european, }  and hidden_resource fugger
        {
            capability
            {
                taxable_income_bonus bonus -2
                trade_base_income_bonus bonus 4
                agent_limit merchant 1
            }
            material stone
            construction  3 
            cost  4000 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building trading_post_welser
{
    levels welser_factory
    {
        welser_factory city requires factions { northern_european, southern_european, eastern_european, }  and hidden_resource welser
        {
            capability
            {
                taxable_income_bonus bonus -1
                trade_base_income_bonus bonus 3
                agent_limit merchant 1
            }
            material stone
            construction  3 
            cost  3300 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}
building cattle_markets
{
    levels cattle_market
    {
        cattle_market city requires factions { northern_european, southern_european, eastern_european, }  and hidden_resource cattle_market
        {
            capability
            {
                taxable_income_bonus bonus 5
                trade_base_income_bonus bonus 2
                population_growth_bonus bonus 1
            }
            material stone
            construction  3 
            cost  3300 
            settlement_min large_town
            upgrades
            {
            }
        }
    }
    plugins 
    {
    }
}