﻿#######################
# CULTURAL TRADITIONS #
#######################

######################
# MAA Traditions 	 #
######################

tradition_RICE_siberian_survivalists = {
	category = regional

	layers = {
		4 = RICE_siberian_survivalists.dds
	}
	
	is_shown = {
		OR = {
			has_cultural_pillar = heritage_siberian
			has_cultural_pillar = heritage_ugro_permian
		}
	}
	can_pick = {
		OR = {
			has_cultural_pillar = heritage_siberian
			has_cultural_pillar = heritage_ugro_permian
		}
	}
	
	parameters = {
		unlock_RICE_siberian_hunters = yes
		winter_soldier_trait_more_common = yes
		winter_trait_bonuses = yes
		can_recruit_winter_specialist = yes
	}

	character_modifier = {
		health = 0.25
		taiga_travel_danger = taiga_low_danger_reduction
	}	

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 100 }
}


tradition_RICE_swahili_contacts = {
	category = regional

	layers = {
		4 = RICE_swahili_contacts.dds
	}
	
	is_shown = {
		has_cultural_pillar = heritage_bantu
	}
	can_pick = {
		has_cultural_pillar = heritage_bantu
	}
	
	parameters = {
		unlock_RICE_swahili_sailors = yes
		wanderers_gain_extra_economic_skills = yes
		wanderers_learn_languages = yes
		extra_language_cap = yes
	}

	character_modifier = {
		diplomacy = 1
		diplomatic_range_mult = 0.1
		sea_travel_danger = low_sea_danger_reduction
	}	

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 100 }
}

######################
# Regional Traditions #
######################

tradition_RICE_ubiquity_of_poetry = {
	category = regional

	layers = {
		4 = RICE_ubiquity_of_poetry.dds
	}
	
	is_shown = {
		any_culture_county = {
			title_province = {
				OR = {
					geographical_region = world_middle_east_arabia
					geographical_region = ghw_region_horn_of_africa
				}
			}
		}
	}
	can_pick = {
		any_culture_county = {
			title_province = {
				OR = {
					geographical_region = world_middle_east_arabia
					geographical_region = ghw_region_horn_of_africa
				}
			}
		}
	}
	
	parameters = {
		poet_trait_more_common = yes
		unlock_RICE_decision_poetry_contest = yes
		#diplomacy_education_better_outcomes = yes
	}

	culture_modifier = {
		cultural_acceptance_gain_mult = 0.25
	}

	character_modifier = {
		#different_culture_opinion = 10
		#different_faith_opinion = 10
		owned_personal_scheme_success_chance_add = 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 }
						culture_pillar:ethos_egalitarian = { 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 = 50 }
}


tradition_RICE_xianbei_scions = {
	category = regional

	layers = {
		4 = RICE_xianbei_scions.dds
	}
	
	is_shown = {
		OR = {
			this = culture:tuyuhun
			this = culture:qiang
			any_parent_culture_or_above = {
				OR = {
					this = culture:tuyuhun
					this = culture:qiang
				}
			}
		}
	}
	can_pick = {
		OR = {
			this = culture:tuyuhun
			this = culture:qiang
			any_parent_culture_or_above = {
				OR = {
					this = culture:tuyuhun
					this = culture:qiang
				}
			}
		}
	}
	
	parameters = {
		unlock_rice_decision_nadun_festival = yes
		unlock_rice_decision_restore_tuyuhun_kingdom = yes
		unlock_rice_travel_option_qinghaicong_horses = yes
		extra_language_cap = yes
	}

	character_modifier = {
		different_culture_opinion = 10
	}	

	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_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 = 50 }
}




