#WHAT THE FUCK IS A MILE

#OMO_wrath_of_god_category = {
#}
OMO_territories_category = {
	#OMO_test = { 
	#	icon = GFX_decision_debug
	#	#fire_only_once = yes
	#	complete_effect = {
	#		log = "TEST"
	#		OMO_set_state_frames = yes
	#		#GGN_find_major_factions = yes
	#		#GGN_count_states = yes
	#	}
	#}
	OMO_restore_churches = { 
		icon = GFX_decision_OMO_church
		#fire_only_once = yes
		days_remove = 20
		cost = 25
		complete_effect = {
			log = "OMO_build_churches"
			add_to_variable = {
				var = OMO_holiness^OMO_selected_area_holy_int
				value = 0.25
			}
			add_manpower = -200
			OMO_set_state_frames = yes
			custom_effect_tooltip = {
				localization_key = OMO_add_holy_tt
				AMOUNT = 25
			}
		}
	}
	OMO_Facilitate_Graciosity = { 
		icon = GFX_decision_generic_consumer_goods
		#fire_only_once = yes
		days_remove = 20
		cost = 20
		complete_effect = {
			log = "OMO_Facilitate_Graciosity"
			add_to_variable = {
				var = OMO_holiness^OMO_selected_area_holy_int
				value = 0.25
			}
			add_war_support = -0.10
			add_stability = 0.10
			OMO_set_state_frames = yes
			custom_effect_tooltip = {
				localization_key = OMO_add_holy_tt
				AMOUNT = 25
			}
		}
	}
	OMO_flame_up_anti_german_sentiment = { 
		icon = GFX_decision_GER_nsdap_logo_no
		#fire_only_once = yes
		days_remove = 20
		cost = 35
		custom_cost_trigger = { command_power > 24.99 }
		custom_cost_text = decision_cost_25_cp
		complete_effect = {
			
			log = "OMO_flame_up_anti_german_sentiment"
			add_to_variable = {
				var = OMO_fervour^OMO_selected_area_holy_int
				value = 0.25
			}
			add_war_support = 0.10
			add_stability = -0.10
			OMO_set_state_frames = yes
			custom_effect_tooltip = {
				localization_key = OMO_add_fervour_tt
				AMOUNT = 25
			}
		}
	}
	OMO_bring_pacifist_message = { 
		icon = GFX_decision_USA_peace_corps
		#fire_only_once = yes
		days_remove = 20
		cost = 30
		complete_effect = {
			log = "OMO_bring_pacifist_message"
			add_to_variable = {
				var = OMO_fervour^OMO_selected_area_holy_int
				value = -0.25
			}
			add_stability = 0.15
			add_war_support = -0.15
			OMO_set_state_frames = yes
			custom_effect_tooltip = {
				localization_key = OMO_remove_fervour_tt
				AMOUNT = 25
			}
		}
	}
	
}

