﻿siege_base_capture_chance = {
	value = 70

	# Dynasty Perk: Practiced Kidnappers
	if = {
		limit = {
			scope:occupant = {
				exists = dynasty
				dynasty = { has_dynasty_perk = fp1_pillage_legacy_3 }
			}
		}
		add = 40
	}
	# Cultural Parameter: State Ransoms
	if = {
		limit = {
			OR = {
				# Either you're involved in large groups of the holding surrendering...
				scope:barony.culture = { has_cultural_parameter = knights_die_less_but_are_captured_more }
				# ... or you know your liege will pay your ransom.
				scope:barony.holder.culture = { has_cultural_parameter = knights_die_less_but_are_captured_more }
			}
			# Ransoms or no, the primary participants & their heirs know better than to surrender.
			character_is_potential_valuable_prisoner = no
			# And independent characters likewise have no incentive.
			is_independent_ruler = no
		}
		add = 100
	}
	if = {
		limit = {
			exists = root.army_commander
		}
		if = {
			limit = {
				OR = {
					is_courtier_of = root.army_commander
					is_courtier_of = root.army_commander.liege
					is_liege_or_above_of = root.army_commander
					is_liege_or_above_of = root.army_commander.liege
					is_vassal_or_below_of = root.army_commander
					is_vassal_or_below_of = root.army_commander.liege
					any_former_spouse = { this = root.army_commander }
					any_former_spouse = { this = root.army_commander.liege }
				}
			}
			add = 20
		}
	}
}
raid_base_capture_chance = {
	value = 40

	if = {
		limit = {
			exists = root.army_commander
		}
		# Trait: Viking
		if = {
			limit = { root.army_commander = { has_trait = viking } }
			add = 10
		}
		# Dynasty Perk: Practiced Kidnappers
		if = {
			limit = {
				exists = root.army_commander.dynasty
				root.army_commander.dynasty = { has_dynasty_perk = fp1_pillage_legacy_3 }
			}
			add = 40
		}
		if = {
			limit = {
				OR = {
					is_courtier_of = root.army_commander
					is_courtier_of = root.army_commander.liege
					is_liege_or_above_of = root.army_commander
					is_liege_or_above_of = root.army_commander.liege
					is_vassal_or_below_of = root.army_commander
					is_vassal_or_below_of = root.army_commander.liege
					any_former_spouse = { this = root.army_commander }
					any_former_spouse = { this = root.army_commander.liege }
				}
			}
			add = 20
		}
	}
}