namespace = ASPmod

### Archaeology: The First Music

# Anomaly: Spawn Site
ship_event = {
	id = ASPmod.20
	title = "ASPmod.20.name"
	desc = "ASPmod.20.desc"
	picture = GFX_evt_ASP_junim_anomaly
	show_sound = event_ship_bridge
	location = from
	
	is_triggered_only = yes

	immediate = {
		from = { clear_deposits = yes }
	}

	option = {
		name = CURIOUS
		from = { create_archaeological_site = site_ASP_the_first_music }
	}
}

# Stage 1 - The Ancient Planet
fleet_event = {
	id = ASPmod.21
	title = "ASPmod.21.name"
	desc = "ASPmod.21.desc"
	picture = GFX_evt_ASP_lifeseeded_02
	show_sound = event_collapsing_ruins
	
	archaeology = yes

	is_triggered_only = yes
	
	immediate = {
		from = { set_site_progress_locked = yes }
	}

	after = { 
		from = { set_site_progress_locked = no }
	}
	
	option = {
		name = DIG
		small_artifact_reward = yes
	}
}

# Stage 2 - The Spherical Object
fleet_event = {
	id = ASPmod.22
	title = "ASPmod.22.name"
	desc = "ASPmod.22.desc"
	picture = GFX_evt_ASP_lifeseeded_01
	show_sound = event_sensor_ping
	
	archaeology = yes

	is_triggered_only = yes
	
	immediate = {
		from = { set_site_progress_locked = yes }
	}

	after = { 
		from = { set_site_progress_locked = no }
	}
	
	option = {
		name = "ASPmod.22.option"
		small_artifact_reward = yes
		from.planet = {
			enable_special_project = {
				name = "ASP_SIGNAL_ANALYSIS_OF_MACHINE_PROJECT"
				location = this
				owner = root.owner
			}
		}
	}
}

# Special project: Signal Analysis of Machine
ship_event = {
	id = ASPmod.23
	title = "ASPmod.23.name"
	desc = "ASPmod.23.desc"
	picture = GFX_evt_ASP_lifeseeded_03
	show_sound = event_ai_started

	is_triggered_only = yes
	
	option = {
		name = "ASPmod.23.option"
		small_artifact_reward = yes
		owner = {
			add_relic = r_ASP_music_of_the_universe
			add_modifier = {
				modifier = ASP_Fiat_Lux
				years = 20
			}
		}
	}
}