tradition_RICE_white_huns = {
	category = regional

	layers = {
		4 = RICE_white_huns.dds
	}
	
	is_shown = {
		NOT = { has_global_variable = RICE_game_started_on_TFE_start_date }
		OR = {
			this = culture:hephthalite
			any_parent_culture_or_above = {
				this = culture:hephthalite
			}
			scope:character = {
				# Zunbils were Hephthalite remnants
				religion = religion:zunism_religion	
			}
		}
	}
	can_pick = {
		OR = {
			this = culture:hephthalite
			any_parent_culture_or_above = {
				this = culture:hephthalite
			}
			scope:character = {
				# Zunbils were Hephthalite remnants
				religion = religion:zunism_religion	
			}
		}
	}
	
	parameters = {
		unlock_rice_decision_hephthalite_empire = yes
		culture_can_raid_over_land_even_if_feudal = yes
		republican_vassals_pay_more = yes		
		unlock_RICE_pamir_tribesmen = yes
	}

	character_modifier = {
		tribal_government_vassal_opinion = 5
		monthly_county_control_decline_factor = -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_communal = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_stoic_or_communal_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	ai_will_do = { value = 50 }
}




tradition_RICE_children_of_the_nile = {
	category = regional

	layers = {
		4 = RICE_children_of_the_nile.dds
	}
	
	is_shown = {
		any_culture_county = {
			#count >= 4
			any_county_province = {
				geographical_region = RICE_nile_river_valley
			}
		}
	}
	can_pick = {
		custom_tooltip = {
			text = RICE_culture_along_the_nile_desc
			any_culture_county = {
				count >= 4
				any_county_province = {
					geographical_region = RICE_nile_river_valley
				}
			}
		}
	}
	
	parameters = {
		unlock_rice_decision_nile_flood_results = yes
		unlock_rice_decision_build_nilometers = yes
	}

	county_modifier = {
		floodplains_development_growth_factor = 0.05
		floodplains_construction_gold_cost = -0.05
		oasis_development_growth_factor = 0.05
		oasis_construction_gold_cost = -0.05
		desert_development_growth_factor = 0.05
		desert_construction_gold_cost = -0.05
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_spiritual = { is_in_list = traits }
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_communal = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_spiritual_or_communal_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	ai_will_do = { value = 100 }
}



tradition_RICE_silk_road = {
	category = regional

	layers = {
		4 = RICE_silk_road.dds
	}
	
	is_shown = {
		any_culture_county = {
			title_province = {
				geographical_region = RICE_land_silk_road_region
			}
		}
	}
	can_pick = {
		any_culture_county = {
			count >= 4
			title_province = {
				geographical_region = RICE_land_silk_road_region
			}
		}
	}
	
	parameters = {
		city_buildings_more_powerful = yes
		unlock_rice_silk_road_dynasty_legacy = yes
		rice_decision_reinforce_relations_multiple = yes
		unlock_silk_road_entertainers = yes
		unlock_sincization = yes
		#unlock_rice_tarim_basin_establish_translation_bureau = yes
		#rice_decision_reinforce_relations_no_limit = yes
	}

	character_modifier = {
		diplomatic_range_mult = 0.2
		different_culture_opinion = 5
		different_faith_opinion = 5
		character_travel_speed_mult = 0.05
		character_travel_safety_mult = 0.05
	}	

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 100 }
}





tradition_RICE_beyond_the_reach_of_eagles = {
	category = regional

	layers = {
		4 = RICE_beyond_the_reach_of_eagles.dds
	}
	
	is_shown = {
		any_culture_county = {
			title_province = {
				geographical_region = RICE_greater_pamir_region
			}
		}
	}
	can_pick = {
		any_culture_county = {
			count >= 3
			title_province = {
				geographical_region = RICE_greater_pamir_region
			}
		}
	}
	
	parameters = {
		unlimited_chinir_festival = yes
		cheaper_pamir_watchtower_decision = yes
		#hill_farms_building_bonuses = yes
		unlock_RICE_pamir_tribesmen = yes
	}
	province_modifier = {
		mountains_supply_limit_mult = 0.25
		desert_mountains_supply_limit_mult = 0.25
	}
	character_modifier = {
		monthly_county_control_decline_factor = -0.2
		vassal_opinion = -5
		defender_advantage = 2	
		mountains_travel_danger = mountains_low_danger_reduction
		desert_mountains_travel_danger = desert_mountains_low_danger_reduction	
		ai_honor = 10
	}	

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 25 }
}





tradition_RICE_galician_portuguese_poetry = {
	category = regional

	layers = {
		4 = RICE_galician_portuguese_poetry.dds
	}

	is_shown = {
		OR = {
			has_cultural_pillar = heritage_iberian
			has_cultural_pillar = language_iberian
			scope:character = {
				AND = {
					religion = religion:christianity_religion
					capital_province = {
						geographical_region = world_europe_west_iberia
					}
				}
			}
		}
	}

	can_pick = {
		OR = {
			has_cultural_pillar = heritage_iberian
			has_cultural_pillar = language_iberian
			scope:character = {
				AND = {
					religion = religion:christianity_religion
					capital_province = {
						geographical_region = world_europe_west_iberia
					}
				}
			}
		}
	}
	
	parameters = {
		characters_are_better_court_poets = yes
		unlock_cantiga_decisions = yes
		better_cantiga_results = yes
		promote_cantiga_bonuses = yes
	}

	character_modifier = {
		diplomacy_per_piety_level = 1
		monthly_learning_lifestyle_xp_gain_mult = 0.05
	}	
	
	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_spiritual = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_spiritual_or_courtly_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
		if = {
			limit = { # AI should avoid stacking traditions for courtly court positions
				culture_tradition:tradition_music_theory = { is_in_list = traits }
			}
			multiply = 0.75
		}
	}
}





tradition_RICE_kala_settlements = {
	category = regional

	layers = {
		4 = RICE_kala_settlements.dds
	}

	is_shown = {
		OR = {
			has_cultural_pillar = heritage_iranian
			has_cultural_pillar = heritage_tocharian
			has_cultural_pillar = heritage_turkic
		}
	}

	can_pick = {
		OR = {
			has_cultural_pillar = heritage_iranian
			has_cultural_pillar = heritage_tocharian
			has_cultural_pillar = heritage_turkic
		}
	}
	
	parameters = {
		unlock_rice_kala_decision = yes
	}

	character_modifier = {
		defender_advantage = 4
	}	

	county_modifier = {
		castle_holding_build_speed = -0.2
		castle_holding_build_gold_cost = -0.2
		castle_holding_holding_build_gold_cost = -0.2
		castle_holding_holding_build_speed = -0.2		
	}
	
	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_courtly = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_courtly_communal_or_stoic_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 50
	}
}

