﻿

tradition_RICE_masters_of_the_river = {
	category = regional

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

	is_shown = {
		any_culture_county = {
			#count >= 4
			any_county_province = {
				geographical_region = ghw_region_the_sahel # Temp
			}
		}
	}

	can_pick = {
		custom_tooltip = {
			text = RICE_culture_in_niger_river_basin_desc
			any_culture_county = {
				count >= 4
				any_county_province = {
					geographical_region = ghw_region_the_sahel # Temp
				}
			}
		}
	}
	
	parameters = {
		#unlock_rice_sogo_ba_masquerade = yes
		can_travel_along_rivers = yes
	}

	character_modifier = {
		no_water_crossing_penalty = yes
		wetlands_advantage = 4
		floodplains_advantage = 4
		embarkation_cost_mult = -0.1
		coastal_sea_travel_danger = low_sea_danger_reduction
		wetlands_travel_danger = wetlands_low_danger_reduction
		floodplains_travel_danger = floodplains_low_danger_reduction
	}
	county_modifier = {
		wetlands_development_growth_factor = 0.1
		floodplains_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 = 100
	}
}


tradition_RICE_african_mud_masons = {
	category = regional

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

	is_shown = {
		OR = {
			has_cultural_pillar = heritage_sahelian
			has_cultural_pillar = heritage_west_african
			has_cultural_pillar = heritage_senegambian
			has_cultural_pillar = heritage_central_african
		}
	}

	can_pick = {
		OR = {
			has_cultural_pillar = heritage_sahelian
			has_cultural_pillar = heritage_west_african
			has_cultural_pillar = heritage_senegambian
			has_cultural_pillar = heritage_central_african
		}
	}
	
	parameters = {
		unlock_rice_african_mud_mason_decision = yes
	}

	character_modifier = {
		monthly_prestige_from_buildings_mult = 0.05
		monthly_piety_from_buildings_mult = 0.05
	}

	county_modifier = {
		build_gold_cost = -0.05
		build_speed = -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_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 = 100
	}
}


tradition_RICE_gold_dust_traders = {
	category = regional

	layers = {
		0 = steward
		1 = mena
		4 = RICE_gold_ingots.dds
	}

	is_shown = {
		any_culture_county = {
			title_province = {
				geographical_region = RICE_trans_saharan_trade_region
			}
		}
	}

	can_pick = {
		any_culture_county = {
			title_province = {
				geographical_region = RICE_trans_saharan_trade_region
			}
		}
	}
	
	parameters = {
		unlock_rice_trans_saharan_merchant_decision = yes
		unlock_rice_trans_saharan_merchant_better_chances = yes
		unlock_rice_wangara_era_early = yes
	}

	character_modifier = {
		monthly_diplomacy_lifestyle_xp_gain_mult = 0.05
		monthly_stewardship_lifestyle_xp_gain_mult = 0.05
		diplomatic_range_mult = 0.05
		character_travel_speed_mult = 0.05
		character_travel_safety_mult = 0.05
	}
	# county_modifier = {
	# 	build_gold_cost = -0.05
	# 	build_speed = -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_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 = 100
	}
}

