﻿##################################################
# INDEX
#
# Marauder			-	marauder_attribute
# Idealist			-	idealist_attribute
# Charmer			-	charmer_attribute
# Thug				-	thug_attribute
# Disciplinarian	-	disciplinarian_attribute
# Fanatic			-	fanatic_attribute
# Valiant			-	valiant_attribute
# Stalwart			-	stalwart_attribute
# Scoundrel			-	scoundrel_attribute

##################################################

# PERSONALITY TYPE ATTRIBUTES

marauder_attribute = {
	adjective = accolade_marauding
	noun = accolade_marauder
	#grouping accolades
	accolade_categories = { common personality villainous martial intrigue dreadful disliked army_bonus amoral forceful aggressive militant }

	#founding and successor requirements
	potential = {
		prowess >= accolade_prowess_requirement_value
	}
	weight = {
		value = accolade_uninteresting_base_value
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						has_dynasty_perk = warfare_legacy_3
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						has_dynasty_perk = fp1_pillage_legacy_3
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						has_dynasty_perk = glory_legacy_3
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_innovation = innovation_baliffs
					}
				}
			}
			add = -25
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_innovation = innovation_noblesse_oblige
					}
				}
			}
			add = -25
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						culture = {
							OR = {
								has_cultural_tradition = tradition_ruling_caste
								has_cultural_tradition = tradition_eye_for_an_eye
								has_cultural_pillar = ethos_bellicose 
							}
						}
						faith = {
							OR = {
								trait_is_virtue = vengeful
								has_doctrine = tenet_pursuit_of_power
							}
						}
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_tradition = tradition_ruling_caste
						has_cultural_tradition = tradition_eye_for_an_eye
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				culture = {
					has_cultural_tradition = tradition_charitable
				}
			}
			add = -50
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = sadistic
						has_trait = callous
						has_trait = vengeful
						dread > 40
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				OR = {
					has_trait = wrathful
					has_trait = aggressive_attacker
				}
			}
			add = 25
		}
		if = {
			limit = {
				dread > 20
			}
			add = 50
		}
		#weight for opinion
		if = {
			limit = {
				exists = liege
			}
			multiply = accolade_opinion_multiplier_value
		}

		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = compassionate
						has_trait = forgiving
						has_trait = generous
						culture = {
							has_cultural_tradition = tradition_charitable
						}
						faith = {
							OR = {
								has_doctrine = tenet_pacifism
								has_doctrine = tenet_dharmic_pacifism
							}
						}
					}
				}
			}
			multiply = 0
		}
	}

	#accolade ranks from Glory XP
	ranks = {
		# glory_requirement =  { modifiers and unlocks }
		100 = { # rank 1
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.001
			}
			knight_army_modifier = {
				uncontrolled_province_advantage = 2
			}
		}
		300 = { # rank 2
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.001
			}
			knight_army_modifier = {
				uncontrolled_province_advantage = 2
			}
		}
		600 = { # rank 3
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.002
			}
			knight_army_modifier = {
				uncontrolled_province_advantage = 3
			}
		}
		1000 = { # rank 4
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.002
			}
			knight_army_modifier = {
				uncontrolled_province_advantage = 3
			}
		}
			
		1500 = { # rank 5
			knight_army_modifier = {
				uncontrolled_province_advantage = 5
			}
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.003
			}
		}
		2100 = { # rank 6
			knight_army_modifier = {
				uncontrolled_province_advantage = 5
			}
			liege_modifier = {
				monthly_prestige_gain_per_dread_mult = 0.003
			}
		}
	}
}

