pte_demilitarize_border = {
	category = 6
	power_projection = no
	power_cost_base = 0.6
	prestige_base = 0.335
	ae_base = 0
	warscore_cost = {
		all_provinces = 0.0
		no_provinces = 30.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 = {
		any_owned_province = {
			any_neighbor_province = {
				owned_by = FROM
				OR = {
					has_building = fort_et
					has_building = fort_15th
					has_building = fort_16th
					has_building = fort_17th
					has_building = fort_18th
					area_for_scope_province = {
						owned_by = FROM
						OR = {
							has_building = fort_et
							has_building = fort_15th
							has_building = fort_16th
							has_building = fort_17th
							has_building = fort_18th
						}
					}
				}
			}
		}
	}
	is_allowed = {
	}
	effect = {
		FROM = {
			country_event = { id = pte_events.1 days = 1 }
		}
	}
	ai_weight = {
		export_to_variable = {
			variable_name = ai_value
			value = 1
		}
		limit = {
			NOT = {
				any_owned_province = {
					any_neighbor_province = {
						owned_by = FROM
						OR = {
							is_claim = ROOT
							is_core = ROOT
						}
						OR = {
							has_building = fort_et
							has_building = fort_15th
							has_building = fort_16th
							has_building = fort_17th
							has_building = fort_18th
							area_for_scope_province = {
								owned_by = FROM
								OR = {
									has_building = fort_et
									has_building = fort_15th
									has_building = fort_16th
									has_building = fort_17th
									has_building = fort_18th
								}
							}
						}
					}
				}
			}
			FROM = {
				NOT = {
					num_of_owned_provinces_with = {
						value = 3
						OR = {
							is_claim = ROOT
							is_core = ROOT
						}
					}
				}
			}
			OR = {
				border_distance = {
					who = FROM
					distance = 300
				}
				FROM = {
					num_of_cities = 5
				}
			}
		}
	}
}