tradition_RICE_akhtarvenik = {
	category = regional

	layers = {
		4 = RICE_akhtarvenik.dds
	}

	is_shown = {
		OR = {
			this = culture:khwarezmian
			any_parent_culture_or_above = {
				this = culture:khwarezmian
			}
		}
	}

	can_pick = {
		OR = {
			this = culture:khwarezmian
			any_parent_culture_or_above = {
				this = culture:khwarezmian
			}
		}
	}
	
	#parameters = {

	#}

	character_modifier = {
		cultural_head_fascination_mult = 0.1
		# stewardship_per_piety_level = 1
		# learning_per_piety_level = 1
		monthly_stewardship_lifestyle_xp_gain_mult = 0.05
		monthly_learning_lifestyle_xp_gain_mult = 0.05
		character_travel_speed_mult = 0.05
	}	

	# county_modifier = {
	# 	castle_holding_build_speed = -0.2
	# 	castle_holding_build_gold_cost = -0.2
	# 	castle_holding_holding_build_gold_cost = -0.2
	# 	castle_holding_holding_build_speed = -0.2		
	# }
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
						culture_pillar:ethos_spiritual = { is_in_list = traits }
					}
				}
				add = { # AAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_spiritual_or_communal_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 50
	}
}

tradition_RICE_khuzi = {
	category = regional

	layers = {
		4 = RICE_khuzi.dds
	}

	is_shown = {
		NOT = {	
			is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:RICE_khuzestan_khuzi_dignity_restored
			}		
		}
		OR = {
			this = culture:elamite
			any_parent_culture_or_above = {
				this = culture:elamite
			}
		}
	}

	can_pick = {
		OR = {
			this = culture:elamite
			any_parent_culture_or_above = {
				this = culture:elamite
			}
		}
	}
	
	parameters = {
		khuzi_mechanic_1 = yes
		khuzi_mechanic_2 = yes
	}

	character_modifier = {
		#diplomacy = -2
		intrigue = 1
		learn_language_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
		#vassal_opinion = -10
		#domain_limit = -1
	}	

	# county_modifier = {
	# }
	
	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_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_stoic_or_communal_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 0
	}
}

tradition_RICE_khuzi_elevated_elymaean = {
	category = regional

	layers = {
		4 = RICE_khuzi_elevated_elymaean.dds
	}

	is_shown = {
		is_target_in_global_variable_list = {
			name = unavailable_unique_decisions
			target = flag:RICE_khuzestan_khuzi_dignity_restored
		}
		has_global_variable = RICE_khuzestan_khuzi_elymais
		OR = {
			this = culture:elamite
			any_parent_culture_or_above = {
				this = culture:elamite
			}
		}
	}

	can_pick = {
		OR = {
			this = culture:elamite
			any_parent_culture_or_above = {
				this = culture:elamite
			}
		}
	}
	
	#parameters = {

	#}

	character_modifier = {
		martial = 1
		intrigue = 1
		learn_language_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
		archers_damage_mult = 0.1
		archers_toughness_mult = 0.05
		archer_cavalry_damage_mult = 0.1
		archer_cavalry_toughness_mult = 0.05
	}	

	county_modifier = {
		defender_holding_advantage = 3
	}
	
	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_communal = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_stoic_or_communal_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
	}
}

tradition_RICE_khuzi_elevated_community = {
	category = regional

	layers = {
		4 = RICE_khuzi_elevated_community.dds
	}

	is_shown = {
		is_target_in_global_variable_list = {
			name = unavailable_unique_decisions
			target = flag:RICE_khuzestan_khuzi_dignity_restored
		}
		has_global_variable = RICE_khuzestan_khuzi_community
		OR = {
			this = culture:elamite
			any_parent_culture_or_above = {
				this = culture:elamite
			}
		}
	}

	can_pick = {
		OR = {
			this = culture:elamite
			any_parent_culture_or_above = {
				this = culture:elamite
			}
		}
	}
	
	#parameters = {

	#}

	character_modifier = {
		diplomacy = 1
		intrigue = 1
		learn_language_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
		county_opinion_add = 5
		courtier_and_guest_opinion = 5
	}	

	# county_modifier = {
	# }
	
	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_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_courtly_communal_or_stoic_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
	}
}

tradition_RICE_khuzi_elevated_traders = {
	category = regional

	layers = {
		4 = RICE_khuzi_elevated_traders.dds
	}

	is_shown = {
		is_target_in_global_variable_list = {
			name = unavailable_unique_decisions
			target = flag:RICE_khuzestan_khuzi_dignity_restored
		}
		has_global_variable = RICE_khuzestan_khuzi_traders
		OR = {
			this = culture:elamite
			any_parent_culture_or_above = {
				this = culture:elamite
			}
		}
	}

	can_pick = {
		OR = {
			this = culture:elamite
			any_parent_culture_or_above = {
				this = culture:elamite
			}
		}
	}
	
	#parameters = {

	#}

	character_modifier = {
		stewardship = 1
		intrigue = 1
		learn_language_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
		#diplomatic_range_mult = 0.1
		domain_tax_mult = 0.1
		character_travel_speed_mult = 0.1
	}	

	# county_modifier = {
	# }
	
	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_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_courtly_communal_or_stoic_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
	}
}




