namespace = esap_combination_t2

# Path of Conquest, Gain Influence on planet occupation.
carrier_event = {
	id = esap_combination_t2.1
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		FromFrom = {
			has_ascension_perk = ap_esap_ct2_war_expansion
		}	
	}
	
	immediate = {
		FromFrom = {
			add_resource = {
				influence = 100
			}
		}
	}
}

# Path of Conquest, Gain bonus whenever a war is declared.
country_event = {
	id = esap_combination_t2.2
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		has_global_flag = flag_esap_ct2_war_expansion_picked
		has_ascension_perk = ap_esap_ct2_war_expansion
		From = {
			any_attacker = {
				is_same_value = root
			}
		}
	}
	
	immediate = {
		if = {
			limit = { has_modifier = mod_esap_ct2_war_expansion }
			remove_modifier = "mod_esap_ct2_war_expansion"
		}
		add_modifier = {
			modifier = "mod_esap_ct2_war_expansion"
			years = 20
		}
	}
}

# Imperial Ambition, Adds modifier on newly colonised worlds.
carrier_event = {
	id = esap_combination_t2.3
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		owner = {
			has_ascension_perk = ap_esap_ct2_expansion_diplomacy
		}	
		Not = {
			has_modifier = mod_esap_ct2_expansion_diplomacy
		}
	}
	
	immediate = {
		add_modifier = {
			modifier = "mod_esap_ct2_expansion_diplomacy"
			years = 20
		}
	}
}