﻿
tradition_RICE_kinship_based_craft_guilds = {
	category = regional

	layers = {
		0 = learning
		1 = mena
		4 = RICE_yoruba_sculpture.dds
	}

	is_shown = {
		has_cultural_pillar = heritage_yoruba
		# OR = {
		# 	has_cultural_pillar = heritage_yoruba
		# 	scope:character = {
		# 		AND = {
		# 			OR = {
		# 				religion = religion:west_african_orisha_religion
		# 				religion = religion:odinala_religion
		# 				religion = religion:ijaw_religion
		# 				culture = {
		# 					OR = {
		# 						culture_has_west_african_heritage_pillar_trigger = yes
		# 						culture_has_central_african_heritage_pillar_trigger = yes
		# 					}
		# 				}
		# 			}
		# 		}
		# 	}
		# 	any_culture_county = {
		# 		title_province = {
		# 			geographical_region = RICE_niger_delta_region
		# 		}
		# 	}
		# }
	}
	can_pick = {
		has_cultural_pillar = heritage_yoruba
		# OR = {
		# 	has_cultural_pillar = heritage_yoruba
		# 	scope:character = {
		# 		AND = {
		# 			OR = {
		# 				religion = religion:west_african_orisha_religion
		# 				religion = religion:odinala_religion
		# 				religion = religion:ijaw_religion
		# 			}
		# 			culture = {
		# 				OR = {
		# 					culture_has_west_african_heritage_pillar_trigger = yes
		# 					culture_has_central_african_heritage_pillar_trigger = yes
		# 				}
		# 			}
		# 		}
		# 	}
		# 	any_culture_county = {
		# 		count >= 3
		# 		title_province = {
		# 			geographical_region = RICE_niger_delta_region
		# 		}
		# 	}
		# }
		NOT = { has_cultural_tradition = tradition_RICE_ritual_hegemony }
	}
	
	parameters = {
		unlock_rice_african_royal_guilds = yes
		unlock_rice_unrestricted_beaded_crown_bestowments = yes
		unlock_rice_ancestor_worship = yes
	}
	character_modifier = {
		monthly_county_control_growth_factor = 0.15
		monthly_court_grandeur_change_mult = 0.05
		#development_growth_factor = 0.1
		#vassal_opinion = 5
	}
	
	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
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_RICE_igwebuike = {
	category = regional

	layers = {
		0 = diplo
		1 = mena
		4 = RICE_kola_nut.dds
	}

	is_shown = {
		has_cultural_pillar = heritage_yoruba
		custom_description = {
			text = culture_not_bellicose
			NOT = {
				culture_pillar:ethos_bellicose = { is_in_list = traits }
			}
		}
		culture_not_warlike_trigger = yes
	}
	can_pick = {
		has_cultural_pillar = heritage_yoruba
		custom_description = {
			text = culture_not_bellicose
			NOT = {
				culture_pillar:ethos_bellicose = { is_in_list = traits }
			}
		}
		culture_not_warlike_trigger = yes
	}
	
	parameters = {
		cannot_attack_allies = yes
		cannot_attack_truces = yes
		pensive_trait_more_common = yes
		rowdy_trait_less_common = yes
		unlock_rice_kola_nut_truce = yes
		unlock_rice_kola_nut_decision = yes
	}
	character_modifier = {
		#learning = 1
		monthly_learning_lifestyle_xp_gain_mult = 0.1
		#martial = -1
		#prowess = -1
		monthly_martial_lifestyle_xp_gain_mult = -0.1
		
		ai_war_chance = -0.33
		ai_war_cooldown = 5
		ai_boldness = -10
		ai_compassion = 10
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_egalitarian = { 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_egalitarian_spiritual_or_communal_desc
				}
			}
			if = {
				limit = {
					scope:character = {
						is_at_war = yes
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = is_at_war_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_RICE_ritual_hegemony = {
	category = regional

	layers = {
		0 = intrigue
		1 = mena
		4 = RICE_palm_fronds.dds
	}

	is_shown = {
		has_cultural_pillar = heritage_yoruba
	}
	can_pick = {
		has_cultural_pillar = heritage_yoruba
		NOT = { has_cultural_tradition = tradition_RICE_kinship_based_craft_guilds }
	}
	
	parameters = {
		unlock_rice_african_royal_guilds = yes
		unlock_rice_ancestor_worship = yes
	}
	character_modifier = {
		domain_limit = -1 # -2
		monthly_county_control_decline_factor = -0.2
		monthly_prestige_gain_mult = 0.03
		monthly_piety_gain_mult = 0.03
		vassal_opinion = 5
		domain_tax_same_faith_mult_even_if_baron = 0.1
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_egalitarian = { 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_egalitarian_spiritual_or_communal_desc
				}
			}
			if = {
				limit = {
					scope:character = {
						is_at_war = yes
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = is_at_war_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
	}
}
