﻿

tradition_RICE_whalers = {
	category = societal

	layers = {
		4 = RICE_whalers.dds
	}

	# is_shown = {
	# 	custom_description = {
	# 		text = culture_on_coast_desc
	# 		any_culture_county = {
	# 			any_county_province = {
	# 				is_coastal = yes
	# 			}
	# 		}
	# 	}
	# }

	can_pick = {
		culture_not_pacifistic_trigger = yes
		custom_tooltip = {
			text = cannot_have_tradition_vegetarianism
			NOT = { culture_tradition:tradition_vegetarianism = { is_in_list = traits } }
		}
		NOT = { has_cultural_tradition = tradition_RICE_master_whalers }
	}

	character_modifier = {
		embarkation_cost_mult = -0.1
		coastal_advantage = 2
		sea_travel_danger = low_sea_danger_reduction
	}

	parameters = {
		unlock_rice_whaling = yes
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_stoic = { is_in_list = traits }
						culture_pillar:ethos_communal = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_stoic_or_communal_desc
				}
			}
			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.7
							any_county_province = {
								is_coastal = yes
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = high_coastal_percentage_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 75
		if = {
			limit = {
				NOT = {
					scope:character = {
						any_sub_realm_county = {
							percent >= 0.3
							any_county_province = {
								is_coastal = yes
							}
						}
					}
				}
			}
			multiply = 0
		}
		if = {
			limit = {
				scope:character = {
					any_sub_realm_county = {
						percent >= 0.7
						any_county_province = {
							is_coastal = yes
						}
					}
				}
			}
			multiply = 1.5
		}
	}
}



tradition_RICE_master_whalers = {
	category = societal

	layers = {
		4 = RICE_master_whalers.dds
	}

	is_shown = {
		OR = {
			this = culture:basque
			any_parent_culture_or_above = {
				this = culture:basque
			}
			any_parent_culture = {
				has_cultural_tradition = tradition_RICE_master_whalers
			}
		}
	}

	can_pick = {
		OR = {
			this = culture:basque
			any_parent_culture_or_above = {
				this = culture:basque
			}
			any_parent_culture = {
				has_cultural_tradition = tradition_RICE_master_whalers
			}
		}
		culture_not_pacifistic_trigger = yes
		custom_tooltip = {
			text = cannot_have_tradition_vegetarianism
			NOT = { culture_tradition:tradition_vegetarianism = { is_in_list = traits } }
		}
		NOT = { has_cultural_tradition = tradition_RICE_whalers }
	}

	character_modifier = {
		monthly_stewardship_lifestyle_xp_gain_mult = 0.03
		embarkation_cost_mult = -0.2
		coastal_advantage = 4
		sea_travel_danger = medium_sea_danger_reduction
	}

	parameters = {
		unlock_rice_better_whaling = yes
		unlock_rice_whaling_stations = yes
	}
	
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_stoic = { is_in_list = traits }
						culture_pillar:ethos_communal = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_stoic_or_communal_desc
				}
			}
			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.7
							any_county_province = {
								is_coastal = yes
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = high_coastal_percentage_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					scope:character = {
						any_sub_realm_county = {
							percent >= 0.3
							any_county_province = {
								is_coastal = yes
							}
						}
					}
				}
			}
			multiply = 0
		}
		if = {
			limit = {
				scope:character = {
					any_sub_realm_county = {
						percent >= 0.7
						any_county_province = {
							is_coastal = yes
						}
					}
				}
			}
			multiply = 2
		}
	}
}