idealist_attribute = {
	adjective = accolade_idealistic
	noun = accolade_idealist
	#grouping accolades
	accolade_categories = { common personality benevolent social diplomacy vassal_manager foreign_relations courtly ethical defensive leader }

	#founding and successor requirements
	potential = {
		prowess >= accolade_prowess_requirement_value
	}
	weight = {
		value = accolade_uninteresting_base_value
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						OR = {
							has_dynasty_perk = glory_legacy_3
							has_dynasty_perk = ep1_culture_legacy_3
						}
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						has_dynasty_perk = guile_legacy_3
					}
				}
			}
			add = -100
		}
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						has_dynasty_perk = fp1_pillage_legacy_3
					}
				}
			}
			add = -100
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_cultural_pillar = ethos_egalitarian
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					faith = {
						OR = {
							has_doctrine = tenet_pacifism
							has_doctrine = tenet_dharmic_pacifism
							has_doctrine = tenet_natural_primitivism
						}
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				faith = {
					OR = {
						has_doctrine = tenet_pacifism
						has_doctrine = tenet_dharmic_pacifism
						has_doctrine = tenet_natural_primitivism
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_tradition = tradition_charitable
							has_cultural_tradition = tradition_loyal_soldiers
							has_cultural_tradition = tradition_chivalry
						}
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_tradition = tradition_charitable
						has_cultural_tradition = tradition_loyal_soldiers
						has_cultural_tradition = tradition_chivalry
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				OR = {
					culture = {
						OR = {
							has_cultural_tradition = tradition_ruling_caste
							has_cultural_tradition = tradition_eye_for_an_eye
						}
					}
					faith = {
						has_doctrine = tenet_pursuit_of_power
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = compassionate
						has_trait = trusting
						has_trait = loyal
						has_trait = forgiving
					}
				}
			}
			add = 50
		}
		#weight for opinion
		if = {
			limit = {
				exists = liege
			}
			multiply = accolade_opinion_multiplier_value
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = sadistic
						has_trait = callous
						has_trait = vengeful
						has_trait = paranoid
						has_trait = greedy
						dread > 20
						tyranny > 20
						culture = {
							has_cultural_tradition = tradition_eye_for_an_eye
						}
						faith = {
							has_doctrine = tenet_pursuit_of_power
						}
					}
				}
			}
			multiply = 0
		}
	}

	#accolade ranks from Glory XP
	ranks = {
		# glory_requirement =  { modifiers and unlocks }
		100 = { # rank 1
			liege_modifier = {
				courtly_opinion = 5
				minority_opinion = 3
				barons_and_minor_landholders_opinion = 3
			}
		}
		300 = { # rank 2
			liege_modifier = {
				courtly_opinion = 5
				minority_opinion = 3
				barons_and_minor_landholders_opinion = 3
			}
		}
		600 = { # rank 3
			liege_modifier = {
				courtly_opinion = 8
				minority_opinion = 6
				barons_and_minor_landholders_opinion = 6
			}
		}
		1000 = { # rank 4
			liege_modifier = {
				courtly_opinion = 8
				minority_opinion = 6
				barons_and_minor_landholders_opinion = 6
			}
		}
		1500 = { # rank 5
			liege_modifier = {
				courtly_opinion = 10
				minority_opinion = 10
				barons_and_minor_landholders_opinion = 10
			}
			accolade_parameters = {
				accolade_champions_white_peace
			}
		}
		2100 = { # rank 6
			liege_modifier = {
				courtly_opinion = 10
				minority_opinion = 10
				barons_and_minor_landholders_opinion = 10
			}
			accolade_parameters = {
				accolade_champions_white_peace
			}
		}
	}
}

