﻿###########################
# 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
		}
	}
}