@ProspectoriumResourceDiscoveryTime = 60

# Decrypt Jabbardeeni Cache (grants Hyper Relay tech option if Overlord is owned)
special_project = {
	key = "YUHT_JABBARDEENI_CACHE"
	#cost = 0
	days_to_research = 360
	tech_department = physics_technology
	timelimit = -1
	picture = GFX_evt_star_chart
	icon = "gfx/interface/icons/situation_log/situation_log_scanning_beam.dds"

	event_scope = ship_event

	requirements = {
		shipclass_science_ship = 1
		leader = scientist
	}

	on_success = {
		owner = { country_event = { id = over.60 } }
	}
}

#Shrouded - Divination Event (Sign of the Locus) Special Project
special_project = {
	key = "SHROUDED_SHIP_PROJECT"
	event_chain = "shrouded_ship_chain"
	cost = 1000
	tech_department = physics_technology
	timelimit = -1
	picture = GFX_evt_ship_travel
	icon = "gfx/interface/icons/situation_log/situation_log_scanning_beam.dds"

	event_scope = ship_event

	requirements = {
		shipclass_science_ship = 1
		leader = scientist
	}

	on_success = {
		owner = {
			country_event = { id = enclave.5060 }
		}
	}
}

#All Too Lucid (Shroudwalker divination)
special_project = {
	key = "TO_DREAM_PROJECT_01"
	cost = 1000
	tech_department = society_technology
	timelimit = -1
	picture = GFX_evt_emergency_workers
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"

	event_scope = planet_event

	on_success = {
		carrier_event = { id = enclave.5015 }
	}
}

special_project = {
	key = "TO_DREAM_PROJECT_02"
	cost = 750
	tech_department = society_technology
	timelimit = -1
	picture = GFX_evt_vivisection
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"

	event_scope = planet_event

	on_success = {
		carrier_event = { id = enclave.5020 }
	}
}

#Floating Parts (Shroudwalker divination)
special_project = {
	key = "FLOATING_PARTS_PROJECT_00"
	cost = 1000
	tech_department = engineering_technology
	timelimit = -1
	picture = GFX_evt_space_debris
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"

	event_scope = country_event

	on_success = {
		country_event = { id = enclave.5135 }
	}
}

#Floating Parts CONT'D
special_project = {
	key = "FLOATING_PARTS_PROJECT_01"
	cost = 1000
	tech_department = engineering_technology
	timelimit = -1
	picture = GFX_evt_sapient_AI
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"

	event_scope = country_event

	on_success = {
		country_event = { id = enclave.5145 }
	}
}

# Scholarium Planetary Sensors
special_project = {
	key = "SCHOLARIUM_PLANETARY_SENSORS"
	timelimit = -1
	picture = GFX_evt_scholarium_anomaly
	days_to_research = 60
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	requirements = {
		shipclass_science_ship = 1
		leader = scientist
	}

	on_success = {
		PREV = {
			random_list = {
				1 = { country_event = { id = specialist.905 scopes = { FROM = FROMFROM } } }
				1 = { country_event = { id = specialist.910 scopes = { FROM = FROMFROM } } }
				1 = { country_event = { id = specialist.915 scopes = { FROM = FROMFROM } } }
				1 = {
					modifier = {
						factor = 0
						NOT = {
							is_specialist_subject_tier = {
								TYPE = scholarium
								TIER = 3
							}
						}
					}
					country_event = { id = specialist.920 scopes = { FROM = FROMFROM } }
				}
			}
		}
	}
}

# Prospectorium Resource Discovery - Energy
special_project = {
	key = "PROSPECTORIUM_RESOURCE_DISCOVERY_ENERGY"
	timelimit = -1
	picture = GFX_evt_crystal_mining
	days_to_research = @ProspectoriumResourceDiscoveryTime
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	triggered_requirement = {
		text = CONSTRUCTOR_PROJECT_REQUIREMENTS
		count = 1
		trigger = {
			OR = {
				is_ship_class = shipclass_constructor
				is_arkship_fleet = yes
			}
		}
	}

	on_success = {
		from = { country_event = { id = specialist.1200 } }
	}
}

# Prospectorium Resource Discovery - Minerals
special_project = {
	key = "PROSPECTORIUM_RESOURCE_DISCOVERY_MINERALS"
	timelimit = -1
	picture = GFX_evt_crystal_mining
	days_to_research = @ProspectoriumResourceDiscoveryTime
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	triggered_requirement = {
		text = CONSTRUCTOR_PROJECT_REQUIREMENTS
		count = 1
		trigger = {
			OR = {
				is_ship_class = shipclass_constructor
				is_arkship_fleet = yes
			}
		}
	}

	on_success = {
		from = { country_event = { id = specialist.1210 } }
	}
}

# Prospectorium Resource Discovery - Alloys
special_project = {
	key = "PROSPECTORIUM_RESOURCE_DISCOVERY_ALLOYS"
	timelimit = -1
	picture = GFX_evt_crystal_mining
	days_to_research = @ProspectoriumResourceDiscoveryTime
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	triggered_requirement = {
		text = CONSTRUCTOR_PROJECT_REQUIREMENTS
		count = 1
		trigger = {
			OR = {
				is_ship_class = shipclass_constructor
				is_arkship_fleet = yes
			}
		}
	}

	on_success = {
		from = { country_event = { id = specialist.1220 } }
	}
}