charmer_attribute = {
	adjective = accolade_charming
	noun = accolade_charmer
	#grouping accolades
	accolade_categories = { common personality unscrupulous social diplomacy intrigue personal_schemer disliked courtly subtle }

	#founding and successor requirements
	potential = {
		prowess >= accolade_prowess_requirement_value
	}
	weight = {
		value = accolade_uninteresting_base_value
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						has_dynasty_perk = glory_legacy_3
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_tradition = tradition_welcoming
							has_cultural_pillar = ethos_courtly
						}
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_cultural_tradition = tradition_wedding_ceremonies
					}
				}
			}
			add = -100
		}
		if = {
			limit = {
				scope:owner ?= {
					faith = {
						OR = {
							has_doctrine = tenet_hedonistic
							has_doctrine = tenet_carnal_exaltation
							has_doctrine = tenet_polyamory
							has_doctrine = tenet_natural_primitivism
						}
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_cultural_tradition = tradition_chivalry
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_cultural_tradition = tradition_monogamous
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				faith = {
					OR = {
						has_doctrine = tenet_hedonistic
						has_doctrine = tenet_carnal_exaltation
						has_doctrine = tenet_polyamory
						has_doctrine = tenet_natural_primitivism
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				culture = {
					has_cultural_tradition = tradition_wedding_ceremonies
				}
			}
			add = -50
		}
		if = {
			limit = {
				culture = {
					has_cultural_tradition = tradition_chivalry
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = lustful
						has_trait = seducer
						has_trait = gregarious
						has_trait = adulterer
						has_trait = fornicator
					}
				}
			}
			add = 50
		}
		#weight for opinion
		if = {
			limit = {
				exists = liege
			}
			multiply = accolade_opinion_multiplier_value
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = chaste
						AND = {
							has_trait = zealous
							faith = { trait_is_sin = lustful }
						}
					}
				}
			}
			multiply = 0
		}
	}

	#accolade ranks from Glory XP
	ranks = {
		# glory_requirement =  { modifiers and unlocks }
		100 = { # rank 1
			liege_modifier = {
				seduce_scheme_phase_duration_add = minor_scheme_phase_duration_bonus_value
			}
			accolade_parameters = {
				accolade_court_seduction_vulnerability
			}
		}
		300 = { # rank 2
			liege_modifier = {
				seduce_scheme_phase_duration_add = minor_scheme_phase_duration_bonus_value
			}
			accolade_parameters = {
				accolade_court_seduction_vulnerability
			}
		}
		600 = { # rank 3
			liege_modifier = {
				seduce_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
			}
			accolade_parameters = {
				accolade_court_seduction_vulnerability
				accolade_party_fertility
			}
		}
		1000 = { # rank 4
			liege_modifier = {
				seduce_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
			}
			accolade_parameters = {
				accolade_court_seduction_vulnerability
				accolade_party_fertility
			}
		}
		1500 = { # rank 5
			liege_modifier = {
				seduce_scheme_phase_duration_add = major_scheme_phase_duration_bonus_value
			}
			accolade_parameters = {
				accolade_court_seduction_vulnerability
				accolade_party_fertility_high
			}
		}
		2100 = { # rank 6
			liege_modifier = {
				seduce_scheme_phase_duration_add = major_scheme_phase_duration_bonus_value
			}
			accolade_parameters = {
				accolade_court_seduction_vulnerability
				accolade_party_fertility_high
			}
		}
	}
}

thug_attribute = {
	adjective = accolade_thuggish
	noun = accolade_thug
	#grouping accolades
	accolade_categories = { common personality unscrupulous prowess hostile_schemer activities dreadful disliked amoral forceful aggressive champion }

	#founding and successor requirements
	potential = {
		prowess >= accolade_prowess_requirement_value
	}
	weight = {
		value = accolade_uninteresting_base_value
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						OR = {
							has_dynasty_perk = warfare_legacy_3
							has_dynasty_perk = fp1_pillage_legacy_3
						}
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						OR = {
							has_dynasty_perk = glory_legacy_3
							has_dynasty_perk = law_legacy_3
						}
					}
				}
			}
			add = -100
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						NOT = {
							has_innovation = innovation_development_02
						}
					}
				}
			}
			add = 25
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_innovation = innovation_noblesse_oblige
					}
				}
			}
			add = -25
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_tradition = tradition_battlefield_looters
							has_cultural_pillar = ethos_bellicose
							has_cultural_tradition = tradition_ruling_caste
						}
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_tradition = tradition_pacifism
							has_cultural_pillar = ethos_egalitarian
							has_cultural_tradition = tradition_chivalry
						}
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				OR = {
					scope:owner ?= {
						culture = {
							OR = {
								has_cultural_tradition = tradition_forbearing
								has_cultural_tradition = tradition_legalistic
								has_cultural_tradition = tradition_equitable
							}
						}
					}
					scope:owner ?= {
						faith = {
							has_doctrine = tenet_legalism
						}
					}
				}
			}
			add = -100
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_cultural_tradition = tradition_quarrelsome
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_tradition = tradition_forbearing
						has_cultural_tradition = tradition_equitable
						has_cultural_tradition = tradition_pacifism
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				culture = {
					has_cultural_tradition = tradition_quarrelsome
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = reaver
						has_trait = sadistic
						has_trait = callous
						has_trait = impatient
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				has_trait = compassionate
			}
			add = -100
		}
		if = {
			limit = {
				OR = {
					has_trait = sadistic
					has_trait = callous
					has_trait = vengeful
				}
			}
			add = 50
		}
		#weight for opinion
		if = {
			limit = {
				exists = liege
			}
			multiply = accolade_opinion_multiplier_value
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = just
						has_trait = compassionate
					}
				}
			}
			multiply = 0
		}
	}

	#accolade ranks from Glory XP
	ranks = {
		# glory_requirement =  { modifiers and unlocks }
		100 = { # rank 1
			liege_modifier = {
				dread_per_tyranny_add = 0.2
			}
		}
		300 = { # rank 2
			liege_modifier = {
				dread_per_tyranny_add = 0.2
			}
		}
		600 = { # rank 3
			liege_modifier = {
				dread_per_tyranny_add = 0.4
			}
			accolade_parameters = {
				accolade_imprisonment_chance
			}
		}
		1000 = { # rank 4
			liege_modifier = {
				dread_per_tyranny_add = 0.4
			}
			accolade_parameters = {
				accolade_imprisonment_chance
			}
		}
		1500 = { # rank 5
			liege_modifier = {
				dread_per_tyranny_add = 0.8
			}
			accolade_parameters = {
				accolade_imprisonment_chance_high
			}
		}
		2100 = { # rank 6
			liege_modifier = {
				dread_per_tyranny_add = 0.8
			}
			accolade_parameters = {
				accolade_imprisonment_chance_high
			}
		}
	}
}

