﻿namespace = asp

#soul of the art #https://gall.dcinside.com/mgallery/board/view?id=stellaris&no=8338

#fleet remains
fleet_event = {
	id = asp.1
	title = "asp.1.name"
	desc = "asp.1.desc"
	picture = GFX_evt_ruined_system
	show_sound = event_space_battle
	
	archaeology = yes

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

	after = { 
		from = { set_site_progress_locked = no }
	}

	option = {
		name = DIG
		medium_artifact_reward = yes
	}
}
#colorful ruins
fleet_event = {
	id = asp.2
	title = "asp.2.name"
	desc = "asp.2.desc"
	picture = GFX_evt_city_ruins
	show_sound = event_wind_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
	}
}
#painted rmains
fleet_event = {
	id = asp.3
	title = "asp.3.name"
	desc = "asp.3.desc"
	picture = GFX_evt_dead_city
	show_sound = event_mystic_reveal
	
	archaeology = yes

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

	after = { 
		from = { set_site_progress_locked = no }
	}

	option = {
		name = DIG
		owner = {
			add_resource = {
				minerals = 500
			}
		}
	}
}
#the discord
fleet_event = {
	id = asp.4
	title = "asp.4.name"
	desc = "asp.4.desc"
	picture = GFX_evt_glitchy_matrix
	show_sound = event_alien_signal
	
	archaeology = yes

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

	after = { 
		from = { set_site_progress_locked = no }
	}

	option = {
		name = DIG
		owner = {
			add_resource = {
				society_research = 500
			}
		}
	}
}
#research facility
fleet_event = {
	id = asp.5
	title = "asp.5.name"
	desc = "asp.5.desc"
	picture = GFX_evt_sapient_AI
	show_sound = event_door_opening
	
	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
	}
}
#the end
fleet_event = {
	id = asp.6
	title = "asp.6.name"
	desc = "asp.6.desc"
	picture = GFX_evt_planet_beam
	show_sound = distance_god_ray_fire_layer_1
	
	archaeology = yes

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

	after = { 
		from = { set_site_progress_locked = no }
	}

	option = {
		name = asp.6.a
		large_artifact_reward = yes
		owner = {
			if = {
				limit = {
					has_technology = tech_colossus
					has_country_flag = colossus_project
					is_spiritualist = yes
					OR = {
						AND = {
							NOT = { host_has_dlc = "Utopia" }
							has_technology = tech_telepathy
						}
						AND = {
							host_has_dlc = "Utopia"
							has_ascension_perk = ap_mind_over_matter
						}
					}
					NOT = { has_technology = tech_pk_godray }
				}
				custom_tooltip = asp.6.a.tooltip #reward description
				else = {
					custom_tooltip = asp.6.a.tooltip_alt #reward description alt
				}
			}
		}
		hidden_effect = {
			owner = {
				if = {
					limit = {
						has_technology = tech_colossus
						has_country_flag = colossus_project
						is_spiritualist = yes
						OR = {
							AND = {
								NOT = { host_has_dlc = "Utopia" }
								has_technology = tech_telepathy
							}
							AND = {
								host_has_dlc = "Utopia"
								has_ascension_perk = ap_mind_over_matter
							}
						}
						NOT = { has_technology = tech_pk_godray }
					}
					add_research_option = tech_pk_godray
					add_tech_progress = { tech = tech_pk_godray progress = 0.5 }
				}
			}
			from.planet = {
				add_deposit = aspmod_d_society_20
			}
		}
	}
}