###########################
# NEOW CULTURAL TRADITIONS 
###########################

#######################
# Generic
#######################

tradition_british_armoires = {
	category = regional

	layers = {
		0 = martial
		1 = western
		4 = bow.dds
	}

	is_shown = {
		OR = {
			has_cultural_pillar = heritage_anglo_frisian
			has_cultural_pillar = heritage_brythonic
		}
	}
	can_pick = {
		OR = {
			has_cultural_pillar = heritage_anglo_frisian
			has_cultural_pillar = heritage_brythonic
		}
	}
	
	character_modifier = {
		archers_max_size_add = 2
	}
	
	parameters = {
		unlock_maa_handgonners = yes
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			# Ethos requirement.
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_stoic = { is_in_list = traits }
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_stoic_or_bureaucratic_desc
				}
			}
			# Certain number of archer MaA requirement.
			if = {
				limit = {
					scope:character = {
						number_maa_soldiers_of_base_type = {
							type = archers
							# Remember to sync the below with longbow_competitions_minimum_archer_maa_value.
							value < 1200
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = culture_head_lacks_archer_maa_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 800
		if = {
			limit = {
				OR = {
					culture_has_pikemen_maa = yes
					culture_has_heavy_cavalry_maa = yes
				}
			}
			multiply = 0
		}
	}
}

tradition_british_palace_politics = {
	category = regional

	layers = {
		0 = intrigue
		1 = western
		4 = palace_politics.dds 
	}

	is_shown = {
			OR = {
				has_cultural_pillar = heritage_anglo_frisian
				has_cultural_pillar = heritage_scottish
				this = culture:prytoneg
					any_parent_culture_or_above = {
					this = culture:prytoneg
				}
			}
			scope:character = {
				OR = {
					has_title = title:e_brittania
				}
			}
		# DLC check.
		has_ep3_dlc_trigger = yes
		NOT = {
			has_cultural_tradition = tradition_byzantine_succession
		}
	}
	can_pick = {
		custom_tooltip = {
			text = cannot_have_tradition_court_eunuchs
			NOT = { culture_tradition:tradition_court_eunuchs = { is_in_list = traits } }
		}
		custom_tooltip = {
			text = cannot_have_tradition_merciful_blindings
			NOT = { culture_tradition:tradition_merciful_blindings = { is_in_list = traits } }
		}
	}
	
	parameters = {
		unlock_maa_household_cavalry = yes
		unlock_maa_household_guard = yes
		unlock_commander_of_the_guard = yes
		reduced_bodyguard_aptitude = yes
		ambitious_trait_more_common = yes
		cultrad_unlocks_t2_countermeasures = yes
		palace_politics_trait_bonuses = yes
		palace_politics_trait_maluses = yes
	}
	character_modifier = {
		monthly_court_grandeur_change_mult = 0.2
		political_scheme_phase_duration_add = minor_scheme_phase_duration_bonus_value
		personal_scheme_phase_duration_add = minor_scheme_phase_duration_bonus_value
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
						culture_pillar:ethos_spiritual = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_courtly_or_spiritual_desc
				}
			}
			if = {
				limit = {
					has_dlc_feature = royal_court
					OR = {
						scope:character = { has_royal_court = no }
						NOT = {
							scope:character = {
								court_grandeur_current_level >= very_high_court_grandeur_level
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = culture_head_court_grandeur_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 200
		if = {
			limit = { # Admin should be more into this
				scope:character = {
					government_allows = administrative
				}
			}
			multiply = 2
		}
	}
}