disciplinarian_attribute = {
	adjective = accolade_disciplined
	noun = accolade_disciplinarian
	#grouping accolades
	accolade_categories = { common personality righteous stewardship martial army_bonus causes_stress ethical forceful militant leader }

	#founding and successor requirements
	potential = {
		prowess >= accolade_prowess_requirement_value
	}
	weight = {
		value = accolade_uninteresting_base_value
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						OR = {
							has_dynasty_perk = warfare_legacy_3
							has_dynasty_perk = law_legacy_3
						}
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						NOT = {
							has_innovation = innovation_bannus
						}
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_innovation = innovation_men_at_arms
					}
				}
			}
			add = 25
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						has_innovation = innovation_royal_armory
					}
				}
			}
			add = 25
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_tradition = tradition_hard_working
							has_cultural_tradition = tradition_staunch_traditionalists
							has_cultural_tradition = tradition_formation_fighting
							has_cultural_tradition = tradition_strength_in_numbers
						}
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					faith = {
						has_doctrine = tenet_natural_primitivism
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				faith = {
					has_doctrine = tenet_natural_primitivism
				}
			}
			add = -25
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = temperate
						has_trait = diligent
						has_trait = stubborn
						has_trait = callous
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				OR = {
					has_trait = chaste
					has_trait = just
				}
			}
			add = 25
		}
		#weight for opinion
		if = {
			limit = {
				exists = liege
			}
			multiply = accolade_opinion_multiplier_value
		}
		if = {
			limit = {
				scope:owner ?= {
					has_trait = lifestyle_reveler
				}
			}
			multiply = 0
		}
	}

	#accolade ranks from Glory XP
	ranks = {
		# glory_requirement =  { modifiers and unlocks }
		100 = { # rank 1
			liege_modifier = {
				levy_reinforcement_rate = 0.1
				vassal_herd_contribution_mult = 0.02
			}
		}
		300 = { # rank 2
			liege_modifier = {
				levy_reinforcement_rate = 0.1
				vassal_herd_contribution_mult = 0.02
			}
		}
		600 = { # rank 3
			liege_modifier = {
				levy_reinforcement_rate = 0.2
				levy_maintenance = -0.1
				vassal_herd_contribution_mult = 0.05
			}
			knight_army_modifier = {
				hostile_county_attrition = -0.4
			}
		}
		1000 = { # rank 4
			liege_modifier = {
				levy_reinforcement_rate = 0.2
				levy_maintenance = -0.1
				vassal_herd_contribution_mult = 0.05
			}
			knight_army_modifier = {
				hostile_county_attrition = -0.4
			}
		}
		1500 = { # rank 5
			liege_modifier = {
				levy_reinforcement_rate = 0.3
				levy_maintenance = -0.2
				vassal_herd_contribution_mult = 0.1
			}
			knight_army_modifier = {
				hostile_county_attrition = -0.8
			}
		}
		2100 = { # rank 6
			liege_modifier = {
				levy_reinforcement_rate = 0.3
				levy_maintenance = -0.2
				vassal_herd_contribution_mult = 0.1
			}
			knight_army_modifier = {
				hostile_county_attrition = -0.8
			}
		}
	}
}

