
feudal_governments = {

    Bear_feudal_gov = {
        color = {150 220 0}
        potential = {
            religion = Bears_religion
            culture_group = bear_group
            NOT = { is_government_potential = order_government }
        }
        forced_contract = { feudal_government muslim_government theocratic_feudal_government roman_imperial_government theocracy_government }


        can_build_forts = yes
        can_build_castle = yes
        can_build_city = yes
        can_build_temple = yes
        can_build_tribal = no
        preferred_holdings = { CASTLE }
        allowed_holdings = { CASTLE FORT HOSPITAL }
        allowed_holdings_culture = { TRIBAL }
        free_revoke_on_tiers = { baron }

        can_grant_kingdoms_and_empires_to_other_government_group = yes
        max_consorts = 3

        capital_move_delay = 180
        men_can_take_consorts = yes
        women_can_take_consorts = yes
    }
    Hedge_feudal_gov = {
        color = { 18 97 165 }
        potential = {
            religion = Hedge_religion
            culture_group = hedgehog_group
            NOT = { is_government_potential = order_government }
        }
        forced_contract = { feudal_government muslim_government theocratic_feudal_government roman_imperial_government theocracy_government }

        can_build_forts = yes
        can_build_castle = yes
        can_build_city = yes
        can_build_temple = yes
        can_build_tribal = no
        preferred_holdings = { CASTLE }
        allowed_holdings = { CASTLE FORT HOSPITAL }
        allowed_holdings_culture = { TRIBAL }

        can_grant_kingdoms_and_empires_to_other_government_group = yes

        max_consorts = 0
        capital_move_delay = 180
    }
    panda_bureaucratic_gov = {
        color = { 0 140 220 }
        potential = {
            religion = Panda_religion
            culture_group = panda_group
            NOT = { is_government_potential = order_government }
            OR = {
                independent = yes
                liege = {
                    OR = {
                        NOR = {
                            government = panda_bureaucratic_gov
                            government = panda_bureaucratic_gov_bis
                        }
                        AND = {
                            government = panda_bureaucratic_gov
                            NOR = {
                                has_law = panda_vassal_allowed
                                AND = {
                                    has_law = panda_vassal_count_allowed
                                    PREV = { tier = COUNT }
                                }
                            }
                        }
                    }
                }
            }
        }
        forced_contract = { muslim_government theocratic_feudal_government roman_imperial_government theocracy_government }


        can_build_forts = yes
        can_build_castle = yes
        can_build_city = yes
        can_build_temple = yes
        can_build_tribal = no
        uses_bride_price = yes
        allowed_holdings = { CASTLE FORT HOSPITAL }
        allowed_holdings_culture = { TRIBAL }
        preferred_holdings = { CASTLE }
        free_revoke_on_tiers = { baron }
        ignore_in_vassal_limit_calculation = { panda_bureaucratic_gov_bis }

        can_usurp_kingdoms_and_empires = no
        max_consorts = 5

        capital_move_delay = 3000
        men_can_take_consorts = yes
        women_can_take_consorts = yes
        marriage_ignore_religion = yes
        aggression = 0.5
    }
    panda_bureaucratic_gov_bis = {
        color = { 0 140 220 }
        potential = {
            religion = Panda_religion
            culture_group = panda_group
            independent = no
            liege = {
                OR = {
                    government = panda_bureaucratic_gov_bis
                    AND = {
                        government = panda_bureaucratic_gov
                        OR = {
                            has_law = panda_vassal_allowed
                            AND = {
                                has_law = panda_vassal_count_allowed
                                PREV = { tier = COUNT }
                            }
                        }
                    }
                }
            }
        }
        forced_contract = { muslim_government theocratic_feudal_government roman_imperial_government theocracy_government }


        can_build_forts = yes
        can_build_castle = yes
        can_build_city = yes
        can_build_temple = yes
        can_build_tribal = no
        uses_bride_price = yes
        allowed_holdings = { CASTLE FORT HOSPITAL }
        allowed_holdings_culture = { TRIBAL }
        preferred_holdings = { CASTLE }
        free_revoke_on_tiers = { baron }

        can_usurp_kingdoms_and_empires = no
        can_grant_kingdoms_and_empires_to_other_government = no
        max_consorts = 5

        capital_move_delay = 3000
        men_can_take_consorts = yes
        women_can_take_consorts = yes
        marriage_ignore_religion = yes
        aggression = 0.5

        accepts_liege_governments = { panda_bureaucratic_gov }
    }
    Duck_feudal_gov = {
        color = {70 70 220}
        potential = {
            religion = Duck_religion
            culture_group = duck_group
            NOT = { is_government_potential = order_government }
        }
        forced_contract = { feudal_government muslim_government theocratic_feudal_government roman_imperial_government theocracy_government }
        # merchant_republic = yes

        can_build_forts = yes
        can_build_castle = yes
        can_build_city = yes
        can_build_temple = yes
        can_build_tribal = no

        accepts_liege_governments = { }
        free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
		}
        ignore_in_vassal_limit_calculation = {
			tribal_government
		}
        preferred_holdings = { CASTLE }
        allowed_holdings = { TRADE_POST CASTLE FORT HOSPITAL }
        allowed_holdings_culture = { TRIBAL }
        free_revoke_on_tiers = { baron }

        # can_grant_kingdoms_and_empires_to_other_government_group = yes
        max_consorts = 3
        # have_gender_laws = no
        # allows_matrilineal_marriage = no
        # uses_bride_price = yes

        capital_move_delay = 240
        men_can_take_consorts = yes
        women_can_take_consorts = yes
        # landed_inheritance = no

        aggression = 0.5
    }
    Eleph_feudal_gov = {
        color = { 50 50 50 }
        potential = {
            religion = Eleph_religion
            culture_group = elephant_group
            NOT = { is_government_potential = order_government }
        }
        forced_contract = { feudal_government muslim_government theocratic_feudal_government roman_imperial_government theocracy_government }

        can_build_forts = yes
        can_build_castle = yes
        can_build_city = yes
        can_build_temple = yes
        can_build_tribal = no

        accepts_liege_governments = { }
        free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
		}
        ignore_in_vassal_limit_calculation = {
			tribal_government
		}
        preferred_holdings = { CASTLE }
        allowed_holdings = { CASTLE FORT HOSPITAL }
        allowed_holdings_culture = { TRIBAL }
        free_revoke_on_tiers = { baron }

        max_consorts = 3
        have_gender_laws = no

        capital_move_delay = 240
        men_can_take_consorts = no
        women_can_take_consorts = yes

        aggression = 0.3
    }
    cat_feudal_gov = {
        color = { 195 75 100 }
        potential = {
            religion = Cat_religion
            culture_group = cat_group
            NOT = { is_government_potential = order_government }
        }
        forced_contract = { feudal_government muslim_government theocratic_feudal_government roman_imperial_government theocracy_government }

        can_build_forts = yes
        can_build_castle = no
        can_build_city = yes
        can_build_temple = yes
        can_build_tribal = no

        accepts_liege_governments = { }
        free_revoke_on_governments_religion = {
			tribal_government
		}
        ignore_in_vassal_limit_calculation = {
			tribal_government
		}
        preferred_holdings = { CASTLE }
        allowed_holdings = { CASTLE FORT HOSPITAL }
        allowed_holdings_culture = { TRIBAL }
        free_revoke_on_tiers = { baron }

        max_consorts = 3
        have_gender_laws = no
        men_can_take_consorts = no
        women_can_take_consorts = yes

        uses_decadence = yes
        can_grant_kingdoms_and_empires_to_other_government = no
        capital_move_delay = 240
        aggression = 1.95

        builds_with_piety = { TEMPLE }
        builds_with_prestige = { TRIBAL }
    }
    dog_feudal_gov = {
        color = { 155 100 193 }
        potential = {
            religion = Dog_religion
            culture_group = dog_group
            NOT = { is_government_potential = order_government }
        }
        forced_contract = { feudal_government muslim_government theocratic_feudal_government roman_imperial_government theocracy_government }
        uses_jizya_tax = yes

        can_build_forts = yes
        can_build_castle = no
        can_build_city = yes
        can_build_temple = yes
        can_build_tribal = no

        accepts_liege_governments = { }
        free_revoke_on_governments_religion = {
			tribal_government
		}
        ignore_in_vassal_limit_calculation = {
			tribal_government
		}
        preferred_holdings = { CASTLE }
        allowed_holdings = { CASTLE FORT HOSPITAL }
        allowed_holdings_culture = { TRIBAL }
        free_revoke_on_tiers = {  }

        max_consorts = 1
        have_gender_laws = no
        men_can_take_consorts = no
        women_can_take_consorts = no
        marriage_ignore_religion = yes

        can_grant_kingdoms_and_empires_to_other_government = no
        capital_move_delay = 240
        aggression = 0.74
    }
    horse_feudal_gov = {
        color = { 121 60 16 }
        potential = {
            religion = Horse_religion
            culture_group = horse_group
            NOT = { is_government_potential = order_government }
            NOT = { trait = horse_caste_merchant }
        }

        allow_looting = yes
        uses_bride_price = yes
        free_levies_in_offensive_war = yes
        uses_jizya_tax = no
        max_consorts = 1
        aggression = 1

        preferred_holdings = { CASTLE }
        allowed_holdings = { CASTLE FORT HOSPITAL}
        allowed_holdings_culture = { TRIBAL }
        accepts_liege_governments_culture_and_religion = { }
        capital_move_delay = 120
    }
    horse_merchant_gov = {
        color = { 138 40 10 }
        potential = {
            religion = Horse_religion
            culture_group = horse_group
            NOT = { is_government_potential = order_government }
            NOT = { trait = horse_caste_warrior }
        }
        
        allow_looting = yes
        uses_bride_price = yes
        free_levies_in_offensive_war = no
        uses_jizya_tax = yes
        max_consorts = 3
        aggression = 0.25

        preferred_holdings = { CITY }
        allowed_holdings = { CITY FORT HOSPITAL}
        allowed_holdings_culture = { TRIBAL }
        accepts_liege_governments_culture_and_religion = { horse_feudal_gov }
        capital_move_delay = 120
    }
}

tribal_governments = {
    dragon_tribal_gov = {
        color = { 107 23 0 }

        potential = {
            religion = Dragon_religion
            culture_group = dragon_group
        }

        accepts_liege_governments_religion = { dragon_tribal_government }
        vassal_call_to_arms = { dragon_tribal_government }

        allows_matrilineal_marriage = yes
        allow_title_revokation = no
        allow_looting = yes
        can_usurp_kingdoms_and_empires = no
        uses_jizya_tax = yes
        capital_move_delay = 1000000
        can_change_to_nomad_on_start = no
        can_demand_religious_conversion = no
        men_can_take_consorts = yes
        women_can_take_consorts = yes
        vassal_call_to_arms = { dragon_tribal_gov }

        can_build_forts = yes
        can_build_castle = no
        can_build_city = no
        can_build_temple = no
        can_build_tribal = yes
        preferred_holdings = { TRIBAL }
        allowed_holdings = { HOSPITAL FORT }
        allowed_holdings_culture = { TRIBAL }

        can_grant_kingdoms_and_empires_to_other_government = no
        can_be_granted_kingdoms_and_empires_by_other_government = no

        max_consorts = 0
    }
}