RUS_DecisionCategory_Smuta = {	
	OMO_stir_the_peasants_of_irkutsk = {

		icon = GFX_decision_generic_revolt

		allowed = {
			original_tag = OMO
		}

		available = {
			hidden_trigger = {
				NOT = { has_country_flag = OMO_start_uprising }
			}
			566 = {
				controller = {
					has_war_with = OMO
				}
			}
		}

		cancel_trigger = {
			566 = {
				is_fully_controlled_by = OMO
			}
		}
		visible = {
			has_completed_focus = OMO_spark_the_light_in_the_darkness
		}


		ai_will_do = {
			factor = 5
		}

		days_remove = 20

		fire_only_once = yes

		custom_cost_trigger = { command_power > 24.99 }
		custom_cost_text = decision_cost_25_cp

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision OMO_stir_the_peasants_of_irkutsk"
			hidden_effect = { add_command_power = -25 }
			set_country_flag = OMO_start_uprising
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove OMO_stir_the_peasants_of_irkutsk"
			custom_effect_tooltip = OMO_stir_the_peasants_of_irkutsk_tt
			hidden_effect = {
				load_oob = OMO_peasants_irkutsk
			}
			clr_country_flag = OMO_start_uprising
		}
		cancel_effect = {
			clr_country_flag = OMO_start_uprising
		}
	}
	OMO_stir_the_peasants_of_buryatia = {

		icon = GFX_decision_generic_revolt

		allowed = {
			original_tag = OMO
		}

		available = {
			hidden_trigger = {
				NOT = { has_country_flag = OMO_start_uprising }
			}
			564 = {
				controller = {
					has_war_with = OMO
				}
			}
		}
		cancel_trigger = {
			564 = {
				is_fully_controlled_by = OMO
			}
		}
		visible = {
			has_completed_focus = OMO_spark_the_light_in_the_darkness
		}


		ai_will_do = {
			factor = 5
		}

		days_remove = 20

		fire_only_once = yes

		custom_cost_trigger = { command_power > 24.99 }
		custom_cost_text = decision_cost_25_cp

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision OMO_stir_the_peasants_of_buryatia"
			hidden_effect = { add_command_power = -25 }
			set_country_flag = OMO_start_uprising
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove OMO_stir_the_peasants_of_buryatia"
			custom_effect_tooltip = OMO_stir_the_peasants_of_buryatia_tt
			hidden_effect = {
				load_oob = OMO_peasants_buryatia
			}
			clr_country_flag = OMO_start_uprising
		}
		cancel_effect = {
			clr_country_flag = OMO_start_uprising
		}
	}
	OMO_stir_the_peasants_of_amur = {

		icon = GFX_decision_generic_revolt

		allowed = {
			original_tag = OMO
		}

		available = {
			hidden_trigger = {
				NOT = { has_country_flag = OMO_start_uprising }
			}
			561 = {
				controller = {
					has_war_with = OMO
				}
			}
		}
		cancel_trigger = {
			561 = {
				is_fully_controlled_by = OMO
			}
		}
		visible = {
			has_completed_focus = OMO_spark_the_light_in_the_darkness
		}


		ai_will_do = {
			factor = 5
		}
		visible = {
			has_completed_focus = OMO_spark_the_light_in_the_darkness
		}


		days_remove = 20

		fire_only_once = yes

		custom_cost_trigger = { command_power > 24.99 }
		custom_cost_text = decision_cost_25_cp

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision OMO_stir_the_peasants_of_amur"
			hidden_effect = { add_command_power = -25 }
			set_country_flag = OMO_start_uprising
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove OMO_stir_the_peasants_of_amur"
			custom_effect_tooltip = OMO_stir_the_peasants_of_amur_tt
			hidden_effect = {
				load_oob = OMO_peasants_amur
			}
			clr_country_flag = OMO_start_uprising
		}
		cancel_effect = {
			clr_country_flag = OMO_start_uprising
		}
	}
	OMO_stir_the_peasants_of_chita = {

		icon = GFX_decision_generic_revolt

		allowed = {
			original_tag = OMO
		}

		available = {
			hidden_trigger = {
				NOT = { has_country_flag = OMO_start_uprising }
			}
			563 = {
				controller = {
					has_war_with = OMO
				}
			}
		}
		cancel_trigger = {
			563 = {
				is_fully_controlled_by = OMO
			}
		}
		visible = {
			has_completed_focus = OMO_spark_the_light_in_the_darkness
		}


		ai_will_do = {
			factor = 5
		}

		days_remove = 20

		fire_only_once = yes

		custom_cost_trigger = { command_power > 24.99 }
		custom_cost_text = decision_cost_25_cp

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision OMO_stir_the_peasants_of_chita"
			hidden_effect = { add_command_power = -25 }
			set_country_flag = OMO_start_uprising
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove OMO_stir_the_peasants_of_chita"
			custom_effect_tooltip = OMO_stir_the_peasants_of_chita_tt
			hidden_effect = {
				load_oob = OMO_peasants_chita
			}
			clr_country_flag = OMO_start_uprising
		}
		cancel_effect = {
			clr_country_flag = OMO_start_uprising
		}
	}
	OMO_stir_the_peasants_of_magadan = {

		icon = GFX_decision_generic_revolt

		allowed = {
			original_tag = OMO
		}

		available = {
			hidden_trigger = {
				NOT = { has_country_flag = OMO_start_uprising }
			}
			562 = {
				controller = {
					has_war_with = OMO
				}
			}
		}
		cancel_trigger = {
			562 = {
				is_fully_controlled_by = OMO
			}
		}
		
		visible = {
			has_completed_focus = OMO_spark_the_light_in_the_darkness
		}

		ai_will_do = {
			factor = 5
		}

		days_remove = 20

		fire_only_once = yes

		custom_cost_trigger = { command_power > 14.99 }
		custom_cost_text = decision_cost_15_cp

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision OMO_stir_the_peasants_of_magadan"
			hidden_effect = { add_command_power = -15 }
			set_country_flag = OMO_start_uprising
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove OMO_stir_the_peasants_of_magadan"
			custom_effect_tooltip = OMO_stir_the_peasants_of_magadan_tt
			hidden_effect = {
				load_oob = OMO_peasants_magadan
			}
			clr_country_flag = OMO_start_uprising
		}
		cancel_effect = {
			clr_country_flag = OMO_start_uprising
		}
	}
}

