pte_force_bankrupt = {
	category = 6
	power_projection = no
	power_cost_base = 0
	prestige_base = 0.297
	ae_base = 0.0
	warscore_cost = {
		all_provinces = 0.0
		no_provinces = 180.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 = 100
	requires_demand_independence = no
	is_make_subject = no
	requires_is_allowed = yes

	is_visible = {
		has_dlc = "Emperor"
	}
	is_allowed = {
		OR = {
			pte_is_hegemon_of_type = { type = economic_hegemon }
			FROM = { pte_is_hegemon_of_type = { type = economic_hegemon } }
		}
		if = {
			limit = {
				pte_is_hegemon_of_type = { type = economic_hegemon }
			}
			is_in_deficit = no
		}
		is_bankrupt = no
	}
	effect = {
		add_power_projection = {
			type = pte_hegemony_peace_treaty_power_projection
			amount = 25
		}
		set_bankruptcy = FROM
	#	FROM = {
	#		remove_country_modifier = pte_force_bankrupt_modifier
	#		add_country_modifier = {
	#			name = pte_force_bankrupt_modifier
	#			duration = 3650
	#		}
	#	}
	}
	ai_weight = {
		export_to_variable = {
			variable_name = ai_value
			value = 100
		}
		limit = {
			FROM = {
				OR = {
					is_bankrupt = no
					ai = no
				}
			}
		}
	}
}