#############################################################################
# 		Feudal government types for Warhammer: Geheimnisnacht: Legacy		#
#############################################################################

feudal_governments = {
	imperial_government = {
		potential = {
			primary_title = {
				title = e_the_empire
			}
			trait = creature_human
			culture_group = imperial_group
			religion_group = old_world_group
			is_patrician = no
		}

		color = { 168 168 168 }
		frame_suffix = "_imperialgov"


		barons_need_dynasty = yes

		can_build_tribal = no

		capital_move_delay = 2000

		can_usurp_kingdoms_and_empires = no
		dukes_called_kings = no
		can_imprison_without_reason = no
		can_create_empires = no
		vassal_government_opinion_penalties = no
		can_grant_kingdoms_and_empires_to_other_government_group = yes
		can_be_granted_kingdoms_and_empires_by_other_government = no
		free_retract_vassalage = yes

		## Modifiers
		court_size_modifier = 15
		commander_limit = 5

		preferred_holdings = { CASTLE CITY }
		allowed_holdings = {
			CASTLE
			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
			muslim_government
			republic_government
			feudal_government
			merchant_republic_government
			elector_count_government
		}

		free_revoke_on_tiers = {
			baron
			count
			duke
		}

		free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
		}
		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government #Asrai go their own way
			beastman_government #Beastmen do not listen
			greenskin_government
			freeboota_government
			pirate_government
			congregation_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government #Asur don't take orders from non-Asurs
			eternal_court_government
			beastman_government #Beastmen do not listen
			greenskin_government
			freeboota_government
			pirate_government
			elector_count_government #Emperor must call to arms the Counts
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			elector_count_government
			congregation_government
		}
	}
	# Urban Feudalism
	elector_count_government = {
		potential = {
			higher_tier_than = DUKE
			trait = creature_human
			culture_group = imperial_group
			religion_group = old_world_group
			is_patrician = no
			primary_title = {
				NOR = {
					title = e_the_empire
					title = k_northern_border_confederacy
					title = k_eagle_confederacy
				}
			}
			NOR = {
				is_government_potential = halfling_moot_government
				is_government_potential = congregation_government
				is_government_potential = pirate_government
			}
		}

		color = { 102 118 123 }
		frame_suffix = "_imperialgov"

		capital_move_delay = 1200

		can_build_tribal = no

		can_be_granted_kingdoms_and_empires_by_other_government = yes
		can_grant_kingdoms_and_empires_to_other_government = yes

		dukes_called_kings = no
		barons_need_dynasty = yes

		## Modifiers
		court_size_modifier = 10
		commander_limit = 2

		preferred_holdings = { CASTLE CITY }
		allowed_holdings = {
			CASTLE
			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
			muslim_government
			republic_government
			feudal_government
			merchant_republic_government
			imperial_government
		}

		free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
		}
		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			congregation_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			elector_count_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			congregation_government
		}
	}
	# Tzardom
	tzardom_government = {
		potential = {
			higher_tier_than = COUNT
			trait = creature_human
			OR = {
				culture = gospodar
				culture = kislevite
			}
			religion_group = old_world_group
			is_patrician = no

			NOT = { has_landed_title = e_the_empire }
			NOT = { is_government_potential = pirate_government	}
		}

		color = { 165 242 243 }
		frame_suffix = "_kislevgov"

		dukes_called_kings = yes
		barons_need_dynasty = yes

		can_build_tribal = no

		capital_move_delay = 600

		## Modifiers
		court_size_modifier = 10

		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
			vampiric_government
			strigoi_government
			elector_count_government
			imperial_government
		}

		free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
		}
		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			congregation_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			elector_count_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}
	# Ormazdic
	muslim_government = {
		potential = {
			religion_group = ormazd_gods_group
			is_patrician = no

			NOT = { is_government_potential = pirate_government	}
		}

		color = { 39 138 52 }
		frame_suffix = "_iqta"

		uses_decadence = yes
		uses_piety_for_law_change = yes

		dukes_called_kings = yes
		barons_need_dynasty = yes
		have_gender_laws = yes
		allows_matrilineal_marriage = yes
		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.

		capital_move_delay = 600

		can_build_tribal = no

		## Modifiers
		court_size_modifier = 10

		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
			feudal_government
			theocratic_feudal_government
			celestial_empire_government
			vampiric_government
			strigoi_government
		}

		free_revoke_on_tiers = {
			duke
		}
		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}
		free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			nehekharan_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			druchii_government
			eternal_court_government
			nehekharan_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}
	# Congregation
	congregation_government = {
		potential = {
			higher_tier_than = COUNT
			religion_group = old_world_group
			OR = {
				culture = witchhunter_culture
				primary_title = {
					OR = {
						has_title_flag = holy_order_landed_title
						title = d_knights_of_the_white_wolf
						title = d_order_of_the_howling_wolf
						title = d_order_of_the_winter_throne
						title = d_ragnarhalt
						title = d_knights_of_sigmars_blood
						title = d_knights_griffon
						title = d_knights_of_the_broken_sword
						title = d_knights_of_the_cleansing_flame
						title = d_knights_of_the_fiery_heart
						title = d_sisters_of_sigmar
						title = d_sisters_of_faith_and_chastity
						title = d_knights_of_the_blazing_sun
						title = d_order_of_the_eagle
						title = d_order_of_the_righteous_spear
						title = d_order_of_fury
						title = d_knights_of_the_everlasting_light
						title = d_knights_panther
						title = d_order_of_sword_and_scale
						title = d_knights_of_the_gold_lion
						title = d_knights_of_the_black_rose
						title = d_longshanks
						title = d_horned_hunters
						title = c_order_of_the_raven
						title = d_knights_of_taals_fury
						title = d_knights_of_origo
						title = d_knights_of_the_lily
						title = d_frosthome_lodge
						title = d_knights_of_our_lady_of_battle
						title = d_knights_mariner
						title = d_sons_of_manann
						title = k_witch_hunters_order
						title = d_samur_chapter
						title = d_knights_of_antoch
						title = k_knights_of_antoch
						title = d_knights_of_morr
						title = k_knights_of_morr
					}
				}
			}

			NOT = { is_government_potential = pirate_government	}

			is_patrician = no
		}

		color = { 215 215 215 }
		frame_suffix = "_congregationgov"

		demesne_size = 4
		vassal_limit = -7
		commander_limit = 4
		capital_move_delay = 1000

		allow_title_revokation = no
		allow_looting = no
		ignores_de_jure_laws = yes
		can_build_city = no
		can_build_tribal = no
		dukes_called_kings = no
		can_change_to_nomad_on_start = no
		have_gender_laws = yes
		can_usurp_kingdoms_and_empires = no
		can_be_granted_kingdoms_and_empires_by_other_government = no
		can_grant_kingdoms_and_empires_to_other_government = no
		barons_need_dynasty = yes
		can_imprison_without_reason = no
		can_revoke_without_reason = no

		## Modifiers
		court_size_modifier = 10

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			elector_count_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			congregation_government
		}

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			TEMPLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = {
			TRIBAL
			CASTLE
			TEMPLE
		}
	}
	# Ghoul Kingdom
	strigoi_government = {
		potential = {
			trait = vampire_strigoi_visible
		}

		color = { 77 24 44 }
		#frame_suffix = "_strigoigov"
		title_prefix = "strigoi_"

		uses_piety_for_law_change = yes

		dukes_called_kings = yes
		barons_need_dynasty = yes
		have_gender_laws = yes
		can_revoke_without_reason = no

		can_build_tribal = no
		can_demand_religious_conversion = no

		demesne_size = 2
		vassal_limit = 2

		capital_move_delay = 1500

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			TRIBAL
			CASTLE
			TEMPLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = {
			TRIBAL
			CASTLE
			TEMPLE
		}

		accepts_liege_governments = {
			imperial_government
		}

		free_revoke_on_governments_religion = {
			tribal_government
		}
		free_revoke_on_governments = {
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			nehekharan_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			druchii_government
			eternal_court_government
			nehekharan_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
			elector_count_government
			vampiric_government
			strigoi_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			beastman_government
			greenskin_government
			vampiric_government
			strigoi_government
		}
	}
	# Jade Court
	jade_court_government = {
		potential = {
			trait = vampire_jade_visible
		}

		color = { 0 168 107 }
		frame_suffix = "_vampiricgov"

		uses_piety_for_law_change = yes

		dukes_called_kings = yes
		barons_need_dynasty = yes
		have_gender_laws = ye
		can_revoke_without_reason = yes

		can_build_tribal = no
		can_demand_religious_conversion = no

		demesne_size = 2
		vassal_limit = 3

		capital_move_delay = 2000

		## Modifiers
		court_size_modifier = 12

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			CITY
			TEMPLE
			FORT
		}
		allowed_holdings_culture = {
			TRIBAL
			CASTLE
			TEMPLE
		}

		accepts_liege_governments = {
			#imperial_government
		}

		free_revoke_on_governments_religion = {
			tribal_government
		}
		free_revoke_on_governments = {
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			nehekharan_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			druchii_government
			eternal_court_government
			nehekharan_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
			elector_count_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			beastman_government
			greenskin_government
			vampiric_government
			strigoi_government
		}
	}
	# Midnight Aristocracy
	vampiric_government = {
		potential = {
			is_vampire_visible_trigger = yes
			NOR = {
				is_government_potential = pirate_government
				is_government_potential = strigoi_government
				trait = vampire_strigoi_visible
				trait = vampire_jade_visible
			}

		}

		color = { 47 34 54 }
		frame_suffix = "_vampiricgov"

		uses_piety_for_law_change = yes

		dukes_called_kings = yes
		barons_need_dynasty = yes
		have_gender_laws = yes
		can_revoke_without_reason = no

		can_build_tribal = no
		can_demand_religious_conversion = no

		demesne_size = 1
		vassal_limit = 1

		capital_move_delay = 1500

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			TEMPLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = {
			TRIBAL
			CASTLE
			TEMPLE
		}

		accepts_liege_governments = {
			imperial_government
		}

		free_revoke_on_governments_religion = {
			tribal_government
		}
		free_revoke_on_governments = {
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			nehekharan_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			druchii_government
			eternal_court_government
			nehekharan_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
			elector_count_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			beastman_government
			greenskin_government
			vampiric_government
			strigoi_government
		}
	}

	# Dwarfish Alliance
	dwarf_alliance_government = {
		potential = {
			culture_group = dwarf_group
			religion_group = dwarf_gods_group
			OR={
				higher_tier_than=duke
				AND={
					tier=duke
					independent=no
					# top_liege={
						# NOT={culture=ROOT}
					# }
				}
			}
			NOT = { is_government_potential = pirate_government }
			NOT = { is_government_potential = chaos_court_government }
			is_patrician = no
		}

		color = { 10 82 165 }
		frame_suffix = "_dwarfgov"

		vassal_limit = -2
		commander_limit = 2

		capital_move_delay = 600

		can_build_tribal = no

		allow_title_revokation = yes
		#allow_free_infidel_revokation = yes
		dukes_called_kings = yes
		barons_need_dynasty = yes
		can_imprison_without_reason = no
		can_revoke_without_reason = no
		can_grant_kingdoms_and_empires_to_other_government = no
		can_demand_religious_conversion = no

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			TRADE_POST
			CASTLE
			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
			republic_government
			merchant_republic_government
		}

		free_revoke_on_governments = {
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			norscan_government
			norscan_government_feudal
			chaosdwarf_government
			chaos_court_government
			chaos_horde_government
			chaos_host_government
		}

		no_vassal_tax = {
			nehekharan_government
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}

		vassal_call_to_arms = { #Can raise the other governments' levies, but has to ask for the other elves.
			eternal_court_government
			dwarf_alliance_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			nehekharan_government
			chaosdwarf_government
			lizardmen_government
			skaven_government
		}
	}
	dwarf_government = {
		potential = {
			culture_group = dwarf_group
			religion_group = dwarf_gods_group

			NOT = { is_government_potential = dwarf_alliance_government }
			NOT = { is_government_potential = pirate_government }
			NOT = { is_government_potential = chaos_court_government }
			#NOT = {independent=no}

			is_patrician = no
		}

		color = { 30 82 135 }
		frame_suffix = "_dwarfgov"

		demesne_size = -1
		vassal_limit = -5
		commander_limit = 1

		capital_move_delay = 600

		can_build_tribal = no

		allow_title_revokation = yes
		#allow_free_infidel_revokation = yes
		dukes_called_kings = yes
		barons_need_dynasty = yes
		can_imprison_without_reason = no
		can_revoke_without_reason = no
		can_grant_kingdoms_and_empires_to_other_government = no
		can_demand_religious_conversion = no

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			TRADE_POST
			CASTLE
			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
			republic_government
			merchant_republic_government
			dwarf_alliance_government
			dwarf_guilds_government
		}

		free_revoke_on_governments = {
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			norscan_government
			norscan_government_feudal
			chaosdwarf_government
			chaos_court_government
			chaos_horde_government
			chaos_host_government
		}

		no_vassal_tax = {
			nehekharan_government
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}

		vassal_call_to_arms = { #Can raise the other governments' levies, but has to ask for the other elves.
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			nehekharan_government
			chaosdwarf_government
			lizardmen_government
			skaven_government
		}
	}

	# Sorcerous Conclave
	chaosdwarf_government = {
		potential = {
			culture_group = dwarf_chaos_group
			religion = hashut

			NOT = { is_government_potential = pirate_government } # Dawi Zharr pirates on daemonships

			is_patrician = no
		}

		color = { 190 75 6 }
		frame_suffix = "_chaosdwarfgov"

		demesne_size = 1
		vassal_limit = -5
		commander_limit = 1

		capital_move_delay = 600

		can_build_tribal = no

		can_create_kingdoms = no
		can_create_empires = no
		can_usurp_kingdoms_and_empires = no
		allow_title_revokation = yes
		dukes_called_kings = yes
		barons_need_dynasty = yes
		can_imprison_without_reason = no
		can_revoke_without_reason = no
		can_grant_kingdoms_and_empires_to_other_government = no
		can_demand_religious_conversion = no
		max_consorts = 5 #privileged castes

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { TEMPLE }
		allowed_holdings = {
			TRADE_POST
			TEMPLE
			CASTLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = {
			TRIBAL
		}

		accepts_liege_governments = {
			republic_government
			merchant_republic_government
			theocracy_government
		}

		free_revoke_on_governments = {
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
		}

		no_vassal_tax = {
			nehekharan_government
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			dwarf_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			nehekharan_government
			dwarf_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			beastman_government
			greenskin_government
		}
	}

	# Highborn Concordate
	highborn_government = {
		potential = {
			culture_group = asur_group
			religion = cadai

			NOT = { is_government_potential = pirate_government }
		}

		color = { 255 255 255 }
		frame_suffix = "_highborn"

		demesne_size = 2
		vassal_limit = 5
		commander_limit = 4

		capital_move_delay = 1200

		can_build_tribal = no

		allow_title_revokation = yes
		dukes_called_kings = yes
		barons_need_dynasty = yes
		can_imprison_without_reason = no
		can_revoke_without_reason = no
		can_demand_religious_conversion = no

		preferred_holdings = {
			CITY
			FAMILY_PALACE
		}
		allowed_holdings = {
			TRADE_POST
			CITY
			CASTLE
			FAMILY_PALACE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			TRIBAL
			CITY
			CASTLE
		}

		accepts_liege_governments = { # Gets the wrong religion modifier instead
			muslim_government
		}

		free_revoke_on_governments_religion = { # Vassals of other religions can have their titles revoked for free
			tribal_government
			feudal_government
			muslim_government
			elector_count_government
			imperial_government
			merchant_republic_government
			republic_government
			dwarf_government
			chaosdwarf_government
		}
		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = { #Can raise the other governments' levies, but has to ask for the other elves.
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			dwarf_government
			chaosdwarf_government
			lizardmen_government
			skaven_government
		}

		forced_contract = { # Asurai are required to conscript their citizens
			highborn_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	# Everqueen Court
	everqueen_government = {
		potential = {
			culture_group = asur_group
			trait = creature_elf
			religion = cadai
			OR = {
				trait = everqueen
				trait = everqueen_heir
			}

			NOT = { is_government_potential = pirate_government }
		}

		color = { 255 245 255 }
		frame_suffix = "_highborn"

		demesne_size = 2
		vassal_limit = 5
		commander_limit = 4

		capital_move_delay = 1200

		can_build_tribal = no

		allow_title_revokation = yes
		dukes_called_kings = yes
		barons_need_dynasty = yes
		can_imprison_without_reason = no
		can_revoke_without_reason = no
		#can_grant_kingdoms_and_empires_to_other_government = yes
		free_levies_in_offensive_war = yes
		can_demand_religious_conversion = no

		preferred_holdings = { TEMPLE }
		allowed_holdings = {
			TEMPLE
			CASTLE
			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
			highborn_government
		}

		free_revoke_on_governments_religion = { # Vassals of other religions can have their titles revoked for free
			tribal_government
			feudal_government
			muslim_government
			elector_count_government
			imperial_government
			merchant_republic_government
			republic_government
			dwarf_government
			chaosdwarf_government
		}
		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			druchii_government
			eternal_court_government #Asrai go their own way
			beastman_government #Beastmen do not listen
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = { #Can raise the other governments' levies, but has to ask for the other elves.
			eternal_court_government #Asrai go their own way
			beastman_government #Beastmen do not listen
			greenskin_government
			freeboota_government
			pirate_government
			dwarf_government
			chaosdwarf_government
			lizardmen_government
			skaven_government
		}

		forced_contract = {
			highborn_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	# Witch Kingdom
	malekith_government = {
		potential = {
			trait = malekith
			religion_group = cytharai_group # Atharti Malekith? In MY Geheimnisnacht? That's fucking disgusting.

			NOT = { has_global_flag = malekith_lost_naggaroth }
			NOT = { is_government_potential = pirate_government } # The only thing worse than Atharti Malekith would be Pirate Lord Malekith. Nagyarrond, ahoy.
		}

		color = { 128 0 255 }
		frame_suffix = "_druchiigov"

		capital_move_delay = 1200

		can_build_tribal = no

		demesne_size = -4
		vassal_limit = -5
		commander_limit = 4

		allow_title_revokation = yes
		dukes_called_kings = yes
		barons_need_dynasty = yes
		can_imprison_without_reason = yes
		can_revoke_without_reason = yes
		can_grant_kingdoms_and_empires_to_other_government = yes
		can_demand_religious_conversion = no

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			TRADE_POST
			CITY
			CASTLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			TRIBAL
			CITY
			CASTLE
		}

		accepts_liege_governments = { } # Malekith wouldn't really accept a liege

		free_revoke_on_tiers = {
			baron
			count
			duke
			king
		}
		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = { #Can raise the other governments' levies, but has to ask for the other elves.
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			highborn_government
			dwarf_government
			chaosdwarf_government
			lizardmen_government
			skaven_government
		}

		forced_contract = { #Malekith can hold without question all the other Druchii
			druchii_government
			feudal_government
			merchant_republic_government
			republic_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	# Nagarythe Ascendancy
	druchii_government = {
		potential = {
			culture_group = druchii_group
			religion_group = cytharai_group
			NOR = {
				is_government_potential = malekith_government
				is_government_potential = pirate_government
				is_government_potential = druchii_tribal_government
			}
		}

		color = { 91 0 182 }
		frame_suffix = "_druchiigov"

		demesne_size = 1
		vassal_limit = -1
		commander_limit = 3

		capital_move_delay = 1200

		can_build_tribal = no

		allow_title_revokation = yes
		dukes_called_kings = yes
		barons_need_dynasty = yes
		can_imprison_without_reason = yes
		can_revoke_without_reason = no
		can_demand_religious_conversion = no
		#can_grant_kingdoms_and_empires_to_other_government = yes

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			TRADE_POST
			CITY
			CASTLE
			FAMILY_PALACE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			CITY
			CASTLE
		}

		accepts_liege_governments = { # Gets the wrong religion modifier instead
			malekith_government
		}

		free_revoke_on_governments_religion = { # Vassals of other religions can have their titles revoked for free
			feudal_government
			muslim_government
			merchant_republic_government
			republic_government
		}
		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			#druchii_government # Doesn't make sense for vassal Druchii not to pay taxes to their liege
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = { #Can raise the other governments' levies, but has to ask for the other elves.
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			highborn_government
			druchii_government
			dwarf_government
			chaosdwarf_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	# Golden Hierocracy
	nehekharan_government = {
		potential = {
			culture = nehekharan

			NOR = {
				is_government_potential = chaos_court_government
				is_government_potential = pirate_government
			}
		}

		color = { 255 255 55 }
		frame_suffix = "_nehekharangov"

		demesne_size = 2
		vassal_limit = 1
		commander_limit = 2
		capital_move_delay = 1800

		allow_title_revokation = yes
		#allow_free_infidel_revokation = yes
		dukes_called_kings = yes
		barons_need_dynasty = yes
		can_revoke_without_reason = no
		can_grant_kingdoms_and_empires_to_other_government = no
		have_gender_laws = yes
		can_demand_religious_conversion = no

		can_build_tribal = no

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			TRADE_POST
			CASTLE
			FORT
			HOSPITAL
			CITY
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			TRIBAL
			CITY
			CASTLE
			TEMPLE
		}

		accepts_liege_governments = { # Gets the wrong religion modifier instead
			muslim_government
			feudal_government
			theocracy_government
			republic_government
			merchant_republic_government
		}

		free_revoke_on_tiers = {
			baron
		}
		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
		}

		no_vassal_tax = {
			nehekharan_government
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			eternal_court_government
			highborn_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			nehekharan_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			beastman_government
			greenskin_government
		}
	}

	# Pirate Fleet
	pirate_government = {
		potential = {
			OR = {
				culture_group = sartosan_group
				OR = {
					religion = stromfels
					religion = atruhayid
					religion = atruhayid_reformed
				}
				AND = {
					religion = vampiric
					culture = sartosan_norscan
				}
				#trait = pirate_governor # Will eventually be limited to trait = pirate_governor and have all other restrictions lifted
			}
			NOT = { has_character_flag = renounced_piracy }
			higher_tier_than = BARON
			is_patrician = no
		}

		color = { 164 141 141 }
		frame_suffix = "_pirategov"

		title_prefix = "pirate_"

		capital_move_delay = 60

		can_build_tribal = no

		barons_need_dynasty = yes

		allow_looting = yes
		max_consorts = 4
		ignores_de_jure_laws = yes
		uses_jizya_tax = yes
		can_demand_religious_conversion = no

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			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
			vampiric_government
			strigoi_government
			elector_count_government
			imperial_government
			muslim_government
			theocratic_feudal_government
			celestial_empire_government
		}

		free_revoke_on_governments = {
			greenskin_government
			freeboota_government
			beastman_government
			skaven_government
		}
		free_revoke_on_governments_religion = {
			tribal_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			lizardmen_government
			skaven_government
		}

		vassal_call_to_arms = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			elector_count_government
			lizardmen_government
			pirate_government
			freeboota_government
		}

		forced_contract = {
			feudal_government
			muslim_government
			theocracy_government
			merchant_republic_government
			republic_government
			tribal_government
			theocratic_feudal_government
			celestial_empire_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	# Underlordship
	skaven_government = {
		potential = {
			higher_tier_than=BARON
			culture_group = skaven_group
		}

		color = { 177 255 40 }
		frame_suffix = "_skavengov"

		demesne_size = 1
		vassal_limit = 8
		commander_limit = 2

		capital_move_delay = 200

		can_build_tribal = no

		allow_title_revokation = yes
		dukes_called_kings = no
		barons_need_dynasty = yes
		can_imprison_without_reason = yes
		can_revoke_without_reason = yes
		can_grant_kingdoms_and_empires_to_other_government = no
		can_be_granted_kingdoms_and_empires_by_other_government = no
		can_change_to_nomad_on_start = no
		can_demand_religious_conversion = no
		have_gender_laws = no
		ignores_de_jure_laws = yes


		allows_matrilineal_marriage = no
		uses_prestige_for_law_change = yes
		allow_looting = yes

		## Modifiers
		court_size_modifier = 15

		preferred_holdings = { CITY }
		allowed_holdings = {
			TRADE_POST
			CITY
			CASTLE
			FAMILY_PALACE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			CITY
			CASTLE
			TRIBAL
		}

		accepts_liege_governments = {
			theocracy_government
		}

		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			nomadic_government
			beastman_government
			highborn_government #Asur don't take orders from non-Asurs
			eternal_court_government
			feudal_government
			muslim_government
			theocracy_government
			merchant_republic_government
			republic_government
			tribal_government
			nehekharan_government
			dwarf_government
			chaosdwarf_government
			elector_count_government
			imperial_government
			congregation_government
			lizardmen_government
		}
		free_revoke_on_tiers ={
			BARON
			COUNT
			DUKE
			KING
		}

		no_vassal_tax = {
			nomadic_government
			beastman_government
			highborn_government #Asur don't take orders from non-Asurs
			eternal_court_government
			feudal_government
			muslim_government
			theocracy_government
			merchant_republic_government
			republic_government
			tribal_government
			nehekharan_government
			dwarf_government
			chaosdwarf_government
			elector_count_government
			imperial_government
			congregation_government
			lizardmen_government
		}
		vassal_call_to_arms = {
			eternal_court_government
			beastman_government
			skaven_government
			greenskin_government
			freeboota_government
			pirate_government
			highborn_government
			druchii_government
			dwarf_government
			chaosdwarf_government
			lizardmen_government
		}

		forced_contract = {
			feudal_government
			merchant_republic_government
			republic_government
			tribal_government
		}

		unit_home_modifier = {
			supply_limit = 5 # Supply limit modifier for Nomads in Nomad lands
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			skaven_government_2
		}
	}
	skaven_government_2 = {
		potential = {
			culture_group = skaven_group
			lower_tier_than=COUNT
		}

		color = { 183 255 55 }
		frame_suffix = "_skavengov"

		demesne_size = 1
		vassal_limit = 8
		commander_limit = 2

		capital_move_delay = 200

		can_build_tribal = no

		allow_title_revokation = yes
		dukes_called_kings = no
		barons_need_dynasty = yes
		can_imprison_without_reason = yes
		can_revoke_without_reason = yes
		can_grant_kingdoms_and_empires_to_other_government = no
		can_be_granted_kingdoms_and_empires_by_other_government = no
		can_change_to_nomad_on_start = no
		can_demand_religious_conversion = no
		have_gender_laws = no
		ignores_de_jure_laws = yes


		allows_matrilineal_marriage = no
		uses_prestige_for_law_change = yes
		allow_looting = yes

		## Modifiers
		court_size_modifier = 15

		preferred_holdings = { CITY }
		allowed_holdings = {
			TRADE_POST
			CITY
			CASTLE
			FAMILY_PALACE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			CITY
			CASTLE
			TRIBAL
		}

		accepts_liege_governments = {
			theocracy_government
		}
		accepts_liege_governments_culture = {
			skaven_government
		}

		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
		}
		free_revoke_on_tiers ={
			BARON
		}

		no_vassal_tax = {
		}
		vassal_call_to_arms = {
		}

		forced_contract = {
		}

		unit_home_modifier = {
			supply_limit = 5 # Supply limit modifier for Nomads in Nomad lands
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			skaven_government
		}
	}

	# Chaos Court
	chaos_court_government = {
		potential = {
			OR = {
				religion = chaos
				religion = nurgle
				religion = khorne
				religion = tzeentch
				religion = slaanesh
			}

			NOT = { culture_group = beastman_group }
			NOT = { is_government_potential = pirate_government }

			is_patrician = no
		}

		color = { 201 66 190 }
		frame_suffix = "_chaosgov"

		capital_move_delay = 600

		can_build_tribal = no

		dukes_called_kings = yes
		barons_need_dynasty = yes

		## Modifiers
		court_size_modifier = 10

		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
			vampiric_government
			strigoi_government
			elector_count_government
			imperial_government
			muslim_government
			theocratic_feudal_government
			celestial_empire_government
			norscan_government
			norscan_government_feudal
		}

		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			highborn_government
			eternal_court_government
			feudal_government
			muslim_government
			theocracy_government
			dwarf_government
			elector_count_government
			imperial_government
			congregation_government
			lizardmen_government
			everqueen_government
		}
		free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
			chaos_host_government
			norscan_government
			norscan_government_feudal
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			elector_count_government
			lizardmen_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			tribal_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	# Norscan Tribes ( Feudal )
	norscan_government_feudal = {
		potential = {
			OR = {
				AND = {
					culture_group = norscan_group
					religion = norscan_gods_reformed
				}
				AND = {
					culture_group = norscan_group
					religion = norscan_gods
				}
				AND = {
					culture_group = old_imperial
					religion = norscan_gods
				}
				AND = {
					culture_group = old_imperial
					religion = norscan_gods_reformed
				}
			}
			NOT = { is_government_potential = chaos_court_government }
			is_patrician = no
			mercenary = no
			holy_order = no
		}
		color = { 119 149 154 }
		frame_suffix = "_norscangov"

		title_prefix = "tribal_"

		demesne_size = 2
		vassal_limit = -10

		capital_move_delay = 600

		dukes_called_kings = yes

		uses_decadence = no

		allow_looting = yes
		max_consorts = 5
		ignores_de_jure_laws = yes
		can_build_castle = no
		can_build_city = no
		can_build_temple = yes
		can_build_tribal = yes
		can_build_hospitals = no

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			TRIBAL
			FORT
		}

		builds_with_prestige = {
			TRIBAL
		}

		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
			celestial_empire_government
			elector_count_government
			imperial_government
			vampiric_government
			strigoi_government
			chaos_host_government
			chaos_court_government
			tribal_government
		}
		accepts_liege_governments_culture_and_religion = { 	# Tribals have no opinion penalty towards their liege if of the same culture and religion
			order_government
		}

		free_revoke_on_governments = { # Vassals of can have their titles revoked for free
			greenskin_government
			freeboota_government
			pirate_government
			beastman_government
			skaven_government
			highborn_government
			eternal_court_government
			feudal_government
			muslim_government
			theocracy_government
			dwarf_government
			elector_count_government
			imperial_government
			congregation_government
			lizardmen_government
			everqueen_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government #Asrai go their own way
			beastman_government #Beastmen do not listen
			greenskin_government
			freeboota_government
			pirate_government
			tribal_government
			chaos_host_government
			skaven_government
		}
		vassal_call_to_arms = {
			tribal_government
			chaos_host_government
			norscan_government
			norscan_government_feudal
			highborn_government #Asur don't take orders from non-Asurs
			eternal_court_government #Asrai go their own way
			beastman_government #Beastmen do not listen
			greenskin_government
			freeboota_government
			pirate_government
			nehekharan_government
			skaven_government
		}
	}

	# Cathayan
	celestial_empire_government = {
		potential = {
			is_patrician = no
			culture_group = oriental_group
			NOR = {
				is_government_potential = elector_count_government
				is_government_potential = tzardom_government
				is_government_potential = muslim_government
				is_government_potential = congregation_government
				is_government_potential = vampiric_government
				is_government_potential = strigoi_government
				is_government_potential = dwarf_government
				is_government_potential = chaosdwarf_government
				is_government_potential = highborn_government
				is_government_potential = everqueen_government
				is_government_potential = malekith_government
				is_government_potential = druchii_government
				is_government_potential = nehekharan_government
				is_government_potential = pirate_government
				is_government_potential = skaven_government
				is_government_potential = chaos_court_government
				is_government_potential = lizardmen_government
				is_government_potential = norscan_government
				is_government_potential = norscan_government_feudal
				is_government_potential = greenskin_government2
				is_government_potential = greenskin_government
				is_government_potential = freeboota_government
				is_government_potential = jade_court_government
				is_government_potential = pygmy_tribal_government
			}
			NOR = {
				trait = vampire_jade_visible
				culture_group = lizardman_group
			}
		}

		frame_suffix = "_confucian"
		color = { 94 187 185 }

		dukes_called_kings = yes
		barons_need_dynasty = yes

		capital_move_delay = 600

		can_build_tribal = no

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = {
			TRIBAL
		}

		accepts_liege_governments = {
			vampiric_government
			strigoi_government
			elector_count_government
			imperial_government
			muslim_government
			theocratic_feudal_government
			subfeudal_government
			celestial_empire_government
			tzardom_government
		}


		free_revoke_on_governments = {
			greenskin_government
			beastman_government
			skaven_government
			freeboota_government
			pirate_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}
		free_revoke_on_governments_religion = {
			tribal_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			elector_count_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	# Feudal
	confederation_government = {
		potential = {
			is_patrician = no
			OR = {
				culture_group = tilean_group
				culture_group = estalian_group
				primary_title = {
					OR = {
						title = k_northern_border_confederacy
						title = k_eagle_confederacy
					}
				}
			}
			NOR = {
				is_government_potential = elector_count_government
				is_government_potential = tzardom_government
				is_government_potential = muslim_government
				is_government_potential = congregation_government
				is_government_potential = vampiric_government
				is_government_potential = strigoi_government
				is_government_potential = dwarf_government
				is_government_potential = chaosdwarf_government
				is_government_potential = highborn_government
				is_government_potential = everqueen_government
				is_government_potential = malekith_government
				is_government_potential = druchii_government
				is_government_potential = nehekharan_government
				is_government_potential = pirate_government
				is_government_potential = skaven_government
				is_government_potential = chaos_court_government
				is_government_potential = lizardmen_government
				is_government_potential = norscan_government
				is_government_potential = norscan_government_feudal
				is_government_potential = greenskin_government2
				is_government_potential = greenskin_government
				is_government_potential = freeboota_government
				is_government_potential = jade_court_government
				is_government_potential = pygmy_tribal_government
				is_government_potential = celestial_empire_government
			}
			NOR = {
				culture_group = vampire_group
				culture_group = lizardman_group
				religion_group = necromantic_group
			}
		}

		color = { 172 203 255 }

		dukes_called_kings = yes
		barons_need_dynasty = yes

		capital_move_delay = 600

		can_build_tribal = no

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			CITY
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = {
			TRIBAL
		}

		accepts_liege_governments = {
			vampiric_government
			strigoi_government
			elector_count_government
			imperial_government
			muslim_government
			theocratic_feudal_government
			subfeudal_government
			celestial_empire_government
			tzardom_government
		}


		free_revoke_on_governments = {
			greenskin_government
			beastman_government
			skaven_government
			freeboota_government
			pirate_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}
		free_revoke_on_governments_religion = {
			tribal_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			elector_count_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	# Feudal
	subfeudal_government = {
		potential = {
			is_patrician = no
			independent = no
			culture_group = bretonnian_group
			OR = {
				AND = {
					liege = { lower_tier_than = emperor }
					NOT = { tier = baron }
				}
				AND = {
					liege = { tier = emperor }
					tier = baron
				}
			}
		}
		title_prefix = "subfeudal_"
		frame_suffix = "_subfeudalgov"
		color = { 76 110 168 }

		dukes_called_kings = yes
		barons_need_dynasty = yes

		capital_move_delay = 600

		can_build_tribal = no

		#set_allow_vice_royalties is a command, not a modifier. Not sure what the intent is here.
		#character_modifier={
			#set_allow_vice_royalties = count
			#set_allow_vice_royalties = king
		#}

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = {
			TRIBAL
		}

		accepts_liege_governments = {
			vampiric_government
			strigoi_government
			muslim_government
			theocratic_feudal_government
			celestial_empire_government
		}
		accepts_liege_governments_culture={
			feudal_government
		}
		free_revoke_on_governments = {
			greenskin_government
			beastman_government
			skaven_government
			freeboota_government
			pirate_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}
		free_revoke_on_governments_religion = {
			tribal_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			elector_count_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	# Feudal
	feudal_government = {
		potential = {
			is_patrician = no

			NOR = {
				is_government_potential = elector_count_government
				is_government_potential = tzardom_government
				is_government_potential = muslim_government
				is_government_potential = congregation_government
				is_government_potential = vampiric_government
				is_government_potential = strigoi_government
				is_government_potential = dwarf_government
				is_government_potential = chaosdwarf_government
				is_government_potential = highborn_government
				is_government_potential = everqueen_government
				is_government_potential = malekith_government
				is_government_potential = druchii_government
				is_government_potential = nehekharan_government
				is_government_potential = pirate_government
				is_government_potential = skaven_government
				is_government_potential = chaos_court_government
				is_government_potential = lizardmen_government
				is_government_potential = norscan_government
				is_government_potential = norscan_government_feudal
				is_government_potential = greenskin_government2
				is_government_potential = greenskin_government
				is_government_potential = freeboota_government
				is_government_potential = jade_court_government
				is_government_potential = pygmy_tribal_government
				is_government_potential = confederation_government
			}
			NOR = {
				culture_group = lizardman_group
				culture_group = goblin_group
				culture_group = orc_group
			}
		}

		color = { 91 133 207 }

		dukes_called_kings = yes
		barons_need_dynasty = yes

		capital_move_delay = 600

		can_build_tribal = no

		## Modifiers
		court_size_modifier = 10

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = {
			TRIBAL
		}

		accepts_liege_governments = {
			vampiric_government
			strigoi_government
			elector_count_government
			imperial_government
			muslim_government
			theocratic_feudal_government
			subfeudal_government
			celestial_empire_government
			tzardom_government
		}


		free_revoke_on_governments = {
			greenskin_government
			beastman_government
			skaven_government
			freeboota_government
			pirate_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}
		free_revoke_on_governments_religion = {
			tribal_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			lizardmen_government
			skaven_government
		}
		vassal_call_to_arms = {
			highborn_government
			eternal_court_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			elector_count_government
			lizardmen_government
			skaven_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
	}

	hobgoblin_satrapy_government = {
		potential = {
			trait = creature_hobgoblin
			religion = hashut
		}

		character_modifier = {
			global_levy_size = -0.25
			global_garrison_size = -0.25
		}

		color = { 204 112 0 }

		frame_suffix = "_chaosdwarfgov"
		title_prefix = "tribal_"

		capital_move_delay = 200
		max_consorts = 0

		uses_prestige_for_law_change = yes
		allow_title_revokation = no
		allow_looting = yes
		can_build_holdings = no
		can_build_forts = yes
		ignores_de_jure_laws = yes
		can_build_castle = no
		can_build_city = no
		can_build_temple = no
		can_build_tribal = no
		dukes_called_kings = no
		can_change_to_nomad_on_start = no
		allows_matrilineal_marriage = no
		have_gender_laws = no
		can_usurp_kingdoms_and_empires = no
		can_be_granted_kingdoms_and_empires_by_other_government = no
		can_grant_kingdoms_and_empires_to_other_government = no
		can_build_hospitals = no
		free_levies_in_offensive_war = yes

		preferred_holdings = { CASTLE }

		allowed_holdings = {
			CASTLE
			CITY
		}

		builds_with_prestige = { TRIBAL }

		accepts_liege_governments_culture = {
			chaosdwarf_government
		}
		accepts_liege_governments = {
			chaosdwarf_government
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			CASTLE
			CITY
			TRIBAL
		}
		free_revoke_on_governments_religion = { # Vassals of other religions can have their titles revoked for free
			feudal_government
			muslim_government
			republic_government
			merchant_republic_government
			theocracy_government
			eternal_court_government
			tribal_government
			highborn_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			tribal_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			nehekharan_government
			eternal_court_government
			lizardmen_government
			skaven_government
			dwarf_government
			chaosdwarf_government
		}
		vassal_call_to_arms = {
			highborn_government
			druchii_government
			tribal_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			nehekharan_government
			eternal_court_government
			lizardmen_government
			skaven_government
			dwarf_government
			chaosdwarf_government
		}
	}

	greenskin_government2 = {
		potential = {
			OR = {
				culture_group = orc_group
				culture_group = goblin_group
			}
			NOR = {
				is_government_potential = pirate_government
				is_government_potential = freeboota_government
				is_government_potential = chaos_host_government
				is_government_potential = hobgoblin_satrapy_government
			}
			NOT = { trait = creature_hobgoblin }
		}

		character_modifier = {
			global_levy_size = -0.25
			global_garrison_size = -0.25
		}

		color = { 69 188 69 }
		frame_suffix = "_greenskingov"

		title_prefix = "tribal_"
		capital_move_delay = 200

		uses_prestige_for_law_change = yes
		allow_title_revokation = yes
		allow_looting = yes
		can_build_holdings = no
		can_build_forts = no
		ignores_de_jure_laws = yes
		can_build_castle = no
		can_build_city = no
		can_build_temple = no
		can_build_tribal = yes
		dukes_called_kings = yes
		can_change_to_nomad_on_start = no
		allows_matrilineal_marriage = no
		have_gender_laws = no
		can_usurp_kingdoms_and_empires = no
		can_be_granted_kingdoms_and_empires_by_other_government = no
		can_grant_kingdoms_and_empires_to_other_government = no
		can_build_hospitals = no
		free_levies_in_offensive_war = yes

		preferred_holdings = { CASTLE }
		allowed_holdings = {
			CASTLE
			TEMPLE
		}

		builds_with_prestige = { TRIBAL }

		accepts_liege_governments_culture = { }

		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			CASTLE
			CITY
			TRIBAL
		}
		free_revoke_on_governments_religion = { # Vassals of other religions can have their titles revoked for free
			feudal_government
			muslim_government
			republic_government
			merchant_republic_government
			theocracy_government
			eternal_court_government
			tribal_government
			highborn_government
			beastman_government
			skaven_government
			chaos_court_government
			chaos_horde_government
			norscan_government
			norscan_government_feudal
			chaos_host_government
			chaosdwarf_government
		}

		no_vassal_tax = {
			highborn_government
			druchii_government
			tribal_government
			beastman_government
			greenskin_government
			freeboota_government
			pirate_government
			nehekharan_government
			eternal_court_government
			lizardmen_government
			skaven_government
			dwarf_government
		}
		vassal_call_to_arms = {
			highborn_government
			druchii_government
			tribal_government
			beastman_government
			greenskin_government
			greenskin_government2
			freeboota_government
			pirate_government
			nehekharan_government
			eternal_court_government
			lizardmen_government
			skaven_government
			dwarf_government
		}
	}
}
