
########## Precursor arc sites ###########

#### Zroni

#zroni discovery
zroni_digsite_1 = {
	desc = zroni_digsite_1_desc
	picture = GFX_evt_overgrown_city
	situation_log_category = precursors
	stages = 3
	max_instances = 1
	allow = {
		is_ship_class = shipclass_science_ship
		exists = leader
		hidden_trigger = {
			owner = {
				has_country_flag = zroni_arc_chain_@fromfrom.planet
			}
		}
	}
	visible = {
		has_country_flag = zroni_intro
		has_country_flag = zroni_arc_chain_@fromfrom.planet
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 1
		icon = GFX_archaeology_runes_F1
		event = ancrel.2
	}
	stage = {
		difficulty = 1
		icon = GFX_archaeology_runes_F2
		event = ancrel.3
	}
	stage = {
		difficulty = 2
		icon = GFX_archaeology_runes_F3
		event = ancrel.4
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
}

#Zroni Beacon
zroni_digsite_2 = {
	desc = zroni_digsite_2_desc
	picture = GFX_evt_overgrown_city
	situation_log_category = precursors
	stages = 2
	max_instances = 1
	allow = {
		is_ship_class = shipclass_science_ship
		exists = leader
		hidden_trigger = {
			owner = {
				has_country_flag = zroni_arc_chain_@from.planet
			}
		}
	}
	visible = {
		has_country_flag = zroni_intro
		has_country_flag = zroni_arc_chain_@from.planet
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 2
		icon = GFX_archaeology_runes_F1
		event = ancrel.5
	}
	stage = {
		difficulty = 2
		icon = GFX_archaeology_runes_F2
		event = ancrel.6
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
}

#Zroni Temple
zroni_digsite_3 = {
	desc = zroni_digsite_3_desc
	picture = GFX_evt_overgrown_city
	situation_log_category = precursors
	stages = 2
	max_instances = 1
	allow = {
		is_ship_class = shipclass_science_ship
		exists = leader
		owner = {
			has_country_flag = zroni_arc_chain_@from.planet
		}
	}
	visible = {
		has_country_flag = zroni_intro
		has_country_flag = zroni_arc_chain_@from.planet
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_F1
		event = ancrel.7
	}
	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_F2
		event = ancrel.8
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
}

#Zroni Research Outpost
zroni_digsite_4 = {
	desc = zroni_digsite_4_desc
	picture = GFX_evt_baol_datacrystals
	situation_log_category = precursors
	stages = 2
	max_instances = 1
	allow = {
		is_ship_class = shipclass_science_ship
		exists = leader
		hidden_trigger = {
			owner = {
				has_country_flag = zroni_arc_chain_@from.planet
			}
		}
	}
	visible = {
		has_country_flag = zroni_intro
		has_country_flag = zroni_arc_chain_@from.planet
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_F1
		event = ancrel.9
	}
	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F2
		event = ancrel.10
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
}

#Zroni Core World
zroni_digsite_5 = {
	desc = zroni_digsite_5_desc
	picture = GFX_evt_baol_datacrystals
	situation_log_category = precursors
	stages = 3
	max_instances = 1
	allow = {
		is_ship_class = shipclass_science_ship
		exists = leader
		hidden_trigger = {
			owner = {
				has_country_flag = zroni_arc_chain_@from.planet
			}
		}
	}
	visible = {
		has_country_flag = zroni_intro
		has_country_flag = zroni_arc_chain_@from.planet
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F1
		event = ancrel.11
	}
	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F2
		event = ancrel.12
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F3
		event = ancrel.13
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
}

#zroni homeworld
zroni_digsite_6 = {
	desc = zroni_digsite_6_desc
	picture = GFX_evt_shrouded_planet
	situation_log_category = precursors
	stages = 5
	max_instances = 1
	allow = {
		is_ship_class = shipclass_science_ship
		exists = leader
	}
	visible = {
		has_country_flag = zroni_intro
		default_site_visible_trigger = yes
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_F2
		event = ancrel.15
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F3
		event = ancrel.16
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_F4
		event = ancrel.17
	}
	stage = {
		difficulty = 6
		icon = GFX_archaeology_runes_F5
		event = ancrel.18
	}
	stage = {
		difficulty = 6
		icon = GFX_archaeology_runes_F6
		event = ancrel.19
	}

	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
}


##### Baol/Grunur

#The Baol Organism - Grunur Planet
grunur_digsite_1 = {
	desc = "grunur_digsite_1_desc"
	picture = GFX_evt_baol_grunur
	situation_log_category = precursors
	stages = 2
	max_instances = 1
	weight = 0 #Set by ancrel.2000
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		has_country_flag = baol_intro
		default_site_visible_trigger = yes
	}
	stage = {
		difficulty = 2
		icon = GFX_archaeology_runes_C1
		event = ancrel.2001
	}
	stage = {
		difficulty = 2
		icon = GFX_archaeology_runes_C2
		event = ancrel.2002
	}
	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
}

#The Baol Organism - The Barren
baol_digsite_1 = {
	desc = "baol_digsite_1_desc"
	picture = GFX_evt_warm_barren
	situation_log_category = precursors
	stages = 3
	max_instances = 1
	weight = 0 #Set by ancrel.2000
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		has_country_flag = baol_intro
		default_site_visible_trigger = yes
	}
	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_B1
		event = ancrel.2004
	}
	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_B2
		event = ancrel.2005
	}
	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_B3
		event = ancrel.2006
	}
	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
	situation_log_category = "precursors"
}

#The Baol Organism - The Shattered
baol_digsite_2 = {
	desc = "baol_digsite_2_desc"
	picture = GFX_evt_asteroid_field
	situation_log_category = precursors
	stages = 4
	max_instances = 1
	weight = 0 #Set by ancrel.2000
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		has_country_flag = baol_intro
		default_site_visible_trigger = yes
	}
	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_B4
		event = ancrel.2008
	}
	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_B5
		event = ancrel.2009
	}
	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_B6
		event = ancrel.2010
	}
	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_B1
		event = ancrel.2011
	}
	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
}

#The Baol Organism - The Silenced
baol_digsite_3 = {
	desc = "baol_digsite_3_desc"
	picture = GFX_evt_baol_ruins
	situation_log_category = precursors
	stages = 2
	max_instances = 1
	weight = 0 #Set by ancrel.2000
	allow = {
		exists = leader
		leader = { leader_class = scientist }
	}
	visible = {
		has_country_flag = baol_intro
		default_site_visible_trigger = yes
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_B2
		event = ancrel.2013
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_B3
		event = ancrel.2024
	}
	on_roll_failed = {
		from = {
			standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = all_random_events }
		}
	}
}
