#############################################
# Renounce Governorship						#
#############################################

renounce_governorship_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
	}
	sort_order = 85
	ai_check_interval = 120

	desc = renounce_governorship_decision_desc
	selection_tooltip = renounce_governorship_decision_tooltip
	decision_group_type = admin

	is_shown = {
		has_ep3_dlc_trigger = yes
		is_playable_character = yes
		is_landed = yes
		any_held_title = { # To avoid accidentally game-overing yourself
			is_noble_family_title = yes
		}
	}


	effect = {
		custom_tooltip = renounce_governorship_decision_effect_tt
		show_as_tooltip = {
			add_gold = massive_gold_value
			add_character_modifier = {
				modifier = ep3_renounced_governorship
				years = 15
			}
		}
		trigger_event = ep3_decisions_event.4090
		close_view = {
			view = decisions
			player = root
		}
	}
	
	cost = {
		influence = minor_influence_value
	}

	ai_potential = {
		is_at_war = no
		# Don't step down freely if you don't have any other house members holding a governorship or inherit any held governorship
		OR = {
			house ?= {
				any_house_member = {
					is_governor = yes
					top_liege = root.top_liege
				}
			}
			any_held_title = {
				tier >= tier_duchy
				is_noble_family_title = no
				current_heir.house = root.house
			}
		}
	}

	ai_will_do = {
		base = 0
		modifier = {
			add = 5
			has_trait = lazy
		}
		modifier = {
			add = 10
			has_trait = humble
		}
		modifier = {
			add = 15
			has_trait = content
		}
		modifier = {
			add = 100
			NOR = {
				has_trait = ambitious
				has_trait = greedy
				has_trait = arrogant
			}
			debt_level >= 1
		}
	}
}