﻿###| Harthgate Culture Traditions for Lords of Wessex |###

###| Credits |###

#: Developed by Edgar Harthgate

###| End of Credits |###

###| Table of Contents |###									###| Status |###    ###| Quick Link |###

#: tradition_burhs_low = Burhs								#: Building
#: tradition_fyrds_low = Fyrds								#: Building
#: tradition_herepaths_low = Herepaths						#: Building
#: tradition_rota_organization_low = Rota Organization		#: Building

###| End of Table of Contents |###

tradition_burhs_low = {

	category = regional
	
	layers = {
		0 = steward
		1 = western
		3 = 6.dds
		4 = city.dds
	}
	
	is_shown = {
		NOR = {
			has_cultural_tradition = tradition_castle_keepers
			has_cultural_tradition = tradition_city_keepers
		}
		OR = {
			AND = {
				has_cultural_pillar = heritage_west_germanic
				has_fp1_dlc_trigger = no
			}
			any_parent_culture_or_above = {
				OR = {
					this = culture:old_saxon
					#: this = culture:angles_low
				}
			}
		}
	}
	
	can_pick = {
		culture_not_pacifistic_trigger = yes
		trigger_if = {
			limit = { has_ep3_dlc_trigger = yes }
			custom_tooltip = {
				scope:character = {
					OR = {
						government_has_flag = government_is_feudal
						government_has_flag = government_is_clan
						government_has_flag = government_is_administrative
					}
				}
				text = must_be_feudal_clan_or_admin
			}
		}
		trigger_else = {
			custom_tooltip = {
				scope:character = {
					OR = {
						government_has_flag = government_is_feudal
						government_has_flag = government_is_clan
					}
				}
				text = must_be_feudal_or_clan
			}
		}
		custom_tooltip = {
			text = cannot_have_castle_keepers_or_city_keepers_tradition_low
			NOT = {
				culture_tradition:tradition_castle_keepers = { is_in_list = traits }
				culture_tradition:tradition_city_keepers = { is_in_list = traits }
			}
		}
	}
	
	can_pick_for_hybridization = {
		custom_tooltip = {
			text = cannot_have_castle_keepers_or_city_keepers_tradition_low
			NOT = {
				culture_tradition:tradition_castle_keepers = { is_in_list = traits }
				culture_tradition:tradition_city_keepers = { is_in_list = traits }
			}
		}
	}
	
	parameters = {
		burhs_low_castle_holding_bonuses = yes
		burhs_low_city_holding_and_guild_hall_bonuses = yes
		burhs_low_fortification_bonuses = yes
		burhs_low_military_bonuses = yes
		city_buildings_more_county_opinion = yes
		next_level_guild_halls = yes
		ai_more_likely_to_fortify = yes
		ai_more_likely_to_city = yes
		architect_trait_prestige = yes
		watermills_windmills_cities = yes
	}

	character_modifier = {
		castle_holding_build_speed = 0.10
		castle_holding_build_gold_cost = 0.15
		castle_holding_holding_build_gold_cost = 0.30
		city_holding_build_speed = 0.15
		city_holding_build_gold_cost = 0.20
		city_holding_holding_build_gold_cost = 0.40
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_stoic_or_bureaucratic_desc
				}
			}
			if = {
				limit = {
					NOT = { has_innovation = innovation_battlements }
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = lacks_battlements_innovation_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { 
		value = 800 
		if = {
			limit = {
				NOT = { has_innovation = innovation_battlements }
			}
			multiply = 0
		}
		if = {
			limit = {
				scope:character = { ai_boldness >= 0 }
			}
			multiply = 0.25
		}
	}
}

tradition_fyrds_low = {

	category = regional
	
	layers = {
		0 = martial
		1 = mena
		3 = 4.dds
		4 = knight.dds
	}

	is_shown = {
		NOR = {
			has_cultural_tradition = tradition_warrior_culture
			has_cultural_tradition = tradition_fp1_coastal_warriors
			has_cultural_tradition = tradition_hird
		}
		OR = {
			AND = {
				has_cultural_pillar = heritage_west_germanic
				has_fp1_dlc_trigger = no
			}
			any_parent_culture_or_above = {
				OR = {
					this = culture:old_saxon
					#: this = culture:angles_low
				}
			}
		}
		NOT = { this = culture:english }
	}
	
	can_pick = {
		culture_not_pacifistic_trigger = yes
		trigger_if = {
			limit = { has_ep3_dlc_trigger = yes }
			custom_tooltip = {
				scope:character = {
					OR = {
						government_has_flag = government_is_feudal
						government_has_flag = government_is_clan
						government_has_flag = government_is_administrative
					}
				}
				text = must_be_feudal_clan_or_admin
			}
		}
		trigger_else = {
			custom_tooltip = {
				scope:character = {
					OR = {
						government_has_flag = government_is_feudal
						government_has_flag = government_is_clan
					}
				}
				text = must_be_feudal_or_clan
			}
		}
		custom_tooltip = {
			text = cannot_have_another_warrior_culture_tradition_low
			NOT = {
				culture_tradition:tradition_warrior_culture = { is_in_list = traits }
				culture_tradition:tradition_fp1_coastal_warriors = { is_in_list = traits }
				culture_tradition:tradition_hird = { is_in_list = traits }
			}
		}
		NOT = { this = culture:english }
	}
	
	can_pick_for_hybridization = {
		custom_tooltip = {
			text = cannot_have_another_warrior_culture_tradition_low
			NOT = {
				culture_tradition:tradition_warrior_culture = { is_in_list = traits }
				culture_tradition:tradition_fp1_coastal_warriors = { is_in_list = traits }
				culture_tradition:tradition_hird = { is_in_list = traits }
			}
		}
		NOT = { this = culture:english }
	}
	
	parameters = {
		unlock_maa_ceorls_low = yes
		unlock_maa_huscarls = yes
		unlock_maa_thegns_low = yes
		strong_traits_more_common = yes
		strong_traits_more_valued = yes
		weak_traits_looked_down_upon = yes
		rowdy_trait_more_common = yes
		pensive_trait_less_common = yes
		cultrad_unlocks_t2_redouble_guards = yes
	}
	
	character_modifier = {
		cultural_head_fascination_mult = -0.05
		knight_limit = 1
		prowess = 2
		monthly_martial_lifestyle_xp_gain_mult = 0.05
		accolade_glory_gain_mult = 0.1
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_stoic_or_bureaucratic_desc
				}
			}
			if = {
				limit = {
					trigger_if = {
						limit = {
							scope:character = {
								is_ai = no
							}
						}
						NOT = {
							any_ruler = {
								count >= 3
								culture = prev
								primary_title.tier >= tier_county
								OR = {	
									has_trait = strong
									has_trait = physique_good
								}
							}
						}
					}
					trigger_else = {
						always = no
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = strong_rulers_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 800
		if = {
			limit = {
				NOT = {
					culture_pillar:ethos_bellicose = { is_in_list = traits }
					culture_pillar:ethos_stoic = { is_in_list = traits }
					culture_pillar:ethos_bureaucratic = { is_in_list = traits }
				}
			}
			multiply = 0
		}
	}
}

tradition_herepaths_low = {

	category = realm
	
	layers = {
		0 = intrigue
		1 = indian
		3 = 1.dds
		4 = forest.dds
	}
	
	parameters = {
		unlock_voluntary_laampdom = yes
		more_likely_to_be_laamps = yes
		wanderers_gain_extra_combat_skills = yes
		mercenary_courtiers_gain_extra_skills = yes
		more_likely_to_leave_court = yes
	}
	
	character_modifier = {
		monthly_lifestyle_xp_gain_mult = 0.05
		monthly_wanderer_lifestyle_xp_gain_mult = 0.10
		movement_speed = 0.05
		character_travel_safety_mult = 0.10
		character_travel_speed_mult = 0.10
		hills_travel_danger = -15
		taiga_travel_danger = -15
		forest_travel_danger = -15
		wetlands_travel_danger = -15
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOT = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_egalitarian = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_egalitarian_or_stoic_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 600 }

}

tradition_rota_organization_low = {

	category = regional
	
	layers = {
		0 = martial
		1 = western
		3 = 6.dds
		4 = battle.dds
	}
	
	is_shown = {
		NOR = {
			has_cultural_tradition = tradition_only_the_strong
			has_cultural_tradition = tradition_stand_and_fight
		}
		OR = {
			AND = {
				has_cultural_pillar = heritage_west_germanic
				has_fp1_dlc_trigger = no
			}
			any_parent_culture_or_above = {
				OR = {
					this = culture:old_saxon
					#: this = culture:angles_low
				}
			}
		}
	}
	
	can_pick = {
		custom_tooltip = {
			text = cannot_have_stand_and_fight_or_only_the_strong_tradition_low
			NOT = {
				culture_tradition:tradition_stand_and_fight = { is_in_list = traits }
				culture_tradition:tradition_only_the_strong = { is_in_list = traits }
			}
		}
	}
	
	can_pick_for_hybridization = {
		custom_tooltip = {
			text = cannot_have_stand_and_fight_or_only_the_strong_tradition_low
			NOT = {
				culture_tradition:tradition_stand_and_fight = { is_in_list = traits }
				culture_tradition:tradition_only_the_strong = { is_in_list = traits }
			}
		}
	}
	
	character_modifier = {
		monthly_war_income_mult = 0.05
		men_at_arms_recruitment_cost = 0.15
		men_at_arms_maintenance = 0.10
		army_maintenance_mult = -0.10
		levy_toughness = 3
		knight_effectiveness_mult = 0.25
		counter_efficiency = 0.10
		men_at_arms_limit = -1
		men_at_arms_cap = 1
		maa_damage_add = 5
		maa_toughness_add = 5
		levy_reinforcement_rate = 0.15
	}
	
	province_modifier = {
		levy_size = -0.25
		garrison_size = -0.25
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_stoic_or_bureaucratic_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 800
		if = {
			limit = {
				NOT = {
					culture_pillar:ethos_bellicose = { is_in_list = traits }
					culture_pillar:ethos_stoic = { is_in_list = traits }
					culture_pillar:ethos_bureaucratic = { is_in_list = traits }
				}
			}
			multiply = 0
		}
	}

}