OMO_temptations_category = {
	#Small influence Sudoplatov
	
	OMO_divert_recources_towards_sudoplatov = {
		icon = GFX_decision_category_generic_prospect_for_resources
		allowed = {
			original_tag = OMO
		}

		visible = {
			always = yes
		}

		cost = 20
		days_re_enable = 90

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_divert_recources_towards_sudoplatov"
			OMO_minor_temptation = yes
			add_command_power = 20
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 100
				producer = OMO
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	OMO_allow_small_recruitment = {
		icon = GFX_decision_generic_guard
		allowed = {
			original_tag = OMO
		}

		visible = {
			always = yes
		}

		cost = 30
		days_re_enable = 30

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_allow_small_recruitment"
			OMO_minor_temptation = yes
			add_manpower = 500
		}
		ai_will_do = {
			factor = 0
		}
	}
	#decrease
	OMO_divert_recources_away_from_sudoplatov = {
		icon = GFX_decision_generic_decrease
		allowed = {
			original_tag = OMO
		}

		visible = {
			always = yes
		}

		cost = 25
		days_re_enable = 90

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_divert_recources_away_from_sudoplatov"
			OMO_minor_temptation_decrease = yes
			add_manpower = 100
			army_experience = 10
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	OMO_divert_men_away_from_sudoplatov = {
		icon = GFX_decision_generic_humanitarian_aid_decrease
		allowed = {
			original_tag = OMO
		}

		visible = {
			always = yes
		}

		cost = 25
		days_re_enable = 140

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_divert_recources_away_from_sudoplatov"
			OMO_minor_temptation_decrease = yes
			TNO_improve_military_supervision_policy_effectiveness_low = yes
			army_experience = 10
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	#Medium influence
	
	OMO_use_sudoplatov_connections = {
		icon = GFX_decision_generic_document_concessions
		allowed = {
			original_tag = OMO

		}

		visible = {
		check_variable = { sudoplatov_influence > 32 }
		}

		cost = 60
		days_re_enable = 200

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_use_sudoplatov_connections"
			OMO_medium_temptation = yes
			TNO_improve_conscription_policy_effectiveness_low = yes
			add_command_power = -20
		}
		ai_will_do = {
			factor = 0
		}
	}
	
		OMO_conduct_trainings = {
		icon = GFX_decision_generic_arms_trade_increase
		allowed = {
			original_tag = OMO

		}

		visible = {
		check_variable = { sudoplatov_influence > 32 }
		}

		cost = 30
		days_re_enable = 200

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_conduct_trainings"
			OMO_medium_temptation = yes
			TNO_improve_training_policy_effectiveness_low = yes
			add_command_power = -20
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	#Medium decrease
	
	OMO_investigate_members_of_the_brigade = {
		icon = GFX_decision_generic_investigate
		allowed = {
			original_tag = OMO

		}

		visible = {
		check_variable = { sudoplatov_influence > 32 }
		}

		cost = 70
		days_re_enable = 100

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_investigate_members_of_the_brigade"
			OMO_medium_temptation_decrease = yes
			add_manpower = -600
			TNO_worsen_training_policy_effectiveness_low = yes
			TNO_worsen_conscription_policy_effectiveness_low = yes
			add_command_power = -20
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	#Big increase
	
	OMO_recruit_former_nkvd_members = {
		icon = GFX_decision_generic_hammer_and_sickle
		allowed = {
			original_tag = OMO

		}

		visible = {
		check_variable = { sudoplatov_influence > 65 }
		}

		cost = 50
		days_re_enable = 100

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_recruit_former_nkvd_members"
			OMO_give_in_to_temptation = yes
			add_manpower = 1000
			TNO_improve_training_policy_effectiveness_med = yes
			add_command_power = 60
		}
		ai_will_do = {
			factor = 0
		}
	}
	
		OMO_institute_curfew = {
		icon = GFX_decision_generic_document_building
		allowed = {
			original_tag = OMO

		}
		fire_only_once = yes
		visible = {
		check_variable = { sudoplatov_influence > 50 }
		}

		cost = 100

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_institute_curfew"
			OMO_give_in_to_temptation = yes
			add_manpower = 1000
			TNO_improve_military_supervision_policy_effectiveness_high = yes
			TNO_improve_penal_system_policy_effectiveness_high = yes
			add_stability = -0.2
			add_command_power = 100
			set_country_flag = curfew_active
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	
	
	OMO_cancel_curfew = {
		icon = GFX_decision_generic_document_building_no
		allowed = {
			original_tag = OMO

		}
		fire_only_once = yes
		visible = {
		check_variable = { sudoplatov_influence > 5 }
		has_country_flag = curfew_active
		}
		available = {
		has_country_flag = curfew_active
		}

		cost = 100

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_cancel_curfew"
			OMO_give_in_to_temptation_decrease = yes
			add_manpower = 1000
			TNO_worsen_conscription_policy_effectiveness_low = yes
			TNO_worsen_military_supervision_policy_effectiveness_high = yes
			TNO_worsen_penal_system_policy_effectiveness_high = yes
			add_stability = 0.15
			add_command_power = -100
		}
		ai_will_do = {
			factor = 0
		}
	}
	
		OMO_divert_large_amounts_of_Supplies = {
		icon = GFX_decision_generic_supply
		allowed = {
			original_tag = OMO

		}
		fire_only_once = yes
		visible = {
		check_variable = { sudoplatov_influence > 65 }
		}
		available = {
		}

		cost = 100

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: OMO_cancel_curfew"
			OMO_give_in_to_temptation_decrease = yes
			TNO_worsen_conscription_policy_effectiveness_low = yes
			TNO_worsen_military_supervision_policy_effectiveness_low = yes
			TNO_worsen_penal_system_policy_effectiveness_low = yes
			add_command_power = 20
		}
		ai_will_do = {
			factor = 0
		}
	}

}
