tribal_governments = {

	tribal_government = {
		preferred_holdings = {
			TRIBAL
		}
		allowed_holdings = {
			TRIBAL
			FORT
		}
		accepts_liege_governments_culture = { # Tribals have no opinion penalty towards their liege if of the same culture
			feudal_government
			republic_government
			merchant_republic_government
			theocracy_government
			muslim_government
			theocratic_feudal_government
			chinese_imperial_government
			insular_feudal_government
		}
		accepts_liege_governments_culture_and_religion = { 	# Tribals have no opinion penalty towards their liege if of the same culture and religion
			order_government
		}
		vassal_call_to_arms = {
			tribal_government
		}
		no_vassal_tax = {
			tribal_government
		}
		builds_with_prestige = {
			TRIBAL
		}

		frame_suffix = "_tribal"
		title_prefix = "tribal_"
		color = { 92 31 23 }

		potential = {
			trigger_if = {
				limit = { has_game_started = yes }
				is_feudal = no
			}
		}

		allow = {
			NOR = { 
				is_government_allowed = theocracy_government
				is_government_potential = nomadic_tribal_government
			}
		}

		allow_looting = yes
		can_build_castle = no
		can_build_city = no
		can_build_hospitals = no
		can_build_temple = yes
		can_build_tribal = yes
		can_change_to_nomad_on_start = yes
		dukes_called_kings = yes
		ignores_de_jure_laws = yes
		uses_decadence = yes

		capital_move_delay = 600
		max_consorts = 3

		## Modifiers
		demesne_size = 2
		vassal_limit = -10
	}
	
	nomadic_tribal_government = {
		preferred_holdings = {
			TRIBAL
		}
		allowed_holdings = {
			TRIBAL
		}
		accepts_liege_governments_culture = {
			nomadic_tribal_government
		}
		accepts_liege_governments_culture_and_religion = { 	# Nomadic Tribals have no opinion penalty towards their liege if of the same culture and religion
			tribal_government
		}
		vassal_call_to_arms = {
			nomadic_tribal_government
		}
		no_vassal_tax = {
			nomadic_tribal_government
			tribal_government
		}
		builds_with_prestige = {
		}

		frame_suffix = "_nomadic"
		title_prefix = "nomadic_"
		color = { 201 179 36 }

		potential = {
			trigger_if = {
				limit = { has_game_started = yes }
				is_feudal = no
			}
			NOT = { has_dlc = "Horse Lords" }
			higher_tier_than = BARON
			OR = {
				culture_group = altaic
				culture_group = magyar
				#culture = sogdian
				#culture = tocharian
				#culture = saka
				culture = alan
				AND = {
					has_character_flag = nomadic_tribal_government_preserve
					primary_title = { has_title_flag = nomadic_tribal_government_title }
				}
			}
			top_liege = { # Becomes tribal_government if liege is_feudal/is_republic/is_theocracy
				is_feudal = no
				is_republic = no
				is_theocracy = no
			}
		}
		
		allow = {
			NOT = {
				is_government_allowed = theocracy_government
			}
		}
		
		allow_looting = yes
		allow_title_revokation = no
		can_build_castle = no
		can_build_city = no
		can_build_forts = no
		can_build_hospitals = no
		can_build_temple = no
		can_build_tribal = no
		can_change_to_nomad_on_start = yes
		can_demand_religious_conversion = no
		can_grant_kingdoms_and_empires_to_other_government = no
		can_be_granted_kingdoms_and_empires_by_other_government = no
		can_usurp_kingdoms_and_empires = no
		dukes_called_kings = yes
		gets_religion_opinion_penalties = no
		have_gender_laws = no
		ignores_de_jure_laws = yes
		marriage_ignore_religion = yes
		uses_decadence = yes
		uses_prestige_for_law_change = yes

		capital_move_delay = 120
		max_consorts = 3

		## Modifiers
		character_modifier = {
			global_levy_size = -3 # 300%
			global_revolt_risk = 0.02
			tech_growth_modifier = -1
		}
		vassal_limit = -10
	}
}