tradition_RICE_northmen = {
	category = regional

	layers = {
		4 = RICE_northmen.dds
	}

	is_shown = {
		OR = {
			this = culture:norman
			any_parent_culture_or_above = {
				this = culture:norman
			}
		}
		# No longer available after Historia Normannorum is done
		NOT = { 
			has_global_variable = RICE_normandy_historia_normannorum_done
		}
		# GLOBAL VARIABLE TO REMOVE
	}

	can_pick = {
		OR = {
			this = culture:norman
			any_parent_culture_or_above = {
				this = culture:norman
			}
		}
		# GLOBAL VARIABLE TO REMOVE
	}

	
	parameters = {
		rice_norman_mechanic_1 = yes
		rice_norman_adventurers = yes
		culture_can_raid_at_sea_even_if_feudal = yes
		#rice_cheaper_normandy_settlers = yes
		#unlock_maa_varangian_veterans = yes
		craven_trait_costs_prestige = yes
		weak_traits_looked_down_upon = yes
		# Concubinage
		number_of_spouses = 1
		number_of_consorts = 1
	}

	character_modifier = {
		#mercenary_hire_cost_mult = -0.2
		dread_baseline_add = 10
		vassal_opinion = -10
		liege_opinion = -10
		#rf_abrahamic_opinion = -10
		#rf_pagan_opinion = -10
	}	

	county_modifier = {	
		monthly_county_control_decline_factor = -0.2
	}
	
	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_courtly = { is_in_list = traits }
					}
				}
				add = { # AAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_stoic_or_courtly_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
	}
}



tradition_RICE_adventurers_and_aristocrats = {
	category = regional

	layers = {
		4 = RICE_adventurers_and_aristocrats.dds
	}

	is_shown = {
		OR = {
			this = culture:norman
			any_parent_culture_or_above = {
				this = culture:norman
			}
		}
		# Only available after Historia Normannorum is done
		has_global_variable = RICE_normandy_historia_normannorum_done
		# Not shown if Norman struggle has ended successfully
		NOR = {
			has_global_variable = RICE_normandy_ending_norman_conquest
			has_global_variable = RICE_normandy_ending_norman_assimilation
		}
		# GLOBAL VARIABLE TO REMOVE
	}

	can_pick = {
		OR = {
			this = culture:norman
			any_parent_culture_or_above = {
				this = culture:norman
			}
		}
		# GLOBAL VARIABLE TO REMOVE
	}


	culture_modifier = {
		cultural_acceptance_gain_mult = 0.15
	}
	
	parameters = {
		rice_norman_adventurers = yes
		culture_can_raid_at_sea_even_if_feudal = yes
		#wanderers_gain_extra_combat_skills = yes
		rice_norman_mechanic_2 = yes
		#unlock_RICE_norman_cavalry = yes
		#rice_cheaper_normandy_settlers = yes
		#unlock_maa_varangian_veterans = yes
		# Concubinage
	}

	character_modifier = {
		#knight_effectiveness_mult = 0.05
		diplomatic_range_mult = 0.1
		learn_language_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
		#character_travel_safety_mult = 0.05
	}	

	#county_modifier = {	
	#}
	
	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_spiritual = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
					}
				}
				add = { # AAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_spiritual_or_courtly_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
	}
}


tradition_RICE_adventurers_and_aristocrats_military = {
	category = regional

	layers = {
		4 = RICE_adventurers_and_aristocrats_military.dds
	}

	is_shown = {
		OR = {
			this = culture:norman
			any_parent_culture_or_above = {
				this = culture:norman
			}
		}
		# Only available after Historia Normannorum is done
		has_global_variable = RICE_normandy_historia_normannorum_done
		# Only available if Norman struggle ended in conquest
		has_global_variable = RICE_normandy_ending_norman_conquest
	}

	can_pick = {
		OR = {
			this = culture:norman
			any_parent_culture_or_above = {
				this = culture:norman
			}
		}
		# GLOBAL VARIABLE TO REMOVE
	}


	culture_modifier = {
		cultural_acceptance_gain_mult = 0.15
	}
	
	parameters = {
		rice_norman_adventurers = yes
		#wanderers_gain_extra_combat_skills = yes
		#unlock_RICE_norman_cavalry = yes
	}

	character_modifier = {
		#knight_effectiveness_mult = 0.15
		#knight_limit = 1
		vassal_levy_contribution_mult = 0.1
		diplomatic_range_mult = 0.1
		learn_language_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
		#character_travel_safety_mult = 0.05
	}	

	county_modifier = {
		castle_holding_holding_build_speed = -0.05
		castle_holding_holding_build_gold_cost = -0.05
		castle_holding_build_speed = -0.05
		castle_holding_build_gold_cost = -0.05
	}
	
	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_spiritual = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
					}
				}
				add = { # AAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_spiritual_or_courtly_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
	}
}


tradition_RICE_adventurers_and_aristocrats_culture = {
	category = regional

	layers = {
		4 = RICE_adventurers_and_aristocrats_culture.dds
	}

	is_shown = {
		OR = {
			this = culture:norman
			any_parent_culture_or_above = {
				this = culture:norman
			}
		}
		# Only available after Historia Normannorum is done
		has_global_variable = RICE_normandy_historia_normannorum_done
		# Only available if Norman struggle ended in assimilation
		has_global_variable = RICE_normandy_ending_norman_assimilation
	}

	can_pick = {
		OR = {
			this = culture:norman
			any_parent_culture_or_above = {
				this = culture:norman
			}
		}
		# GLOBAL VARIABLE TO REMOVE
	}


	culture_modifier = {
		cultural_acceptance_gain_mult = 0.15
	}
	
	parameters = {
		rice_norman_adventurers = yes
		wanderers_gain_extra_economic_skills = yes
		#unlock_RICE_norman_cavalry = yes
	}

	character_modifier = {
		#knight_effectiveness_mult = 0.05
		vassal_tax_contribution_mult = 0.1
		diplomatic_range_mult = 0.1
		learn_language_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
		#character_travel_safety_mult = 0.05
	}	

	county_modifier = {
		city_holding_build_speed = -0.1
		city_holding_build_gold_cost = -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_spiritual = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
					}
				}
				add = { # AAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_spiritual_or_courtly_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
	}
}


