######################################
#     ARC SITES - Cosmic Storms #
######################################

site_green_skies = {
	desc = site_green_skies_intro
	picture = GFX_evt_alien_planet
	stages = 4
	max_instances = 1

	weight = {
		base = 0
		modifier = {
			add = 15
			habitable_planet = yes
		}
		modifier = {
			factor = 0
			exists = owner
			owner = { is_gestalt = yes}
		}
		modifier = {
			factor = 0
			has_cosmic_storms_dlc = no
		}
	}

	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}

	visible = {
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_B1
		event = cstorms.1400
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_B2
		event = cstorms.1405
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_B3
		event = cstorms.1410
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_B4
		event = cstorms.1415
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = no_events }
		}
	}
}

###############################
#### The Weather Manipulators #
###############################

site_weathermanipulators_the_ancient_storm_shelters = {
	desc = "site_weathermanipulators_the_ancient_storm_shelters_intro"
	picture = GFX_evt_weather_manipulators
	situation_log_category = precursors
	stages = 5
	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		owner = { has_country_flag = inetian_intro }
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F1
		event = cstorms.110
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F2
		event = cstorms.115
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F3
		event = cstorms.120
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F4
		event = cstorms.125
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F5
		event = cstorms.130
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = cosmic_storm_precursor_random_events }
		}
	}
}

site_weathermanipulators_CoordinatesA_Residential_Planet = {
	desc = "site_weathermanipulators_CoordinatesA_Residential_Planet_intro"
	picture = GFX_evt_weather_manipulators
	situation_log_category = precursors
	stages = 3
	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}

	visible = {
		default_site_visible_trigger = yes
		owner = {
			has_country_flag = wm_digsite_coordinates_found
		}
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F1
		event = cstorms.140
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F2
		event = cstorms.145
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F3
		event = cstorms.150
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = cosmic_storm_precursor_random_events }
		}
	}
}

site_weathermanipulators_CoordinatesB_Industrial_Planet = {
	desc = site_weathermanipulators_CoordinatesB_Industrial_Planet_intro
	picture = GFX_evt_weather_manipulators
	situation_log_category = precursors
	stages = 3
	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		default_site_visible_trigger = yes
		owner = {
			has_country_flag = wm_digsite_coordinates_found
		}
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F1
		event = cstorms.155
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F2
		event = cstorms.160
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F3
		event = cstorms.165
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = cosmic_storm_precursor_random_events }
		}
	}
}

site_weathermanipulators_CoordinatesC_Barren_Planet = {
	desc = site_weathermanipulators_CoordinatesC_Barren_Planet_intro
	picture = GFX_evt_weather_manipulators
	situation_log_category = precursors
	stages = 3
	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		default_site_visible_trigger = yes
		owner = {
			has_country_flag = wm_digsite_coordinates_found
		}
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F1
		event = cstorms.170
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F2
		event = cstorms.171
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F3
		event = cstorms.172
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = cosmic_storm_precursor_random_events }
		}
	}
}

site_weathermanipulators_storm_formation = {
	desc = site_weathermanipulators_storm_formation_intro
	picture = GFX_evt_weather_manipulators
	situation_log_category = precursors
	stages = 4
	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F1
		event = cstorms.181
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F2
		event = cstorms.182
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F3
		event = cstorms.183
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F4
		event = cstorms.184
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = cosmic_storm_precursor_random_events }
		}
	}
}

site_weathermanipulators_last_shelter = {
	desc = site_weathermanipulators_last_shelter_intro
	picture = GFX_evt_weather_manipulators
	situation_log_category = precursors
	stages = 4
	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}

	visible = {
		default_site_visible_trigger = yes
	}
	stage = {
		difficulty = 7
		icon = GFX_archaeology_runes_F1
		event = cstorms.190
	}

	stage = {
		difficulty = 7
		icon = GFX_archaeology_runes_F2
		event = cstorms.191
	}

	stage = {
		difficulty = 8
		icon = GFX_archaeology_runes_F3
		event = cstorms.192
	}

	stage = {
		difficulty = 8
		icon = GFX_archaeology_runes_F4
		event = cstorms.193
	}


	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = cosmic_storm_precursor_random_events }
		}
	}
}

