feudal_governments = {
    caliphate_government = {
		preferred_holdings = { CASTLE }
		allowed_holdings = { 
			CASTLE
			TEMPLE
			CITY
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			TRIBAL
		}
		accepts_liege_governments = { # Gets the wrong religion modifier instead
			feudal_government
			theocratic_feudal_government
			chinese_imperial_government
		}
		free_revoke_on_tiers = {
			duke
			king
		}
		free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
		}
		frame_suffix = "_iqta"
		potential = {
			OR = {
				controls_religion = no
				religion_group = muslim
				has_religion_feature = religion_temporal_head
				AND = {
					religion = norse_pagan_reformed
					has_religion_features = no # Old saves, and campaigns without HF, need the Fylkirate to continue working
				}
			}
			NOT = { is_government_potential = roman_imperial_government }
			NOT = { is_government_potential = order_government }
			NAND = { 
				culture_group = tibetan_group
				OR = {
					religion = bon
					religion = bon_reformed
					religion = buddhist
				}
				higher_tier_than = BARON
			}
			NAND = { 
				OR = {
					culture_group = indo_aryan_group
					culture_group = dravidian_group
				}
				OR = {
					religion = buddhist
					religion = hindu
					religion = jain
				}
				higher_tier_than = BARON
			}
			NAND = { 
				tier = EMPEROR
				primary_title = { has_title_flag = pretender_chinese_empire }
				OR = {
					culture_group = chinese_group
					culture = khitan
					culture = tangut
					culture = jurchen
					has_character_flag = chinese_imperial_government_preserve
				}
			}
			is_patrician = no

		}
		color = { 51 89 65 }
		
		uses_decadence = yes
		uses_piety_for_law_change = yes
		
		dukes_called_kings = yes
		barons_need_dynasty = yes
		have_gender_laws = no
		allows_matrilineal_marriage = no
		free_retract_vassalage = yes

		free_levies_in_offensive_war = yes # Took away the hardcoded stuff for muslims where they could raise levies without pissing off vassals if in an offensive war.

		can_build_tribal = no
		
		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
		capital_move_delay = 2000
		gets_religion_opinion_penalties = no
		gives_religion_opinion_penalties = no
		free_retract_vassalage = yes
		vassal_government_opinion_penalties = no

		## Modifiers
		court_size_modifier = 10
        vassal_call_to_arms = {
			muslim_government
            caliphate_government
		}
	}

    tsardom_government = {
		preferred_holdings = { CASTLE }
		allowed_holdings = { 
			CASTLE
			TEMPLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = {
			TRIBAL
		}
		accepts_liege_governments = {
			muslim_government
			theocratic_feudal_government
			chinese_imperial_government
		}	
		vassal_call_to_arms = {
			tribal_government
			feudal_government
		}	
		frame_suffix = "_romanimperial"	
		potential = {
			OR = {
				controls_religion = no
				religion_group = muslim
				has_religion_feature = religion_temporal_head
				AND = {
					religion = norse_pagan_reformed
					has_religion_features = no # Old saves, and campaigns without HF, need the Fylkirate to continue working
				}
			}
			NOT = {	religion_group = muslim	}
			NOT = { is_government_potential = roman_imperial_government }
			NOT = { is_government_potential = order_government }
			NAND = { 
				culture_group = tibetan_group
				OR = {
					religion = bon
					religion = bon_reformed
					religion = buddhist
				}
				higher_tier_than = BARON
			}
			NAND = { 
				OR = {
					culture_group = indo_aryan_group
					culture_group = dravidian_group
				}
				OR = {
					religion = buddhist
					religion = hindu
					religion = jain
				}
				higher_tier_than = BARON
			}
			NAND = { 
				tier = EMPEROR
				primary_title = { has_title_flag = pretender_chinese_empire }
				OR = {
					culture_group = chinese_group
					culture = khitan
					culture = tangut
					culture = jurchen
					has_character_flag = chinese_imperial_government_preserve
				}
			}
			is_patrician = no

		}
		capital_move_delay = 2000
		color = { 143 12 125 }
		character_modifier = {
			land_morale = -0.1
		}
        vassal_call_to_arms = {
			feudal_government
		}
	}

    indian_government = {
		preferred_holdings = { CASTLE }
		allowed_holdings = { 
			CASTLE 
			TEMPLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			TRIBAL
		}
		accepts_liege_governments = { # Gets the wrong religion modifier instead
			muslim_government
			theocracy_government
			feudal_government
			chinese_imperial_government
		}
		free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
		}
		frame_suffix = "_theocraticfeudal"
		potential = {
			OR = {
				controls_religion = no
				religion_group = muslim
				has_religion_feature = religion_temporal_head
				AND = {
					religion = norse_pagan_reformed
					has_religion_features = no # Old saves, and campaigns without HF, need the Fylkirate to continue working
				}
			}
			NOT = {	religion_group = muslim	}
			NOT = { is_government_potential = roman_imperial_government }
			NOT = { is_government_potential = order_government }
			AND = { 
				OR = {
					culture_group = indo_aryan_group
					culture_group = dravidian_group
				}
				OR = {
					religion = buddhist
					religion = hindu
					religion = jain
				}
				higher_tier_than = BARON
			}
			NAND = { 
				tier = EMPEROR
				primary_title = { has_title_flag = pretender_chinese_empire }
				OR = {
					culture_group = chinese_group
					culture = khitan
					culture = tangut
					culture = jurchen
					has_character_flag = chinese_imperial_government_preserve
				}
			}
		}
		color = { 209 118 33 }
		
		uses_piety_for_law_change = yes
		dukes_called_kings = yes
		barons_need_dynasty = yes

		can_build_tribal = no
		
		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
		capital_move_delay = 600
		vassal_limit = 5
		tech_growth_modifier = 0.05
		character_modifier = {
			war_elephants_offensive = 0.10
			demesne_size = 1
			vassal_limit = 5
		}
        vassal_call_to_arms = {
			indian_government
		}
	}
}    