tradition_RICE_munya_estates = {
	category = regional

	layers = {
		4 = RICE_munya_estates.dds
	}

	is_shown = {
		OR = {
			any_culture_county = {
				any_county_province = {
					geographical_region = world_europe_east_iberia
				}
			}
			any_parent_culture = {
	            has_cultural_tradition = tradition_RICE_munya_estates
	        }
		}
	}

	can_pick = {
		OR = {
			custom_tooltip = {
				text = RICE_iberian_struggle_character_involved_req
				exists = struggle:iberian_struggle
				scope:character = {
					any_character_struggle = {
						involvement = involved
					}
				}
			}
			custom_tooltip = {
				text = RICE_iberian_struggle_ended_req
				NOT = { exists = struggle:iberian_struggle }
			}
		}	
		custom_tooltip = {
			text = RICE_culture_in_iberia_desc
			any_culture_county = {
				count >= 5
				any_county_province = {
					geographical_region = world_europe_west_iberia
				}
			}
		}
		scope:character = {
			capital_province = {
				geographical_region = world_europe_west_iberia
			}
		}
	}
	
	parameters = {
		unlock_rice_munya_activity = yes
		unlock_rice_munya_activity_cost = yes
		unlock_rice_munya_activity_private_variety = yes
		unlock_rice_munya_activity_group_variety = yes
	}

	# culture_modifier = {
	# 	cultural_acceptance_gain_mult = 0.05
	# }

	character_modifier = {
		stress_loss_per_prestige_level = 0.03		
	}	

	county_modifier = {
		development_growth_factor = 0.05
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_egalitarian = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_courtly_or_egalitarian_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 75
		if = {
			limit = {
				OR = {
					has_cultural_pillar = heritage_berber
					has_cultural_pillar = heritage_arabic
					has_cultural_pillar = heritage_iberian
					has_cultural_pillar = heritage_israelite
				}
			}
			multiply = 1.5
		}
		if = {
			limit = {
				scope:character = {
					religion = religion:islam_religion
				}
			}
			multiply = 1.5
		}
	}
}



tradition_RICE_wendish_confederations = {
	category = regional

	layers = {
		4 = RICE_wendish_confederations.dds
	}

	is_shown = {
		# OR = {
		# 	this = culture:polabian
		# 	any_parent_culture_or_above = {
		# 		this = culture:polabian
		# 	}
		# }
		has_cultural_pillar = heritage_west_slavic
	}

	can_pick = {
		# OR = {
		# 	this = culture:polabian
		# 	any_parent_culture_or_above = {
		# 		this = culture:polabian
		# 	}
		# 	scope:character = {
		# 		capital_province = {
		# 			geographical_region = RICE_polabian_region
		# 		}
		# 	}
		# }
		has_cultural_pillar = heritage_west_slavic
	}

	parameters = {
		tribal_elective_enabled = yes
		unlock_rice_activity_zapust_festival = yes
	}

	character_modifier = {
		#ai_war_chance = 0.25
		castle_holding_build_gold_cost = -0.05
		castle_holding_holding_build_gold_cost = -0.05
		title_creation_cost_mult = -0.1
		#vassal_limit = 10
		monthly_county_control_growth_factor = 0.1
	}

	#county_modifier = {
	#	garrison_size = 0.1
	#}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						any_in_list = { list = traits this = flag:ethos_courtly }
						any_in_list = { list = traits this = flag:ethos_spiritual }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_spiritual_or_courtly_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 100 }
}




tradition_RICE_judicati = {
	category = regional

	layers = {
		4 = RICE_judicati.dds
	}

	is_shown = {
		NOT = { has_global_variable = RICE_game_started_on_TFE_start_date }
		NOT = {
			is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:RICE_sardinia_orientation_decided
			}
		}
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
	}

	can_pick = {
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
		#has_cultural_pillar = heritage_latin
	}

	parameters = {
		unlock_rice_condaghes_innovation = yes
		unlock_rice_judicati_upgrade = yes
		# Concubinage
		#number_of_spouses = 1
		#number_of_consorts = 1
		#gender_equal_inheritance = yes
	}

	character_modifier = {
		domain_limit = -1 # -2
		tyranny_gain_mult = 0.25
		opinion_of_female_rulers = 10
		#direct_vassal_opinion = 10
	}

	county_modifier = {
		county_opinion_add = 5
		#monthly_county_control_growth_factor = 0.1
	}

	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_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_bureaucratic_or_stoic_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 100 }
}

tradition_RICE_judicati_catholic = {
	category = regional

	layers = {
		4 = RICE_judicati_catholic.dds
	}

	is_shown = {
		NOT = { has_global_variable = RICE_game_started_on_TFE_start_date }
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
		# Only available after the Catholic/Latin West option is chosen in the Sardinian decision
		has_global_variable = RICE_sardinia_catholic_ending
	}

	can_pick = {
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
		has_cultural_pillar = heritage_latin
	}

	parameters = {
		unlock_rice_condaghes_innovation = yes
		unlock_rice_judicati_catholic_decision = yes
	}

	character_modifier = {
		domain_limit = -1 # -2
		tyranny_gain_mult = 0.25
		opinion_of_female_rulers = 10
		#direct_vassal_opinion = 10
	}

	county_modifier = {
		county_opinion_add = 5
		church_holding_build_gold_cost = -0.05
	}

	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_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_bureaucratic_or_stoic_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 100 }
}