##############################################
#### The adAkkaria Convention of Benevolence #
##############################################

site_adakkaria_the_propaganda_station = {
	desc = "site_adakkaria_the_propaganda_station_intro"
	picture = GFX_evt_ruined_system
	situation_log_category = precursors
	stages = 5
	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		owner = { has_country_flag = adakkaria_intro }
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_C1
		event = cstorms.215
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_C2
		event = cstorms.220
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C3
		event = cstorms.225
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C4
		event = cstorms.230
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C5
		event = cstorms.235
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = cosmic_storm_precursor_random_events }
		}
	}
}

site_adakarria_windswept_fates = {
	desc = "site_adakarria_windswept_fates_intro"
	picture = GFX_evt_cosmic_storms_windswept_fates
	situation_log_category = precursors
	stages = 6

	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_C1
		event = cstorms.2105
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C2
		event = cstorms.2110
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C3
		event = cstorms.2115
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C4
		event = cstorms.2120
	}

	stage = {
		difficulty = 6
		icon = GFX_archaeology_runes_C5
		event = cstorms.2125
	}

	stage = {
		difficulty = 6
		icon = GFX_archaeology_runes_C6
		event = cstorms.2130
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = space_station_random_events }
		}
	}
}

site_adakkaria_fleets_of_the_thrice_damned = {
	desc = "site_adakkaria_fleets_of_the_thrice_damned_intro"
	picture = GFX_evt_cosmic_storms_fleets_of_the_thrice_damned
	situation_log_category = precursors
	stages = 5

	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C1
		event = cstorms.2150
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C2
		event = cstorms.2155
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C3
		event = cstorms.2160
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C4
		event = cstorms.2165
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C5
		event = cstorms.2170
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = space_station_random_events }
		}
	}
}

site_adakkaria_the_patriotic_institute = {
	desc = "site_adakkaria_the_patriotic_institute_intro"
	picture = GFX_evt_habitat
	situation_log_category = precursors
	stages = 6

	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		has_event_chain = cs_adAkkaria_chain
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_C1
		event = cstorms.2200
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C2
		event = cstorms.2205
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C3
		event = cstorms.2210
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C4
		event = cstorms.2215
	}

	stage = {
		difficulty = 6
		icon = GFX_archaeology_runes_C5
		event = cstorms.2220
	}

	stage = {
		difficulty = 6
		icon = GFX_archaeology_runes_C6
		event = cstorms.2225
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = space_station_random_events }
		}
	}
}

site_adakkaria_celebration = {
	desc = "site_adakkaria_celebration_intro"
	picture = GFX_evt_ancient_databank
	situation_log_category = precursors
	stages = 6

	weight = 0 #set via initialiser
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		has_event_chain = cs_adAkkaria_chain
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_C1
		event = cstorms.2285
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C2
		event = cstorms.2290
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C3
		event = cstorms.2295
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C4
		event = cstorms.2300
	}

	stage = {
		difficulty = 6
		icon = GFX_archaeology_runes_C5
		event = cstorms.2305
	}

	stage = {
		difficulty = 6
		icon = GFX_archaeology_runes_C6
		event = cstorms.2310
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = cosmic_storm_precursor_random_events }
		}
	}
}

######################
#### Hold the line ###
######################

site_hold_the_line = {
	desc = "site_hold_the_line_intro"
	picture = GFX_evt_habitat
	stages = 6
	weight = 0 #set triggered by storm

	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F1
		event = cstorms.1275
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F2
		event = cstorms.1280
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F3
		event = cstorms.1285
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F4
		event = cstorms.1290
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F5
		event = cstorms.1295
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F6
		event = cstorms.1300
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = cosmic_storm_precursor_random_events }
		}
	}
}

##########################
#### Repowered Complex ###
##########################

site_repowered_complex = {
	desc = "site_repowered_complex_intro"
	picture = GFX_evt_generator_powerup
	stages = 3
	weight = 0 #set triggered by storm

	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}

	visible = {
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 2
		icon = GFX_archaeology_runes_D1
		event = cstorms.1845
	}

	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_D2
		event = cstorms.1850
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_D3
		event = cstorms.1855
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = no_events }
		}
	}
}
