#################
# INHERITANCE OF GIANTS
# Starts the Deep Archive Survey special project; on completion the empire picks one of three
# ruined megastructures, which appears in a random system inside its borders.
# Logic: events/apb_inheritance_of_giants_events.txt, common/scripted_effects/apb_inheritance_of_giants_effects.txt
#################
ap_inheritance_of_giants = {
	potential = {
		NOT = {
			has_ascension_perk = ap_inheritance_of_giants
		}
		is_nomadic = no
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "apb_requires_mega_engineering_or_3_perks"
			OR = {
				has_technology = tech_mega_engineering
				num_ascension_perks > 2
			}
		}
	}
	on_enabled = {
		custom_tooltip = apb_inheritance_of_giants_tooltip
		hidden_effect = {
			country_event = {
				id = apb_giants.1
			}
		}
	}
	ai_weight = {
		factor = 2
	}
}