fanatic_attribute = {
	adjective = accolade_fanatical
	noun = accolade_fanatic
	#grouping accolades
	accolade_categories = { common personality righteous learning army_bonus disliked militant ethical forceful aggressive }

	#founding and successor requirements
	potential = {
		prowess >= accolade_prowess_requirement_value
		exists = liege
		faith = liege.faith
	}
	weight = {
		value = accolade_uninteresting_base_value
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						has_dynasty_perk = erudition_legacy_3
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						has_dynasty_perk = ep1_culture_legacy_3
					}
				}
			}
			add = -100
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_tradition = tradition_warrior_monks
							has_cultural_tradition = tradition_faith_bound
						}
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_tradition = tradition_xenophilic
							has_cultural_tradition = tradition_religion_blending
							has_cultural_tradition = tradition_steppe_tolerance
						}
					}
				}
			}
			add = -100
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_pillar = ethos_spiritual
							has_cultural_tradition = tradition_by_the_sword
							has_cultural_tradition = tradition_zealous_people
						}
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					faith = {
						has_doctrine = doctrine_pluralism_fundamentalist
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					faith = {
						OR = {
							has_doctrine = tenet_pursuit_of_power
							has_doctrine = tenet_unrelenting_faith
							has_doctrine = tenet_struggle_submission
							has_doctrine = tenet_warmonger
						}
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				scope:owner ?= {
					faith = {
						OR = {
							has_doctrine = tenet_pacifism
							has_doctrine = tenet_dharmic_pacifism	
						}
					}
				}
			}
			add = -75
		}
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_tradition = tradition_xenophilic
						has_cultural_tradition = tradition_religion_blending
						has_cultural_tradition = tradition_steppe_tolerance
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_pillar = ethos_spiritual
						has_cultural_tradition = tradition_by_the_sword
						has_cultural_tradition = tradition_zealous_people
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = compassionate
						has_trait = forgiving
					}
				}
			}
			add = -75
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = lifestyle_mystic
						has_trait = faith_warrior
					}
				}
			}
			add = 75
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = holy_warrior
						has_trait = zealous
						has_trait = crusader_king
						has_trait = order_member
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				OR = {
					has_trait = lifestyle_mystic
					has_trait = faith_warrior
					has_trait = devoted
					has_trait = order_member
				}
			}
			add = 100
		}
		if = {
			limit = {
				OR = {
					has_trait = compassionate
					has_trait = forgiving
				}
			}
			add = -50
		}
		#weight for opinion
		if = {
			limit = {
				exists = liege
			}
			multiply = accolade_opinion_multiplier_value
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = cynical
						faith = {
							has_doctrine = doctrine_pluralism_pluralistic
						}
					}
				}
			}
			multiply = 0
		}
	}

	#accolade ranks from Glory XP
	ranks = {
		# glory_requirement =  { modifiers and unlocks }
		100 = { # rank 1
			liege_modifier = {
				zealot_opinion = 10
			}
		}
		300 = { # rank 2
			liege_modifier = {
				zealot_opinion = 10
			}
		}
		600 = { # rank 3
			liege_modifier = {
				zealot_opinion = 15
			}
			accolade_parameters = {
				acclaimed_knight_piety_from_battle
			}
		}
		1000 = { # rank 4
			liege_modifier = {
				zealot_opinion = 15
			}
			#knight_army_modifier = {
			#	tolerance_advantage_mod = 6
			#}
			accolade_parameters = {
				acclaimed_knight_piety_from_battle
			}
		}
		1500 = { # rank 5
			liege_modifier = {
				zealot_opinion = 25
			}
			accolade_parameters = {
				acclaimed_knight_piety_from_battle_high
			}
		}
		2100 = { # rank 6
			liege_modifier = {
				zealot_opinion = 25
			}
			accolade_parameters = {
				acclaimed_knight_piety_from_battle_high
			}
		}
	}
}

