﻿#generic privileges
tribes_land_rights = {	#oighreachd for the Scots
	estate = tribes_estate
	
	country_modifier = {
		tribes_estate_target_satisfaction = medium_privilege_target_satisfaction
		global_tribes_estate_power = 0.25
		monthly_towards_decentralization = societal_value_monthly_move
	}
}

tribes_allow_gatherings = {
	estate = tribes_estate
	
	country_modifier = {
		tribes_estate_target_satisfaction = medium_privilege_target_satisfaction
		global_tribes_estate_power = 0.25
		monthly_towards_communalism = societal_value_monthly_move
	}
}

tribes_pasture_access = {
	estate = tribes_estate
	
	country_modifier = {
		expand_rgo_farming_cost_modifier = -0.025
		global_tribes_estate_power = 0.2
	}
}

tribes_tribal_levies = { 
	estate = tribes_estate
	
	country_modifier = {
		tribes_estate_target_satisfaction = small_privilege_target_satisfaction
		tribes_estate_levy_size = 0.3
		global_tribes_estate_power = 0.33
	}
}

tribes_tribal_registry = {
	estate = tribes_estate

	country_modifier = {
		tribes_estate_target_satisfaction = small_privilege_target_satisfaction
		global_tribesmen_pop_growth = 0.1
		global_tribes_estate_power = 0.5
	}
}

tribes_protected_faith = {
	estate = tribes_estate

	country_modifier = {
		tribes_estate_target_satisfaction = medium_privilege_target_satisfaction
		global_tribal_promotion = -0.1
		global_tribes_estate_power = 0.5
	}
}

tribes_respect_tribal_traditions = { 
	estate = tribes_estate
	
	country_modifier = {
		tribes_estate_target_satisfaction = medium_privilege_target_satisfaction
		cultural_influence_modifier = -0.1
		global_tribes_estate_power = 0.33
	}
}

tribes_creach = { #Scotland https://en.wikipedia.org/wiki/Scottish_clan
	estate = tribes_estate
	
	potential = { culture ?= { has_culture_group = culture_group:scottish_group } }
	
	country_modifier = {
		tribes_estate_target_satisfaction = small_privilege_target_satisfaction
		global_livestock_output_modifier = 0.05
		global_tribes_estate_power = 0.25
	}
}

tribes_fosterage = {
	estate = tribes_estate

	potential = { culture ?= { has_culture_group = culture_group:scottish_group } }
	
	country_modifier = {
		tribes_estate_target_satisfaction = small_privilege_target_satisfaction
		research_speed_modifier = 0.02
		global_tribes_estate_power = 0.5
	}
}

tribes_manrent = {
	estate = tribes_estate
	
	potential = { culture ?= { has_culture_group = culture_group:scottish_group } }

	country_modifier = {
		tribes_estate_target_satisfaction = medium_privilege_target_satisfaction
		global_defensive = 0.1
		global_tribes_estate_power = 0.5
	}
}

tribes_scotland_gaelic_heritage = {
	estate = tribes_estate

	potential = { 
		culture ?= { has_culture_group = culture_group:scottish_group } 
		NOT = {	has_estate_privilege =  estate_privilege:sco_statutes_of_iona }
		NOT = { has_variable = preserved_clan_autonomy }
	}
	allow = {
		NOT = {	has_estate_privilege =  estate_privilege:sco_statutes_of_iona }
	}
	can_revoke = {
		"estate_power(estate_type:crown_estate)" > 0.33
	}
	country_modifier = {
		tribes_estate_target_satisfaction = medium_privilege_target_satisfaction
		global_tribes_estate_power = 0.25
		global_monthly_control = -0.0010
		global_monthly_development = 0.002
		pure_tooltip_entry = gaelic_clans_pop_assignment_tt
	}
}

autonomous_tribes_scotland_gaelic_heritage = {
	estate = tribes_estate

	potential = { 
		culture ?= { has_culture_group = culture_group:scottish_group } 
		NOT = {	has_estate_privilege =  estate_privilege:sco_statutes_of_iona }
		has_variable = preserved_clan_autonomy
	}
	allow = {
		NOT = {	has_estate_privilege =  estate_privilege:sco_statutes_of_iona }
	}
	can_revoke = {
		"estate_power(estate_type:crown_estate)" > 0.33
	}
	country_modifier = {
		global_tribes_estate_power = -0.10
		global_monthly_control = 0.0005
		monthly_army_tradition = 0.2
		pure_tooltip_entry = gaelic_clans_pop_assignment_tt
	}
}

jaysh_armies = {
	estate = tribes_estate

	country_modifier = {
		tribes_estate_target_satisfaction = medium_privilege_target_satisfaction
		regiment_reinforcement_speed = 0.05
		monthly_towards_quantity = societal_value_monthly_move
		global_tribes_estate_power = 0.5
	}
}

tribes_in_administration = {
	estate = tribes_estate
	
	country_modifier = {
		tribes_estate_target_satisfaction = medium_privilege_target_satisfaction
		global_tribes_estate_power = 0.5
		tribes_estate_allowed_in_cabinet = yes
		monthly_towards_decentralization = societal_value_monthly_move
	}
}

local_tribal_strongholds = {
	estate = tribes_estate

	potential = {
		capital ?= { region = region:maghreb_region }
		"estate_power(estate_type:tribes_estate)" > 0
	}
	
	country_modifier = {
		global_max_rural_control = 0.05
		global_tribes_estate_power = 0.5
	}
}

mch_tribal_favor = {
	estate = tribes_estate

	potential = {
		has_unlocked_estate_privilege_trigger = {
			type = mch_tribal_favor
		}
	}
	
	country_modifier = {
		global_tribes_estate_power = 0.25
	}
	country_modifier = {
		potential_trigger = {
			NOT = { has_reform = government_reform:three_departments_system }
		}
		tribes_estate_target_satisfaction = medium_permanent_target_satisfaction
		monthly_army_tradition = 0.1
	}
}