﻿

gpt_sucessful_confrontation_effect = {
	add_dread = 10
	send_interface_toast = {
		title = gpt_sucessful_confrontation_toast_title
		left_icon = scope:actor					
		right_icon = scope:recipient
		scope:saved_councillor = {
			custom_tooltip = gpt_sucess_confront_tt
			add_character_flag = { flag = gpt_sucessful_confrontation years = 5 }
			add_opinion = {
				modifier = upset_opinion
				target = root
				opinion = -10
			}
		}
	}
	hidden_effect = {
		if = {
			limit = {
				has_trait = gpt_power_struggle
				exists = primary_spouse
				primary_spouse = scope:saved_councillor
			}
			add_trait_xp = { trait = gpt_power_struggle track = gpt_spouse value = -50 }
		}
		if = {
			limit = {
				has_trait = gpt_power_struggle
				exists = cp:councillor_court_chaplain
				cp:councillor_court_chaplain = scope:saved_councillor
			}
			add_trait_xp = { trait = gpt_power_struggle track = gpt_chaplain value = -50 }
		}
		if = {
			limit = {
				has_trait = gpt_power_struggle
				exists = cp:councillor_chancellor
				cp:councillor_chancellor = scope:saved_councillor
			}
			add_trait_xp = { trait = gpt_power_struggle track = gpt_chancellor value = -50 }
		}
		if = {
			limit = {
				has_trait = gpt_power_struggle
				exists = cp:councillor_steward
				cp:councillor_steward = scope:saved_councillor
			}
			add_trait_xp = { trait = gpt_power_struggle track = gpt_steward value = -50 }
		}
		if = {
			limit = {
				has_trait = gpt_power_struggle
				exists = cp:councillor_marshal
				cp:councillor_marshal = scope:saved_councillor
			}
			add_trait_xp = { trait = gpt_power_struggle track = gpt_marshal value = -50 }
		}
		if = {
			limit = {
				has_trait = gpt_power_struggle
				exists = cp:councillor_spymaster
				cp:councillor_spymaster = scope:saved_councillor
			}
			add_trait_xp = { trait = gpt_power_struggle track = gpt_spymaster value = -50 }
		}
	}
}

gpt_failed_confrontation_effect = {
	custom_tooltip = gpt_failure_confront_tt
	send_interface_toast = {
		title = gpt_failed_confrontation_toast_title
		left_icon = scope:actor					
		right_icon = scope:recipient
		scope:saved_councillor = {
			add_opinion = {
				modifier = irritated_opinion
				target = root
				opinion = -10
			}
			reverse_add_opinion = {
				modifier = irritated_opinion
				target = root
				opinion = -10
			}
		}
	}
}

gpt_rivalry_confrontation_effect = {
	scope:saved_councillor = {
		set_relation_rival = root
	}
}

gpt_tied_confrontation_effect = {
	custom_tooltip = gpt_tied_confront_tt
	send_interface_toast = {
		title = gpt_tied_confrontation_toast_title
		left_icon = scope:actor					
		right_icon = scope:recipient
		scope:saved_councillor = {
			add_opinion = {
				modifier = pleased_opinion
				target = root
				opinion = 12
			}
		}
	}
}
