﻿



tradition_RICE_boba_drinkers = {
	category = ritual

	layers = {
		4 = RICE_boba_drinkers.dds
	}

	is_shown = {
		debug_only = yes
		scope:character = {
			is_ai = no
		}
	}

	can_pick = {
		debug_only = yes
	}


	character_modifier = {
		stress_loss_mult = 0.15
	}

	county_modifier = {
		development_growth_factor = 0.1
		county_opinion_add = 5
	}

	parameters = {
		unlock_rice_boba_drink = yes
		unlock_rice_kevin_nguyen_abg = yes
	}
	
	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_egalitarian = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_or_egalitarian_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 = lifestyle_reveler
							}
						}
					}
					trigger_else = {
						always = no
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = rulers_with_reveler_lifestyle_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = { value = 0 } # The AI never pick this
}


tradition_RICE_music_practice = {
	category = societal

	layers = {
		4 = RICE_music_practice.dds
	}

	is_shown = {
		debug_only = yes
		scope:character = {
			is_ai = no
		}
		has_ep1_court_positions_dlc_trigger = yes
	}

	can_pick = {
		debug_only = yes
	}
	
	parameters = {
		unlock_rice_edm_raves = yes
		unlock_rice_music_practice = yes
		characters_are_better_court_musicians = yes # Also hooked in to increase the Feast opinion bonus
	}
	
	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
				}
			}
			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 } # The AI never pick this
}
