﻿namespace = aureliani

aureliani.0021 = {
	content_source = dlc_aureliani
	type = character_event
	title = aureliani.0021.t
	desc = aureliani.0021.desc
	theme = stewardship
	left_portrait = { character = root }

	trigger = {
		is_landed = yes
		aureliani_civic_vision_trigger = yes
		NOT = { aureliani_vision_followup_completed_trigger = yes }
	}
	immediate = {
		add_character_flag = aureliani_vision_followup_seen
		house = { set_variable = { name = aureliani_vision_followup_seen value = 1 } }
		add_character_flag = aureliani_vision_followup_pending
	}
	after = {
		remove_character_flag = aureliani_vision_followup_pending
	}

	option = {
		name = aureliani.0021.a
		trigger = {
			gold >= 50
			has_title = title:c_firenze
		}
		show_as_unavailable = { always = yes }
		remove_short_term_gold = 50
		title:c_firenze = {
			add_county_modifier = {
				modifier = aureliani_civic_works
				years = 5
			}
		}
		ai_chance = { base = 75 }
	}
	option = {
		name = aureliani.0021.b
		add_prestige = -50
		ai_chance = { base = 25 }
	}
}

aureliani.0022 = {
	content_source = dlc_aureliani
	type = character_event
	title = aureliani.0022.t
	desc = aureliani.0022.desc
	theme = faith
	left_portrait = { character = root }

	trigger = {
		is_landed = yes
		aureliani_sacred_vision_trigger = yes
		NOT = { aureliani_vision_followup_completed_trigger = yes }
	}
	immediate = {
		add_character_flag = aureliani_vision_followup_seen
		house = { set_variable = { name = aureliani_vision_followup_seen value = 1 } }
		add_character_flag = aureliani_vision_followup_pending
	}
	after = {
		remove_character_flag = aureliani_vision_followup_pending
	}

	option = {
		name = aureliani.0022.a
		trigger = { gold >= 50 }
		show_as_unavailable = { always = yes }
		remove_short_term_gold = 50
		add_character_modifier = {
			modifier = aureliani_church_patronage
			years = 5
		}
		ai_chance = { base = 75 }
	}
	option = {
		name = aureliani.0022.b
		add_piety = -50
		ai_chance = { base = 25 }
	}
}

aureliani.0023 = {
	content_source = dlc_aureliani
	type = character_event
	title = aureliani.0023.t
	desc = aureliani.0023.desc
	theme = martial
	left_portrait = { character = root }

	trigger = {
		is_landed = yes
		aureliani_imperial_vision_trigger = yes
		NOT = { aureliani_vision_followup_completed_trigger = yes }
	}
	immediate = {
		add_character_flag = aureliani_vision_followup_seen
		house = { set_variable = { name = aureliani_vision_followup_seen value = 1 } }
		add_character_flag = aureliani_vision_followup_pending
	}
	after = {
		remove_character_flag = aureliani_vision_followup_pending
	}

	option = {
		name = aureliani.0023.a
		trigger = {
			gold >= 50
			prestige >= 150
		}
		show_as_unavailable = { always = yes }
		remove_short_term_gold = 50
		add_prestige = -150
		add_character_modifier = {
			modifier = aureliani_imperial_muster
			years = 5
		}
		ai_chance = { base = 75 }
	}
	option = {
		name = aureliani.0023.b
		add_prestige = -50
		ai_chance = { base = 25 }
	}
}
