namespace = cultural_homeland_events

cultural_homeland_events.1 = { #Majority Culture blames minority culture
	type = country_event
	placement = scope:culture_state

	title = cultural_homeland_events.1.t
	desc = cultural_homeland_events.1.d
	flavor = cultural_homeland_events.1.f

	event_image = {
		video = "gfx/event_pictures/southamerica_aristocrats.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/aristocrats"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 3

	cooldown = { months = long_modifier_time }

	trigger = {
		any_scope_state = {
			is_homeland_of_country_cultures = ROOT
			any_scope_culture = {
				culture_is_discriminated_in = ROOT
			}
			any_scope_culture = {
				is_primary_culture_of = ROOT
			}
			average_sol < 10
		}
	}

	immediate = {
		random_scope_state = {
			limit = {
				is_homeland_of_country_cultures = ROOT
				any_scope_culture = {
					culture_is_discriminated_in = ROOT
				}
				any_scope_culture = {
					is_primary_culture_of = ROOT
				}
				average_sol < 10
			}
			save_scope_as = culture_state
			random_scope_culture = {
				limit = { culture_is_discriminated_in = ROOT }
				save_scope_as = state_minority_culture
			}
			random_scope_culture = {
				limit = { 
					is_primary_culture_of = ROOT 
				}
				save_scope_as = state_majority_culture
			}
		}
	}

	option = {
		name = cultural_homeland_events.1.a
		add_modifier = {
			name = modifier_cultural_work
			months = normal_modifier_time
		}
	}

	option = { #Ignore it
		name = cultural_homeland_events.1.b
		default_option = yes
		scope:culture_state = {
			set_variable = {
				name = rising_cultural_tension
				value = yes
			}
			add_culture_standard_of_living_modifier = {
				culture = scope:state_minority_culture
				months = normal_modifier_time
				multiplier = -1
			}
		}
	}
}


cultural_homeland_events.10 = { #Newspaper writes article about minority culture
	type = country_event
	placement = scope:culture_state

	title = cultural_homeland_events.10.t
	desc = cultural_homeland_events.10.d
	flavor = cultural_homeland_events.10.f

	event_image = {
		video = "gfx/event_pictures/middleeast_middleclass_cafe.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/middleclass_cafe"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3

	cooldown = { months = long_modifier_time }

	trigger = {
		any_scope_state = {
			is_homeland_of_country_cultures = ROOT
			any_scope_culture = {
				culture_is_discriminated_in = ROOT
			}
			any_scope_culture = {
				is_primary_culture_of = ROOT
			}
		}
	}

	immediate = {
		random_scope_state = {
			limit = {
				is_homeland_of_country_cultures = ROOT
				any_scope_culture = {
					culture_is_discriminated_in = ROOT
				}
				any_scope_culture = {
					is_primary_culture_of = ROOT
				}
			}
			save_scope_as = culture_state
			random_scope_culture = {
				limit = { culture_is_discriminated_in = ROOT }
				save_scope_as = state_minority_culture
			}
			random_scope_culture = {
				limit = { 
					is_primary_culture_of = ROOT 
				}
				save_scope_as = state_majority_culture
			}
		}
	}

	option = { # Supress Article
		name = cultural_homeland_events.10.a
		add_modifier = {
			name = modifier_negative_article_supressed
			months = normal_modifier_time
		}
	}

	option = { #Ignore it
		name = cultural_homeland_events.10.b
		default_option = yes
		scope:culture_state = {
			set_variable = rising_cultural_tension
			add_culture_standard_of_living_modifier = {
				culture = scope:state_minority_culture
				months = normal_modifier_time
				multiplier = -1
			}
		}
	}
}

cultural_homeland_events.20 = { #Minority blocked from businesses
	type = country_event
	placement = scope:culture_state

	title = cultural_homeland_events.20.t
	desc = cultural_homeland_events.20.d
	flavor = cultural_homeland_events.20.f

	event_image = {
		video = "gfx/event_pictures/middleeast_middleclass_cafe.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/middleclass_cafe"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 3
	cooldown = { months = long_modifier_time }

	trigger = {
		any_scope_state = {
			has_variable = rising_cultural_tension
			is_homeland_of_country_cultures = ROOT
			any_scope_culture = {
				culture_is_discriminated_in = ROOT
			}
			any_scope_culture = {
				is_primary_culture_of = ROOT
			}
		}
	}

	immediate = {
		random_scope_state = {
			limit = {
				has_variable = rising_cultural_tension
				is_homeland_of_country_cultures = ROOT
				any_scope_culture = {
					culture_is_discriminated_in = ROOT
				}
				any_scope_culture = {
					is_primary_culture_of = ROOT
				}
			}
			save_scope_as = culture_state
			random_scope_culture = {
				limit = { culture_is_discriminated_in = ROOT }
				save_scope_as = state_minority_culture
			}
			random_scope_culture = {
				limit = { 
					is_primary_culture_of = ROOT 
				}
				save_scope_as = state_majority_culture
			}
		}
	}
	
	option = {
		name = cultural_homeland_events.20.a
		add_modifier = {
			name = modifier_minority_allowed_entry
			months = normal_modifier_time
		}
	}

	option = {
		name = cultural_homeland_events.20.b
		default_option = yes
		scope:culture_state = {
			set_variable = high_cultural_tension
			add_culture_standard_of_living_modifier = {
				culture = scope:state_minority_culture
				months = normal_modifier_time
				multiplier = -1
			}
		}
	}
}


cultural_homeland_events.30 = { #Minority not being employed
	type = country_event
	placement = scope:culture_state

	title = cultural_homeland_events.30.t
	desc = cultural_homeland_events.30.d
	flavor = cultural_homeland_events.30.f

	event_image = {
		video = "gfx/event_pictures/middleeast_middleclass_cafe.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/middleclass_cafe"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3

	cooldown = { months = normal_modifier_time }

	trigger = {
		any_scope_state = {
			has_variable = rising_cultural_tension
			is_homeland_of_country_cultures = ROOT
			any_scope_culture = {
				culture_is_discriminated_in = ROOT
			}
			any_scope_culture = {
				is_primary_culture_of = ROOT
			}
		}
	}

	immediate = {
		random_scope_state = {
			limit = {
				has_variable = rising_cultural_tension
				is_homeland_of_country_cultures = ROOT
				any_scope_culture = {
					culture_is_discriminated_in = ROOT
				}
				any_scope_culture = {
					is_primary_culture_of = ROOT
				}
			}
			save_scope_as = culture_state
			random_scope_culture = {
				limit = {
					culture_is_discriminated_in = ROOT
				}
				save_scope_as = state_minority_culture
			}
			random_scope_culture = {
				limit = {
					is_primary_culture_of = ROOT
				}
				save_scope_as = state_majority_culture
			}
		}
	}

	option = {
		name = cultural_homeland_events.30.a
		add_modifier = {
			name = modifier_minority_employed
			months = normal_modifier_time
		}
	}

	option = {
		name = cultural_homeland_events.30.b
		default_option = yes
		scope:culture_state = {
			set_variable = high_cultural_tension
			add_culture_standard_of_living_modifier = {
				culture = scope:state_minority_culture
				months = normal_modifier_time
				multiplier = -2
			}
		}
	}
}


cultural_homeland_events.40 = { #Minority businesses attacked
	type = country_event
	placement = root

	title = cultural_homeland_events.40.t
	desc = cultural_homeland_events.40.d
	flavor = cultural_homeland_events.40.f

	event_image = {
		video = "gfx/event_pictures/unspecific_vandalized_storefront.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/vandalized_storefront"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 3
	cooldown = { months = long_modifier_time }

	trigger = {
		any_scope_state = {
			has_variable = high_cultural_tension
			is_homeland_of_country_cultures = ROOT
			any_scope_culture = {
				culture_is_discriminated_in = ROOT
			}
			any_scope_culture = {
				is_primary_culture_of = ROOT
			}
		}
	}

	immediate = {
		random_scope_state = {
			limit = {
				has_variable = high_cultural_tension
				is_homeland_of_country_cultures = ROOT
				any_scope_culture = {
					culture_is_discriminated_in = ROOT
				}
				any_scope_culture = {
					is_primary_culture_of = ROOT
				}
			}
			save_scope_as = culture_state
			random_scope_culture = {
				limit = {
					culture_is_discriminated_in = ROOT
				}
				save_scope_as = state_minority_culture
			}
			random_scope_culture = {
				limit = {
					is_primary_culture_of = ROOT
				}
				save_scope_as = state_majority_culture
			}
		}
	}

	option = {
		name = cultural_homeland_events.40.a
		add_modifier = {
			name = modifier_minority_members_defended
			months = normal_modifier_time
		}
		scope:culture_state = {
			add_culture_standard_of_living_modifier = {
				culture = scope:state_minority_culture
				months = normal_modifier_time
				multiplier = -2
			}
		}
	}

	option = {
		name = cultural_homeland_events.40.b
		default_option = yes
		scope:culture_state = {
			set_variable = high_cultural_tension
			add_culture_standard_of_living_modifier = {
				culture = scope:state_minority_culture
				months = normal_modifier_time
				multiplier = -5
			}
		}
	}
}

cultural_homeland_events.50 = { #Minority members killed
	type = country_event
	placement = root

	title = cultural_homeland_events.50.t
	desc = cultural_homeland_events.50.d
	flavor = cultural_homeland_events.50.f

	event_image = {
		video = "gfx/event_pictures/africa_soldiers_breaking_protest.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/africa/soldiers_breaking_protest"

	icon = "gfx/interface/icons/event_icons/event_skull.dds"

	duration = 3

	cooldown = { months = long_modifier_time }

	trigger = {
		any_scope_state = {
			has_variable = high_cultural_tension
			is_homeland_of_country_cultures = ROOT
			any_scope_culture = {
				culture_is_discriminated_in = ROOT
			}
			any_scope_culture = {
				is_primary_culture_of = ROOT
			}
		}
	}

	immediate = {
		random_scope_state = {
			limit = {
				has_variable = high_cultural_tension
				is_homeland_of_country_cultures = ROOT
				any_scope_culture = {
					culture_is_discriminated_in = ROOT
				}
				any_scope_culture = {
					is_primary_culture_of = ROOT
				}
			}
			save_scope_as = culture_state
			random_scope_culture = {
				limit = {
					culture_is_discriminated_in = ROOT
				}
				save_scope_as = state_minority_culture
			}
			random_scope_culture = {
				limit = {
					is_primary_culture_of = ROOT
				}
				save_scope_as = state_majority_culture
			}
		}
	}

	option = {
		name = cultural_homeland_events.50.a
		add_modifier = {
			name = modifier_minority_members_defended
			months = normal_modifier_time
		}
		scope:culture_state = {
			add_culture_standard_of_living_modifier = {
				culture = scope:state_minority_culture
				months = normal_modifier_time
				multiplier = -5
			}
		}
	}

	option = {
		name = cultural_homeland_events.50.b
		default_option = yes
		scope:culture_state = {
			set_variable = {
				name = high_cultural_tension
				value = yes
			}
			add_culture_standard_of_living_modifier = {
				culture = scope:state_minority_culture
				months = normal_modifier_time
				multiplier = -7
			}
		}
	}
}
