###############################################
# Xenomorph Archaeological Sites
# Pass 16: Crashed Derelict origin digsite (5 stages).
###############################################

# Crashed Derelict origin: an ancient Xenomorph-bearing starship buried on the
# capital. Player excavates through 5 stages to recover salvage and tech bonuses.
# Wired by xenomorph_crashed_derelict_start.1 via create_archaeological_site.
xenomorph_crashed_derelict_digsite = {
	desc = xenomorph_crashed_derelict_digsite_desc
	picture = GFX_evt_crashed_ship
	stages = 5
	weight = 0
	max_instances = 999

	allow = {
		is_ship_class = shipclass_science_ship
		exists = leader
	}

	potential = {
		hidden_trigger = {
			owner = {
				has_country_flag = xenomorph_crashed_derelict_site_owner
			}
		}
	}

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

	on_roll_failed = {
		standard_archaeological_site_on_roll_failed = { RANDOM_EVENTS = no_events }
	}

	stage = {
		difficulty = 1
		icon = GFX_archaeology_runes_C1
		event = xeno_arch.1
	}

	stage = {
		difficulty = 2
		icon = GFX_archaeology_runes_C2
		event = xeno_arch.2
	}

	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_C3
		event = xeno_arch.3
	}

	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_C4
		event = xeno_arch.4
	}

	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_C5
		event = xeno_arch.5
	}
}
