#################
# U10. Forked Minds (virtual, synthetic and machine empires)
# +1 leader cap, and the edict "Fork Instance" (common/edicts/apb_forked_minds_edicts.txt):
# clone the highest-level leader of a chosen class (never the ruler, a forked
# instance or a gestalt node: scripted trigger apb_can_be_forked). The clone carries the
# Forked Instance trait and can never be forked again.
# Cooldown 15 years (10 for virtual empires).
# Logic: events/apb_forked_minds_events.txt
#################

ap_forked_minds = {
	potential = {
		NOT = {
			has_ascension_perk = ap_forked_minds
		}
		OR = {
			is_virtual_empire = yes
			has_synthetic_ascension = yes
			is_machine_empire = yes
			is_individual_machine = yes
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
	}
	modifier = {
		country_leader_cap_add = 1
	}
	on_enabled = {
		custom_tooltip = apb_forked_minds_tt
	}
	ai_weight = {
		factor = 2
	}
}
