############################################
# Skaa-Related Events
# Managing the oppressed skaa population
############################################

namespace = mistborn_skaa

# ============================================================
# SKAA CRACKDOWN AFTERMATH
# Triggered by crack_down_on_skaa_decision
# ============================================================
mistborn_skaa.0001 = {
	type = character_event
	title = mistborn_skaa.0001.t
	desc = mistborn_skaa.0001.desc
	theme = war

	left_portrait = {
		character = root
		animation = personality_callous
	}

	immediate = {}

	# Option A: Make an example of rebel leaders
	option = {
		name = mistborn_skaa.0001.a
		add_dread = 20
		add_tyranny = 10
		stress_impact = {
			compassionate = 30
			callous = -15
			sadistic = -20
		}
		# Reduces future unrest significantly
		every_held_title = {
			limit = { tier = tier_county }
			change_county_control = 10
		}
		ai_chance = {
			base = 40
			modifier = {
				add = 20
				has_trait = callous
			}
		}
	}

	# Option B: Show measured force
	option = {
		name = mistborn_skaa.0001.b
		add_dread = 5
		every_held_title = {
			limit = { tier = tier_county }
			change_county_control = 5
		}
		ai_chance = {
			base = 40
		}
	}

	# Option C: You discover hidden Allomancers among the skaa
	option = {
		name = mistborn_skaa.0001.c
		trigger = {
			intrigue >= 10
		}
		random_list = {
			30 = {
				# Found a skaa with Allomantic potential
				add_character_flag = discovered_skaa_allomancer
				custom_tooltip = mistborn_skaa.0001.c.found
			}
			70 = {
				# Nothing notable
				custom_tooltip = mistborn_skaa.0001.c.nothing
			}
		}
		ai_chance = {
			base = 20
		}
	}
}

# ============================================================
# IMPROVED SKAA CONDITIONS AFTERMATH
# Triggered by improve_skaa_conditions_decision
# ============================================================
mistborn_skaa.0010 = {
	type = character_event
	title = mistborn_skaa.0010.t
	desc = mistborn_skaa.0010.desc
	theme = diplomacy

	left_portrait = {
		character = root
		animation = personality_compassionate
	}

	immediate = {}

	# Option A: Continue the reforms quietly
	option = {
		name = mistborn_skaa.0010.a
		add_prestige = 25
		# The skaa are grateful - long-term stability
		every_held_title = {
			limit = { tier = tier_county }
			change_development_level = 1
		}
		stress_impact = {
			compassionate = -15
			just = -10
		}
		ai_chance = {
			base = 50
		}
	}

	# Option B: Publicize your benevolence for political gain
	option = {
		name = mistborn_skaa.0010.b
		add_prestige = 100
		# But the Steel Ministry notices more
		if = {
			limit = { has_variable = lord_ruler_attention }
			change_variable = {
				name = lord_ruler_attention
				add = 10
			}
		}
		else = {
			set_variable = {
				name = lord_ruler_attention
				value = 10
			}
		}
		ai_chance = {
			base = 30
		}
	}

	# Option C: It was enough - return to normal
	option = {
		name = mistborn_skaa.0010.c
		add_stress = -10
		ai_chance = {
			base = 20
		}
	}
}
