﻿shlachtech_dvor_building_01 = {
    construction_time = 730
    type = duchy_capital
    type_icon = "icon_building_shelhtich_palace.dds"

    can_construct_potential = {
        building_requirement_tribal = no
        culture = { has_cultural_pillar = heritage_west_slavic }
    }

    can_construct = {
        building_requirement_castle_city_church = { LEVEL = 01 }
    }

    is_enabled = {
        culture = { has_cultural_pillar = heritage_west_slavic }
    }

    show_disabled = yes
    cost = { gold = 550 }

    character_modifier = {
        diplomacy = 1
        monthly_prestige_gain_mult = 0.12
        vassal_opinion = 4
        stress_loss_mult = 0.04
    }

    province_modifier = {
        tax_mult = 0.05
        garrison_size = 0.08
        defender_holding_advantage = 1
    }

    county_modifier = {
        development_growth_factor = 0.04
        monthly_county_control_growth_add = 0.10
        county_opinion_add = 4
    }

    ai_value = { base = 25 }
}

dwor_staroscinski_01 = {
    construction_time = 730
    type = duchy_capital
    type_icon = "icon_building_starosta_house.dds"

    can_construct_potential = {
        building_requirement_tribal = no
        culture = { has_cultural_pillar = heritage_west_slavic }
    }

    can_construct = {
        building_requirement_castle_city_church = { LEVEL = 01 }
    }

    is_enabled = {
        culture = { has_cultural_pillar = heritage_west_slavic }
    }

    show_disabled = yes
    cost = { gold = 400 }
    next_building = dwor_staroscinski_02

    character_modifier = {
        stewardship = 1
        vassal_tax_contribution_mult = 0.03
    }

    province_modifier = {
        tax_mult = 0.06
        levy_size = 0.04
        defender_holding_advantage = 1
    }

    county_modifier = {
        monthly_county_control_growth_add = 0.20
        county_opinion_add = 3
        development_growth_factor = 0.03
    }

    ai_value = { base = 22 }
}

dwor_staroscinski_02 = {
    construction_time = 1095
    type = duchy_capital
    type_icon = "icon_building_starosta_house.dds"

    can_construct_potential = {
        building_requirement_tribal = no
        culture = { has_cultural_pillar = heritage_west_slavic }
    }

    can_construct = {
        building_requirement_castle_city_church = { LEVEL = 01 }
    }

    is_enabled = {
        culture = { has_cultural_pillar = heritage_west_slavic }
    }

    show_disabled = yes
    cost = { gold = 750 }

    character_modifier = {
        stewardship = 2
        vassal_tax_contribution_mult = 0.06
        monthly_prestige_gain_mult = 0.04
    }

    province_modifier = {
        tax_mult = 0.09
        levy_size = 0.06
        garrison_size = 0.08
        defender_holding_advantage = 2
    }

    county_modifier = {
        monthly_county_control_growth_add = 0.35
        county_opinion_add = 5
        development_growth_factor = 0.05
    }

    ai_value = { base = 30 }
}

poznan_arsenal_01 = {
    construction_time = 1095
    type = special
    type_icon = "icon_building_poznan_arsenal.dds"
    cost = { gold = 1150 }

    can_construct_potential = {
        building_requirement_tribal = no
    }

    can_construct = {
        exists = scope:holder
        scope:holder = {
            OR = {
                has_title = title:e_polish_commonwealth
                has_primary_title = title:e_polish_commonwealth
                top_liege = { has_title = title:e_polish_commonwealth }
                top_liege = { has_primary_title = title:e_polish_commonwealth }
            }
        }
    }

    is_enabled = {
        exists = scope:holder
        scope:holder = {
            OR = {
                has_title = title:e_polish_commonwealth
                has_primary_title = title:e_polish_commonwealth
                top_liege = { has_title = title:e_polish_commonwealth }
                top_liege = { has_primary_title = title:e_polish_commonwealth }
            }
        }
    }

    show_disabled = yes

    character_modifier = {
        martial = 1
        knight_effectiveness_mult = 0.08
        monthly_prestige_gain_mult = 0.05
    }

    province_modifier = {
        levy_size = 0.10
        garrison_size = 0.20
        tax_mult = 0.04
        defender_holding_advantage = 4
    }

    county_modifier = {
        monthly_county_control_growth_add = 0.10
        development_growth_factor = 0.04
    }

    ai_value = { base = 80 }
    effect_desc = poznan_arsenal_01_effect_desc
}

lublin_union_castle_01 = {
    construction_time = 1095
    type = special
    type_icon = "icon_building_lublin_union_castle.dds"
    cost = { gold = 1200 }

    can_construct_potential = {
        building_requirement_tribal = no
    }

    can_construct = {
        exists = scope:holder
        scope:holder = {
            OR = {
                has_title = title:e_polish_commonwealth
                has_primary_title = title:e_polish_commonwealth
                top_liege = { has_title = title:e_polish_commonwealth }
                top_liege = { has_primary_title = title:e_polish_commonwealth }
            }
        }
    }

    is_enabled = {
        exists = scope:holder
        scope:holder = {
            OR = {
                has_title = title:e_polish_commonwealth
                has_primary_title = title:e_polish_commonwealth
                top_liege = { has_title = title:e_polish_commonwealth }
                top_liege = { has_primary_title = title:e_polish_commonwealth }
            }
        }
    }

    show_disabled = yes

    character_modifier = {
        diplomacy = 2
        stewardship = 1
        vassal_opinion = 6
        monthly_prestige_gain_mult = 0.12
    }

    province_modifier = {
        tax_mult = 0.06
        defender_holding_advantage = 2
    }

    county_modifier = {
        development_growth_factor = 0.08
        monthly_county_control_growth_add = 0.15
        county_opinion_add = 5
    }

    ai_value = { base = 100 }
    effect_desc = lublin_union_castle_01_effect_desc
}