valiant_attribute = {
	adjective = accolade_valiant
	noun = accolade_valiant
	#grouping accolades
	accolade_categories = { common personality righteous prowess army_bonus army_penalty militant forceful aggressive militant champion }

	#founding and successor requirements
	potential = {
		prowess >= accolade_prowess_requirement_value
	}
	weight = {
		value = accolade_uninteresting_base_value
		if = {
			limit = {
				scope:owner ?= {
					exists = dynasty
					dynasty = {
						OR = {
							has_dynasty_perk = warfare_legacy_3
							has_dynasty_perk = fp1_adventure_legacy_3
						}
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_pillar = ethos_bellicose
							has_cultural_pillar = ethos_stoic
						}
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				culture = {
					has_cultural_pillar = ethos_bellicose
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_tradition = tradition_formation_fighting
							has_cultural_tradition = tradition_stalwart_defenders
							has_cultural_tradition = tradition_modest
							has_cultural_tradition = tradition_forbearing
						}
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				scope:owner ?= {
					culture = {
						OR = {
							has_cultural_tradition = tradition_talent_acquisition
							has_cultural_tradition = tradition_only_the_strong
							has_cultural_tradition = tradition_stand_and_fight
							has_cultural_tradition = tradition_warrior_culture
							has_cultural_tradition = tradition_fp1_performative_honour
							has_cultural_tradition = tradition_fp1_the_right_to_prove
						}
					}
				}
			}
			add = 100
		}
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_tradition = tradition_talent_acquisition
						has_cultural_tradition = tradition_only_the_strong
						has_cultural_tradition = tradition_stand_and_fight
						has_cultural_tradition = tradition_warrior_culture
						has_cultural_tradition = tradition_fp1_performative_honour
						has_cultural_tradition = tradition_fp1_the_right_to_prove
					}
				}
			}
			add = 50
		}
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_tradition = tradition_formation_fighting
						has_cultural_tradition = tradition_stalwart_defenders
						has_cultural_tradition = tradition_modest
						has_cultural_tradition = tradition_forbearing
						has_cultural_tradition = tradition_byzantine_succession
						has_cultural_tradition = tradition_ep3_palace_politics
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				scope:owner ?= {
					has_trait = craven
				}
			}
			add = -75
		}
		if = {
			limit = {
				scope:owner ?= {
					OR = {
						has_trait = brave
						has_trait = reckless
						has_trait = ambitious
						has_trait = aggressive_attacker
						has_trait = reckless
					}
				}
			}
			add = 75
		}
		if = {
			limit = {
				OR = {
					has_trait = aggressive_attacker
					has_trait = zealous
					has_trait = wrathful
				}
			}
			add = 75
		}
		if = {
			limit = {
				OR = {
					has_trait = lazy
					has_trait = patient
					has_trait = deceitful
				}
			}
			add = -75
		}
		#weight for opinion
		if = {
			limit = {
				exists = liege
			}
			multiply = accolade_opinion_multiplier_value
		}
	}

	#accolade ranks from Glory XP
	ranks = {
		# glory_requirement =  { modifiers and unlocks }
		100 = { # rank 1
			knight_army_modifier = {
				army_damage_mult = 0.1
			}
		}
		300 = { # rank 2
			knight_army_modifier = {
				army_damage_mult = 0.1
			}
		}
		600 = { # rank 3
			knight_army_modifier = {
				army_damage_mult = 0.2
			}
			liege_modifier = {
				glory_hound_opinion = 15
			}
		}
		1000 = { # rank 4
			knight_army_modifier = {
				army_damage_mult = 0.2
			}
			liege_modifier = {
				glory_hound_opinion = 15
			}
		}
		1500 = { # rank 5
			knight_army_modifier = {
				army_damage_mult = 0.3
			}
			liege_modifier = {
				glory_hound_opinion = 25
			}
		}
		2100 = { # rank 6
			knight_army_modifier = {
				army_damage_mult = 0.3
			}
			liege_modifier = {
				glory_hound_opinion = 25
			}
		}
	}
}

