﻿# Abciation mod values

# Abandoned attempt at renown cost. If I could do splendor, I would but I feckin' CAN'T because PDX.
abdicost_renown_value = { value = 0
	if = {
	limit = { has_trait = excommunicated }
	add = 30
	multiply = { value = dynasty.dynasty_prestige_level multiply = primary_title.tier multiply = 0.8 }
		}
	}

# Renown cost for the hidden effect event of the decision
abdicate_event_renown_value = {
	value = 0
	add = 30
	multiply = { value = dynasty_prestige_level multiply = dynast.primary_title.tier multiply = 0.8 }	
}		

### Revoking hosted abdicator court position prestige cost
kickhostedabdicator_prestige_value = {
	value = 0
	add = major_court_position_prestige_revoke_cost
	# Double if the abdicator is of your house
	if = {
		limit = {
			exists = dynasty
			employs_court_position = hosted_abdicator_court_position
			any_court_position_holder = {
				type = hosted_abdicator_court_position
				exists = dynasty
				house = prev.house }
		}
		multiply = 2
	}
	# 1.5 times if you have "inner circle" and they are of your dynasty
	if = {
		limit = {
			exists = dynasty
			dynasty = { has_dynasty_perk = fp2_coterie_legacy_1 }
			employs_court_position = hosted_abdicator_court_position
			any_court_position_holder = {
				type = hosted_abdicator_court_position
				exists = dynasty
				house = prev.house }
		}
		multiply = 1.5
	}
	# Half for known sinners, if your religion is not pluralist 
	if = {
		limit = {
			NOT = { ROOT = { faith = { has_doctrine = doctrine_pluralism_pluralistic } } }
			employs_court_position = hosted_abdicator_court_position
			any_court_position_holder = {
				type = hosted_abdicator_court_position
				num_sinful_traits > 0 }
		}
		multiply = 0.75
	}
}