tradition_RICE_judicati_orthodox = {
	category = regional

	layers = {
		4 = RICE_judicati_orthodox.dds
	}

	is_shown = {
		NOT = { has_global_variable = RICE_game_started_on_TFE_start_date }
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
		# Only available after the Orthodox/Greek East option is chosen in the Sardinian decision
		has_global_variable = RICE_sardinia_orthodox_ending
	}

	can_pick = {
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
		has_cultural_pillar = heritage_byzantine
	}

	parameters = {
		unlock_rice_condaghes_innovation = yes
		unlock_rice_judicati_orthodox_decision = yes
	}

	character_modifier = {
		domain_limit = -1 # -2
		tyranny_gain_mult = 0.25
		opinion_of_female_rulers = 10
		#direct_vassal_opinion = 10
	}

	county_modifier = {
		county_opinion_add = 5
		city_holding_build_gold_cost = -0.05
	}

	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_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_bureaucratic_or_stoic_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 100 }
}

tradition_RICE_judicati_north_african = {
	category = regional

	layers = {
		4 = RICE_judicati_north_african.dds
	}

	is_shown = {
		NOT = { has_global_variable = RICE_game_started_on_TFE_start_date }
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
		# Only available after the North African option is chosen in the Sardinian decision
		has_global_variable = RICE_sardinia_north_african_ending
	}

	can_pick = {
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
		has_cultural_pillar = heritage_berber
	}

	parameters = {
		unlock_rice_condaghes_innovation = yes
		unlock_rice_judicati_north_african_decision = yes
	}

	character_modifier = {
		domain_limit = -1 # -2
		tyranny_gain_mult = 0.25
		opinion_of_female_rulers = 10
		#direct_vassal_opinion = 10
		stewardship = 1
		diplomatic_range_mult = 0.05		
	}

	county_modifier = {
		county_opinion_add = 5
	}

	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_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_bureaucratic_or_stoic_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 100 }
}

tradition_RICE_judicati_none = {
	category = regional

	layers = {
		4 = RICE_judicati_none.dds
	}

	is_shown = {
		NOT = { has_global_variable = RICE_game_started_on_TFE_start_date }
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
		# Only available after the None option is chosen in the Sardinian decision
		has_global_variable = RICE_sardinia_none_ending
	}

	can_pick = {
		OR = {
			this = culture:sardinian
			any_parent_culture_or_above = {
				this = culture:sardinian
			}
		}
	}

	parameters = {
		unlock_rice_condaghes_innovation = yes
		unlock_rice_judicati_none_decision = yes
	}

	character_modifier = {
		domain_limit = -1 # -2
		tyranny_gain_mult = 0.25
		opinion_of_female_rulers = 10
		#direct_vassal_opinion = 10
	}

	county_modifier = {
		county_opinion_add = 5
		defender_holding_advantage = 2
	}

	province_modifier = {
		stationed_maa_toughness_mult = 0.1
	}

	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_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_bureaucratic_or_stoic_desc
				}
			}
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 100 }
}



# Adapted from Fallen Eagle
# Original tradition was added by Shatzi
# Africagrarian
tradition_african_agriculture = {
	category = regional

	layers = { 
		4 = african_agriculture.dds
	}

	is_shown = {
		# OR = {
		# 	this = culture:african_roman
		# 	any_parent_culture_or_above = {
		# 		this = culture:african_roman
		# 	}
		# }
		has_cultural_pillar = heritage_berber
	}

	
	can_pick = {
		NOT = { has_cultural_tradition = tradition_dryland_dwellers }
		has_cultural_pillar = heritage_berber
		custom_description = {
			text = culture_in_dryland_desc
			any_culture_county = {
				any_county_province = {
					terrain = drylands
				}
			}
		}
	}
	
	parameters = {
		plantations_building_bonuses = yes
		unlock_tfe_cheaper_qanats = yes
	}
	character_modifier = {
		drylands_travel_danger = drylands_medium_danger_reduction
	}
	county_modifier = {
		drylands_development_growth_factor = 0.15
	}
	province_modifier = {
		drylands_tax_mult = 0.2
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					culture_pillar:ethos_bellicose = { is_in_list = traits }
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = culture_not_bellicose
				}
			}
			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.3
							any_county_province = {
								terrain = drylands
								terrain = desert
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = dry_percentage_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					scope:character = {
						any_sub_realm_county = {
							percent >= 0.2
							culture = scope:character.culture
							any_county_province = {
								OR = {
									terrain = drylands
									terrain = desert
								}
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

# Based on an idea by Soraya
# Named either Marignal Tribalism or Makhazen and Siba
tradition_RICE_berber_marignal_tribalism = {
	category = regional

	layers = { 
		4 = RICE_berber_marignal_tribalism.dds
	}

	is_shown = {
		has_cultural_pillar = heritage_berber
		OR = {
			any_culture_county = {
				title_province = {
					geographical_region = world_africa_sahara
				}
			}
			any_culture_county = {
				title_province = {
					geographical_region = world_africa_north
				}
			}
		}
	}

	
	can_pick = {
		has_cultural_pillar = heritage_berber
		OR = {
			any_culture_county = {
				title_province = {
					geographical_region = world_africa_sahara
				}
			}
			any_culture_county = {
				title_province = {
					geographical_region = world_africa_north
				}
			}
		}
	}
	
	parameters = {
		culture_can_raid_over_land_even_if_feudal = yes
		harder_to_hybridize = yes
		harder_to_convert_county_culture = yes
		unlock_voluntary_laampdom = yes
		much_more_likely_to_be_laamps = yes
		#disloyal_trait_more_common = yes
	}
	character_modifier = {
        #controlled_province_advantage = 5
        #same_culture_opinion = 5
        opinion_of_liege = -10
        #raid_speed = 0.1
        hostile_county_attrition_raiding = -0.1
        movement_speed_land_raiding = 0.1
    }

	province_modifier = {
    #	mountains_levy_size = 0.1
    #	desert_mountains_levy_size = 0.1
		mountains_supply_limit_mult = 0.25
		desert_mountains_supply_limit_mult = 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_communal = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_stoic_or_communal_desc
				}
			}
			# if = {
			# 	limit = {
			# 		NOT = {
			# 			any_culture_county = {
			# 				percent >= 0.3
			# 				any_county_province = {
			# 					terrain = drylands
			# 					terrain = desert
			# 				}
			# 			}
			# 		}
			# 	}
			# 	add = {
			# 		value = tradition_unfulfilled_criteria_penalty
			# 		desc = dry_percentage_desc
			# 	}
			# }
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					scope:character = {
						any_sub_realm_county = {
							percent >= 0.2
							culture = scope:character.culture
							any_county_province = {
								OR = {
									terrain = drylands
									terrain = desert
								}
							}
						}
					}
				}
			}
			multiply = 0.1
		}
		if = {
			limit = {
				NOR = {
					scope:character = {
						OR = {
							government_has_flag = government_is_tribal
							government_has_flag = government_is_clan #Update for FP3
						}
					}
				}
			}
			multiply = 0
		}
	}
}



