namespace = MRPC

character_event = {
	id = MRPC.001

	is_triggered_only = yes
	hide_window = yes

	is_patrician = yes

	trigger = {
		is_merchant_republic = no

		FROM = {
			holding_type = family_palace
		}

		can_hold_title = title_patrician_councillor
		liege = { can_grant_title = title_patrician_councillor }
	}

	immediate = {
		give_minor_title = title_patrician_councillor
	}
}

character_event = {
	id = MRPC.002

	is_triggered_only = yes
	hide_window = yes

	is_patrician = yes

	trigger = {
		is_merchant_republic = yes
	}

	immediate = {
		add_character_modifier = {
			name = modifier_doge_newly_elected
			duration = 365
		}

		any_vassal = {
			limit = {
				is_patrician = yes
				NOT = { has_minor_title = title_patrician_councillor }
				can_hold_title = title_patrician_councillor
			}
			give_minor_title = title_patrician_councillor
		}
	}
}