namespace = the_cone

# The_cone JE completion
the_cone.1 = {
	type = country_event
	placement = ROOT

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

	duration = 3

	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_military.dds"

	trigger = {
		#complete je_the_cone
	}

	immediate = {
		if = {
			limit = {
				owns_entire_state_region = STATE_LANDS_END
			}
			random_scope_state = {
				limit = {
					state_region = s:STATE_LANDS_END
				}
				save_scope_as = lands_end_state
			}
		}
	}

	option = {
		name = the_cone.1.a
		default_option = yes
		if = {
			limit = {
				country_has_primary_culture = cu:quechua #DVG
			}
			scope:lands_end_state = {
				state_region = {
					add_homeland = aimara
				}
			}
		}
		else_if = {
			limit = {
				country_has_primary_culture = cu:beornian #DVG
			}
			scope:lands_end_state = {
				state_region = {
					add_homeland = beornian #DVG
				}
			}
		}
		scope:lands_end_state = {
			    add_modifier = {
				    name = patagonian_settlement
				    months = long_modifier_time
			    }
		}
	}			
}			