SBI_Siberianwar_category = {

	SBI_SIBWAR_DEC_emergency_rations = {

		priority = 50

		icon = generic_consumer_goods
		cost = 25
		allowed = {
			original_tag = SBI
		}

		visible = {
			has_war_with = WRA
		}

		fire_only_once = no

		ai_will_do = {
			factor = 0
		}

		remove_effect = {
			SBI_siberian_war_protest_10_minus = yes
		}

		days_remove = 10
		days_re_enable = 1
	}

	SBI_SIBWAR_DEC_calm_people = {

		priority = 45

		icon = generic_political_discourse
		cost = 0
		allowed = {
			original_tag = SBI
		}

		visible = {
			has_war_with = WRA
		}

		fire_only_once = no

		ai_will_do = {
			factor = 0
		}

		remove_effect = {
			SBI_siberian_war_protest_10_minus = yes
			SBI_siberian_war_military_protest_5_plus = yes
			SBI_siberian_war_escalate_10_minus = yes
		}

		days_remove = 15
		days_re_enable = 2
	}

	SBI_SIBWAR_DEC_public_bonds_attack = {

		priority = 40

		icon = generic_assassination

		custom_cost_trigger = { always = yes }
        custom_cost_text = SBI_decision_cost_CP_15

		available = {
			custom_trigger_tooltip = {
				tooltip = SBI_decision_cost_CP_15
				command_power > 15
			}
		}


		complete_effect = {
            add_command_power = -15
		}

		allowed = {
			original_tag = SBI
		}

		visible = {
			has_war_with = WRA
		}

		fire_only_once = no

		ai_will_do = {
			factor = 0
		}

		remove_effect = {
			SBI_siberian_war_protest_5_plus = yes
			SBI_siberian_war_military_protest_10_minus = yes
			SBI_siberian_war_escalate_10_plus = yes
		}

		days_remove = 15
		days_re_enable = 2
	}

	SBI_SIBWAR_DEC_bonus_pay_soldiers = {

		priority = 30

		icon = generic_welfare


		complete_effect = {
            add_timed_idea = {
				idea = SBI_sibwar_obligations
				days = 45
			}
		}

		allowed = {
			original_tag = SBI
		}

		visible = {
			has_war_with = WRA
		}

		fire_only_once = no

		ai_will_do = {
			factor = 0
		}

		remove_effect = {
			SBI_siberian_war_military_protest_10_minus = yes
			if = {
				limit = { NOT = { has_country_flag = SBI_parliament_dissolved } }
				#SBI_pasternak_PARL_UNITY_minus_5 = yes
			}

		}

		days_remove = 28
		days_re_enable = 1
	}

	SBI_SIBWAR_DEC_deploy_attack = {

		priority = 255

		icon = generic_prepare_civil_war

		available = {
			custom_trigger_tooltip = {
				tooltip = SBI_ESCALATE_Progress_45_more_tt
				check_variable = { SBI_ESCALATE_Progress > 45 }
			}
		}

		complete_effect = {
            SBI_siberian_war_escalate_5_plus = yes
			SBI_siberian_war_military_protest_10_plus = yes
		}

		allowed = {
			original_tag = SBI
		}

		visible = {
			has_war_with = WRA
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 0
		}

		remove_effect = {
			SBI_siberian_war_escalate_5_plus = yes
			add_timed_idea = {
				idea = SBI_sibwar_deploy_attacks
				days = 90
			}
		}

		days_remove = 10
	}

	SBI_SIBWAR_DEC_deploy_massive_attack = {

		priority = 245

		icon = generic_ignite_civil_war

		available = {
			custom_trigger_tooltip = {
				tooltip = SBI_ESCALATE_Progress_70_more_tt
				check_variable = { SBI_ESCALATE_Progress > 85 }
			}
		}

		complete_effect = {
			SBI_siberian_war_military_protest_10_plus = yes
			SBI_siberian_war_protest_5_plus = yes
		}

		allowed = {
			original_tag = SBI
		}

		visible = {
			has_war_with = WRA
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 0
		}

		remove_effect = {

			add_timed_idea = {
				idea = SBI_sibwar_deploy_massive_attacks
				days = 180
			}
			SBI_siberian_war_escalate_10_plus = yes
		}

		days_remove = 15
	}

	SBI_SIBWAR_DEC_grab_army = {

		priority = 20

		icon = eng_propaganda_campaigns

		complete_effect = {
			add_timed_idea = {
				idea = wrs_hunger_minus_army
				days = 30
			}
			SBI_siberian_war_military_protest_5_plus = yes
			SBI_siberian_war_protest_10_minus = yes
		}

		allowed = {
			original_tag = SBI
		}

		visible = {
			has_war_with = WRA
		}

		fire_only_once = no

		ai_will_do = {
			factor = 0
		}

		remove_effect = {
			add_political_power = 15
		}

		days_remove = 5
		days_re_enable = 1
	}

	SBI_SIBWAR_MISSION_WEEKLY = {

		icon = POL_looming_peasants_strike

		available = {
			WRA = {
				exists = no
			}
		}

		activation = {
			SBI = {
				has_war_with = WRA
			}
		}

		cancel_trigger = {
			OR = {
				NOT = {
					SBI = {
						has_war_with = WRA
					}
				}
				WRA = {
					has_capitulated = yes
				}
			}
		}

		priority = 450

		is_good = no

		days_mission_timeout = 7 #14

		days_re_enable = 0

		fire_only_once = no

		cancel_trigger = {
			always = no
		}

		timeout_effect = {
		
			if = {
				limit = { 
					OR = {
						has_global_flag = WRW_SBI_WIN_FLAG
						has_global_flag = WRW_SBI_LOST_FLAG
					}
					is_ai = yes
				}
				SBI_siberian_war_protest_10_minus = yes
			}

			SBI_siberian_war_protest_2_plus = yes
			SBI_siberian_war_military_protest_2_plus = yes
			SBI_siberian_war_escalate_3_plus = yes

			if = {
				limit = {
					WRA = { is_ai = yes }
					check_variable = { SBI_PROTEST_Progress > 90 }
				}
				hidden_effect = {
					WRA = { country_event = wra.1001 }
				}
			}

			activate_mission = SBI_SIBWAR_MISSION_WEEKLY
		}

	}

}