tradition_RICE_arctic_adaptations = {
	category = regional

	layers = {
		4 = RICE_arctic_adaptations.dds
	}
	
	is_shown = {
		OR = {
			has_cultural_pillar = heritage_inuit
			has_cultural_pillar = heritage_paleo_inuit
			scope:character = {
				capital_province = {
					geographical_region = RICE_greenland_struggle_region
				}
			}
		}
	}
	can_pick = {
		OR = {
			has_cultural_pillar = heritage_inuit
			has_cultural_pillar = heritage_paleo_inuit
			custom_tooltip = {
				text = RICE_greenland_arctic_adaptations_inuit_decision_req
				AND = {
					has_global_variable = RICE_greenland_adopted_arctic_adaptations
					scope:character = {
						capital_county = {
							title_province = { geographical_region = RICE_greenland_struggle_region }
						}	
					}		
				}
			}
			# AND = {
			# 	custom_tooltip = {
			# 		text = RICE_greenland_arctic_adaptations_inuit_decision_req
			# 		has_global_variable = RICE_greenland_adopted_arctic_adaptations
			# 	}
			# 	scope:character = {
			# 		custom_tooltip = {
			# 			text = RICE_greenland_struggle_region_capital_req
			# 			capital_county = {
			# 				title_province = { geographical_region = RICE_greenland_struggle_region }
			# 			}
			# 		}
			# 	}				
			# }
		}
	}

	character_modifier = {
		embarkation_cost_mult = -0.1
		taiga_advantage = 2
		taiga_attrition_mult = -0.5
		taiga_travel_danger = taiga_low_danger_reduction
	}
	
	parameters = {
		#unlock_RICE_arctic_hunters = yes
		unlock_rice_arctic_innovations = yes
	}

	province_modifier = {
		taiga_construction_gold_cost = -0.2
		taiga_holding_construction_gold_cost = -0.2
		taiga_supply_limit_mult = 0.2
	}

	cost = {
		prestige = {

			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
				}
			}

			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.3
							any_county_province = {
								terrain = taiga
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = RICE_taiga_percentage_desc
				}
			}

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

	ai_will_do = {
		value = 100
	}
}


tradition_RICE_seasonal_migrators = {
	category = societal

	layers = {
		4 = RICE_seasonal_migrators.dds
	}
	
	is_shown = {
		OR = {
			has_cultural_pillar = heritage_algonquian
			has_cultural_pillar = heritage_iroquoian
		}
	}
	can_pick = {
		OR = {
			has_cultural_pillar = heritage_algonquian
			has_cultural_pillar = heritage_iroquoian
		}
	}

	character_modifier = {
		intrigue = 1
		supply_duration = 0.5
		movement_speed = 0.1
		character_travel_speed_mult = 0.05
		character_travel_safety_mult = 0.05
	}
	
	parameters = {
		#logging_camps_building_bonuses = yes
		hunting_traits_more_common = yes
		#forest_advantage = 2
		#forest_attrition_mult = -0.5
		unlock_voluntary_laampdom = yes
		much_more_likely_to_be_laamps = yes
	}

	province_modifier = {
		#forest_construction_gold_cost = -0.2
		#forest_holding_construction_gold_cost = -0.2
		forest_supply_limit_mult = 0.25
	}

	cost = {
		prestige = {

			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_communal = { is_in_list = traits }
						culture_pillar:ethos_egalitarian = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_egalitarian_or_stoic_desc
				}
			}

			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.3
							any_county_province = {
								terrain = forest
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = RICE_forest_percentage_desc
				}
			}

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

	ai_will_do = {
		value = 100
	}
}


tradition_RICE_red_ochre = {
	category = societal

	layers = {
		4 = RICE_red_ochre.dds
	}
	
	is_shown = {
		OR = {
			has_cultural_pillar = heritage_algonquian
			has_cultural_pillar = heritage_iroquoian
		}
	}
	can_pick = {
		OR = {
			has_cultural_pillar = heritage_algonquian
			has_cultural_pillar = heritage_iroquoian
		}
	}

	character_modifier = {
		monthly_piety_gain_mult = 0.05
		negate_health_penalty_add = 0.15
		diplomacy_per_prestige_level = 1
	}
	
	#parameters = {
	#
	#}

	# culture_modifier = {
	# 	cultural_acceptance_gain_mult = -0.15
	# }

	#province_modifier = {
		#forest_construction_gold_cost = -0.2
		#forest_holding_construction_gold_cost = -0.2
		#forest_supply_limit_mult = 0.25
	#}

	cost = {
		prestige = {

			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
				}
			}

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

	ai_will_do = {
		value = 100
	}
}