stalwart_attribute = {
    adjective = accolade_stalwart
    noun = accolade_stalwart
    #grouping accolades
    accolade_categories = { common personality righteous army_bonus ethical forceful defensive leader benevolent }
    #founding and successor requirements
    potential = {
        prowess >= accolade_prowess_requirement_value
    }
    weight = {
        value = accolade_uninteresting_base_value
        if = {
            limit = {
                scope:owner ?= {
                    exists = dynasty
                    dynasty = {
                        OR = {
                            has_dynasty_perk = warfare_legacy_3
                            has_dynasty_perk = ep2_activities_legacy_3
                        }
                    }
                }
            }
            add = 50
        }
        if = {
            limit = {
                scope:owner ?= {
                    culture = {
                        OR = {
                            has_cultural_pillar = ethos_communal
                            has_cultural_pillar = ethos_stoic
                        }
                    }
                }
            }
            add = 50
        }
        if = {
            limit = {
                culture = {
                    has_cultural_pillar = ethos_stoic
                }
            }
            add = 50
        }
        if = {
            limit = {
                scope:owner ?= {
                    culture = {
                        OR = {
                            has_cultural_tradition = tradition_stalwart_defenders
                            has_cultural_tradition = tradition_forbearing
                            has_cultural_tradition = tradition_stand_and_fight
                        }
                    }
                }
            }
            add = 100
        }
        if = {
            limit = {
                culture = {
                    OR = {
                        has_cultural_tradition = tradition_stalwart_defenders
                        has_cultural_tradition = tradition_formation_fighting
                        has_cultural_tradition = tradition_stand_and_fight
                        has_cultural_tradition = tradition_druzhina
                        has_cultural_tradition = tradition_hird
                        has_cultural_tradition = tradition_fp1_coastal_warriors
                        has_cultural_tradition = tradition_desert_nomads
                    }
                }
            }
            add = 50
        }
        if = {
            limit = {
                culture = {
                    OR = {
                        has_cultural_tradition = tradition_hit_and_run
                        has_cultural_tradition = tradition_quarrelsome
                    }
                }
            }
            add = -50
        }
        if = {
            limit = {
                scope:owner ?= {
                    has_trait = reckless
                }
            }
            add = -75
        }
        if = {
            limit = {
                scope:owner ?= {
                    OR = {
                        has_trait = just
                        has_trait = honest
                        has_trait = patient
                        has_trait = unyielding_defender
                        has_trait = loyal
                    }
                }
            }
            add = 75
        }
        if = {
            limit = {
                OR = {
                    has_trait = cautious_leader
                    has_trait = trusting
                    has_trait = stubborn
                }
            }
            add = 50
        }
        if = {
            limit = {
                OR = {
                    has_trait = deceitful
                    has_trait = arbitrary
                    has_trait = impatient
                    has_trait = aggressive_attacker
                    has_trait = disloyal
                    has_trait = reckless
                    has_trait = fickle
                    has_trait = craven
                }
            }
            add = -75
        }
        #weight for opinion
        if = {
            limit = {
                exists = liege
            }
            multiply = accolade_opinion_multiplier_value
        }
    }
    #accolade ranks from Glory XP
    ranks = {
        # glory_requirement =  { modifiers and unlocks }
        100 = { # rank 1
           liege_modifier = {
                character_travel_safety = 5
            }
        }
        300 = { # rank 2
            liege_modifier = {
                character_travel_safety = 5
            }
        }
        600 = { # rank 3
            knight_army_modifier = {
                army_toughness_mult = 0.1
            }
            liege_modifier = {
                character_travel_safety = 10
            }
        }
        1000 = { # rank 4
            knight_army_modifier = {
                army_toughness_mult = 0.1
            }
            liege_modifier = {
                character_travel_safety = 10
            }
        }
        1500 = { # rank 5
            knight_army_modifier = {
                army_toughness_mult = 0.15
            }
            liege_modifier = {
                character_travel_safety = 15
            }
        }
        2100 = { # rank 6
            knight_army_modifier = {
                army_toughness_mult = 0.15
            }
            liege_modifier = {
                character_travel_safety = 15
            }
        }
    }
}

