﻿# Soul of the Art, using the custom pc_nuked-derived planet class.
ASP_site_soul_of_the_art = {
	desc = "ASP_site_soul_of_the_art_desc"
	picture = GFX_evt_asp_soul_of_the_art_intro
	max_instances = 1
	stages = 6
	weight = {
		base = 0
		modifier = {
			add = 65
			aspmod_dig_site_default_spawn_rules = yes
			is_planet_class = pc_nuked #We found a spectacular 'tomb planet'
		}
	}

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

	on_create = {
		planet = {
			change_pc = pc_nuked_colorful #We found a spectacular tomb planet that was painted in color over thousands of kilometers
			create_ambient_object = {
				type = "medium_debris_01_object" #there are numerous 'debris that are believed to be battleships' of ancient civilization
				entity_offset_height = -15
				location = this
			}
			create_ambient_object = {
				type = "large_debris_object" #covered in countless metal fragments, evidently of artificial structures
				entity_offset_height = -14
				location = this
			}
			clear_blockers = yes
			add_deposit = d_relic_metal_boneyard
			add_deposit = d_abandoned_mining_tunnels
			add_deposit = d_hot_springs
			add_deposit = d_searing_desert
			add_deposit = d_underwater_vent
			add_deposit = d_underwater_vent
		}
	}
 
	on_visible = {
		country_event = { id = story.5 days = 30 }
	}

	stage = {
		difficulty = 2
		icon = GFX_archaeology_runes_B1
		event = asp.1
	}
	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_B2
		event = asp.2
	}
	stage = {
		difficulty = 3
		icon = GFX_archaeology_runes_B3
		event = asp.3
	}
	stage = {
		difficulty = 4
		icon = GFX_archaeology_runes_B4
		event = asp.4
	}
	stage = {
		difficulty = 5
		icon = GFX_archaeology_runes_B5
		event = asp.5
	}

	stage = {
		difficulty = 6
		icon = GFX_archaeology_runes_B6
		event = asp.6
	}

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