on_actions = {
	on_state_control_changed = {
		effect = {
	
			if = {
				limit = {
					tag = WRS
					FROM = {
						OR = {
							original_tag = GER
							is_subject_of = GER
						}
					}
					FROM.FROM = {
						OR = {
							state = 219
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					GER = {
						country_event = { id = wrs.3004 hours = 8 }
					}
					WRS = {
						country_event = { id = wrs.3003 hours = 5 }
					}
				}
				
			}
			else_if = {
				limit = {
					OR = {
						original_tag = WRS
						is_subject_of = WRS
					}
					FROM = {
						OR = {
							original_tag = GER
							is_subject_of = GER
						}
					}
					FROM.FROM = {
						OR = {
							state = 214
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					WRS = {
						country_event = { id = wrs.3001 hours = 6 }
					}
					GER = {
						add_to_variable = { WAR_exhaustion_bar_GER = 10 }
					}
				}
				
			}
			else_if = {
				limit = {
					tag = WRS
					FROM = {
						OR = {
							original_tag = GER
							is_subject_of = GER
						}
					}
					FROM.FROM = {
						OR = {
							state = 202
							state = 808
							state = 231
							state = 195
							state = 217
							state = 206
							
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					WRS = {
						add_to_variable = { WAR_exhaustion_bar_WRS = -10 }
					}
					GER = {
						add_to_variable = { WAR_exhaustion_bar_GER = 10 }
					}
				}
			}
			
			else_if = {
				limit = {
					OR = {
						original_tag = WRS
						is_subject_of = WRS
					}
					FROM = {
						OR = {
							original_tag = GER
							is_subject_of = GER
						}
					}
					FROM.FROM = {
						OR = {
							state = 879
							state = 351
							state = 252
							state = 258
							state = 242				
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					WRS = {
						add_to_variable = { WAR_exhaustion_bar_WRS = -5 }
					}
					GER = {
						add_to_variable = { WAR_exhaustion_bar_GER = 5 }
					}
				}
			}
			else_if = {
				limit = {
					OR = {
						original_tag = GER
						is_subject_of = GER
					}
					FROM = {
						OR = {
							original_tag = WRS
							is_subject_of = WRS
						}
					}
					FROM.FROM = {
						OR = {
							state = 202
							state = 808
							state = 231
							state = 195
							state = 217
							state = 206
							
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					WRS = {
						add_to_variable = { WAR_exhaustion_bar_WRS = 10 }
					}
					GER = {
						add_to_variable = { WAR_exhaustion_bar_GER = -10 }
					}
				}
			}
			
			else_if = {
				limit = {
					OR = {
						original_tag = GER
						is_subject_of = GER
					}
					FROM = {
						OR = {
							original_tag = WRS
							is_subject_of = WRS
						}
					}
					FROM.FROM = {
						OR = {
							state = 879
							state = 351
							state = 252
							state = 258
							state = 242
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					WRS = {
						add_to_variable = { WAR_exhaustion_bar_WRS = 5 }
					}
					GER = {
						add_to_variable = { WAR_exhaustion_bar_GER = -5 }
					}
				}
			}
			else_if = {
				limit = {
					OR = {
						original_tag = GER
						is_subject_of = GER
					}
					FROM = {
						OR = {
							original_tag = WRS
							is_subject_of = WRS
						}
					}
					FROM.FROM = {
						OR = {
							state = 402
							state = 407
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					WRS = {
						add_to_variable = { WAR_exhaustion_bar_WRS = 15 }
					}
					GER = {
						add_to_variable = { WAR_exhaustion_bar_GER = -5 }
					}
				}
			}
			else_if = {
				limit = {
					OR = {
						original_tag = GER
						is_subject_of = GER
					}
					FROM = {
						OR = {
							original_tag = WRS
							is_subject_of = WRS
						}
					}
					FROM.FROM = {
						OR = {
							state = 652
							state = 249
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					WRS = {
						add_to_variable = { WAR_exhaustion_bar_WRS = 30 }
					}
					GER = {
						add_to_variable = { WAR_exhaustion_bar_GER = -10 }
					}
				}
			}
			else_if = {
				limit = {
					OR = {
						original_tag = GER
						is_subject_of = GER
					}
					FROM = {
						OR = {
							original_tag = WRS
							is_subject_of = WRS
						}
					}
					FROM.FROM = {
						OR = {
							state = 397
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					WRS = {
						add_to_variable = { WAR_exhaustion_bar_WRS = 40 }
					}
					GER = {
						add_to_variable = { WAR_exhaustion_bar_GER = -15 }
					}
				}
			}
			else_if = {
				limit = {
					OR = {
						original_tag = WRS
						is_subject_of = WRS
					}
					FROM = {
						OR = {
							original_tag = GER
						}
					}
					FROM.FROM = {
						OR = {
							state = 64
						}
					}
				}
				
				if = {
					limit = { WRS = { has_war_with = GER } }
					WRS = {
						country_event = wrs.3010
						add_to_variable = { WAR_exhaustion_bar_WRS = -40 }
					}
					GER = {
						add_to_variable = { WAR_exhaustion_bar_GER = 50 }
					}
					play_victory_parade_effect = yes
				}
			}
		}
	}
}