SBI_west_russian_war_category = {

	#Общие

	SBI_WRS_daily_exhaustion_gain = {

		icon = POL_looming_peasants_strike

		available = {
			NOT = {
				SBI = {
					has_war_with = GER
				}
			}
		}

		activation = {
			original_tag = SBI
			SBI = {
				has_war_with = GER
			}
		}

		priority = 999

		is_good = no

		days_mission_timeout = 10

		days_re_enable = 0

		fire_only_once = no

		cancel_trigger = {
			NOT = {
				SBI = {
					has_war_with = GER
				}
			}
		}

		timeout_effect = {

			if = {
				limit = {
					SBI = {
						check_variable = { WAR_exhaustion_bar_SBI > 99 }
					}
				}
				set_variable = { SBI_MAIN_ARMY_MODIFIER_army_attack_factor = -1 }
				set_variable = { SBI_MAIN_ARMY_MODIFIER_army_defence_factor = -1 }
				SBI = { country_event = SBI.10100 }
			}

			SBI = {
				clamp_variable = {
					var = WAR_exhaustion_bar_SBI
					min = 0
					max = 100
				}
			}

			GER = {
				clamp_variable = {
					var = WAR_exhaustion_bar_GER
					min = 0
					max = 100
				}
			}
			
			SBI = {

				if = {
					limit = {
						controls_state = 219
					}
					custom_effect_tooltip = WAR_exhaustion_plus_1
					add_to_variable = { WAR_exhaustion_bar_SBI = 1 }
				}
				else = {
					custom_effect_tooltip = WAR_exhaustion_plus_2
					add_to_variable = { WAR_exhaustion_bar_SBI = 2 }
					custom_effect_tooltip = WAR_exhaustion_NOT_CONTROL_MOSCOW
				}
			}

			if = {
				limit = {
					SBI = { check_variable = { SBI_MAIN_ARMY_MODIFIER_army_attack_factor > -0.2 } }
					SBI = { NOT = { controls_state = 219 } }
				}
				SBI = { custom_effect_tooltip = SBI_MAIN_ARMY_MODIFIER_army_attack_factor_minus_2 }
				SBI = { add_to_variable = { SBI_MAIN_ARMY_MODIFIER_army_attack_factor = -0.02 } }
			}
			if = {
				limit = {
					SBI = { check_variable = { SBI_MAIN_ARMY_MODIFIER_army_attack_speed_factor > -0.2 } }
					SBI = { NOT = { controls_state = 219 } }
				}
				SBI = { custom_effect_tooltip = SBI_MAIN_ARMY_MODIFIER_army_attack_speed_factor_minus_5 }
				SBI = { add_to_variable = { SBI_MAIN_ARMY_MODIFIER_army_attack_speed_factor = -0.05 } }
			}

			hidden_effect = { activate_mission = SBI_WRS_daily_exhaustion_gain }
		}
	}

	SBI_wrw_decision_our_mobilisation = {

		priority = 300

		icon = eng_propaganda_campaigns
		cost = 0
		available = {
			always = yes
		}

		visible = {
			OR = {
				original_tag = SBI
				original_tag = GER
			}
			OR = {
				has_country_flag = WRS_OUR_open_flag
				has_country_flag = GER_OUR_open_flag
			}
		}

		fire_only_once = no

		ai_will_do = {
			factor = 155
		}

		complete_effect = {
			custom_effect_tooltip = WAR_exhaustion_plus_3
			if = {
				limit = { original_tag = SBI }
				add_to_variable = { WAR_exhaustion_bar_SBI = 3 }
			}
			else_if = {
				limit = { original_tag = GER }
				add_to_variable = { WAR_exhaustion_bar_GER = 3 }
			}
		}

		remove_effect = {
			add_manpower = 125000
		}
		days_remove = 7

		days_re_enable = 5
	}

	SBI_wrw_decision_our_arms = {

		priority = 295

		icon = eng_propaganda_campaigns
		cost = 35
		available = {

		}

		visible = {
			OR = {
				original_tag = SBI
				original_tag = GER
			}
			OR = {
				has_country_flag = WRS_OUR_open_flag
				has_country_flag = GER_OUR_open_flag
			}
		}

		fire_only_once = no

		ai_will_do = {
			factor = 155
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 1500
			}
		}

		remove_effect = {

		}
		days_remove = 12

		days_re_enable = 7
	}

	SBI_wrw_decision_our_minus_exhaustion = {

		priority = 285

		icon = eng_propaganda_campaigns
		cost = 0
		available = {

		}

		visible = {
			OR = {
				original_tag = SBI
				original_tag = GER
			}
			OR = {
				has_country_flag = WRS_OUR_open_flag
				has_country_flag = GER_OUR_open_flag
			}
		}

		fire_only_once = no

		ai_will_do = {
			factor = -155
		}

		complete_effect = {
			add_timed_idea = {
				idea = wrs_hunger_minus_army
				days = 21
			}
		}

		remove_effect = {
			custom_effect_tooltip = WAR_exhaustion_minus_5
			if = {
				limit = { original_tag = SBI }
				add_to_variable = { WAR_exhaustion_bar_SBI = -5 }
			}
			else_if = {
				limit = { original_tag = GER }
				add_to_variable = { WAR_exhaustion_bar_GER = -5 }
			}
		}
		days_remove = 21

		days_re_enable = 2
	}

	SBI_wrw_decision_their_provoke = {

		priority = 270

		icon = eng_propaganda_campaigns
		cost = 35
		available = {

		}

		visible = {
			OR = {
				original_tag = SBI
				original_tag = GER
			}
			OR = {
				has_country_flag = WRS_NOT_OUR_open_flag
				has_country_flag = GER_NOT_OUR_open_flag
			}
		}

		fire_only_once = no

		ai_will_do = {
			factor = 35
		}

		complete_effect = {

		}

		remove_effect = {
			if = {
				limit = { original_tag = SBI }
				GER = {
					add_war_support = -0.05
					add_stability = -0.025
				}
			}
			else_if = {
				limit = { original_tag = GER }
				SBI = {
					add_war_support = -0.05
					add_stability = -0.025
				}
			}
		}
		days_remove = 14

		days_re_enable = 2
	}

	#ЗРРФ

	SBI_wrw_decision_our_kazakh = {

		priority = 260

		icon = eng_propaganda_campaigns
		cost = 50
		available = {

		}

		visible = {
			original_tag = SBI
			has_country_flag = WRS_OUR_open_flag
			has_country_flag = war_kazakhstan_open_flag
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 35
		}

		complete_effect = {
			add_manpower = 12500
		}

		remove_effect = {
			hidden_effect = { load_oob = WRS_KAZAKH_SUPPORT }
		}
		days_remove = 28
	}

	SBI_wrw_decision_our_prodrazv = {

		priority = 250

		icon = eng_propaganda_campaigns
		cost = 30
		available = {

		}

		visible = {
			original_tag = SBI
			has_country_flag = WRS_OUR_open_flag
		}

		fire_only_once = no

		ai_will_do = {
			factor = 35
		}

		complete_effect = {
			add_stability = -0.04
			add_war_support = -0.02
			add_manpower = -1250
		}

		remove_effect = {
			custom_effect_tooltip = WAR_exhaustion_minus_3
			add_to_variable = { WAR_exhaustion_bar_SBI = -3 }
		}
		days_remove = 28

		days_re_enable = 2
	}

	SBI_wrw_decision_our_snabzh = {

		priority = 240

		icon = eng_propaganda_campaigns
		cost = 0
		available = {
			controls_state = 217
		}

		visible = {
			original_tag = SBI
			has_country_flag = WRS_NOT_OUR_open_flag
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 135
		}

		complete_effect = {

		}

		remove_effect = {
			custom_effect_tooltip = WAR_exhaustion_minus_10
			add_to_variable = { WAR_exhaustion_bar_SBI = -10 }
		}
		days_remove = 7
	}

	SBI_wrw_decision_wrs_partizan = {

		priority = 240

		icon = eng_propaganda_campaigns
		cost = 45
		available = {

		}

		visible = {
			original_tag = SBI
			has_country_flag = WRS_NOT_OUR_open_flag
		}

		fire_only_once = no

		ai_will_do = {
			factor = 135
		}

		complete_effect = {
			GER = {
				custom_effect_tooltip = WAR_exhaustion_plus_5
				add_to_variable = { WAR_exhaustion_bar_GER = 5 }
			}
		}

		remove_effect = {
		}

		days_remove = 21

		days_re_enable = 1
	}

	SBI_wrw_decision_wrs_moscow_vost = {

		priority = 230

		icon = eng_propaganda_campaigns
		cost = 30
		available = {
			controls_state = 252
			controls_state = 214
		}

		visible = {
			original_tag = SBI
			has_country_flag = WRS_NOT_OUR_open_flag
			has_country_flag = war_moskowien_open_flag
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 135
		}

		complete_effect = {

		}

		remove_effect = {
			219 = { custom_effect_tooltip = WEST_RUSSIAN_WAR_NEW_DIVISIONS_TT }
			hidden_effect = { load_oob = WRS_PARTIZAN_2 }
		}

		days_remove = 28

		days_re_enable = 1
	}

	SBI_wrw_decision_wrs_minsk_sturm = {

		priority = 220

		icon = eng_propaganda_campaigns
		cost = 45
		available = {
			controls_state = 219
		}

		visible = {
			original_tag = SBI
			has_country_flag = WRS_NOT_OUR_open_flag
			has_country_flag = war_ostland_open_flag
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 135
		}

		complete_effect = {
			add_timed_idea = {
				idea = WRS_sturm_minsk
				days = 60
			}
		}

		remove_effect = {

		}

		days_remove = 60
	}

	SBI_wrw_decision_wrs_ukraine_sturm = {

		priority = 225

		icon = eng_propaganda_campaigns
		cost = 15
		available = {
			controls_state = 219
		}

		visible = {
			original_tag = SBI
			has_country_flag = WRS_NOT_OUR_open_flag
			has_country_flag = war_ukraine_open_flag
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 235
		}

		complete_effect = {
			add_timed_idea = {
				idea = WRS_sturm_ukraine
				days = 90
			}
		}

		remove_effect = {

		}

		days_remove = 90
	}

	SBI_wrw_decision_wrs_parad = {

		priority = 150

		icon = eng_propaganda_campaigns
		cost = 15
		available = {
			controls_state = 219
		}

		visible = {
			original_tag = SBI
			has_country_flag = WRS_NOT_OUR_open_flag
			has_country_flag = war_moskowien_open_flag
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 235
		}

		complete_effect = {
			add_war_support = 0.05
		}

		remove_effect = {
			add_timed_idea = {
				idea = WRS_high_morale
				days = 31
			}
			custom_effect_tooltip = WAR_exhaustion_minus_5
			add_to_variable = { WAR_exhaustion_bar_SBI = -5 }
		}

		days_remove = 1
	}

	SBI_wrw_decision_wrs_repair = {

		priority = 225

		icon = eng_propaganda_campaigns
		cost = 15
		available = {
			custom_trigger_tooltip = {
				tooltip = WRS_all_their_region_is_our_tt
				has_country_flag = WRS_OUR_open_flag
			}
		}

		visible = {
			original_tag = SBI
			OR = {
				has_country_flag = war_ukraine_open_flag
				has_country_flag = war_kaukasien_open_flag
				has_country_flag = war_ostland_open_flag
				has_country_flag = war_moskowien_open_flag
			}
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 235
		}

		complete_effect = {

		}

		remove_effect = {
			add_ideas = WRS_linies_are_repaired
			custom_effect_tooltip = WAR_exhaustion_minus_10
			add_to_variable = { WAR_exhaustion_bar_SBI = -10 }
		}

		days_remove = 90
	}

	SBI_wrw_decision_wrs_plenniki = {

		priority = 215

		icon = eng_propaganda_campaigns
		cost = 35
		available = {
			custom_trigger_tooltip = {
				tooltip = WRS_all_their_region_is_our_tt
				has_country_flag = WRS_OUR_open_flag
			}
		}

		visible = {
			original_tag = SBI
			OR = {
				has_country_flag = war_ukraine_open_flag
				has_country_flag = war_kaukasien_open_flag
				has_country_flag = war_ostland_open_flag
				has_country_flag = war_moskowien_open_flag
			}
		}

		fire_only_once = no

		ai_will_do = {
			factor = 235
		}

		complete_effect = {

		}

		remove_effect = {
			add_manpower = 54000
		}

		days_remove = 45

		days_re_enable = 3
	}

	#Германия

	SBI_wrw_decision_ger_nazionalise = {

		priority = 230

		icon = eng_propaganda_campaigns
		cost = 45
		available = {

		}

		visible = {
			original_tag = GER
			has_country_flag = GER_OUR_open_flag
		}

		fire_only_once = no

		ai_will_do = {
			factor = -35
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 8500
				producer = GER
			}
		}

		remove_effect = {
			custom_effect_tooltip = WAR_exhaustion_plus_3
			add_to_variable = { WAR_exhaustion_bar_SBI = 3 }
		}
		days_remove = 28

		days_re_enable = 2
	}

	SBI_wrw_decision_decrease_moskowien = {

		priority = 950

		icon = eng_propaganda_campaigns
		cost = 0
		available = {

		}

		visible = {
			original_tag = GER
			has_country_flag = GER_OUR_open_flag
		}

		fire_only_once = no

		ai_will_do = {
			factor = 35
		}

		complete_effect = {
			custom_effect_tooltip = WAR_exhaustion_plus_3
			add_to_variable = { WAR_exhaustion_bar_GER = 3 }
		}

		remove_effect = {
			custom_effect_tooltip = GER_partizan_decrease_tt
			add_to_variable = { partizan_current_activity_moskowien = -30 }
			GER_partizan_modif_var = yes
		}
		days_remove = 30

		days_re_enable = 1
	}

	SBI_wrw_decision_decrease_ukraine = {

		priority = 950

		icon = eng_propaganda_campaigns
		cost = 0
		available = {

		}

		visible = {
			original_tag = GER
			has_country_flag = GER_OUR_open_flag
		}

		fire_only_once = no

		ai_will_do = {
			factor = 35
		}

		complete_effect = {
			custom_effect_tooltip = WAR_exhaustion_plus_3
			add_to_variable = { WAR_exhaustion_bar_GER = 3 }
		}

		remove_effect = {
			custom_effect_tooltip = GER_partizan_decrease_tt
			add_to_variable = { partizan_current_activity_ukraine = -20 }
			GER_partizan_modif_var = yes
		}
		days_remove = 30

		days_re_enable = 1
	}

	SBI_wrw_decision_decrease_ostland = {

		priority = 950

		icon = eng_propaganda_campaigns
		cost = 15
		available = {

		}

		visible = {
			original_tag = GER
			has_country_flag = GER_OUR_open_flag
		}

		fire_only_once = no

		ai_will_do = {
			factor = 35
		}

		complete_effect = {
			custom_effect_tooltip = WAR_exhaustion_plus_3
			add_to_variable = { WAR_exhaustion_bar_GER = 3 }
		}

		remove_effect = {
			custom_effect_tooltip = GER_partizan_decrease_tt
			add_to_variable = { partizan_current_activity_ostland = -20 }
			GER_partizan_modif_var = yes
		}
		days_remove = 30

		days_re_enable = 1
	}

	SBI_wrw_decision_decrease_kaukasien = {

		priority = 950

		icon = eng_propaganda_campaigns
		cost = 15
		available = {

		}

		visible = {
			original_tag = GER
			has_country_flag = GER_OUR_open_flag
		}

		fire_only_once = no

		ai_will_do = {
			factor = 35
		}

		complete_effect = {
			custom_effect_tooltip = WAR_exhaustion_plus_3
			add_to_variable = { WAR_exhaustion_bar_GER = 3 }
		}

		remove_effect = {
			custom_effect_tooltip = GER_partizan_decrease_tt
			add_to_variable = { partizan_current_activity_kaukasien = -20 }
			GER_partizan_modif_var = yes
		}
		days_remove = 30

		days_re_enable = 1
	}

	SBI_wrw_decision_ger_deportation = {

		priority = 230

		icon = eng_propaganda_campaigns
		cost = 0
		available = {

		}

		visible = {
			original_tag = GER
			has_country_flag = GER_OUR_open_flag
		}

		fire_only_once = no

		ai_will_do = {
			factor = 35
		}

		complete_effect = {
			add_political_power = 125
		}

		remove_effect = {
			custom_effect_tooltip = WAR_exhaustion_plus_3
			add_to_variable = { WAR_exhaustion_bar_GER = 3 }
		}
		days_remove = 28

		days_re_enable = 2
	}

}