defined_text = {
	name = WE_at_peace

	text = {
		trigger = {
			has_war = no
		}
		localization_key = WE_at_peace
	}
}
defined_text = {
	name = WE_at_peace_change

	text = {
		trigger = {
			has_war = no
		}
		localization_key = WE_at_peace_change
	}
}
defined_text = {
	name = WE_has_war

	text = {
		trigger = {
			has_WE_active = yes
		}
		localization_key = WE_has_war_3
	}
	text = {
		trigger = {
			has_war = yes
		}
		localization_key = WE_has_war
	}
}

defined_text = {
	name = WE_war_score

	text = {
		trigger = {
			surrender_progress > 0.80
		}
		localization_key = WE_war_score_80
	}
	text = {
		trigger = {
			surrender_progress > 0.50
		}
		localization_key = WE_war_score_50
	}
	text = {
		trigger = {
			surrender_progress > 0.30
		}
		localization_key = WE_war_score_30
	}
	text = {
		trigger = {
			surrender_progress > 0.15
		}
		localization_key = WE_war_score_15
	}
	text = {
		trigger = {
			surrender_progress > 0.05
		}
		localization_key = WE_war_score_5
	}
}

defined_text = { 
	name = WE_psychological_saturation
	text = {
		trigger = { check_variable = { war_exhaustion_value > 0.85 } }
		localization_key = WE_psychological_saturation_4
	}
	text = {
		trigger = { check_variable = { war_exhaustion_value > 0.70 } }
		localization_key = WE_psychological_saturation_3
	}
	text = {
		trigger = { check_variable = { war_exhaustion_value > 0.55 } }
		localization_key = WE_psychological_saturation_2
	}
	text = {
		trigger = { check_variable = { war_exhaustion_value > 0.35 } }
		localization_key = WE_psychological_saturation_1
	}
}

defined_text = {
	name = WE_economic_mobilisation

	text = {
		trigger = {
			check_variable = { modifier@consumer_goods_expected_value < 0.16 }
		}
		localization_key = WE_tot_economic_mobilisation
	}
	text = {
		trigger = {
			check_variable = { modifier@consumer_goods_expected_value < 0.21 }
		}
		localization_key = WE_war_economy
	}
	text = {
		trigger = {
			check_variable = { modifier@consumer_goods_expected_value < 0.26 }
		}
		localization_key = WE_partial_economic_mobilisation
	}
	text = {
		trigger = {
			check_variable = { modifier@consumer_goods_expected_value < 0.31 }
		}
		localization_key = WE_low_economic_mobilisation
	}
	text = {
		trigger = {
			check_variable = { modifier@consumer_goods_expected_value < 0.36 }
		}
		localization_key = WE_civilian_economy
	}
	# Above 0.35 = civilian economy or better = no economic exhaustion, show nothing
}
defined_text = {
	name = WE_manpower_mobilisation

	text = {
		trigger = {
			check_variable = { modifier@conscription > 0.249 }
		}
		localization_key = WE_scraping_the_barrel
	}
	text = {
		trigger = {
			check_variable = { modifier@conscription > 0.199 }
		}
		localization_key = WE_all_adults_serve
	}
	text = {
		trigger = {
			check_variable = { modifier@conscription > 0.0999 }
		}
		localization_key = WE_service_by_requirement
	}
	text = {
		trigger = {
			check_variable = { modifier@conscription > 0.0499 }
		}
		localization_key = WE_extensive_conscription
	}
	text = {
		trigger = {
			check_variable = { modifier@conscription > 0.0249 }
		}
		localization_key = WE_limited_conscription
	}
	text = {
		trigger = {
			check_variable = { modifier@conscription < 0.015 }
		}
		localization_key = WE_disarmed_or_volunteer_nation
	}
	# At volunteer only (0.015) — baseline, show nothing
}

defined_text = {
	name = WE_war_support_display

	text = {
		trigger = { check_variable = { has_war_support > 0.80 } }
		localization_key = WE_war_support_high
	}
	text = {
		trigger = { check_variable = { has_war_support > 0.60 } }
		localization_key = WE_war_support_mid_high
	}
	text = {
		trigger = { check_variable = { has_war_support > 0.40 } }
		localization_key = WE_war_support_mid
	}
	text = {
		trigger = { check_variable = { has_war_support > 0.20 } }
		localization_key = WE_war_support_mid_low
	}
	text = {
		trigger = { check_variable = { has_war_support > 0 } }
		localization_key = WE_war_support_low
	}
}