﻿siege_base_capture_chance = {
	value = 35

	# Hiraeth Dynasty Perks
	if = {
		limit = {
			scope:occupant = {
				exists = dynasty
				dynasty = { has_dynasty_perk = hth_fp1_pillage_legacy_2 }
			}
		}
		add = 25
	}
	if = {
		limit = {
			scope:occupant = {
				exists = dynasty
				dynasty = { has_dynasty_perk = fp1_pillage_legacy_4 }
			}
		}
		add = 25
	}
	# peasants capture and kill more nobles
	if = {
		limit = {
			scope:occupant = { has_variable = rebel_leader_peasants }
			is_lowborn = no
		}
		add = 20
	}
	# 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.
			top_liege != this
		}
		add = 50
	}
}
raid_base_capture_chance = {
	value = 20

	if = {
		limit = {
			exists = root.army_commander
		}
		# Trait: Viking
		if = {
			limit = { root.army_commander = { has_trait = viking } }
			add = 5
		}
		# Hiraeth Dynasty Perks
		if = {
			limit = {
				exists = root.army_commander.dynasty
				root.army_commander.dynasty = { has_dynasty_perk = hth_fp1_pillage_legacy_2 }
			}
			add = 25
		}
		if = {
			limit = {
				exists = root.army_commander.dynasty
				root.army_commander.dynasty = { has_dynasty_perk = fp1_pillage_legacy_4 }
			}
			add = 25
		}
	}
}