scoundrel_attribute = {
    adjective = accolade_scoundrel
    noun = accolade_scoundrel
    #grouping accolades
    accolade_categories = { common personality amoral martial intrigue army_bonus subtle unscrupulous }
    #founding and successor requirements
    potential = {
        prowess >= accolade_prowess_requirement_value
    }
    weight = {
        value = accolade_uninteresting_base_value
        if = {
            limit = {
                scope:owner ?= {
                    exists = dynasty
                    dynasty = {
                        OR = {
                            has_dynasty_perk = guile_legacy_3
                            has_dynasty_perk = warfare_legacy_3
                        }
                    }
                }
            }
            add = 50
        }
        if = {
            limit = {
                scope:owner ?= {
                    culture = {
                        has_cultural_pillar = ethos_bellicose
                    }
                }
            }
            add = 50
        }
        if = {
            limit = {
                culture = {
                    has_cultural_pillar = ethos_bellicose
                }
            }
            add = 50
        }
        if = {
            limit = {
                scope:owner ?= {
                    culture = {
                        OR = {
                            has_cultural_tradition = tradition_stand_and_fight
                            has_cultural_tradition = tradition_stalwart_defenders
                            has_cultural_tradition = tradition_forbearing
                            has_cultural_tradition = tradition_legalistic
                        }
                    }
                }
            }
            add = -50
        }
        if = {
            limit = {
                scope:owner ?= {
                    culture = {
                        OR = {
                            has_cultural_tradition = tradition_swords_for_hire
                            has_cultural_tradition = tradition_life_is_just_a_joke
                            has_cultural_tradition = tradition_practiced_pirates
                            has_cultural_tradition = tradition_ep3_audacious_cadets
                        }
                    }
                }
            }
            add = 100
        }
        if = {
            limit = {
                culture = {
                    OR = {
                        has_cultural_tradition = tradition_hit_and_run
                        has_cultural_tradition = tradition_quarrelsome
                        has_cultural_tradition = tradition_swords_for_hire
                        has_cultural_tradition = tradition_fp1_coastal_warriors
                        has_cultural_tradition = tradition_fp2_state_ransoming
                        has_cultural_tradition = tradition_practiced_pirates
                        has_cultural_tradition = tradition_ep3_audacious_cadets
                    }
                }
            }
            add = 50
        }
        if = {
            limit = {
                culture = {
                    OR = {
                        has_cultural_tradition = tradition_stand_and_fight
                        has_cultural_tradition = tradition_stalwart_defenders
                        has_cultural_tradition = tradition_modest
                        has_cultural_tradition = tradition_chivalry
                    }
                }
            }
            add = -50
        }
        if = {
            limit = {
                scope:owner ?= {
                    has_trait = cautious_leader
                }
            }
            add = -75
        }
        if = {
            limit = {
                scope:owner ?= {
                    OR = {
                        has_trait = ambitious
                        has_trait = gregarious
                        has_trait = greedy
                        has_trait = deceitful
                    }
                }
            }
            add = 75
        }
        if = {
            limit = {
                OR = {
                    has_trait = arbitrary
                    has_trait = fickle
                    has_trait = callous
                }
            }
            add = 50
        }
        if = {
            limit = {
                OR = {
                    has_trait = just
                    has_trait = shy
                    has_trait = generous
                    has_trait = honest
                    has_trait = compassionate
                    has_trait = loyal
                }
            }
            add = -75
        }
        #weight for opinion
        if = {
            limit = {
                exists = liege
            }
            multiply = accolade_opinion_multiplier_value
        }
    }
    #accolade ranks from Glory XP
    ranks = {
        # glory_requirement =  { modifiers and unlocks }
        100 = { # rank 1
            liege_modifier = {
               mercenary_hire_cost_mult = -0.1
            }
        }
        300 = { # rank 2
            liege_modifier = {
                mercenary_hire_cost_mult = -0.1
            }
        }
        600 = { # rank 3
            liege_modifier = {
                martial_per_stress_level = 2
                mercenary_hire_cost_mult = -0.2
            }
        }
        1000 = { # rank 4
            liege_modifier = {
                martial_per_stress_level = 2
                mercenary_hire_cost_mult = -0.2
            }
        }
        1500 = { # rank 5
            liege_modifier = {
                martial_per_stress_level = 5
                mercenary_hire_cost_mult = -0.3
            }
        }
        2100 = { # rank 6
            liege_modifier = {
                martial_per_stress_level = 5
                mercenary_hire_cost_mult = -0.3
            }
        }
    }
}
