SBI_kanaris_revolt_category = {

	SBI_DEC_anti_KAN_publicloyalty = {

		icon = generic_protection

		available = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		activation = { always = no }

		days_mission_timeout = 56

		fire_only_once = yes

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		priority = 1000

		is_good = no

		timeout_effect = {

			SBI_KANARIS_INFLUENCE_minus_3 = yes

			SBI_ANDREEV_MILITARY_minus_5 = yes

			hidden_effect = {
				random_list = {
					20 = {
						activate_mission = SBI_DEC_anti_KAN_publicloyalty
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_halt_contract
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_polit_control
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_stop_comchannel
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_repress
					}
				}
			}
		}

	}

	SBI_DEC_anti_KAN_halt_contract = {

		icon = generic_break_treaty

		available = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		activation = { always = no }

		days_mission_timeout = 35

		fire_only_once = yes

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		priority = 1000

		is_good = no

		timeout_effect = {

			SBI_KANARIS_INFLUENCE_minus_4 = yes

			hidden_effect = {
				random_list = {
					20 = {
						activate_mission = SBI_DEC_anti_KAN_publicloyalty
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_halt_contract
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_polit_control
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_stop_comchannel
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_repress
					}
				}
			}
		}

	}

	SBI_DEC_anti_KAN_polit_control = {

		icon = generic_army_support

		available = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		activation = { always = no }

		days_mission_timeout = 20

		fire_only_once = yes

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		priority = 1000

		is_good = no

		timeout_effect = {

			SBI_KANARIS_INFLUENCE_minus_2 = yes
			add_political_power = 50


			hidden_effect = {
				random_list = {
					20 = {
						activate_mission = SBI_DEC_anti_KAN_publicloyalty
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_halt_contract
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_polit_control
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_stop_comchannel
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_repress
					}
				}
			}
		}

	}

	SBI_DEC_anti_KAN_stop_comchannel = {

		icon = generic_arrest

		available = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		activation = { always = no }

		days_mission_timeout = 60

		fire_only_once = yes

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		priority = 1000

		is_good = no

		timeout_effect = {

			SBI_KANARIS_INFLUENCE_minus_4 = yes

			add_war_support = -0.005

			hidden_effect = {
				random_list = {
					20 = {
						activate_mission = SBI_DEC_anti_KAN_publicloyalty
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_halt_contract
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_polit_control
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_stop_comchannel
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_repress
					}
				}
			}
		}

	}

	SBI_DEC_anti_KAN_repress = {

		icon = generic_arrest

		available = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		activation = { always = no }

		days_mission_timeout = 35

		fire_only_once = yes

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = SBI_end_of_revolt_tt
				has_country_flag = SBI_end_of_revolt
			}
		}

		priority = 1000

		is_good = no

		timeout_effect = {
			add_stability = 0.02

			SBI_KANARIS_INFLUENCE_minus_2 = yes

			SBI_ANDREEV_MILITARY_plus_5 = yes

			hidden_effect = {
				random_list = {
					20 = {
						activate_mission = SBI_DEC_anti_KAN_publicloyalty
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_halt_contract
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_polit_control
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_stop_comchannel
					}
					20 = {
						activate_mission = SBI_DEC_anti_KAN_repress
					}
				}
			}
		}

	}



	SBI_DEC_KAN_payments = {

		priority = 100

		icon = generic_welfare
		cost = 15

		allowed = {
			original_tag = SBI
		}

		available = {

		}

		ai_will_do = {
			factor = 0
		}

		remove_effect = {
			SBI_KANARIS_INFLUENCE_plus_3 = yes
		}

		days_remove = 20

		days_re_enable = 5
	}

	SBI_DEC_KAN_headquarters = {

		priority = 99

		icon = generic_military
		cost = 30

		allowed = {
			original_tag = SBI
		}

		available = {
			has_completed_focus = SBI_andreev_local_garrisons
		}

		ai_will_do = {
			factor = 0
		}

		remove_effect = {
			SBI_KANARIS_INFLUENCE_plus_5 = yes
			add_war_support = 0.01
		}

		days_remove = 45

		days_re_enable = 1
	}

	SBI_DEC_KAN_smi = {

		priority = 98

		icon = generic_speech
		cost = 25

		allowed = {
			original_tag = SBI
		}

		available = {

		}

		ai_will_do = {
			factor = 0
		}

		complete_effect = {
			add_stability = 0.03
			SBI_ANDREEV_PEOPLE_minus_5 = yes
		}

		remove_effect = {
			SBI_KANARIS_INFLUENCE_plus_4 = yes
		}

		days_remove = 35

		days_re_enable = 1
	}

	SBI_DEC_KAN_shadow_intel = {

		priority = 96

		icon = SWI_elect_confederation_president
		cost = 45

		allowed = {
			original_tag = SBI
		}

		available = {

		}

		ai_will_do = {
			factor = 0
		}

		complete_effect = {

		}

		remove_effect = {
			SBI_KANARIS_INFLUENCE_plus_5 = yes
		}

		days_remove = 50

		days_re_enable = 1
	}

	SBI_DEC_KAN_concessions = {

		priority = 96

		icon = SWI_no_elected_president
		cost = 5

		allowed = {
			original_tag = SBI
		}

		available = {

		}

		ai_will_do = {
			factor = 0
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 249
			}
		}
		custom_cost_text = decision_cost_250_inf_eq

		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -250
			}
		}

		remove_effect = {
			SBI_KANARIS_INFLUENCE_plus_5 = yes
		}

		days_remove = 15

		days_re_enable = 1
	}

	SBI_DEC_KAN_illustr_help = {

		priority = 95

		icon = SWI_swiss_democratic_tradition_campaign
		cost = 45

		allowed = {
			original_tag = SBI
		}

		available = {
			has_completed_focus = SBI_fe_engineer_taskforce
		}

		ai_will_do = {
			factor = 0
		}

		complete_effect = {

		}

		remove_effect = {
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			SBI_KANARIS_INFLUENCE_plus_4 = yes
			SBI_ANDREEV_PEOPLE_minus_5 = yes
		}

		days_remove = 75

		days_re_enable = 1
	}

	SBI_DEC_KAN_ambitions = {

		priority = 94

		icon = SWI_support_humanitarian_efforts
		cost = 25

		allowed = {
			original_tag = SBI
		}

		available = {

		}

		ai_will_do = {
			factor = 0
		}

		complete_effect = {

		}

		remove_effect = {
			SBI_KANARIS_INFLUENCE_plus_2 = yes
			SBI_ANDREEV_MILITARY_plus_5 = yes
		}

		days_remove = 40

		days_re_enable = 1
	}

	SBI_DEC_KAN_gnawingsquirrel = {

		priority = 102

		icon = generic_ignite_civil_war
		cost = 0

		allowed = {
			original_tag = SBI
		}

		ai_will_do = {
			factor = 0
		}

		remove_effect = {
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 570
					num_provinces = 3
					on_win = SBI.5120
					on_lose = SBI.5121
					on_cancel = SBI.5122
					modifier = 0.1
				}
				defender = {
					state = 571
					num_provinces = 3
					on_win = SBI.5121
					on_lose = SBI.5120
					on_cancel = SBI.5122
				}
			}
		}

		days_remove = 14

		fire_only_once = yes

	}

}