﻿tradition_hfc_bedouin_honor_codes = {
	category = societal

	layers = {
		4 = hfc_bedouin_honor_codes.dds
	}

	is_shown = {
		has_cultural_pillar = heritage_arabic
	}

	can_pick = {
		has_cultural_pillar = heritage_arabic
	}
	
	parameters = {
		#generous_honest_brave_traits_more_valued = yes
		#greedy_deceitful_craven_traits_looked_down_upon = yes

		prowess_traits_more_valued = yes
		craven_and_content_traits_looked_down_upon = yes

		generous_trait_more_common = yes
		honest_trait_more_common = yes
		more_gift_opinion = yes
		gives_more_gifts = yes
	}

	character_modifier = {
		ai_amenity_spending = 0.2
		ai_honor = 20
		ai_vengefulness = 10
		ai_greed = -20
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_communal = { is_in_list = traits }
						culture_pillar:ethos_spiritual = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_spiritual_or_communal_desc
				}
			}
			if = {
				limit = {
					trigger_if = {
						limit = {
							scope:character = {
								is_ai = no
							}
						}
						NOT = {
							any_ruler = {
								count >= 5
								culture = prev
								primary_title.tier >= tier_county
								has_trait = generous
							}
						}
					}
					trigger_else = {
						always = no
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = rulers_with_generous_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 0 }
}

tradition_hfc_bedouin_oral_poetry = {
	category = societal

	layers = {
		4 = hfc_bedouin_oral_poetry.dds
	}

	is_shown = {
		has_cultural_pillar = heritage_arabic
	}

	can_pick = {
		has_cultural_pillar = heritage_arabic
		custom_tooltip = {
			text = cannot_have_tradition_fp1_northern_stories
			NOT = { culture_tradition:tradition_fp1_northern_stories = { is_in_list = traits } }
		}
	}
	
	parameters = {
		poet_trait_gives_bonuses = yes
		poet_trait_more_common = yes
		better_ward_education = yes
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_courtly = { is_in_list = traits }
						culture_pillar:ethos_communal = { is_in_list = traits }
						culture_pillar:ethos_spiritual = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_courtly_communal_or_spiritual_desc
				}
			}
			if = {
				limit = {
					trigger_if = {
						limit = {
							scope:character = {
								is_ai = no
							}
						}
						NOT = {
							any_ruler = {
								count >= 3
								culture = prev
								primary_title.tier >= tier_county
								has_trait = poet
							}
						}
					}
					trigger_else = {
						always = no
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = rulers_with_poet_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = { value = 0 }
}
