pte_guarantee_hree_diet_host = {
	category = 6
	power_projection = no
	power_cost_base = 0.5
	prestige_base = 0.334
	ae_base = 0
	warscore_cost = {
		all_provinces = 0.0
		no_provinces = 15.0
		owner_keeps = 0.0
		conquered = 0.0
		returned_core = 0.0
		released_nation = 0.0
		cancelled_subject = 0.0
		concede_colonial_region = 0.0
	}
	warscore_cap = -1
	requires_demand_independence = no
	is_make_subject = no
	requires_is_allowed = no

	is_visible = {
		is_expanded_mod_active = { mod = holy_roman_empire }
		is_emperor = no
		is_part_of_hre = yes
		FROM = {
			is_emperor = yes
		}
		NOT = { has_country_flag = guaranteed_next_diet_host }
		NOT = {
			any_country = {
				is_part_of_hre = yes
				has_country_flag = guaranteed_next_diet_host
			}
		}
	}
	is_allowed = {
		capital_scope = {
			controlled_by = ROOT
		}
	}
	effect = {
		set_country_flag = guaranteed_next_diet_host
		every_country = {
			limit = {
				is_part_of_hre = yes
				is_emperor = no
				NOT = { tag = ROOT }
				NOT = { is_subject_of = ROOT }
			}
			add_opinion = {
				who = ROOT
				modifier = pte_guarantee_hree_diet_host_opinion
			}
		}
	}
	ai_weight = {
		export_to_variable = {
			variable_name = ai_value
			value = 1
		}
		limit = {
			has_reform = free_city
		}
	}
}