﻿#Шляхтыч двор

shlachtech_dvor_building_01 = {
    construction_time = slow_construction_time
    type_icon = "icon_building_shelhtich_palace.dds" 

    can_construct_potential = {
        building_requirement_tribal = no
        culture = { has_cultural_pillar = heritage_west_slavic }
    }
    
    is_enabled = {
        county.holder = { has_title = prev.duchy }
        culture = { has_cultural_pillar = heritage_west_slavic }
    }
    show_disabled = yes

    cost_gold = 600

 character_modifier = {
    diplomacy = 2  
    stewardship = 2  
    monthly_prestige_gain_mult = 0.3  
    stress_loss_mult = 0.2  
}

 province_modifier = {
    garrison_size = 0.3  
    tax_mult = 0.15  
    defender_holding_advantage = 4  
}

 county_modifier = {
    monthly_county_control_growth_add = 0.3  
    development_growth = 0.15  
}

 duchy_capital_county_modifier = {
    knight_effectiveness_mult = 0.2  
    vassal_opinion = 10  
}
    type = duchy_capital
}

#Двор старосты

dwor_staroscinski_01 = {
    construction_time = slow_construction_time
    type_icon = "icon_building_starosta_house.dds"  

    can_construct_potential = {
        building_requirement_tribal = no
        culture = { has_cultural_pillar = heritage_west_slavic }
    }
    
    is_enabled = {
        county.holder = { has_title = prev.duchy }
        culture = { has_cultural_pillar = heritage_west_slavic }
    }
    show_disabled = yes

    cost_gold = 350

 character_modifier = {
    stewardship = 2  # Староста – опытный администратор
    monthly_prestige_gain_mult = 0.05  
    stress_loss_mult = 0.1  
}

 province_modifier = {
    levy_size = 0.05  
    defender_holding_advantage = 3  
}

 county_modifier = {
    monthly_county_control_growth_add = 0.3  
    domain_tax_mult = 0.1 
}

 duchy_capital_county_modifier = {
    vassal_tax_mult = 0.05
    monthly_county_control_growth_factor = 0.1
}


    next_building = dwor_staroscinski_02
    type = duchy_capital
}

dwor_staroscinski_02 = {
    construction_time = slow_construction_time
    type_icon = "icon_building_starosta_house.dds"  

    can_construct_potential = {
        building_requirement_tribal = no
        culture = { has_cultural_pillar = heritage_west_slavic }
    }
    
    is_enabled = {
        county.holder = { has_title = prev.duchy }
        culture = { has_cultural_pillar = heritage_west_slavic }
    }
    show_disabled = yes

    cost_gold = 700

character_modifier = {
    stewardship = 3  
    monthly_prestige_gain_mult = 0.1 
    stress_loss_mult = 0.15 
}

province_modifier = {
    levy_size = 0.1 
    defender_holding_advantage = 5 
}

county_modifier = {
    monthly_county_control_growth_add = 0.4 
    domain_tax_mult = 0.15 
}

duchy_capital_county_modifier = {
    vassal_tax_mult = 0.1
    monthly_county_control_growth_factor = 0.2
}
    
    type = duchy_capital
}

#################################################################################

# Познаньская оружейня
poznan_arsenal_01 = {
    type = special
    type_icon = "icon_building_szlachtech_palace.dds"
    construction_time = slow_construction_time
    cost = { gold = 1500 }

can_construct = {
    ROOT = {
        owner = {
            OR = {
                prestige_level >= 2

                primary_title = {
                    has_law = crown_authority_2
                }
            }
        }
    }
}

is_enabled = {
    culture = { has_cultural_pillar = heritage_west_slavic }
    ROOT = {
        owner = {
            prestige_level >= 2
        }
    }
}

    character_modifier = {
        diplomacy = 2
        stewardship = 2
        monthly_prestige_gain_mult = 0.3
        stress_loss_mult = 0.2
        knight_effectiveness_mult = 0.15
        vassal_opinion = 5
        domain_tax_mult = 0.1
        vassal_tax_mult = 0.05
    }

    province_modifier = {
        levy_size = 0.2
        garrison_size = 0.25
        tax_mult = 0.15
        defender_holding_advantage = 4
        holding_construction_gold_cost_mult = -0.1
    }

    county_modifier = {
        monthly_county_control_growth_add = 0.3
        development_growth_factor = 0.15
    }

    duchy_capital_county_modifier = {
        men_at_arms_damage_mult = 0.1
        men_at_arms_reinforcement_rate_mult = 0.1
    }

    ai_value = { base = 100 }
    effect_desc = poznan_arsenal_01_effect_desc

    type = special
}

# Люблинский замок унии
lublin_union_castle_01 = {
    type = special
    construction_time = slow_construction_time
    cost = { gold = 1200 }
    type_icon = "icon_building_lublin_union_castle.dds"

    can_construct_potential = {
    always = yes
}

    can_construct = {
    ROOT = {
        owner = {
        has_title = title:e_polish_commonwealth
        }
    }
}

    is_enabled = {
    ROOT = {
        owner = {
        has_title = title:e_polish_commonwealth
        }
    }
}


    show_disabled = yes

    character_modifier = {
        diplomacy = 3
        stewardship = 2
        monthly_prestige_gain_mult = 0.3
    }

    province_modifier = {
        tax_mult = 0.15
        development_growth_factor = 0.15
    }

    duchy_capital_county_modifier = {
        vassal_opinion = 10
    }

    ai_value = { base = 100 }
    effect_desc = lublin_union_castle_01_effect_desc
}