# Prospectorium Resource Discovery - Rare Crystals
special_project = {
	key = "PROSPECTORIUM_RESOURCE_DISCOVERY_RARE_CRYSTALS"
	timelimit = -1
	picture = GFX_evt_crystal_mining
	days_to_research = @ProspectoriumResourceDiscoveryTime
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	triggered_requirement = {
		text = CONSTRUCTOR_PROJECT_REQUIREMENTS
		count = 1
		trigger = {
			OR = {
				is_ship_class = shipclass_constructor
				is_arkship_fleet = yes
			}
		}
	}

	on_success = {
		from = { country_event = { id = specialist.1230 } }
	}
}

# Prospectorium Resource Discovery - Volatile Motes
special_project = {
	key = "PROSPECTORIUM_RESOURCE_DISCOVERY_VOLATILE_MOTES"
	timelimit = -1
	picture = GFX_evt_crystal_mining
	days_to_research = @ProspectoriumResourceDiscoveryTime
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	triggered_requirement = {
		text = CONSTRUCTOR_PROJECT_REQUIREMENTS
		count = 1
		trigger = {
			OR = {
				is_ship_class = shipclass_constructor
				is_arkship_fleet = yes
			}
		}
	}

	on_success = {
		from = { country_event = { id = specialist.1240 } }
	}
}

# Prospectorium Resource Discovery - Exotic Gases
special_project = {
	key = "PROSPECTORIUM_RESOURCE_DISCOVERY_EXOTIC_GASES"
	timelimit = -1
	picture = GFX_evt_crystal_mining
	days_to_research = @ProspectoriumResourceDiscoveryTime
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	triggered_requirement = {
		text = CONSTRUCTOR_PROJECT_REQUIREMENTS
		count = 1
		trigger = {
			OR = {
				is_ship_class = shipclass_constructor
				is_arkship_fleet = yes
			}
		}
	}

	on_success = {
		from = { country_event = { id = specialist.1250 } }
	}
}

# Prospectorium Resource Discovery - Zro
special_project = {
	key = "PROSPECTORIUM_RESOURCE_DISCOVERY_ZRO"
	timelimit = -1
	picture = GFX_evt_crystal_mining
	days_to_research = @ProspectoriumResourceDiscoveryTime
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	triggered_requirement = {
		text = CONSTRUCTOR_PROJECT_REQUIREMENTS
		count = 1
		trigger = {
			OR = {
				is_ship_class = shipclass_constructor
				is_arkship_fleet = yes
			}
		}
	}

	on_success = {
		from = { country_event = { id = specialist.1260 } }
	}
}

# Prospectorium Resource Discovery - Dark Matter
special_project = {
	key = "PROSPECTORIUM_RESOURCE_DISCOVERY_DARK_MATTER"
	timelimit = -1
	picture = GFX_evt_crystal_mining
	days_to_research = @ProspectoriumResourceDiscoveryTime
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	triggered_requirement = {
		text = CONSTRUCTOR_PROJECT_REQUIREMENTS
		count = 1
		trigger = {
			OR = {
				is_ship_class = shipclass_constructor
				is_arkship_fleet = yes
			}
		}
	}

	on_success = {
		from = { country_event = { id = specialist.1270 } }
	}
}

# Prospectorium Resource Discovery - Living Metal
special_project = {
	key = "PROSPECTORIUM_RESOURCE_DISCOVERY_LIVING_METAL"
	timelimit = -1
	picture = GFX_evt_crystal_mining
	days_to_research = @ProspectoriumResourceDiscoveryTime
	icon = "gfx/interface/icons/situation_log/situation_log_tick.dds"
	event_scope = ship_event
	location = yes

	triggered_requirement = {
		text = CONSTRUCTOR_PROJECT_REQUIREMENTS
		count = 1
		trigger = {
			OR = {
				is_ship_class = shipclass_constructor
				is_arkship_fleet = yes
			}
		}
	}

	on_success = {
		from = { country_event = { id = specialist.1280 } }
	}
}

special_project = {
	key = "SHATTERED_FRONTIER_ANOMALY"
	icon = "gfx/interface/icons/situation_log/situation_log_physics.dds"
	cost = 0
	days_to_research = 250
	picture = GFX_evt_satellite_in_orbit
	timelimit = 720
	location = yes
	sound = yes
	event_scope = planet_event

	requirements = {
		# shipclass_science_ship = 1
		# leader = scientist
	}

	abort_trigger = {
		fromfrom = {
			OR = {
				is_occupied_flag = yes
				owner = {
					NOT = { is_same_value = prevprev }
				}
				NOT = { exists = owner }
			}
		}
	}

	on_progress_50 = {
		carrier_event = { id = enclave.5504 } #Silhouette revealed
	}

	on_success = {
		carrier_event = { id = enclave.5505 } #Psi storm
	}

	on_fail = {
		fromfrom = {
			carrier_event = { id = enclave.5501 }
		}
	}
	on_cancel = {
		fromfrom = {
			carrier_event = { id = enclave.5501 }
		}
	}
}

special_project = {
	key = "REDIVIVUS_PROJECT"
	cost = 1000
	tech_department = society_technology
	timelimit = -1
	picture = GFX_evt_grand_speech
	icon = "gfx/interface/icons/situation_log/situation_log_society.dds"

	event_scope = planet_event

	on_success = {
		carrier_event = { id = enclave.5200 }
	}
}