tradition_RICE_image_of_china = {
	category = regional

	layers = {
		4 = RICE_image_of_china.dds
	}

	is_shown = {
		NOT = { has_cultural_pillar = heritage_chinese }
		OR = {
			this = culture:khitan
			any_parent_culture_or_above = {
				this = culture:khitan
			}
		}
	}

	can_pick = {
		NOT = { has_cultural_pillar = heritage_chinese }
		OR = {
			this = culture:khitan
			any_parent_culture_or_above = {
				this = culture:khitan
			}
		}
	}
	
	parameters = {
		unlock_rice_maa_iron_forest = yes
	}

	character_modifier = {
		monthly_influence_mult = 0.1
		legitimacy_gain_mult = 0.1
		different_culture_opinion = 10
		different_faith_opinion = 10
		minority_different_faith_opinion = 10
		minority_different_culture_opinion = 10
	}	

	# county_modifier = {
	# 	castle_holding_build_speed = -0.2
	# 	castle_holding_build_gold_cost = -0.2
	# 	castle_holding_holding_build_gold_cost = -0.2
	# 	castle_holding_holding_build_speed = -0.2		
	# }
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			
			# Ethos requirements.
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
						culture_pillar:ethos_egalitarian = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_courtly_or_egalitarian_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 300
	}
}






tradition_RICE_zhangzhung_stonework = {
	category = regional

	layers = {
		4 = RICE_zhangzhung_stonework.dds
	}

	is_shown = {
		OR = {
			this = culture:zhangzhung
			any_parent_culture_or_above = {
				this = culture:zhangzhung
			}
		}
	}

	can_pick = {
		OR = {
			this = culture:zhangzhung
			any_parent_culture_or_above = {
				this = culture:zhangzhung
			}
		}
	}
	
	parameters = {
		#piety_gain_on_building_complete_in_mountains = yes
		prestige_gain_on_building_complete_in_mountains = yes
		unlock_rice_zhangzhung_stone_decision = yes
		improved_rice_zhangzhung_stone_decision = yes
		unlock_rice_restore_zhangzhung_decision = yes
	}

	# character_modifier = {
	# 	hills_advantage = 5
	# 	mountains_advantage = 5
	# 	desert_mountains_advantage = 5
	# 	# hills_provisions_use_mult = -0.15
	# 	# mountains_provisions_use_mult = -0.15
	# 	# desert_mountains_provisions_use_mult = -0.15
	# 	# hills_attrition_mult = -0.25
	# 	# mountains_attrition_mult = -0.25
	# 	# desert_mountains_attrition_mult = -0.25
	# }	

	county_modifier = {
		hills_development_growth_factor = 0.1
		mountains_development_growth_factor = 0.1
		desert_mountains_development_growth_factor = 0.1
	}
	
	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 }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_spiritual_or_stoic_desc
				}
			}
			
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 25
	}
}


tradition_RICE_changthang_nomads = {
	category = regional

	layers = {
		4 = RICE_changthang_nomads.dds
	}

	is_shown = {
		has_cultural_pillar = heritage_tibetan
	}

	can_pick = {
		has_cultural_pillar = heritage_tibetan
	}
	
	parameters = {
		#unlock_rice_piety_when_traveling_for_activity = yes
		unlock_rice_maa_drokpa_horsemen = yes
		unlock_rice_better_salt_trade_decision = yes
		# unlock_rice_better_lhasang_decision = yes
	}

	character_modifier = {
		monthly_county_control_growth_factor = -0.25
		hills_provisions_use_mult = -0.15
		mountains_provisions_use_mult = -0.15
		desert_mountains_provisions_use_mult = -0.15
		hills_attrition_mult = -0.25
		mountains_attrition_mult = -0.25
		desert_mountains_attrition_mult = -0.25
		hills_fertility_growth_mult = low_culture_county_fertility_value_mult
        mountains_fertility_growth_mult = low_culture_county_fertility_value_mult
        desert_mountains_fertility_growth_mult = low_culture_county_fertility_value_mult


		ai_honor = 20
		ai_war_chance = 0.1
		ai_war_cooldown = -0.1


	}	

	province_modifier = {		
		hills_travel_danger = 10
		mountains_travel_danger = 10
		desert_mountains_travel_danger = 10
	}
	
	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 }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_spiritual_or_stoic_desc
				}
			}
			
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 25
	}
}




