﻿aureliani_senate_show = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes house = { has_variable = aureliani_senate_stage } }
}
aureliani_senate_open = {
	scope = character
	effect = { custom_tooltip = aureliani_senate_req_action_open }
}
aureliani_senate_sync = {
	scope = character
	is_valid = { aureliani_senate_visible_trigger = yes }
	effect = { aureliani_seal_sync_effect = yes aureliani_senate_sync_effect = yes }
}
aureliani_senate_refresh = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes }
	is_valid = {
		custom_description = { text = aureliani_senate_req_ruler_ready aureliani_senate_visible_trigger = yes }
		custom_description = { text = aureliani_senate_req_alive is_alive = yes }
		custom_description = { text = aureliani_senate_req_capable_adult is_capable_adult = yes }
		custom_description = { text = aureliani_senate_req_not_imprisoned is_imprisoned = no }
		custom_description = { text = aureliani_senate_req_peaceful is_at_war = no }
		trigger_if = {
			limit = { OR = { has_title = title:h_roman_empire house = { var:aureliani_senate_stage = 2 } } }
			custom_description = { text = aureliani_senate_req_roman_independence aureliani_roman_sovereignty_trigger = yes }
		}
		prestige >= 25
		custom_description = { text = aureliani_senate_req_founded house = { has_variable = aureliani_senate_stage } }
		custom_description = { text = aureliani_senate_req_no_proposal house = { NOT = { has_variable = aureliani_senate_proposal } } }
		custom_description = { text = aureliani_senate_req_roster_cooldown_clear house = { NOT = { has_variable = aureliani_senate_roster_cooldown } } }
	}
	effect = {
		show_as_tooltip = { add_prestige = -25 }
		custom_tooltip = aureliani_senate_req_action_refresh
		hidden_effect = {
			aureliani_senate_refresh_effect = yes
		}
	}
}
aureliani_senate_propose_civic = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes }
	is_valid = {
		custom_description = { text = aureliani_senate_req_ruler_ready aureliani_senate_visible_trigger = yes }
		custom_description = { text = aureliani_senate_req_alive is_alive = yes }
		custom_description = { text = aureliani_senate_req_capable_adult is_capable_adult = yes }
		custom_description = { text = aureliani_senate_req_not_imprisoned is_imprisoned = no }
		custom_description = { text = aureliani_senate_req_peaceful is_at_war = no }
		trigger_if = {
			limit = { OR = { has_title = title:h_roman_empire house = { var:aureliani_senate_stage = 2 } } }
			custom_description = { text = aureliani_senate_req_roman_independence aureliani_roman_sovereignty_trigger = yes }
		}
		custom_description = { text = aureliani_senate_req_no_recognition house = { NOT = { has_variable = aureliani_senate_recognition_pending } } }
		custom_description = { text = aureliani_senate_req_founded house = { has_variable = aureliani_senate_stage } }
		custom_description = { text = aureliani_senate_req_no_proposal house = { NOT = { has_variable = aureliani_senate_proposal } } }
		custom_description = { text = aureliani_senate_req_session_cooldown_clear house = { NOT = { has_variable = aureliani_senate_session_cooldown } } }
		prestige >= 100
		custom_description = { text = aureliani_senate_req_voters aureliani_senate_member_count >= 3 }
		custom_description = {
			text = aureliani_senate_req_law_not_active
			trigger_if = { limit = { house = { var:aureliani_senate_stage = 2 } } NOT = { has_realm_law = aureliani_senate_finance_roman } }
			trigger_else = { NOT = { has_realm_law = aureliani_senate_finance_italian } }
		}
	}
	effect = {
		custom_tooltip = aureliani_senate_req_action_propose_civic
		hidden_effect = {
			aureliani_senate_propose_effect = { BILL = 1 }
		}
	}
}
aureliani_senate_propose_military = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes }
	is_valid = {
		custom_description = { text = aureliani_senate_req_ruler_ready aureliani_senate_visible_trigger = yes }
		custom_description = { text = aureliani_senate_req_alive is_alive = yes }
		custom_description = { text = aureliani_senate_req_capable_adult is_capable_adult = yes }
		custom_description = { text = aureliani_senate_req_not_imprisoned is_imprisoned = no }
		custom_description = { text = aureliani_senate_req_peaceful is_at_war = no }
		trigger_if = {
			limit = { OR = { has_title = title:h_roman_empire house = { var:aureliani_senate_stage = 2 } } }
			custom_description = { text = aureliani_senate_req_roman_independence aureliani_roman_sovereignty_trigger = yes }
		}
		custom_description = { text = aureliani_senate_req_no_recognition house = { NOT = { has_variable = aureliani_senate_recognition_pending } } }
		custom_description = { text = aureliani_senate_req_founded house = { has_variable = aureliani_senate_stage } }
		custom_description = { text = aureliani_senate_req_no_proposal house = { NOT = { has_variable = aureliani_senate_proposal } } }
		custom_description = { text = aureliani_senate_req_session_cooldown_clear house = { NOT = { has_variable = aureliani_senate_session_cooldown } } }
		prestige >= 100
		custom_description = { text = aureliani_senate_req_voters aureliani_senate_member_count >= 3 }
		custom_description = {
			text = aureliani_senate_req_law_not_active
			trigger_if = { limit = { house = { var:aureliani_senate_stage = 2 } } NOT = { has_realm_law = aureliani_senate_military_roman } }
			trigger_else = { NOT = { has_realm_law = aureliani_senate_military_italian } }
		}
	}
	effect = {
		custom_tooltip = aureliani_senate_req_action_propose_military
		hidden_effect = {
			aureliani_senate_propose_effect = { BILL = 2 }
		}
	}
}
aureliani_senate_propose_autonomy = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes }
	is_valid = {
		custom_description = { text = aureliani_senate_req_ruler_ready aureliani_senate_visible_trigger = yes }
		custom_description = { text = aureliani_senate_req_alive is_alive = yes }
		custom_description = { text = aureliani_senate_req_capable_adult is_capable_adult = yes }
		custom_description = { text = aureliani_senate_req_not_imprisoned is_imprisoned = no }
		custom_description = { text = aureliani_senate_req_peaceful is_at_war = no }
		trigger_if = {
			limit = { OR = { has_title = title:h_roman_empire house = { var:aureliani_senate_stage = 2 } } }
			custom_description = { text = aureliani_senate_req_roman_independence aureliani_roman_sovereignty_trigger = yes }
		}
		custom_description = { text = aureliani_senate_req_no_recognition house = { NOT = { has_variable = aureliani_senate_recognition_pending } } }
		custom_description = { text = aureliani_senate_req_founded house = { has_variable = aureliani_senate_stage } }
		custom_description = { text = aureliani_senate_req_no_proposal house = { NOT = { has_variable = aureliani_senate_proposal } } }
		custom_description = { text = aureliani_senate_req_session_cooldown_clear house = { NOT = { has_variable = aureliani_senate_session_cooldown } } }
		prestige >= 100
		custom_description = { text = aureliani_senate_req_voters aureliani_senate_member_count >= 3 }
		custom_description = {
			text = aureliani_senate_req_law_not_active
			trigger_if = { limit = { house = { var:aureliani_senate_stage = 2 } } NOT = { has_realm_law = aureliani_senate_finance_charter_roman } }
			trigger_else = { NOT = { has_realm_law = aureliani_senate_finance_charter_italian } }
		}
	}
	effect = {
		custom_tooltip = aureliani_senate_req_action_propose_autonomy
		hidden_effect = {
			aureliani_senate_propose_effect = { BILL = 4 }
		}
	}
}
aureliani_senate_propose_restraint = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes }
	is_valid = {
		custom_description = { text = aureliani_senate_req_ruler_ready aureliani_senate_visible_trigger = yes }
		custom_description = { text = aureliani_senate_req_alive is_alive = yes }
		custom_description = { text = aureliani_senate_req_capable_adult is_capable_adult = yes }
		custom_description = { text = aureliani_senate_req_not_imprisoned is_imprisoned = no }
		custom_description = { text = aureliani_senate_req_peaceful is_at_war = no }
		trigger_if = {
			limit = { OR = { has_title = title:h_roman_empire house = { var:aureliani_senate_stage = 2 } } }
			custom_description = { text = aureliani_senate_req_roman_independence aureliani_roman_sovereignty_trigger = yes }
		}
		custom_description = { text = aureliani_senate_req_no_recognition house = { NOT = { has_variable = aureliani_senate_recognition_pending } } }
		custom_description = { text = aureliani_senate_req_founded house = { has_variable = aureliani_senate_stage } }
		custom_description = { text = aureliani_senate_req_no_proposal house = { NOT = { has_variable = aureliani_senate_proposal } } }
		custom_description = { text = aureliani_senate_req_session_cooldown_clear house = { NOT = { has_variable = aureliani_senate_session_cooldown } } }
		prestige >= 100
		custom_description = { text = aureliani_senate_req_voters aureliani_senate_member_count >= 3 }
		custom_description = {
			text = aureliani_senate_req_law_not_active
			trigger_if = { limit = { house = { var:aureliani_senate_stage = 2 } } NOT = { has_realm_law = aureliani_senate_military_restraint_roman } }
			trigger_else = { NOT = { has_realm_law = aureliani_senate_military_restraint_italian } }
		}
	}
	effect = {
		custom_tooltip = aureliani_senate_req_action_propose_restraint
		hidden_effect = {
			aureliani_senate_propose_effect = { BILL = 5 }
		}
	}
}
aureliani_senate_propose_tolerance = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes }
	is_valid = {
		custom_description = { text = aureliani_senate_req_ruler_ready aureliani_senate_visible_trigger = yes }
		custom_description = { text = aureliani_senate_req_alive is_alive = yes }
		custom_description = { text = aureliani_senate_req_capable_adult is_capable_adult = yes }
		custom_description = { text = aureliani_senate_req_not_imprisoned is_imprisoned = no }
		custom_description = { text = aureliani_senate_req_peaceful is_at_war = no }
		trigger_if = {
			limit = { OR = { has_title = title:h_roman_empire house = { var:aureliani_senate_stage = 2 } } }
			custom_description = { text = aureliani_senate_req_roman_independence aureliani_roman_sovereignty_trigger = yes }
		}
		custom_description = { text = aureliani_senate_req_no_recognition house = { NOT = { has_variable = aureliani_senate_recognition_pending } } }
		custom_description = { text = aureliani_senate_req_founded house = { has_variable = aureliani_senate_stage } }
		custom_description = { text = aureliani_senate_req_no_proposal house = { NOT = { has_variable = aureliani_senate_proposal } } }
		custom_description = { text = aureliani_senate_req_session_cooldown_clear house = { NOT = { has_variable = aureliani_senate_session_cooldown } } }
		prestige >= 100
		custom_description = { text = aureliani_senate_req_voters aureliani_senate_member_count >= 3 }
		custom_description = { text = aureliani_senate_req_law_not_active NOT = { has_realm_law = aureliani_senate_religion_tolerance } }
	}
	effect = {
		custom_tooltip = aureliani_senate_req_action_propose_tolerance
		hidden_effect = {
			aureliani_senate_propose_effect = { BILL = 3 }
		}
	}
}
aureliani_senate_lobby = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes }
	is_valid = {
		custom_description = { text = aureliani_senate_req_ruler_ready aureliani_senate_visible_trigger = yes }
		custom_description = { text = aureliani_senate_req_alive is_alive = yes }
		custom_description = { text = aureliani_senate_req_capable_adult is_capable_adult = yes }
		custom_description = { text = aureliani_senate_req_not_imprisoned is_imprisoned = no }
		custom_description = { text = aureliani_senate_req_peaceful is_at_war = no }
		trigger_if = {
			limit = { OR = { has_title = title:h_roman_empire house = { var:aureliani_senate_stage = 2 } } }
			custom_description = { text = aureliani_senate_req_roman_independence aureliani_roman_sovereignty_trigger = yes }
		}
		gold >= 50
		custom_description = { text = aureliani_senate_req_proposal_pending house = { has_variable = aureliani_senate_proposal } }
		custom_description = { text = aureliani_senate_req_lobby_unused house = { NOT = { has_variable = aureliani_senate_lobbied } } }
	}
	effect = {
		show_as_tooltip = { remove_short_term_gold = 50 }
		custom_tooltip = aureliani_senate_req_action_lobby
		hidden_effect = {
			aureliani_senate_lobby_effect = yes
		}
	}
}
aureliani_senate_vote = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes }
	is_valid = {
		custom_description = { text = aureliani_senate_req_ruler_ready aureliani_senate_visible_trigger = yes }
		custom_description = { text = aureliani_senate_req_alive is_alive = yes }
		custom_description = { text = aureliani_senate_req_capable_adult is_capable_adult = yes }
		custom_description = { text = aureliani_senate_req_not_imprisoned is_imprisoned = no }
		custom_description = { text = aureliani_senate_req_peaceful is_at_war = no }
		trigger_if = {
			limit = { OR = { has_title = title:h_roman_empire house = { var:aureliani_senate_stage = 2 } } }
			custom_description = { text = aureliani_senate_req_roman_independence aureliani_roman_sovereignty_trigger = yes }
		}
		custom_description = { text = aureliani_senate_req_proposal_pending house = { has_variable = aureliani_senate_proposal } }
		custom_description = { text = aureliani_senate_req_deliberation_ended house = { NOT = { has_variable = aureliani_senate_deliberating } } }
	}
	effect = {
		custom_tooltip = aureliani_senate_req_action_vote
		hidden_effect = {
			aureliani_senate_vote_effect = yes
		}
	}
}
aureliani_senate_withdraw = {
	scope = character
	is_shown = { aureliani_senate_visible_trigger = yes }
	is_valid = {
		custom_description = { text = aureliani_senate_req_ruler_ready aureliani_senate_visible_trigger = yes }
		custom_description = { text = aureliani_senate_req_alive is_alive = yes }
		custom_description = { text = aureliani_senate_req_capable_adult is_capable_adult = yes }
		custom_description = { text = aureliani_senate_req_not_imprisoned is_imprisoned = no }
		custom_description = { text = aureliani_senate_req_peaceful is_at_war = no }
		trigger_if = {
			limit = { OR = { has_title = title:h_roman_empire house = { var:aureliani_senate_stage = 2 } } }
			custom_description = { text = aureliani_senate_req_roman_independence aureliani_roman_sovereignty_trigger = yes }
		}
		custom_description = { text = aureliani_senate_req_proposal_pending house = { has_variable = aureliani_senate_proposal } }
	}
	effect = {
		custom_tooltip = aureliani_senate_req_action_withdraw
		hidden_effect = {
			aureliani_senate_withdraw_effect = yes
		}
	}
}