tradition_RICE_gandharan_art = {
	category = regional

	layers = {
		4 = RICE_gandharan_art.dds
	}

	is_shown = {
		OR = {
			this = culture:gandhari
			any_parent_culture_or_above = {
				this = culture:gandhari
			}
		}
	}

	can_pick = {
		OR = {
			this = culture:gandhari
			any_parent_culture_or_above = {
				this = culture:gandhari
			}
		}
	}

	character_modifier = {
		cultural_head_fascination_mult = 0.15
		artifact_decay_reduction_mult = -0.25
		monthly_piety_gain_per_legitimacy_level_mult = 0.05
		monthly_court_grandeur_change_add = 0.1
		court_grandeur_baseline_add = 5
		diplomatic_range_mult = 0.1
	}	

	# province_modifier = {
	# 	build_gold_cost = -0.03
	# }

	
	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 }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_spiritual_or_stoic_desc
				}
			}
			
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 25
	}
}



# Borrowed and adapted from Baptism of Rus
tradition_brus_river_lifeblood = {
	category = regional

	layers = {
		4 = brus_river_lifeblood.dds
	}
	
	is_shown = {
		has_cultural_pillar = heritage_east_slavic
		NOR = {
			culture_tradition:tradition_republican_legacy = { is_in_list = traits }
			culture_tradition:tradition_maritime_mercantilism = { is_in_list = traits }
		}
	}
	
	can_pick = {
		has_cultural_pillar = heritage_east_slavic
	}
	#Essentially a fusion of Republican Legacy and Maritime Mercantilism
	parameters = {
		can_travel_along_rivers = yes
		trade_ports_enabled_for_tribals = yes
		trade_ports_give_levies = yes
		maritime_mercantilism_coastal_holdings = yes
		#coastal_holding_bonuses = yes
		can_make_republican_vassals = yes # The veche held some sway in Rus, most notably Republic of Novgorod
		#republican_vassals_pay_more = yes
		rice_portage_decision_bonus = yes
		rice_volga_dnieper_merchant_spawn_bonus = yes
	}
	
	character_modifier = {
		diplomatic_range_mult = 0.10
		#development_growth_factor = 0.10
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			# River requirement.
			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.20
							is_riverside_county = yes
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = river_percentage_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 0
	}
}




tradition_RICE_scribes_of_the_steppe = {
	category = regional

	layers = {
		4 = RICE_scribes_of_the_steppe.dds
	}
	
	is_shown = {
		OR = {
			this = culture:uyghur
			any_parent_culture_or_above = {
				this = culture:uyghur
			}
		}
	}
	can_pick = {
		OR = {
			this = culture:uyghur
			any_parent_culture_or_above = {
				this = culture:uyghur
			}
		}
		# custom_tooltip = {
		# 	text = culture_in_plains_or_steppe_terrain_desc
		# 	any_culture_county = {
		# 		percent >= 0.4
		# 		any_county_province = {
		# 			OR = {
		# 				terrain = plains
		# 				terrain = steppe
		# 				geographical_region = world_steppe
		# 			}
		# 		}
		# 	}
		# }
	}
	
	parameters = {
		unlock_rice_better_local_pilgrimage_memorialization_prestige = yes
	}
	
	character_modifier = {
		#diplomacy_per_prestige_level = 1
		#learning_per_prestige_level = 1
		monthly_diplomacy_lifestyle_xp_gain_mult = 0.1
		monthly_learning_lifestyle_xp_gain_mult = 0.1
		legitimacy_gain_mult = 0.1
		different_culture_opinion = 10
		different_faith_opinion = 10
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			# Ethos requirements.
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
						culture_pillar:ethos_egalitarian = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_courtly_or_egalitarian_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 0
	}
}




tradition_RICE_royal_physicians = {
	category = regional

	layers = {
		4 = RICE_royal_physicians.dds
	}
	
	# is_shown = {
	# 	OR = {
	# 		this = culture:assyrian
	# 		any_parent_culture_or_above = {
	# 			this = culture:assyrian
	# 		}
	# 	}
	# }
	# can_pick = {
	# 	OR = {
	# 		this = culture:uyghur
	# 		any_parent_culture_or_above = {
	# 			this = culture:uyghur
	# 		}
	# 	}
	# }
	
	parameters = {
		better_disease_resistance = yes
		unlock_voluntary_laampdom = yes
		wanderers_learn_languages = yes
	}
	
	character_modifier = {
		diplomacy = 1
		stewardship = 1
		learning = 1
		monthly_lifestyle_xp_gain_mult = 0.1
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			# Ethos requirements.
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
						culture_pillar:ethos_egalitarian = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bureaucratic_courtly_or_egalitarian_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 0
	}
}


