######################################################################################################
##################################       改进武装军队     #############################################
######################################################################################################
SAU_gaijin_wuzhuang_liliang = {
	#演习
	SAU_army_drills = {
		priority = 10
		icon = GFX_decision_generic_military
		ai_will_do = {
			base = 25
			modifier = {
				factor = 4
				has_political_power > 100
				command_power > 100
			}
		}
		allowed = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_shizahn_moni
		}
		available = {
			has_capitulated = no
		}
		ai_hint_pp_cost = 50
		custom_cost_trigger = {
			has_political_power > 49
			command_power > 49
		}
		custom_cost_text = decision_cost_CP_50_pp_50
		fire_only_once = no
		days_remove = 180
		complete_effect = {
			hidden_effect = {
				add_political_power = -50
				add_command_power = -50
			}
			ROOT = {
				country_event = {
					id = denmark_protection_event.200
					days = 30
				}
			}
			event_option_tooltip = denmark_protection_event.200.a
		}
		remove_effect = {
		}
	}
	SAU_navy_drills = {
		priority = 10
		icon = GFX_decision_generic_military
		ai_will_do = {
			base = 25
			modifier = {
				factor = 4
				has_political_power > 100
				command_power > 100
			}
		}
		allowed = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_shizahn_moni
		}
		available = {
			has_capitulated = no
		}
		ai_hint_pp_cost = 50
		custom_cost_trigger = {
			has_political_power > 49
			command_power > 49
		}
		custom_cost_text = decision_cost_CP_50_pp_50
		fire_only_once = no
		days_remove = 180
		complete_effect = {
			hidden_effect = {
				add_political_power = -50
				add_command_power = -50
			}
			ROOT = {
				country_event = {
					id = denmark_protection_event.201
					days = 30
				}
			}
			event_option_tooltip = denmark_protection_event.201.a
		}
		remove_effect = {
		}
	}
	SAU_air_drills = {
		priority = 10
		icon = GFX_decision_generic_military
		ai_will_do = {
			base = 25
			modifier = {
				factor = 4
				has_political_power > 100
				command_power > 100
			}
		}
		allowed = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_shizahn_moni
		}
		available = {
			has_capitulated = no
		}
		ai_hint_pp_cost = 50
		custom_cost_trigger = {
			has_political_power > 49
			command_power > 49
		}
		custom_cost_text = decision_cost_CP_50_pp_50
		fire_only_once = no
		days_remove = 180
		complete_effect = {
			hidden_effect = {
				add_political_power = -50
				add_command_power = -50
			}
			ROOT = {
				country_event = {
					id = denmark_protection_event.202
					days = 30
				}
			}
			event_option_tooltip = denmark_protection_event.202.a
		}
		remove_effect = {
		}
	}
	#陆军
	SAU_yaoqing_invite_japanese_army_advisors = {
		priority = 20
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 60
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = JAP
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_japanese_advisors_completed
					has_country_flag = JUNO_already_invited_american_advisors_completed
					has_country_flag = JUNO_already_invited_soviet_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_japanese_ideology
				OR = {
					AND = {
						JAP = {
							has_government = fascism
						}
						ROOT = {
							NOT = {
								has_government = communism
							}
						}
					}
					AND = {
						JAP = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
					AND = {
						JAP = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						JAP = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_waiguo_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_japanese_advisors_removed
					has_country_flag = JUNO_already_invited_american_advisors_removed
					has_country_flag = JUNO_already_invited_soviet_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 75
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_japanese_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Army
			add_to_variable = {
				SAU_lujun_21 = 0.05
				tooltip = army_org_factor_tt
			}
			add_to_variable = {
				SAU_lujun_26 = 0.05
				tooltip = army_attack_speed_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_grand_battle_plan
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_japanese_advisors_removed
			}
		}
	}
	SAU_yaoqing_invite_american_army_advisors = {
		priority = 19
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 80
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = USA
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_american_advisors_completed
					has_country_flag = JUNO_already_invited_italian_advisors_completed
					has_country_flag = JUNO_already_invited_japanese_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_american_ideology
				OR = {
					AND = {
						USA = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
					AND = {
						USA = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = neutrality
						}
					}
					AND = {
						USA = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						USA = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_waiguo_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_american_advisors_removed
					has_country_flag = JUNO_already_invited_italian_advisors_removed
					has_country_flag = JUNO_already_invited_japanese_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 75
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_american_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Army
			add_to_variable = {
				SAU_lujun_29 = 0.05
				tooltip = army_artillery_attack_factor_tt
			}
			add_to_variable = {
				SAU_lujun_7 = 0.05
				tooltip = special_forces_cap_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_superior_firepower
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_american_advisors_removed
			}
		}
	}
	SAU_yaoqing_invite_soviet_army_advisors = {
		priority = 18
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 50
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = SOV
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_soviet_advisors_completed
					has_country_flag = JUNO_already_invited_german_advisors_completed
					has_country_flag = JUNO_already_invited_japanese_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_soviet_ideology
				OR = {
					AND = {
						SOV = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
							has_government = neutrality
						}
					}
					AND = {
						SOV = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = neutrality
							has_government = fascism
						}
					}
					AND = {
						SOV = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						SOV = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_waiguo_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_soviet_advisors_removed
					has_country_flag = JUNO_already_invited_german_advisors_removed
					has_country_flag = JUNO_already_invited_japanese_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 75
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_soviet_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Army
			add_to_variable = {
				SAU_lujun_22 = -0.05
				tooltip = supply_combat_penalties_on_core_factor_tt
			}
			add_to_variable = {
				SAU_lujun_13 = 0.01
				tooltip = conscription_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_mass_assault
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_soviet_advisors_removed
			}
		}
	}
	SAU_yaoqing_invite_german_army_advisors = {
		priority = 17
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 60
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = GER
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_german_advisors_completed
					has_country_flag = JUNO_already_invited_british_advisors_completed
					has_country_flag = JUNO_already_invited_soviet_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_german_ideology
				OR = {
					AND = {
						GER = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
						}
					}
					AND = {
						GER = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
					AND = {
						GER = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						GER = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = fascism
							has_government = democratic
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_waiguo_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_german_advisors_removed
					has_country_flag = JUNO_already_invited_british_advisors_removed
					has_country_flag = JUNO_already_invited_soviet_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 75
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_german_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Army
			add_to_variable = {
				SAU_lujun_25 = 0.05
				tooltip = army_armor_attack_factor_tt
			}
			add_to_variable = {
				SAU_lujun_24 = 0.05
				tooltip = army_armor_defence_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_mobile_warfare
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_german_advisors_removed
			}
		}
	}
	SAU_yaoqing_invite_italian_army_advisors = {
		priority = 16
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 60
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = ITA
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_italian_advisors_completed
					has_country_flag = JUNO_already_invited_american_advisors_completed
					has_country_flag = JUNO_already_invited_british_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_italian_ideology
				OR = {
					AND = {
						ITA = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
					AND = {
						ITA = {
							has_government = democratic
						}
						NOT = {
							has_government = fascism
						}
					}
					AND = {
						ITA = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						ITA = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_waiguo_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_italian_advisors_removed
					has_country_flag = JUNO_already_invited_american_advisors_removed
					has_country_flag = JUNO_already_invited_british_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 75
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_italian_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Army
			add_to_variable = {
				SAU_lujun_22 = -0.05
				tooltip = supply_combat_penalties_on_core_factor_tt
			}
			add_to_variable = {
				SAU_lujun_31 = -0.05
				tooltip = experience_loss_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_grand_battle_plan
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_italian_advisors_removed
			}
		}
	}
	SAU_yaoqing_invite_british_army_advisors = {
		priority = 16
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 70
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = ENG
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_british_advisors_completed
					has_country_flag = JUNO_already_invited_italian_advisors_completed
					has_country_flag = JUNO_already_invited_german_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_british_ideology
				OR = {
					AND = {
						ENG = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = neutrality
							has_government = democratic
						}
					}
					AND = {
						ENG = {
							has_government = democratic
						}
						NOT = {
							has_government = fascism
							has_government = communism
						}
					}
					AND = {
						ENG = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						ENG = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_waiguo_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_british_advisors_removed
					has_country_flag = JUNO_already_invited_italian_advisors_removed
					has_country_flag = JUNO_already_invited_german_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 75
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_british_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Army
			add_to_variable = {
				SAU_lujun_32 = 0.05
				tooltip = max_planning_factor_tt
			}
			add_to_variable = {
				SAU_lujun_17 = 0.05
				tooltip = command_power_gain_mult_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_grand_battle_plan
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_british_advisors_removed
			}
		}
	}
	SAU_yaoqing_invite_french_army_advisors = {
		priority = 15
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 50
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = FRA
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_french_advisors_completed
					has_country_flag = JUNO_already_invited_italian_advisors_completed
					has_country_flag = JUNO_already_invited_german_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_french_ideology
				OR = {
					AND = {
						FRA = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
					AND = {
						FRA = {
							has_government = democratic
						}
						NOT = {
							has_government = fascism
						}
					}
					AND = {
						FRA = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						FRA = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = democratic
							has_government = fascism
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_junshi_waiguo_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_french_advisors_removed
					has_country_flag = JUNO_already_invited_italian_advisors_removed
					has_country_flag = JUNO_already_invited_german_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 75
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_french_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Army
			add_to_variable = {
				SAU_lujun_27 = 0.05
				tooltip = army_core_defence_factor_tt
			}
			add_to_variable = {
				SAU_lujun_30 = 0.05
				tooltip = army_artillery_defence_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_superior_firepower
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_french_advisors_removed
			}
		}
	}
	#瑞典防空炮
	SAU_purchase_anti_air = {
		priority = 10
		icon = generic_industry
		allowed = {
		}
		#Activated from effect
		available = {
			country_exists = SWE
			NOT = {
				has_war_with = SWE
			}
			SWE = {
				OR = {
					is_subject = no
					is_subject_of = ROOT
				}
			}
			SWE = {
				has_opinion = {
					target = ROOT
					value > 9
				}
			}
			SWE = {
				has_tech = interwar_antiair
			}
			NOT = {
				has_country_flag = BUL_purchasing_infantry_equipment_flag
			}
			NOT = {
				has_war_with = SWE
			}
			NOT = {
				is_justifying_wargoal_against = SWE
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_kongjun_fangkong_wuqi
		}
		cost = 25
		days_remove = 60
		fire_only_once = no
		ai_will_do = {
			factor = 0.1
			modifier = {
				factor = 0
				OR = {
					num_of_civilian_factories < 10
					stockpile_ratio = {
						archetype = anti_air_equipment
						ratio > 0.75
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					is_in_faction_with = SWE
				}
			}
		}
		modifier = {
			civilian_factory_use = 1
		}
		complete_effect = {
			set_country_flag = BUL_purchasing_infantry_equipment_flag
			SWE = {
				add_offsite_building = {
					type = industrial_complex
					level = 1
				}
				add_opinion_modifier = {
					target = ROOT
					modifier = BUL_bought_guns
				}
			}
			add_opinion_modifier = {
				target = SWE
				modifier = BUL_sold_guns
			}
			add_opinion_modifier = {
				target = SWE
				modifier = BUL_arms_trade
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = anti_air_equipment
				amount = 400
				producer = SWE
			}
			SWE = {
				add_offsite_building = {
					type = industrial_complex
					level = -1
				}
			}
			clr_country_flag = BUL_purchasing_infantry_equipment_flag
		}
	}
	#买武器
	SAU_purchase_infantry_equipment = {
		priority = 10
		icon = generic_industry
		allowed = {
			always = no
		}
		#Activated from effect
		available = {
			country_exists = FROM
			NOT = {
				has_war_with = FROM
			}
			FROM = {
				OR = {
					is_subject = no
					is_subject_of = ROOT
				}
			}
			FROM = {
				has_opinion = {
					target = ROOT
					value > 0
				}
			}
			FROM = {
				has_tech = infantry_weapons
			}
			NOT = {
				has_country_flag = BUL_purchasing_infantry_equipment_flag
			}
			NOT = {
				has_war_with = FROM
			}
			NOT = {
				is_justifying_wargoal_against = FROM
			}
			if = {
				limit = {
					FROM = {
						tag = GER
					}
				}
				OR = {
					is_in_faction_with = GER
					AND = {
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ITA
					}
				}
				OR = {
					is_in_faction_with = ITA
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ENG
					}
				}
				OR = {
					is_in_faction_with = ENG
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = SOU
					}
				}
				OR = {
					is_in_faction_with = SOU
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
		}
		visible = {
		}
		cost = 30
		days_remove = 90
		days_re_enable = 90
		fire_only_once = no
		ai_will_do = {
			factor = 0.1
			modifier = {
				factor = 2
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 0
				OR = {
					num_of_civilian_factories < 10
					stockpile_ratio = {
						archetype = infantry_equipment
						ratio > 0.75
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					is_in_faction_with = FROM
				}
			}
		}
		modifier = {
			civilian_factory_use = 1
		}
		complete_effect = {
			set_country_flag = BUL_purchasing_infantry_equipment_flag
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = 1
				}
				add_opinion_modifier = {
					target = ROOT
					modifier = BUL_bought_guns
				}
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_sold_guns
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_arms_trade
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 1000
				producer = FROM
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = -1
				}
			}
			clr_country_flag = BUL_purchasing_infantry_equipment_flag
		}
	}
	SAU_purchase_artillery = {
		priority = 9
		icon = ger_military_buildup
		allowed = {
			always = no
		}
		#Activated from effect
		available = {
			country_exists = FROM
			NOT = {
				has_war_with = FROM
			}
			FROM = {
				OR = {
					is_subject = no
					is_subject_of = ROOT
				}
			}
			FROM = {
				has_opinion = {
					target = ROOT
					value > 0
				}
			}
			FROM = {
				has_tech = gw_artillery
			}
			NOT = {
				has_country_flag = BUL_purchasing_artillery_flag
			}
			NOT = {
				has_war_with = FROM
			}
			NOT = {
				is_justifying_wargoal_against = FROM
			}
			if = {
				limit = {
					FROM = {
						tag = GER
					}
				}
				OR = {
					is_in_faction_with = GER
					AND = {
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ITA
					}
				}
				OR = {
					is_in_faction_with = ITA
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ENG
					}
				}
				OR = {
					is_in_faction_with = ENG
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = SOU
					}
				}
				OR = {
					is_in_faction_with = SOU
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
		}
		visible = {
		}
		cost = 40
		days_remove = 90
		days_re_enable = 90
		fire_only_once = no
		ai_will_do = {
			factor = 0.1
			modifier = {
				factor = 2
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 0
				OR = {
					num_of_civilian_factories < 10
					AND = {
						stockpile_ratio = {
							archetype = artillery_equipment
							ratio > 0.75
						}
						stockpile_ratio = {
							archetype = anti_air_equipment
							ratio > 0.75
						}
						stockpile_ratio = {
							archetype = anti_tank_equipment
							ratio > 0.75
						}
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					is_in_faction_with = FROM
				}
			}
		}
		modifier = {
			civilian_factory_use = 1
		}
		complete_effect = {
			set_country_flag = BUL_purchasing_artillery_flag
			hidden_effect = {
				set_variable = {
					BUL_artillery_seller = FROM
				}
				country_event = SAU_ciagou_maizhuangbei.1
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = 1
				}
				add_opinion_modifier = {
					target = ROOT
					modifier = BUL_bought_guns
				}
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_sold_guns
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_arms_trade
			}
			custom_effect_tooltip = SAU_purchase_artillery_tt
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = var:BUL_artillery_type
				amount = 100
				producer = FROM
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = -1
				}
			}
			clear_variable = BUL_artillery_type
			clr_country_flag = BUL_purchasing_artillery_flag
		}
	}
	SAU_purchase_military_vehicles = {
		priority = 8
		icon = generic_trucks
		allowed = {
			always = no
		}
		#Activated from effect
		available = {
			country_exists = FROM
			NOT = {
				has_war_with = FROM
			}
			FROM = {
				OR = {
					is_subject = no
					is_subject_of = ROOT
				}
			}
			FROM = {
				has_opinion = {
					target = ROOT
					value > 0
				}
			}
			FROM = {
				has_tech = motorised_infantry
			}
			NOT = {
				has_country_flag = BUL_purchasing_military_vehicles_flag
			}
			NOT = {
				has_war_with = FROM
			}
			NOT = {
				is_justifying_wargoal_against = FROM
			}
			if = {
				limit = {
					FROM = {
						tag = GER
					}
				}
				OR = {
					is_in_faction_with = GER
					AND = {
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ITA
					}
				}
				OR = {
					is_in_faction_with = ITA
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ENG
					}
				}
				OR = {
					is_in_faction_with = ENG
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = SOU
					}
				}
				OR = {
					is_in_faction_with = SOU
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
		}
		visible = {
		}
		cost = 50
		days_remove = 90
		days_re_enable = 90
		fire_only_once = no
		ai_will_do = {
			factor = 0.1
			modifier = {
				factor = 2
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 0
				OR = {
					num_of_civilian_factories < 10
					AND = {
						stockpile_ratio = {
							archetype = motorized_equipment
							ratio > 0.75
						}
						stockpile_ratio = {
							archetype = mechanized_equipment
							ratio > 0.75
						}
						stockpile_ratio = {
							archetype = armored_car_equipment
							ratio > 0.75
						}
					}
				}
			}
		}
		modifier = {
			civilian_factory_use = 1
		}
		complete_effect = {
			set_country_flag = BUL_purchasing_military_vehicles_flag
			hidden_effect = {
				set_variable = {
					BUL_military_vehicles_seller = FROM
				}
				country_event = SAU_ciagou_maizhuangbei.2
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = 1
				}
				add_opinion_modifier = {
					target = ROOT
					modifier = BUL_bought_guns
				}
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_sold_guns
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_arms_trade
			}
			custom_effect_tooltip = SAU_purchase_vehicles_tt
		}
		remove_effect = {
			if = {
				limit = {
					FROM = {
						has_country_flag = BUL_producing_motorized_for_bulgaria_flag
					}
				}
				add_equipment_to_stockpile = {
					type = var:BUL_vehicle_type
					amount = 100
					producer = FROM
				}
				FROM = {
					clr_country_flag = BUL_producing_motorized_for_bulgaria_flag
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_country_flag = BUL_producing_mechanized_for_bulgaria_flag
					}
				}
				add_equipment_to_stockpile = {
					type = var:BUL_vehicle_type
					amount = 50
					producer = FROM
				}
				FROM = {
					clr_country_flag = BUL_producing_mechanized_for_bulgaria_flag
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = var:BUL_vehicle_type
					amount = 50
					producer = FROM
				}
				FROM = {
					clr_country_flag = BUL_producing_armored_car_for_bulgaria_flag
				}
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = -1
				}
			}
			clear_variable = BUL_vehicle_type
			clr_country_flag = BUL_purchasing_military_vehicles_flag
		}
	}
	SAU_purchase_armor = {
		priority = 7
		icon = generic_tank
		allowed = {
			always = no
		}
		#Activated from effect
		available = {
			country_exists = FROM
			NOT = {
				has_war_with = FROM
			}
			FROM = {
				OR = {
					is_subject = no
					is_subject_of = ROOT
				}
			}
			FROM = {
				has_opinion = {
					target = ROOT
					value > 0
				}
			}
			FROM = {
				OR = {
					has_tech = basic_light_tank
					has_tech = basic_light_tank_chassis
				}
			}
			NOT = {
				has_country_flag = BUL_purchasing_armor_flag
			}
			NOT = {
				has_war_with = FROM
			}
			NOT = {
				is_justifying_wargoal_against = FROM
			}
			if = {
				limit = {
					FROM = {
						tag = GER
					}
				}
				OR = {
					is_in_faction_with = GER
					AND = {
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ITA
					}
				}
				OR = {
					is_in_faction_with = ITA
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ENG
					}
				}
				OR = {
					is_in_faction_with = ENG
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = SOU
					}
				}
				OR = {
					is_in_faction_with = SOU
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
		}
		visible = {
		}
		cost = 50
		days_remove = 90
		days_re_enable = 90
		fire_only_once = no
		ai_will_do = {
			factor = 0.1
			modifier = {
				factor = 0
				OR = {
					NOT = {
						is_in_faction_with = FROM
					}
					num_of_civilian_factories < 10
					AND = {
						stockpile_ratio = {
							archetype = light_tank_chassis
							ratio > 0.75
						}
						stockpile_ratio = {
							archetype = medium_tank_chassis
							ratio > 0.75
						}
						stockpile_ratio = {
							archetype = heavy_tank_chassis
							ratio > 0.75
						}
					}
				}
			}
		}
		modifier = {
			civilian_factory_use = 1
		}
		complete_effect = {
			set_country_flag = BUL_purchasing_armor_flag
			hidden_effect = {
				set_variable = {
					BUL_armor_seller = FROM
				}
				country_event = SAU_ciagou_maizhuangbei.3
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = 1
				}
				add_opinion_modifier = {
					target = ROOT
					modifier = BUL_bought_guns
				}
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_sold_guns
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_arms_trade
			}
			custom_effect_tooltip = SAU_purchase_armor_tt
		}
		remove_effect = {
			if = {
				limit = {
					FROM = {
						has_country_flag = BUL_producing_light_armor_for_bulgaria_flag
					}
				}
				add_equipment_to_stockpile = {
					type = var:BUL_armor_type
					amount = 40
					producer = FROM
				}
				FROM = {
					clr_country_flag = BUL_producing_light_armor_for_bulgaria_flag
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_country_flag = BUL_producing_medium_armor_for_bulgaria_flag
					}
				}
				add_equipment_to_stockpile = {
					type = var:BUL_armor_type
					amount = 20
					producer = FROM
				}
				FROM = {
					clr_country_flag = BUL_producing_medium_armor_for_bulgaria_flag
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = var:BUL_armor_type
					amount = 10
					producer = FROM
				}
				FROM = {
					clr_country_flag = BUL_producing_heavy_armor_for_bulgaria_flag
				}
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = -1
				}
			}
			clear_variable = BUL_vehicle_type
			clr_country_flag = BUL_purchasing_armor_flag
		}
	}
	SAU_purchase_aircraft = {
		priority = 6
		icon = generic_air
		allowed = {
			always = no
		}
		#Activated from effect
		available = {
			country_exists = FROM
			NOT = {
				has_war_with = FROM
			}
			FROM = {
				OR = {
					is_subject = no
					is_subject_of = ROOT
				}
			}
			FROM = {
				has_opinion = {
					target = ROOT
					value > 0
				}
			}
			FROM = {
				OR = {
					has_tech = early_fighter
					has_tech = iw_small_airframe
				}
			}
			NOT = {
				has_country_flag = BUL_purchasing_aircraft_flag
			}
			NOT = {
				has_war_with = FROM
			}
			NOT = {
				is_justifying_wargoal_against = FROM
			}
			if = {
				limit = {
					FROM = {
						tag = GER
					}
				}
				OR = {
					is_in_faction_with = GER
					AND = {
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ITA
					}
				}
				OR = {
					is_in_faction_with = ITA
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = ENG
					}
				}
				OR = {
					is_in_faction_with = ENG
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = SOU
					}
				}
				OR = {
					is_in_faction_with = SOU
					AND = {
						BUL_foreign_agreements_in_faction_with_ger = yes
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
		}
		visible = {
			country_exists = FROM
			NOT = {
				has_war_with = FROM
			}
			FROM = {
				OR = {
					is_subject = no
					is_subject_of = ROOT
				}
			}
		}
		cost = 75
		days_remove = 90
		days_re_enable = 90
		fire_only_once = no
		ai_will_do = {
			factor = 0.1
			modifier = {
				factor = 2
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 0
				OR = {
					num_of_civilian_factories < 10
					AND = {
						stockpile_ratio = {
							archetype = small_plane_airframe
							ratio > 0.75
						}
						stockpile_ratio = {
							archetype = small_plane_naval_bomber_airframe
							ratio > 0.75
						}
						stockpile_ratio = {
							archetype = medium_plane_airframe
							ratio > 0.75
						}
					}
				}
			}
		}
		modifier = {
			civilian_factory_use = 1
		}
		complete_effect = {
			set_country_flag = BUL_purchasing_aircraft_flag
			hidden_effect = {
				set_variable = {
					BUL_aircraft_seller = FROM
				}
				country_event = SAU_ciagou_maizhuangbei.4
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = 1
				}
				add_opinion_modifier = {
					target = ROOT
					modifier = BUL_bought_guns
				}
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_sold_guns
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_arms_trade
			}
			custom_effect_tooltip = SAU_purchase_aircraft_tt
		}
		remove_effect = {
			if = {
				limit = {
					FROM = {
						has_country_flag = BUL_producing_fighters_for_bulgaria_flag
					}
				}
				add_equipment_to_stockpile = {
					type = var:BUL_aircraft_type
					amount = 40
					producer = FROM
				}
				FROM = {
					clr_country_flag = BUL_producing_fighters_for_bulgaria_flag
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_country_flag = BUL_producing_naval_bombers_for_bulgaria_flag
					}
				}
				add_equipment_to_stockpile = {
					type = var:BUL_aircraft_type
					amount = 30
					producer = FROM
				}
				FROM = {
					clr_country_flag = BUL_producing_naval_bombers_for_bulgaria_flag
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = var:BUL_aircraft_type
					amount = 20
					producer = FROM
				}
				FROM = {
					clr_country_flag = BUL_producing_tactical_bombers_for_bulgaria_flag
				}
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = -1
				}
			}
			clear_variable = BUL_vehicle_type
			clr_country_flag = BUL_purchasing_aircraft_flag
		}
	}
	SAU_purchase_ships = {
		priority = 1
		icon = GFX_decision_generic_naval
		allowed = {
			always = no
		}
		#Activated from effect
		available = {
			country_exists = FROM
			NOT = {
				has_war_with = FROM
			}
			FROM = {
				OR = {
					is_subject = no
					is_subject_of = ROOT
				}
			}
			FROM = {
				has_opinion = {
					target = ROOT
					value > 0
				}
				if = {
					limit = {
						has_dlc = "Man the Guns"
					}
					OR = {
						has_tech = early_ship_hull_submarine
						has_tech = early_ship_hull_light
						has_tech = early_ship_hull_cruiser
					}
				}
				else = {
					has_tech = early_submarine
					has_tech = early_destroyer
					has_tech = early_light_cruiser
				}
				NOT = {
					has_country_flag = SAU_producing_bulgarian_ships_flag
				}
				NOT = {
					has_country_flag = SAU_ships_purchase_rejected_flag
				}
			}
			NOT = {
				has_war_with = FROM
			}
			NOT = {
				is_justifying_wargoal_against = FROM
			}
			if = {
				limit = {
					FROM = {
						tag = ITA
					}
				}
				OR = {
					is_in_faction_with = ITA
					AND = {
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_sov = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = USA
					}
				}
				OR = {
					is_in_faction_with = USA
					AND = {
						BUL_foreign_agreements_in_faction_with_sov = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						tag = SOU
					}
				}
				OR = {
					is_in_faction_with = SOU
					AND = {
						BUL_foreign_agreements_in_faction_with_eng = yes
						BUL_foreign_agreements_in_faction_with_ita = yes
					}
				}
			}
		}
		visible = {
			hidden_trigger = {
				NOT = {
					has_country_flag = SAU_ships_purchase_rejected_flag
				}
			}
		}
		cancel_if_not_visible = yes
		cancel_effect = {
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = -1
				}
				clr_country_flag = SAU_producing_bulgarian_ships_flag
			}
		}
		cost = 100
		days_remove = 365
		days_re_enable = 1
		fire_only_once = no
		ai_will_do = {
			factor = 0.1
			modifier = {
				OR = {
					num_of_civilian_factories < 5
					num_of_naval_factories < 2
				}
				factor = 0
			}
			modifier = {
				has_war = yes
				factor = 2
			}
		}
		modifier = {
			civilian_factory_use = 1
		}
		complete_effect = {
			FROM = {
				set_country_flag = SAU_producing_bulgarian_ships_flag
				add_offsite_building = {
					type = industrial_complex
					level = 1
				}
				country_event = {
					id = SAU_ciagou_maizhuangbei.5
					days = 1
				}
			}
		}
		remove_effect = {
			add_opinion_modifier = {
				target = FROM
				modifier = SAU_built_ships
			}
			add_opinion_modifier = {
				target = FROM
				modifier = BUL_arms_trade
			}
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = -1
				}
				clr_country_flag = SAU_producing_bulgarian_ships_flag
			}
			if = {
				limit = {
					FROM = {
						has_country_flag = BUL_building_submarines_flag
					}
				}
				hidden_effect = {
					country_event = SAU_ciagou_maizhuangbei.8
				}
				custom_effect_tooltip = BUL_purchase_ships_submarines_tt
				FROM = {
					clr_country_flag = BUL_building_submarines_flag
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_country_flag = BUL_building_destroyers_flag
					}
				}
				hidden_effect = {
					country_event = SAU_ciagou_maizhuangbei.9
				}
				custom_effect_tooltip = BUL_purchase_ships_destroyers_tt
				FROM = {
					clr_country_flag = BUL_building_destroyers_flag
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_country_flag = BUL_building_light_cruiser_flag
					}
				}
				hidden_effect = {
					country_event = SAU_ciagou_maizhuangbei.10
				}
				custom_effect_tooltip = BUL_purchase_ships_light_cruiser_tt
				FROM = {
					clr_country_flag = BUL_building_light_cruiser_flag
				}
			}
			else = {
				custom_effect_tooltip = BUL_purchase_ships_undetermined_tt
			}
		}
	}
	#海军
	SAU_invite_japanese_naval_advisors = {
		priority = 20
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 60
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = JAP
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_japanese_naval_advisors_completed
					has_country_flag = JUNO_already_invited_american_naval_advisors_completed
					has_country_flag = JUNO_already_invited_soviet_naval_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_japanese_ideology
				OR = {
					AND = {
						JAP = {
							has_government = fascism
						}
						ROOT = {
							NOT = {
								has_government = communism
							}
						}
					}
					AND = {
						JAP = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
					AND = {
						JAP = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						JAP = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_japanese_naval_advisors_removed
					has_country_flag = JUNO_already_invited_american_naval_advisors_removed
					has_country_flag = JUNO_already_invited_soviet_naval_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 50
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_japanese_naval_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Naval
			add_to_variable = {
				SAU_haijun_18 = 0.05
				tooltip = spotting_chance_tt
			}
			add_to_variable = {
				SAU_haijun_19 = 0.05
				tooltip = naval_morale_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_base_strike
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_japanese_naval_advisors_removed
			}
		}
	}
	SAU_invite_american_navy_advisors = {
		priority = 19
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 80
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = USA
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_american_naval_advisors_completed
					has_country_flag = JUNO_already_invited_italian_naval_advisors_completed
					has_country_flag = JUNO_already_invited_japanese_naval_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_american_ideology
				OR = {
					AND = {
						USA = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
					AND = {
						USA = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
					AND = {
						USA = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						USA = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_american_naval_advisors_removed
					has_country_flag = JUNO_already_invited_italian_naval_advisors_removed
					has_country_flag = JUNO_already_invited_japanese_naval_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 50
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_american_naval_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Naval
			add_to_variable = {
				SAU_haijun_17 = 0.05
				tooltip = convoy_escort_efficiency_tt
			}
			add_to_variable = {
				SAU_haijun_20 = 0.05
				tooltip = navy_anti_air_attack_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_base_strike
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_american_naval_advisors_removed
			}
		}
	}
	SAU_invite_soviet_navy_advisors = {
		priority = 18
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 50
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = SOV
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_soviet_naval_advisors_completed
					has_country_flag = JUNO_already_invited_german_naval_advisors_completed
					has_country_flag = JUNO_already_invited_japanese_naval_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_soviet_ideology
				OR = {
					AND = {
						SOV = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
							has_government = neutrality
						}
					}
					AND = {
						SOV = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = neutrality
							has_government = fascism
						}
					}
					AND = {
						SOV = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						SOV = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_soviet_naval_advisors_removed
					has_country_flag = JUNO_already_invited_german_naval_advisors_removed
					has_country_flag = JUNO_already_invited_japanese_naval_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 50
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_soviet_naval_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Naval
			add_to_variable = {
				SAU_haijun_18 = 0.05
				tooltip = spotting_chance_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_fleet_in_being
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_soviet_naval_advisors_removed
			}
		}
	}
	SAU_invite_german_navy_advisors = {
		priority = 17
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 60
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = GER
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_german_naval_advisors_completed
					has_country_flag = JUNO_already_invited_british_naval_advisors_completed
					has_country_flag = JUNO_already_invited_soviet_naval_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_german_ideology
				OR = {
					AND = {
						GER = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
						}
					}
					AND = {
						GER = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
					AND = {
						GER = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						GER = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = fascism
							has_government = democratic
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_german_naval_advisors_removed
					has_country_flag = JUNO_already_invited_british_naval_advisors_removed
					has_country_flag = JUNO_already_invited_soviet_naval_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 50
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_german_naval_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Naval
			add_to_variable = {
				SAU_haijun_4 = 0.05
				tooltip = convoy_raiding_efficiency_factor_tt
			}
			add_to_variable = {
				SAU_haijun_3 = 0.05
				tooltip = navy_submarine_attack_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_trade_interdiction
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_german_naval_advisors_removed
			}
		}
	}
	SAU_invite_italian_navy_advisors = {
		priority = 16
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 60
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = ITA
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_italian_naval_advisors_completed
					has_country_flag = JUNO_already_invited_american_naval_advisors_completed
					has_country_flag = JUNO_already_invited_british_naval_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_italian_ideology
				OR = {
					AND = {
						ITA = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
					AND = {
						ITA = {
							has_government = democratic
						}
						NOT = {
							has_government = fascism
						}
					}
					AND = {
						ITA = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						ITA = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_italian_naval_advisors_removed
					has_country_flag = JUNO_already_invited_american_naval_advisors_removed
					has_country_flag = JUNO_already_invited_british_naval_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 50
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_italian_naval_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Naval
			add_to_variable = {
				SAU_haijun_13 = 0.05
				tooltip = convoy_retreat_speed_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_fleet_in_being
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_italian_naval_advisors_removed
			}
		}
	}
	SAU_invite_british_navy_advisors = {
		priority = 16
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 70
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = ENG
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_british_naval_advisors_completed
					has_country_flag = JUNO_already_invited_italian_naval_advisors_completed
					has_country_flag = JUNO_already_invited_german_naval_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_british_ideology
				OR = {
					AND = {
						ENG = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = neutrality
							has_government = democratic
						}
					}
					AND = {
						ENG = {
							has_government = democratic
						}
						NOT = {
							has_government = fascism
							has_government = communism
						}
					}
					AND = {
						ENG = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						ENG = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_british_naval_advisors_removed
					has_country_flag = JUNO_already_invited_italian_naval_advisors_removed
					has_country_flag = JUNO_already_invited_german_naval_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 50
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_british_naval_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Naval
			add_to_variable = {
				SAU_haijun_21 = 0.05
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = {
				SAU_haijun_22 = 0.05
				tooltip = navy_capital_ship_defence_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_fleet_in_being
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_british_naval_advisors_removed
			}
		}
	}
	SAU_invite_french_navy_advisors = {
		priority = 15
		icon = GFX_decision_generic_army_support
		ai_will_do = {
			base = 50
		}
		allowed = {
		}
		available = {
			any_country = {
				original_tag = FRA
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_french_naval_advisors_completed
					has_country_flag = JUNO_already_invited_italian_naval_advisors_completed
					has_country_flag = JUNO_already_invited_german_naval_advisors_completed
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_french_ideology
				OR = {
					AND = {
						FRA = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
					AND = {
						FRA = {
							has_government = democratic
						}
						NOT = {
							has_government = fascism
						}
					}
					AND = {
						FRA = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						FRA = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = democratic
							has_government = fascism
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_guwen
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_french_naval_advisors_removed
					has_country_flag = JUNO_already_invited_italian_naval_advisors_removed
					has_country_flag = JUNO_already_invited_german_naval_advisors_removed
				}
			}
		}
		days_remove = 70
		cost = 50
		complete_effect = {
			hidden_effect = {
				set_country_flag = JUNO_already_invited_french_naval_advisors_completed
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_Royal_Saudi_Naval
			add_to_variable = {
				SAU_haijun_10 = 0.05
				tooltip = navy_screen_defence_factor_tt
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_fleet_in_being
			}
			hidden_effect = {
				set_country_flag = JUNO_already_invited_french_naval_advisors_removed
			}
		}
	}
	#买船
	SAU_purchase_dreadnoughts_usa = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_goumai_jianchuan
			USA = {
				NOT = {
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT
				}
			}
			NOT = {
				has_war_with = USA
			}
		}
		available = {
			NOT = {
				USA = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}
				}
			}
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			USA = {
				country_event = {
					id = SAU_ciagou_maizhuangbei.11
					days = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	SAU_purchase_dreadnoughts_ENG = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_goumai_jianchuan
			ENG = {
				NOT = {
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT
				}
			}
			NOT = {
				has_war_with = ENG
			}
		}
		available = {
			NOT = {
				ENG = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}
				}
			}
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			ENG = {
				country_event = {
					id = SAU_ciagou_maizhuangbei.11
					days = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	SAU_purchase_dreadnoughts_FRA = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_goumai_jianchuan
			FRA = {
				NOT = {
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT
				}
			}
			NOT = {
				has_war_with = FRA
			}
		}
		available = {
			NOT = {
				FRA = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}
				}
			}
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			FRA = {
				country_event = {
					id = SAU_ciagou_maizhuangbei.11
					days = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	SAU_purchase_dreadnoughts_ITA = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_goumai_jianchuan
			ITA = {
				NOT = {
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT
				}
			}
			NOT = {
				has_war_with = ITA
			}
		}
		available = {
			NOT = {
				ITA = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}
				}
			}
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			ITA = {
				country_event = {
					id = SAU_ciagou_maizhuangbei.11
					days = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	SAU_purchase_dreadnoughts_GER = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_goumai_jianchuan
			GER = {
				NOT = {
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT
				}
			}
			NOT = {
				has_war_with = GER
			}
		}
		available = {
			NOT = {
				GER = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}
				}
			}
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			GER = {
				country_event = {
					id = SAU_ciagou_maizhuangbei.11
					days = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	SAU_purchase_dreadnoughts_JAP = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_goumai_jianchuan
			JAP = {
				NOT = {
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT
				}
			}
			NOT = {
				has_war_with = JAP
			}
		}
		available = {
			NOT = {
				JAP = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}
				}
			}
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			JAP = {
				country_event = {
					id = SAU_ciagou_maizhuangbei.11
					days = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	SAU_mining_the_sea = {
		priority = 5
		icon = GFX_decision_generic_naval_mine
		ai_will_do = {
			base = 0.25
		}
		allowed = {
			original_tag = SAU
			has_dlc = "Man the Guns"
		}
		visible = {
			has_completed_focus = Saudi_Arabia_haijun_haishang_bulei
			has_full_control_of_state = 859
			has_full_control_of_state = 856
		}
		available = {
			has_full_control_of_state = 859
			has_full_control_of_state = 856
		}
		custom_cost_trigger = {
			has_political_power > 60
			has_navy_experience > 60
			command_power > 30
		}
		custom_cost_text = FIN_mining_the_sea_decision_cost_pp_xp_cp
		ai_hint_pp_cost = 60
		days_remove = 30
		fire_only_once = yes
		complete_effect = {
		}
		remove_effect = {
			add_mines = {
				region = 100
				amount = 250
			}
			add_mines = {
				region = 203
				amount = 250
			}
		}
	}
}

######################################################################################################
##################################       五年计划      ###############################################
######################################################################################################
SAU_wunian_jihua_decisions = {
	SAU_shiyougongsi_jianzao = {
		icon = GFX_decision_generic_construction
		allowed = {
			original_tag = SAU
		}
		visible = {
			has_capitulated = yes
		}
		is_good = yes
		available = {
			hidden_trigger = {
				always = no
			}
		}
		activation = {
			has_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
		}
		days_mission_timeout = 90
		timeout_effect = {
			custom_effect_tooltip = SAU_shiyougongsi_jianzao_tt
			random_state = {
				limit = {
					is_controlled_by = ROOT
					impassable = no
				}
				random_list = {
					seed = random
					2 = {
						modifier = {
							has_variable = ROOT.is_literally_not_a_factory
							add = var:ROOT.is_literally_not_a_factory
						}
						if = {
							limit = {
								has_variable = ROOT.is_literally_not_a_factory
							}
							clear_variable = ROOT.is_literally_not_a_factory
						}
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
						ROOT = {
							add_to_variable = {
								built_a_civ = 1
							}
						}
					}
					0.3 = {
						modifier = {
							has_variable = ROOT.is_literally_not_a_factory
							add = var:ROOT.is_literally_not_a_factory
						}
						if = {
							limit = {
								has_variable = ROOT.is_literally_not_a_factory
							}
							clear_variable = ROOT.is_literally_not_a_factory
						}
						add_building_construction = {
							type = arms_factory
							level = 1
							instant_build = yes
						}
						ROOT = {
							add_to_variable = {
								built_a_mil = 1
							}
						}
					}
					3 = {
						add_building_construction = {
							type = infrastructure
							level = 1
							instant_build = yes
						}
						add_to_variable = {
							ROOT.is_literally_not_a_factory = 0.15
						}
						ROOT = {
							add_to_variable = {
								built_a_infra = 1
							}
						}
					}
					2 = {
						add_extra_state_shared_building_slots = 1
						add_to_variable = {
							ROOT.is_literally_not_a_factory = 0.1
						}
						ROOT = {
							add_to_variable = {
								added_slot = 1
							}
						}
					}
					2 = {
						add_extra_state_shared_building_slots = 1
						add_to_variable = {
							ROOT.is_literally_not_a_factory = 0.1
						}
						ROOT = {
							add_to_variable = {
								added_slot = 1
							}
						}
					}
					1 = {
						add_building_construction = {
							type = synthetic_refinery
							level = 1
							instant_build = yes
						}
						add_to_variable = {
							ROOT.is_literally_not_a_factory = 0.1
						}
						ROOT = {
							add_to_variable = {
								lian_youchang = 1
							}
						}
					}
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			activate_mission = SAU_shiyougongsi_jianzao
		}
	}
	SAU_gongye_zengjia_yiliao_touzi = {
		priority = 10
		icon = GFX_decision_generic_wreckers
		ai_will_do = {
			factor = 10
		}
		allowed = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_zengjia_yiliao_touzi
		}
		available = {
		}
		fire_only_once = yes
		cost = 30
		complete_effect = {
			custom_effect_tooltip = modify_SAU_diqu_nueji
			add_to_variable = {
				SAU_nueji_1 = 0.1
				tooltip = production_factory_efficiency_gain_factor_tt
			}
			add_to_variable = {
				SAU_nueji_2 = 0.1
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				SAU_nueji_3 = 0.1
				tooltip = conscription_factor_tt
			}
			add_to_variable = {
				SAU_nueji_4 = 0.05
				tooltip = production_factory_max_efficiency_factor_tt
			}
		}
		remove_effect = {
		}
	}
	SAU_gongye_qingli_nueji = {
		priority = 10
		icon = GFX_decisions_SAU_qingli_nueji
		ai_will_do = {
			factor = 10
		}
		allowed = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_qingli_nueji
		}
		available = {
		}
		fire_only_once = yes
		days_remove = 90
		cost = 50
		modifier = {
			political_power_factor = -0.15
		}
		complete_effect = {
		}
		remove_effect = {
			remove_dynamic_modifier = {
				modifier = SAU_diqu_nueji
			}
			add_timed_idea = {
				idea = qingli_nueji_dachenggong
				days = 60
			}
		}
	}
	SAU_shou_gou_shate_helan_yinhang = {
		priority = 10
		icon = GFX_decision_gre_investment_decisions
		ai_will_do = {
			factor = 10
		}
		allowed = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_guojia_yinhang
		}
		available = {
			has_completed_focus = Saudi_Arabia_gongye_guojia_yinhang
			has_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
		}
		fire_only_once = yes
		days_remove = 15
		cost = 30
		modifier = {
		}
		complete_effect = {
		}
		remove_effect = {
			if = {
				limit = {
					has_idea = shate_helan_yinhang
				}
				remove_ideas = shate_helan_yinhang
				add_ideas = shate_zhongyang_yinhang
			}
			set_country_flag = SAU_shou_gou_shate_helan_yinhang_flag
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = shate_zhongyang_yinhang
		}
	}
	SAU_goumai_amei_shiyou_gufen = {
		priority = 10
		ai_will_do = {
			factor = 10
		}
		allowed = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_amei_shiyou_tance
			has_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
		}
		available = {
			has_completed_focus = Saudi_Arabia_gongye_amei_shiyou_tance
			NOT = {
				check_variable = {
					var = SAU_shate_gufen
					value = 100
					compare = equals
				}
			}
			has_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
		}
		fire_only_once = no
		days_remove = 30
		custom_cost_trigger = {
			has_political_power > SAU_shougou_gufen_pp
		}
		custom_cost_text = SAU_sea_decision_cost_pp
		ai_hint_pp_cost = 300
		modifier = {
			political_power_factor = -0.1
		}
		complete_effect = {
			hidden_effect = {
				if = {
					limit = {
						NOT = {
							has_completed_focus = Saudi_Arabia_gongye_shate_amei_shiyougongsi
						}
					}
					add_political_power = -300
				}
				else_if = {
					limit = {
						has_completed_focus = Saudi_Arabia_gongye_shate_amei_shiyougongsi
					}
					add_political_power = -150
				}
			}
		}
		remove_effect = {
			add_to_variable = {
				var = SAU_shate_gufen
				value = 10
			}
			add_to_variable = {
				var = UAS_meifushiyou_gufen
				value = -10
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_1 = -0.05
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				SAU_shate_amei_2 = 0.1
				tooltip = political_power_factor_tt
			}
		}
	}
	SAU_shou_gou_amei_shiyou = {
		priority = 10
		icon = GFX_decision_generic_break_treaty
		ai_will_do = {
			factor = 10
		}
		allowed = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_amei_shiyou_tance
			has_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
			check_variable = {
				UAS_meifushiyou_gufen < 10
			}
		}
		available = {
			has_completed_focus = Saudi_Arabia_gongye_amei_shiyou_tance
			check_variable = {
				UAS_meifushiyou_gufen < 10
			}
			has_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
		}
		fire_only_once = yes
		cost = 30
		days_remove = 90
		modifier = {
			political_power_factor = -0.1
		}
		complete_effect = {
		}
		remove_effect = {
			remove_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = SAU_shate_amei_shiyougongsi
			hidden_effect = {
				set_country_flag = guoyouhua_amei_shiyou_flag
			}
			USA = {
				remove_resource_rights = 859
			}
		}
	}
	SAU_kuoda_shiyou_kaicai_fanwei = {
		priority = 10
		icon = GFX_decision_generic_factory
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_shiyou_two
		}
		available = {
		}
		fire_only_once = yes
		cost = 10
		days_remove = 14
		modifier = {
		}
		complete_effect = {
		}
		remove_effect = {
			custom_effect_tooltip = SAU_kuoda_shiyou_kaicai_fanwei_tt
			hidden_effect = {
				SAU = {
					random_list = {
						25 = {
							country_event = SAU_ameishiyou_kaicai.10
						}
						25 = {
							country_event = SAU_ameishiyou_kaicai.11
						}
						25 = {
							country_event = SAU_ameishiyou_kaicai.12
						}
						25 = {
							country_event = SAU_ameishiyou_kaicai.13
						}
						25 = {
							country_event = SAU_ameishiyou_kaicai.14
						}
						25 = {
							country_event = SAU_ameishiyou_kaicai.15
						}
						25 = {
							country_event = SAU_ameishiyou_kaicai.16
						}
						10 = {
							country_event = SAU_ameishiyou_kaicai.17
						}
					}
				}
			}
		}
	}
	SAU_gaizu_shate_amei = {
		priority = 10
		icon = GFX_decision_eng_trade_unions_support
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_shate_amei_shiyougongsi
		}
		available = {
			has_completed_focus = Saudi_Arabia_gongye_shate_amei_shiyougongsi
			has_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
		}
		fire_only_once = yes
		cost = 25
		days_remove = 14
		modifier = {
		}
		complete_effect = {
		}
		remove_effect = {
			if = {
				limit = {
					check_variable = {
						SAU_shate_gufen < 50
					}
				}
				set_variable = {
					SAU_shate_gufen = 50
				}
				set_variable = {
					UAS_meifushiyou_gufen = 50
				}
				custom_effect_tooltip = SAU_gaizu_shate_amei_tt
				custom_effect_tooltip = CHL_skip_one_line_tt
				custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
				add_to_variable = {
					SAU_shate_amei_1 = -0.25
					tooltip = consumer_goods_factor_tt
				}
				add_to_variable = {
					SAU_shate_amei_2 = 0.4
					tooltip = political_power_factor_tt
				}
			}
			else_if = {
				limit = {
					check_variable = {
						SAU_shate_gufen > 50
					}
				}
				add_to_variable = {
					var = SAU_shate_gufen
					value = 10
				}
				add_to_variable = {
					var = UAS_meifushiyou_gufen
					value = -10
				}
				custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
				add_to_variable = {
					SAU_shate_amei_1 = -0.05
					tooltip = consumer_goods_factor_tt
				}
				add_to_variable = {
					SAU_shate_amei_2 = 0.1
					tooltip = political_power_factor_tt
				}
			}
		}
	}
	SAU_guoyou_hua_shate_amei = {
		priority = 10
		icon = GFX_decision_eng_trade_unions_support
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_guoyouhua_gongye
			has_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
			NOT = {
				has_completed_focus = Saudi_Arabia_SOV_shiyou_hezuo
			}
		}
		available = {
		}
		fire_only_once = yes
		cost = 10
		days_remove = 30
		modifier = {
		}
		complete_effect = {
		}
		remove_effect = {
			set_variable = {
				SAU_shate_gufen = 100
			}
			set_variable = {
				UAS_meifushiyou_gufen = 0
			}
			every_country = {
				limit = {
					OR = {
						tag = ENG
						tag = USA
						is_in_faction_with = ENG
					}
					NOT = {
						has_war_with = ROOT
					}
					NOT = {
						is_subject_of = ROOT
					}
				}
				add_opinion_modifier = {
					target = SAU
					modifier = sanctions
				}
				country_event = {
					days = 1
					id = SAU_ameishiyou_kaicai.23
				}
				custom_effect_tooltip = tooltip_mexico_they_may_declare_war
			}
			remove_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = SAU_shate_amei_shiyougongsi
			hidden_effect = {
				set_country_flag = SAU_shate_amei_shiyougongsi_1_flag
			}
			USA = {
				remove_resource_rights = 859
			}
		}
	}
	SAU_xiujian_fan_alabo_youguan = {
		priority = 10
		icon = GFX_decision_generic_train
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_shate_amei_shiyougongsi
		}
		available = {
			has_full_control_of_state = 854
			has_full_control_of_state = 857
			has_full_control_of_state = 859
			has_full_control_of_state = 292
			has_full_control_of_state = 856
		}
		fire_only_once = yes
		cost = 40
		days_remove = 90
		modifier = {
			political_power_factor = -0.1
		}
		complete_effect = {
		}
		remove_effect = {
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_7 = 0.1
				tooltip = production_speed_infrastructure_factor_tt
			}
			add_to_variable = {
				SAU_shate_amei_8 = 0.15
				tooltip = production_speed_rail_way_factor_tt
			}
			build_railway = {
				path = {
					12702
					1955
					10850
					12749
					5058
					4974
					10815
					8101
				}
			}
			every_state = {
				limit = {
					OR = {
						state = 854
						state = 857
						state = 859
						state = 292
						state = 856
					}
					OR = {
						is_fully_controlled_by = ROOT
						controller = {
							is_subject_of = ROOT
							has_full_control_of_state = PREV
						}
					}
				}
				add_dynamic_modifier = {
					modifier = fan_alabo_youguan
					scope = SAU
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
	SAU_huangjin_touru_jichusheshi = {
		priority = 8
		icon = GFX_decision_generic_construction
		ai_will_do = {
			base = 50
		}
		allowed = {
			original_tag = SAU
		}
		available = {
			has_completed_focus = Saudi_Arabia_gongye_huangjin_touzi_chanye
			NOT = {
				has_country_flag = SAU_huangjin_touru_flag
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_huangjin_touzi_chanye
		}
		cost = 30
		complete_effect = {
			add_timed_idea = {
				idea = SAU_huangjin_touru_1
				days = 120
			}
			set_country_flag = {
				flag = SAU_huangjin_touru_flag
				days = 120
			}
		}
		remove_effect = {
		}
	}
	SAU_huangjin_touru_junshi = {
		priority = 7
		icon = GFX_decision_generic_welfare
		ai_will_do = {
			base = 50
		}
		allowed = {
			original_tag = SAU
		}
		available = {
			has_completed_focus = Saudi_Arabia_gongye_huangjin_touzi_chanye
			NOT = {
				has_country_flag = SAU_huangjin_touru_flag
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_huangjin_touzi_chanye
		}
		cost = 30
		complete_effect = {
			add_timed_idea = {
				idea = SAU_huangjin_touru_2
				days = 120
			}
			set_country_flag = {
				flag = SAU_huangjin_touru_flag
				days = 120
			}
		}
		remove_effect = {
		}
	}
	SAU_huangjin_touru_jianzhugongsi = {
		priority = 6
		icon = GFX_decision_hol_attract_foreign_investors
		ai_will_do = {
			base = 50
		}
		allowed = {
			original_tag = SAU
		}
		available = {
			has_completed_focus = Saudi_Arabia_gongye_huangjin_touzi_chanye
			NOT = {
				has_country_flag = SAU_huangjin_touru_flag
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_huangjin_touzi_chanye
		}
		cost = 30
		complete_effect = {
			add_timed_idea = {
				idea = SAU_huangjin_touru_3
				days = 120
			}
			set_country_flag = {
				flag = SAU_huangjin_touru_flag
				days = 120
			}
		}
		remove_effect = {
		}
	}
}

#################################################################################
#################################       卖石油      ##############################
#################################################################################
SAU_mai_shiyou_gei_guojia = {
	SAU_yingguo_ruqin_mission = {
		icon = GFX_decision_generic_tank
		priority = 100
		allowed = {
			original_tag = SAU
		}
		activation = {
			ENG = {
				has_opinion = {
					target = FROM
					value < -59
				}
			}
			GER = {
				has_opinion = {
					target = FROM
					value > 30
				}
			}
			is_in_faction = no
			has_completed_focus = Saudi_Arabia_gongye_congzhanzheng_huoli
			NOT = {
				has_government = communism
			}
			NOT = {
				has_war_with = ENG
			}
		}
		visible = {
			has_war_with = SAU
			ENG = {
				has_wargoal_against = ROOT
			}
		}
		cancel_trigger = {
			has_war_with = SAU
			ENG = {
				has_wargoal_against = ROOT
			}
		}
		available = {
			ENG = {
				has_opinion = {
					target = FROM
					value > -1
				}
			}
		}
		days_mission_timeout = 120		#60 at the start 
		is_good = no
		complete_effect = {
		}
		timeout_effect = {
			ENG = {
				create_wargoal = {
					target = SAU
					type = topple_government
				}
			}
			country_event = {
				id = SAU_mai_shiyou.4
			}
		}
	}
	SAU_xiang_deguo_chushoushiyou = {
		priority = 10
		icon = GFX_decision_oil
		ai_will_do = {
			factor = 10
		}
		target_trigger = {
			FROM = {
				is_major = yes
				NOT = {
					has_country_flag = SAU_xiang_deguo_chushoushiyou_1_flag
				}
			}
		}
		visible = {
			NOT = {
				has_country_flag = SAU_xiang_deguo_chushoushiyou_flag
			}
			NOT = {
				has_government = communism
			}
		}
		available = {
			FROM = {
				NOT = {
					has_war_with = ROOT
					has_country_flag = SAU_mai_shiyou_flag
					has_idea = SAU_shiyou_shomai
				}
			}
		}
		days_remove = 30
		fire_only_once = no
		cost = 20
		modifier = {
		}
		complete_effect = {
			set_country_flag = SAU_xiang_deguo_chushoushiyou_flag
		}
		remove_effect = {
			FROM = {
				country_event = SAU_mai_shiyou.1
			}
			clr_country_flag = SAU_xiang_deguo_chushoushiyou_flag
		}
	}
	SAU_sell_oil = {
		ai_will_do = {
			base = 25
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 25
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 50
				}
			}
			modifier = {
				factor = 0.5
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				factor = 2
				FROM = {
					is_major = yes
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
					tag = FROM
					ratio < 1
				}
			}
		}
		available = {
			859 = {
				is_fully_controlled_by = ROOT
			}
			is_subject = no
			NOT = {
				has_country_flag = SAU_offers_oil_flag
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_gongye_congzhanzheng_huoli
			NOT = {
				has_country_flag = SAU_sold_oil_flag
			}
			has_government = communism
		}
		targets = {
			GER
			ENG
			SOV
			FRA
			USA
			JAP
		}
		target_trigger = {
			FROM = {
				NOT = {
					has_war_with = ROOT
					has_country_flag = SAU_refused_oil_flag
				}
				is_subject = no
				has_capitulated = no
			}
		}
		fire_only_once = yes
		cost = 0
		complete_effect = {
			FROM = {
				country_event = {
					id = SAU_mai_shiyou.5
					days = 2
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				FROM = {
					give_guarantee = ROOT
				}
				ROOT = {
					give_resource_rights = {
						receiver = FROM
						state = 859
					}
				}
				add_offsite_building = {
					type = industrial_complex
					level = 5
				}
			}
			custom_effect_tooltip = PER_resource_rights_on_war_tt
			hidden_effect = {
				set_country_flag = SAU_offers_oil_flag
			}
		}
	}
}

SAU_goumai_shiyou = {
	woyao_mai_shiyou = {
		priority = 10
		icon = GFX_decision_oil
		ai_will_do = {
			factor = 10
		}
		allowed = {
		}
		visible = {
			#
		}
		available = {
		}
		fire_only_once = no
		days_remove = 90
		modifier = {
			political_power_factor = -0.1
			consumer_goods_factor = 0.05
		}
		complete_effect = {
			add_ideas = SAU_shiyou_goumai
			SAU = {
				add_offsite_building = {
					type = industrial_complex
					level = 1
				}
				add_ideas = SAU_shiyou_shomai
			}
			if = {
				limit = {
					FROM = {
						tag = GER
					}
				}
				GER = {
					add_opinion_modifier = {
						target = SAU
						modifier = SAU_xiaoshou_shiyou
					}
				}
			}
			if = {
				limit = {
					FROM = {
						tag = ITA
					}
				}
				ITA = {
					add_opinion_modifier = {
						target = SAU
						modifier = SAU_xiaoshou_shiyou
					}
				}
			}
			if = {
				limit = {
					FROM = {
						tag = JAP
					}
				}
				JAP = {
					add_opinion_modifier = {
						target = SAU
						modifier = SAU_xiaoshou_shiyou
					}
				}
			}
			if = {
				limit = {
					FROM = {
						tag = ENG
					}
				}
				ENG = {
					add_opinion_modifier = {
						target = SAU
						modifier = SAU_xiaoshou_shiyou
					}
				}
			}
			if = {
				limit = {
					FROM = {
						tag = FRA
					}
				}
				FRA = {
					add_opinion_modifier = {
						target = SAU
						modifier = SAU_xiaoshou_shiyou
					}
				}
			}
			if = {
				limit = {
					FROM = {
						tag = SOV
					}
				}
				SOV = {
					add_opinion_modifier = {
						target = SAU
						modifier = SAU_xiaoshou_shiyou
					}
				}
			}
			if = {
				limit = {
					FROM = {
						tag = USA
					}
				}
				USA = {
					add_opinion_modifier = {
						target = SAU
						modifier = SAU_xiaoshou_shiyou
					}
				}
			}
		}
		remove_effect = {
			remove_ideas = SAU_shiyou_goumai
			SAU = {
				add_offsite_building = {
					type = industrial_complex
					level = -1
				}
				remove_ideas = SAU_shiyou_shomai
			}
			clr_country_flag = FROM_zhunbei_goumai_shiyou_flag
		}
	}
}

#################################################################################
#################################       共产主义影响      ########################
#################################################################################
SAU_spreading_the_red_flame_cat = {
	SAU_kuilei_zhongdong_geguo = {
		icon = GFX_decision_eng_propaganda_campaigns
		priority = 8
		allowed = {
		}
		visible = {
		}
		available = {
		}
		cost = 25
		ai_will_do = {
			base = 5
		}
		fire_only_once = yes
		target_trigger = {
			NOT = {
				ROOT = {
					has_wargoal_against = FROM
				}
				ROOT = {
					has_war_with = FROM
				}
			}
			FROM = {
				THIS.capital_scope = {
					is_on_continent = middle_east
				}
				NOT = {
					tag = TUR
					tag = PER
				}
				is_major = no
				NOT = {
					has_government = communism
				}
				NOT = {
					has_government = fascism
				}
				has_civil_war = no
				NOT = {
					has_idea = SAU_communist_influence
				}
			}
		}
		complete_effect = {
			add_named_threat = {
				threat = 1
				name = zhuanzhu_zhonngdong_geming
			}
			FROM = {
				country_event = {
					id = SAU_neizhan_fankang.6
					hours = 12
				}
			}
		}
	}
	SAU_yaoqing_zhongdong_geguo = {
		icon = GFX_decision_eng_propaganda_campaigns
		priority = 8
		allowed = {
		}
		visible = {
		}
		available = {
			FROM = {
				is_subject = no
				has_idea = SAU_communist_influence
			}
			communism > 0.5
		}
		cost = 25
		ai_will_do = {
			base = 5
		}
		fire_only_once = yes
		target_trigger = {
			NOT = {
				ROOT = {
					has_wargoal_against = FROM
				}
				ROOT = {
					has_war_with = FROM
				}
			}
			FROM = {
				is_subject = no
				has_idea = SAU_communist_influence
			}
		}
		complete_effect = {
			FROM = {
				country_event = {
					id = SAU_neizhan_fankang.7
					hours = 12
				}
			}
		}
	}
	SAU_jianli_renmin_xiaqu_decision = {
		icon = GFX_decision_eng_trade_unions_support
		priority = 10
		allowed = {
			original_tag = SAU
		}
		visible = {
		}
		available = {
			is_subject = no
			num_subjects > 0
		}
		cost = 25
		days_remove = 20
		ai_will_do = {
			base = 3
		}
		fire_only_once = yes
		target_array = ROOT.subjects
		target_trigger = {
			FROM = {
				has_government = communism
				any_home_area_neighbor_country = {
					original_tag = SAU
				}
			}
		}
		complete_effect = {
		}
		remove_effect = {
			FROM = {
				country_event = {
					id = SAU_gongchan_shijian.7
					hours = 3
				}
			}
			event_option_tooltip = SAU_gongchan_shijian.7.a
		}
	}
	SAU_zaixiaqu_gongyehua_decision = {
		icon = GFX_decision_generic_construction
		priority = 9
		allowed = {
			original_tag = SAU
		}
		visible = {
			has_completed_focus = Saudi_Arabia_jiaqiang_jingji_hezuo
			NOT = {
				has_country_flag = SAU_muqian_zhengzai_gaijin_flag
			}
		}
		available = {
			num_of_civilian_factories_available_for_projects > 2
		}
		cost = 15
		modifier = {
			civilian_factory_use = 3
		}
		days_remove = 30
		fire_only_once = yes
		target_array = ROOT.subjects
		target_trigger = {
			FROM = {
				has_autonomy_state = autonomy_volkskommissariat
			}
		}
		complete_effect = {
			set_country_flag = SAU_muqian_zhengzai_gaijin_flag
		}
		remove_effect = {
			clr_country_flag = SAU_muqian_zhengzai_gaijin_flag
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = yes
					}
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
				}
				country_event = {
					id = wuw_GER_diplomacy.80
					hours = 6
				}
			}
		}
	}
}

SAU_chengli_alabo_renmigongheguo = {
	SAU_alabo_lianheguo_chengli = {
		priority = 10
		icon = GFX_decision_BOL_reintegrate_litoral_department
		ai_will_do = {
			factor = 10
		}
		visible = {
		}
		available = {
			JOR = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			PAL = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			SYR = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			LEB = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			IRQ = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			KUW = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			BHR = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			QAT = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			UAE = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			IMO = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			OMA = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			YEM = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 30
		cost = 30
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					NOT = {
						is_core_of = SAU
						is_core_of = TUR
						is_core_of = PER
						is_core_of = EGY
					}
					THIS.capital_scope = {
						is_on_continent = middle_east
					}
				}
				add_core_of = ROOT
			}
			set_cosmetic_tag = SAU_kangmi_qizhi
		}
	}
}

#################################################################################
#################################       宗教叛乱      ########################
#################################################################################
zongjiaoshili_panluan = {
	SAU_zongjiaoshili_panluan_mission = {
		icon = GFX_decision_generic_operation
		priority = 100
		allowed = {
			original_tag = SAU
		}
		activation = {
			has_country_flag = SAU_jiduanfenzifankang_flag
			#触发任务的条件
		}
		visible = {
			#中止任务的条件
			NOT = {
				has_full_control_of_state = 857
				has_full_control_of_state = 854
			}
		}
		cancel_trigger = {
			#取消触发器
			NOT = {
				has_full_control_of_state = 857
				has_full_control_of_state = 854
			}
		}
		available = {
			always = no
			#完成任务的条件
		}
		days_mission_timeout = 90
		is_good = no
		complete_effect = {
			#任务完成（满足上方available条件）的效果
		}
		timeout_effect = {
			#超时未完成任务的效果
			start_civil_war = {
				ruling_party = communism
				ideology = fascism
				size = party_popularity@fascism
				states = all
				keep_unit_leaders_trigger = {
					always = yes
				}
				states_filter = {
					has_state_flag = SAU_jiduanfenzi_fankang_flag
				}
			}
			clr_country_flag = SAU_jiduanfenzifankang_flag
		}
	}
}

#################################################################################
#################################       提供情报      ########################
#################################################################################
SAU_xiang_mengjun_tigong_qingbao = {
	SAU_tigong_qingbao_zhichi = {
		icon = GFX_decision_SWI_expand_covert_operations
		allowed = {
			original_tag = SAU
		}
		target_trigger = {
			FROM = {
				OR = {
					AND = {
						has_government = democratic
						is_in_faction_with = ENG
						is_subject = no
						NOT = {
							is_in_faction_with = ROOT
							has_idea = SWI_intel_support_idea
						}
					}
					AND = {
						has_government = democratic
						is_subject = no
						is_major = yes
						NOT = {
							is_in_faction_with = ROOT
							has_idea = SWI_intel_support_idea
						}
					}
				}
			}
		}
		visible = {
		}
		target_root_trigger = {
		}
		available = {
			has_intelligence_agency = yes
		}
		cost = 50
		complete_effect = {
			add_timed_idea = {
				idea = SWI_intel_support_idea
				days = 90
			}
			FROM = {
				add_timed_idea = {
					idea = SWI_intel_support_idea
					days = 90
				}
				add_opinion_modifier = {
					target = ROOT
					modifier = SWI_supporting_intelligence
				}
			}
		}
		ai_will_do = {
			base = 100
			modifier = {
				add = 70
				FROM = {
					has_government = ROOT
				}
			}
		}
	}
}

#################################################################################
#################################       暗杀伊本沙特      ########################
#################################################################################
SAU_cisha_yiben_shate = {
	SAU_yihewan_quandao = {
		priority = 10
		icon = GFX_decision_generic_brainwash
		ai_will_do = {
			base = 0.1
		}
		allowed = {
		}
		available = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_lianluo_yihewan_jiubu
		}
		fire_only_once = yes
		cost = 20
		days_remove = 30
		modifier = {
			political_power_gain = -0.15
			command_power_gain = -0.15
		}
		remove_effect = {
			set_country_flag = SAU_yihewan_quandao_flag
		}
	}
	SAU_jianli_cisha_xiaozu = {
		priority = 9
		icon = GFX_decision_hol_attract_foreign_investors
		ai_will_do = {
			base = 0.1
		}
		allowed = {
		}
		available = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_anzhong_mimou_faxisixian
		}
		fire_only_once = yes
		cost = 50
		days_remove = 30
		modifier = {
			political_power_gain = -0.5
		}
		remove_effect = {
			set_country_flag = SAU_jianli_cisha_xiaozu_flag
		}
	}
	SAU_zhiding_shijun_jihua = {
		priority = 8
		icon = GFX_decision_generic_operation
		ai_will_do = {
			base = 0.1
		}
		allowed = {
		}
		available = {
		}
		visible = {
			has_country_flag = SAU_yihewan_quandao_flag
			has_country_flag = SAU_jianli_cisha_xiaozu_flag
		}
		fire_only_once = yes
		cost = 15
		days_remove = 15
		modifier = {
			political_power_gain = -0.15
		}
		remove_effect = {
			set_country_flag = SAU_zhiding_shijun_jihua_flag
		}
	}
}

SAU_alabodiguo_jingong_celue = {
	SAU_meisuobudamiya_zhanlue_decisions = {
		priority = 10
		icon = GFX_decision_generic_form_nation
		ai_will_do = {
			factor = 10
		}
		target_trigger = {
			FROM = {
				OR = {
					tag = PAL
					tag = IRQ
					tag = JOR
					tag = FRA
				}
				NOT = {
					has_capitulated = yes
					is_subject_of = SAU
				}
				OWNER = {
					is_neighbor_of = ROOT					#是邻居
				}
			}
		}
		visible = {
			has_civil_war = no
			has_completed_focus = Saudi_Arabia_meisuobudamiya_zhanlue
		}
		custom_cost_trigger = {
			command_power > 9.9
		}
		custom_cost_text = SAU_yihewan_lueduo_zhouwei_cost_cangaceiro
		available = {
			NOT = {
				has_country_flag = zhengzai_jihade_flag
			}
		}
		fire_only_once = yes
		days_remove = 10
		complete_effect = {
			add_command_power = -10
			set_variable = {
				SAU.SAU_diguo_jingshen_zhiding = FROM
			}
			set_country_flag = {
				flag = zhengzai_jihade_flag
				value = 1
				days = 70
			}
		}
		remove_effect = {
			add_timed_idea = {
				idea = SAU_alabo_meisuobudamiya_ideas
				days = 60
			}
		}
	}
	SAU_kuayue_haixia_decisions = {
		priority = 10
		icon = GFX_decision_generic_form_nation
		ai_will_do = {
			factor = 10
		}
		target_trigger = {
			FROM = {
				OR = {
					tag = PER
					tag = EGY
					tag = TUR
					tag = ITA
					tag = SPR
					tag = SPA
				}
				NOT = {
					has_capitulated = yes
					is_subject_of = SAU
				}
				OWNER = {
					is_neighbor_of = ROOT					#是邻居
				}
			}
		}
		visible = {
			has_civil_war = no
			has_completed_focus = Saudi_Arabia_alabo_kuayue_haixia
		}
		custom_cost_trigger = {
			command_power > 9.9
		}
		custom_cost_text = SAU_yihewan_lueduo_zhouwei_cost_cangaceiro
		available = {
			NOT = {
				has_country_flag = zhengzai_jihade_flag
			}
		}
		fire_only_once = yes
		days_remove = 10
		complete_effect = {
			add_command_power = -10
			set_variable = {
				SAU.SAU_diguo_jingshen_zhiding = FROM
			}
			set_country_flag = {
				flag = zhengzai_jihade_flag
				value = 1
				days = 70
			}
		}
		remove_effect = {
			add_timed_idea = {
				idea = SAU_alabo_kuayue_haixia_ideas
				days = 60
			}
		}
	}
	SAU_jinru_zhongya_decisions = {
		priority = 10
		icon = GFX_decision_generic_form_nation
		ai_will_do = {
			factor = 10
		}
		target_trigger = {
			FROM = {
				OR = {
					tag = AFG
					tag = SOV
					tag = RAJ
					tag = SIK
				}
				NOT = {
					has_capitulated = yes
					is_subject_of = SAU
				}
				OWNER = {
					is_neighbor_of = ROOT					#是邻居
				}
			}
		}
		visible = {
			has_civil_war = no
			has_completed_focus = Saudi_Arabia_alabo_jinru_zhongya
		}
		custom_cost_trigger = {
			command_power > 9.9
		}
		custom_cost_text = SAU_yihewan_lueduo_zhouwei_cost_cangaceiro
		available = {
			NOT = {
				has_country_flag = zhengzai_jihade_flag
			}
		}
		fire_only_once = yes
		days_remove = 10
		complete_effect = {
			add_command_power = -10
			set_variable = {
				SAU.SAU_diguo_jingshen_zhiding = FROM
			}
			set_country_flag = {
				flag = zhengzai_jihade_flag
				value = 1
				days = 70
			}
		}
		remove_effect = {
			add_timed_idea = {
				idea = SAU_alabo_jinru_zhongya_ideas
				days = 60
			}
		}
	}
}

#################################################################################
#################################       宣称奥斯曼      ########################
#################################################################################
SAU_dusaiwaer_yishi_qiuai_jice = {
	SAU_xuancheng_aosiman = {
		icon = GFX_decision_tur_unifying_the_country_category
		priority = 10
		ai_will_do = {
			base = 0
		}
		allowed = {
		}
		available = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_laxide_xuancheng_aosiman
			NOT = {
				has_country_flag = SAU_yindu_guoshifangwen_flag
			}
		}
		fire_only_once = yes
		cost = 20
		complete_effect = {
			country_event = SAU_xuancheng_aosiman.14
			set_country_flag = SAU_xuancheng_aosiman_flag
			custom_effect_tooltip = CHL_skip_one_line_tt
			custom_effect_tooltip = SAU_xuancheng_aosiman_tt
			custom_effect_tooltip = CHL_skip_one_line_tt
			custom_effect_tooltip = SAU_xuancheng_aosiman_1_tt
		}
	}
	SAU_yindu_guoshifangwen = {
		priority = 10
		icon = GFX_decision_eng_ally_imperialist_coup
		ai_will_do = {
			base = 5
		}
		allowed = {
		}
		available = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_laxide_xuancheng_aosiman
			NOT = {
				has_country_flag = SAU_xuancheng_aosiman_flag
			}
		}
		fire_only_once = yes
		cost = 40
		complete_effect = {
			set_country_flag = SAU_yindu_guoshifangwen_flag
			RAJ = {
				add_opinion_modifier = {
					target = SAU
					modifier = small_increase
				}
			}
			unlock_decision_tooltip = SAU_kaishi_zhuiqiu_gongzhu
			custom_effect_tooltip = CHL_skip_one_line_tt
			custom_effect_tooltip = SAU_yindu_guoshifangwen_tt
		}
	}
	SAU_kaishi_zhuiqiu_gongzhu = {
		priority = 10
		icon = GFX_decisions_SAU_qingli_qiuai
		ai_will_do = {
			factor = 10
		}
		allowed = {
		}
		visible = {
			has_country_flag = SAU_yindu_guoshifangwen_flag
			NOT = {
				has_country_flag = SAU_xuancheng_aosiman_flag
			}
		}
		available = {
		}
		cost = 5
		fire_only_once = yes
		complete_effect = {
			custom_effect_tooltip = SAU_kaishi_zhuiqiu_gongzhu_tt
			country_event = SAU_xuancheng_aosiman.1
			set_country_flag = SAU_kaishi_zhuiqiu_gongzhu_flag
		}
	}
	SAU_kaishi_zhuiqiu_gongzhu_mission = {
		icon = GFX_decisions_SAU_qingli_qiuai
		activation = {
			#触发任务的条件
			has_country_flag = SAU_kaishi_zhuiqiu_gongzhu_flag
		}
		available = {
			#完成任务的条件
			has_country_flag = SAU_yingqu_dulusaiwaer_flag
		}
		visible = {
			always = no
			#中止任务的条件
		}
		is_good = yes
		days_mission_timeout = 365
		timeout_effect = {
			#超时未完成任务的效果      
		}
		complete_effect = {
			#任务完成 
			clr_country_flag = SAU_kaishi_zhuiqiu_gongzhu_flag
			unlock_decision_tooltip = SAU_jiechumaijide_ershi
			set_country_flag = SAU_kaishi_zhuiqiu_gongzhu_mission_flag
		}
	}
	SAU_jiechumaijide_ershi = {
		priority = 10
		icon = GFX_decision_generic_political_discourse
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_country_flag = SAU_kaishi_zhuiqiu_gongzhu_mission_flag
		}
		available = {
		}
		cost = 20
		fire_only_once = yes
		complete_effect = {
			country_event = SAU_xuancheng_aosiman.12
		}
		remove_effect = {
		}
	}
	SAU_JOR_bianjing_chongtu = {
		icon = GFX_decision_border_war
		available = {
			NOT = {
				has_war_with = ENG
			}
			has_civil_war = no
			is_subject = no
			any_state = {
				state = 455
				CONTROLLER = {
					NOT = {
						has_war_with = ROOT
					}
				}
				any_neighbor_state = {
					CONTROLLER = {
						OR = {
							tag = ROOT
							is_in_faction_with = ROOT
						}
					}
				}
			}
		}
		visible = {
			has_completed_focus = Saudi_Arabia_laxide_shengsuo_yuedan
		}
		complete_effect = {
			random_state = {
				#find a neighbouring state of Syria that is controlled by an ally or ourselves
				limit = {
					state = 455
					not = {
						is_controlled_by = ROOT
					}
					CONTROLLER = {
						NOT = {
							has_war_with = ROOT
						}
					}
					any_neighbor_state = {
						CONTROLLER = {
							OR = {
								tag = ROOT
								is_in_faction_with = ROOT
							}
						}
					}
				}
				save_event_target_as = SAU_defender_state
				random_neighbor_state = {
					limit = {
						CONTROLLER = {
							OR = {
								tag = ROOT
								is_in_faction_with = ROOT
							}
						}
					}
					save_event_target_as = SAU_attacker_state
				}
			}
			event_target:SAU_attacker_state = {
				CONTROLLER = {
					division_template = {
						name = "Rashid Elite Division"
						division_names_group = SAU_INF_01
						is_locked = yes
						regiments = {
							infantry = {
								x = 0
								y = 0
							}
							infantry = {
								x = 0
								y = 1
							}
							infantry = {
								x = 0
								y = 2
							}
							infantry = {
								x = 1
								y = 0
							}
							infantry = {
								x = 1
								y = 1
							}
							infantry = {
								x = 1
								y = 2
							}
							infantry = {
								x = 2
								y = 0
							}
						}
						support = {
							engineer = {
								x = 0
								y = 0
							}
							artillery = {
								x = 0
								y = 1
							}
						}
					}
					event_target:SAU_attacker_state = {
						#set up attacker unit(s)
						create_unit = {
							division = "name = \"1st Rashid Elite Division\" division_template = \"Rashid Elite Division\" start_experience_factor = 0.1"
							owner = PREV
						}
						create_unit = {
							division = "name = \"2st Rashid Elite Division\" division_template = \"Rashid Elite Division\" start_experience_factor = 0.1"
							owner = PREV
						}
						create_unit = {
							division = "name = \"3st Rashid Elite Division\" division_template = \"Rashid Elite Division\" start_experience_factor = 0.1"
							owner = PREV
						}
					}
				}
			}
			event_target:SAU_defender_state = {
				#set up defender unit(s)
				CONTROLLER = {
					division_template = {
						name = "Jordanian Colonial Regiment"
						division_names_group = BRENGL_GAR_01
						is_locked = yes
						regiments = {
							irregular_infantry = {
								x = 0
								y = 0
							}
							irregular_infantry = {
								x = 0
								y = 1
							}
							irregular_infantry = {
								x = 0
								y = 2
							}
							irregular_infantry = {
								x = 1
								y = 0
							}
							irregular_infantry = {
								x = 1
								y = 1
							}
						}
					}
					event_target:SAU_defender_state = {
						#set up defenders
						create_unit = {
							division = "name = \"1st Jordanian Colonial Regiment\" division_template = \"Jordanian Colonial Regiment\" start_experience_factor = 0.1  start_equipment_factor = 0.4"
							owner = PREV
						}
					}
				}
			}
			event_target:SAU_attacker_state = {
				CONTROLLER = {
					start_border_war = {
						change_state_after_war = no
						attacker = {
							state = event_target:SAU_attacker_state
							num_provinces = 4
							on_win = SAU_xuancheng_aosiman.17
							on_lose = SAU_xuancheng_aosiman.18
							on_cancel = SAU_xuancheng_aosiman.19
						}
						defender = {
							state = event_target:SAU_defender_state
							num_provinces = 4
							on_win = SAU_xuancheng_aosiman.19
							on_lose = SAU_xuancheng_aosiman.18
							on_cancel = SAU_xuancheng_aosiman.17
						}
					}
				}
			}
		}
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			factor = 5
		}
	}
	SAU_mohanmode_jihua_decisions = {
		priority = 10
		icon = GFX_decisions_SAU_mohanmode_jihua
		ai_will_do = {
			factor = 10
		}
		target_trigger = {
			FROM = {
				OR = {
					tag = TUR
					tag = GRE
					tag = BUL
					tag = YUG
				}
				NOT = {
					has_capitulated = yes
					is_subject_of = SAU
				}
				OWNER = {
					is_neighbor_of = ROOT					#是邻居
				}
			}
		}
		visible = {
			has_civil_war = no
			has_completed_focus = Saudi_Arabia_laxide_muhanmode_jihua
		}
		cost = 20
		custom_cost_trigger = {
			command_power > 9.9
		}
		custom_cost_text = SAU_yihewan_lueduo_zhouwei_cost_cangaceiro
		available = {
			NOT = {
				has_country_flag = zhengzai_jihade_flag
			}
		}
		fire_only_once = yes
		days_remove = 10
		complete_effect = {
			add_command_power = -10
			set_variable = {
				SAU.SAU_diguo_jingshen_zhiding = FROM
			}
			set_country_flag = {
				flag = zhengzai_jihade_flag
				value = 1
				days = 70
			}
		}
		remove_effect = {
			add_timed_idea = {
				idea = SAU_mohanmode_jihua_idea
				days = 60
			}
		}
	}
	SAU_sailemu_jihua_decisions = {
		priority = 10
		icon = GFX_decisions_SAU_sailemu_jihua
		ai_will_do = {
			factor = 10
		}
		target_trigger = {
			FROM = {
				OR = {
					tag = PAL
					tag = EGY
					tag = ROM
				}
				NOT = {
					has_capitulated = yes
					is_subject_of = SAU
				}
				OWNER = {
					is_neighbor_of = ROOT					#是邻居
				}
			}
		}
		visible = {
			has_civil_war = no
			has_completed_focus = Saudi_Arabia_laxide_sailimu_jihua
		}
		custom_cost_text = SAU_yihewan_lueduo_zhouwei_cost_cangaceiro
		available = {
			NOT = {
				has_country_flag = zhengzai_jihade_flag
			}
		}
		fire_only_once = yes
		days_remove = 10
		complete_effect = {
			add_command_power = -10
			set_variable = {
				SAU.SAU_diguo_jingshen_zhiding = FROM
			}
			set_country_flag = {
				flag = zhengzai_jihade_flag
				value = 1
				days = 70
			}
		}
		remove_effect = {
			add_timed_idea = {
				idea = SAU_sailemu_jihua_idea
				days = 60
			}
		}
	}
	SAU_sulaiman_jihua_decisions = {
		priority = 10
		icon = GFX_decisions_SAU_sulaiman_jihua
		ai_will_do = {
			factor = 10
		}
		target_trigger = {
			FROM = {
				OR = {
					tag = YEM
					tag = HUN
					tag = ROM
					tag = AUS
					tag = FRA
					tag = ITA
				}
				NOT = {
					has_capitulated = yes
					is_subject_of = SAU
				}
				OWNER = {
					is_neighbor_of = ROOT					#是邻居
				}
			}
		}
		visible = {
			has_civil_war = no
			has_completed_focus = Saudi_Arabia_laxide_sulaiman_jhua
		}
		custom_cost_text = SAU_yihewan_lueduo_zhouwei_cost_cangaceiro
		available = {
			NOT = {
				has_country_flag = zhengzai_jihade_flag
			}
		}
		fire_only_once = yes
		days_remove = 10
		complete_effect = {
			add_command_power = -10
			set_variable = {
				SAU.SAU_diguo_jingshen_zhiding = FROM
			}
			set_country_flag = {
				flag = zhengzai_jihade_flag
				value = 1
				days = 70
			}
		}
		remove_effect = {
			add_timed_idea = {
				idea = SAU_sulaiman_jihua_idea
				days = 60
			}
		}
	}
	SAU_gongru_yisitanbuer = {
		icon = GFX_decision_eng_puppet_usa
		priority = 100
		allowed = {
			original_tag = SAU
		}
		activation = {
			has_country_flag = SAU_xunuo_aosiman_flag
			#触发任务的条件
		}
		visible = {
			#中止任务的条件
			always = no
		}
		cancel_trigger = {
			#取消触发器
			always = no
		}
		available = {
			797 = {
				OR = {
					is_fully_controlled_by = ROOT
					controller = {
						is_subject_of = ROOT
						has_full_control_of_state = PREV
					}
				}
			}
			#完成任务的条件
		}
		days_mission_timeout = 1800
		is_good = no
		complete_effect = {
			#任务完成（满足上方available条件）的效果
			add_stability = 0.1			#添加稳定度
			add_war_support = 0.15			#添加战争支持度
			add_political_power = 75			#添加政治点数
			army_experience = 30			#陆军经验
			navy_experience = 30			#海军经验
			air_experience = 30			#空军经验
			hidden_effect = {
				play_song = "Saudi_Arabia_11"
				clr_country_flag = SAU_xunuo_aosiman_flag
				set_country_flag = SAU_tunbing_aosiman_flag
			}
		}
		timeout_effect = {
			#超时未完成任务的效果
			add_stability = -0.3			#添加稳定度
			add_war_support = -0.5			#添加战争支持度
			clr_country_flag = SAU_xunuo_aosiman_flag
		}
	}
	SAU_huigui_yisitanbuer_decisions = {
		priority = 10
		icon = GFX_decision_eng_propaganda_campaigns
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_country_flag = SAU_tunbing_aosiman_flag
			797 = {
				OR = {
					is_fully_controlled_by = ROOT
					controller = {
						is_subject_of = ROOT
						has_full_control_of_state = PREV
					}
				}
			}
			TUR = {
				is_subject_of = SAU
				has_civil_war = no
			}
			has_completed_focus = Saudi_Arabia_laxide_shengsuofeiya_de_qiongding
		}
		cost = 20
		available = {
		}
		fire_only_once = yes
		complete_effect = {
			annex_country = {
				target = TUR
				transfer_troops = yes
			}
			hidden_effect = {
				TUR = {
					if = {
						limit = {
							has_character = TUR_ahmet_fevzi_pasha
						}
						remove_advisor_role = {
							character = TUR_ahmet_fevzi_pasha
						}
						add_advisor_role = {
							character = TUR_ahmet_fevzi_pasha
							advisor = {
								slot = army_chief
								cost = 100
								idea_token = TUR_ahmet_fevzi_pasha_sau
								traits = {
									army_chief_planning_2
								}
							}
						}
						TUR_ahmet_fevzi_pasha = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_refet_pasha
						}
						remove_advisor_role = {
							character = TUR_refet_pasha
						}
						add_advisor_role = {
							character = TUR_refet_pasha
							advisor = {
								slot = high_command
								cost = 100
								idea_token = TUR_refet_pasha_sau
								traits = {
									army_regrouping_2
								}
							}
						}
						TUR_refet_pasha = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_mehmet_esat_pasha
						}
						remove_advisor_role = {
							character = TUR_mehmet_esat_pasha
						}
						add_advisor_role = {
							character = TUR_mehmet_esat_pasha
							advisor = {
								slot = army_chief
								cost = 100
								idea_token = TUR_mehmet_esat_pasha_sau
								traits = {
									army_chief_drill_2
								}
							}
						}
						TUR_mehmet_esat_pasha = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_abdurrahman_gurman
						}
						remove_advisor_role = {
							character = TUR_abdurrahman_gurman
							slot = army
						}
						add_advisor_role = {
							character = TUR_abdurrahman_gurman
							advisor = {
								slot = army
								cost = 100
								idea_token = TUR_abdurrahman_gurman_sau
								traits = {
									army_armored_2
								}
							}
						}
						TUR_abdurrahman_gurman = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_hayrullah_fisek
						}
						remove_advisor_role = {
							character = TUR_hayrullah_fisek
						}
						add_advisor_role = {
							character = TUR_hayrullah_fisek
						}
						TUR_hayrullah_fisek = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_mustafa_muglali
						}
						remove_advisor_role = {
							character = TUR_mustafa_muglali
						}
						add_advisor_role = {
							character = TUR_mustafa_muglali
						}
						TUR_mustafa_muglali = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_mehmet_nuri_yamut
						}
						remove_advisor_role = {
							character = TUR_mehmet_nuri_yamut
						}
						add_advisor_role = {
							character = TUR_mehmet_nuri_yamut
						}
						TUR_mehmet_nuri_yamut = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_kazim_karabekir
						}
						remove_advisor_role = {
							character = TUR_kazim_karabekir
							slot = theorist
						}
						add_advisor_role = {
							character = TUR_kazim_karabekir
							advisor = {
								slot = theorist
								ledger = army
								cost = 100
								idea_token = TUR_kazim_karabekir_sau
								traits = {
									grand_battle_plan_expert
								}
							}
						}
						TUR_kazim_karabekir = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_fevzi_cakmak
						}
						remove_advisor_role = {
							character = TUR_fevzi_cakmak
							slot = army_chief
						}
						add_advisor_role = {
							character = TUR_fevzi_cakmak
							advisor = {
								slot = army_chief
								cost = 100
								idea_token = TUR_fevzi_cakmak_sau
								traits = {
									army_chief_defensive_2
								}
							}
						}
						TUR_fevzi_cakmak = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_mehmet_ali_ulgen
						}
						remove_advisor_role = {
							character = TUR_mehmet_ali_ulgen
							slot = navy_chief
						}
						add_advisor_role = {
							character = TUR_mehmet_ali_ulgen
							advisor = {
								slot = navy_chief
								cost = 100
								idea_token = TUR_mehmet_ali_ulgen_sau
								traits = {
									navy_chief_decisive_battle_2
								}
							}
						}
						TUR_mehmet_ali_ulgen = {
							set_nationality = SAU
						}
					}
					if = {
						limit = {
							has_character = TUR_sadik_altincan
						}
						remove_advisor_role = {
							character = TUR_sadik_altincan
							slot = high_command
						}
						add_advisor_role = {
							character = TUR_sadik_altincan
							advisor = {
								slot = high_command
								ledger = navy
								cost = 100
								idea_token = TUR_sadik_altincan_sau
								traits = {
									navy_screen_2
								}
							}
						}
						TUR_mehmet_ali_ulgen = {
							set_nationality = SAU
						}
					}
				}
			}
			custom_effect_tooltip = TUR_ottoman_officers_invited_back
			every_state = {
				limit = {
					is_core_of = TUR
				}
				add_core_of = ROOT
			}
			set_capital = {
				state = 797
			}
		}
	}
	SAU_zhenghe_kuerde = {
		priority = 10
		icon = GFX_decision_eng_propaganda_campaigns
		ai_will_do = {
			factor = 10
		}
		visible = {
			KUR = {
				is_subject_of = SAU
				has_capitulated = no
			}
			has_completed_focus = Saudi_Arabia_laxide_muhanmude_de_yichan
		}
		cost = 20
		days_remove = 120
		available = {
			has_capitulated = no
		}
		modifier = {
			consumer_goods_factor = 0.05
			political_power_factor = -0.1
		}
		fire_only_once = yes
		complete_effect = {
			annex_country = {
				target = KUR
				transfer_troops = yes
			}
			every_state = {
				limit = {
					is_core_of = KUR
				}
				add_core_of = ROOT
			}
		}
	}
	SAU_zhenghe_baojialiya = {
		priority = 10
		icon = GFX_decision_eng_propaganda_campaigns
		ai_will_do = {
			factor = 10
		}
		visible = {
			BUL = {
				is_subject_of = SAU
				has_capitulated = no
			}
			has_completed_focus = Saudi_Arabia_laxide_muhanmude_de_yichan
		}
		cost = 20
		days_remove = 120
		available = {
			has_capitulated = no
		}
		modifier = {
			consumer_goods_factor = 0.05
			political_power_factor = -0.1
		}
		fire_only_once = yes
		complete_effect = {
			annex_country = {
				target = BUL
				transfer_troops = yes
			}
			every_state = {
				limit = {
					is_core_of = BUL
				}
				add_core_of = ROOT
			}
		}
	}
}

SAU_form_roman_empire_category = {
	SAU_aosiman_luoma_diguo = {
		icon = generic_form_nation
		allowed = {
			original_tag = SAU
		}
		available = {
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = form_country_albania_required_states_tt
				# Albania
				controls_state = 44
				controls_state = 934
				controls_state = 805
			}
			# Yugoslavia
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_required_states_tt
				controls_state = 163
				controls_state = 853
				controls_state = 103
				controls_state = 104
				controls_state = 804
				controls_state = 105
			}
			# Greece
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_greece_required_states_tt
				controls_state = 185
				controls_state = 731
				controls_state = 47
				controls_state = 186
				controls_state = 184
				controls_state = 187
				controls_state = 182
				controls_state = 164				#DODECANESE initially controlled by Italy
			}
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_turkey_required_states_tt
				controls_state = 341
				controls_state = 797
				controls_state = 340
				controls_state = 339
				controls_state = 342
				controls_state = 345
				controls_state = 344
				if = {
					# HATAY will most likely be handed over from FRA to TUR, this hopefully prevents some confusion
					limit = {
						799 = {
							is_controlled_by = TUR
						}
					}
					controls_state = 799
				}
			}
			# Italy
			custom_trigger_tooltip = {
				tooltip = form_spqr_italy_required_states_tt
				controls_state = 158
				controls_state = 162
				controls_state = 114
				controls_state = 2
				controls_state = 117
				controls_state = 156
				controls_state = 115
				controls_state = 849
				controls_state = 157
				controls_state = 161
				controls_state = 160
				controls_state = 736
				controls_state = 852
				controls_state = 39
				controls_state = 850
				controls_state = 849
				controls_state = 852
				controls_state = 159
			}
			# Spain
			custom_trigger_tooltip = {
				tooltip = form_spqr_coastal_spain_required_states_tt
				controls_state = 165
				controls_state = 177
				controls_state = 167
				controls_state = 168
				controls_state = 173
			}
			# France
			custom_trigger_tooltip = {
				tooltip = form_spqr_coastal_france_required_states_tt
				controls_state = 1
				controls_state = 735
				controls_state = 851
				controls_state = 21
				controls_state = 22
				controls_state = 31
			}
			# British Mediterranean
			custom_trigger_tooltip = {
				tooltip = form_mare_nostrum_coastal_uk_required_states_tt
				controls_state = 118
				controls_state = 116
				controls_state = 183
			}
			# North Africa (Morocco to Libya)
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_north_africa_required_states_tt
				#Morocco
				controls_state = 290
				controls_state = 461
				#Algeria
				controls_state = 459
				controls_state = 460
				#Tunisia
				controls_state = 458
				controls_state = 665
				#Libya
				controls_state = 448
				controls_state = 449
				controls_state = 450
				controls_state = 451
				controls_state = 661
				controls_state = 662
				controls_state = 663
			}
			# Middle East (Egypt to Syria)
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_middle_east_required_states_tt
				#Egypt
				controls_state = 452
				controls_state = 447
				controls_state = 907
				controls_state = 446
				controls_state = 453
				#Palestine
				controls_state = 454
				#Lebanon
				controls_state = 553
				#Syria
				controls_state = 677
				if = {
					# HATAY will most likely be handed over from FRA to TUR, this hopefully prevents some confusion
					limit = {
						799 = {
							NOT = {
								is_controlled_by = TUR
							}
						}
					}
					controls_state = 799
				}
			}
		}
		visible = {
			original_tag = SAU
		}
		fire_only_once = yes
		complete_effect = {
			set_cosmetic_tag = SAU_SPQR_UNIFIED_fascism
			custom_effect_tooltip = form_spqr_core_mare_nostrum_states_tt
			hidden_effect = {
				1 = {
					add_core_of = ROOT
				}
				735 = {
					add_core_of = ROOT
				}
				851 = {
					add_core_of = ROOT
				}
				21 = {
					add_core_of = ROOT
				}
				22 = {
					add_core_of = ROOT
				}
				31 = {
					add_core_of = ROOT
				}
				165 = {
					add_core_of = ROOT
				}
				177 = {
					add_core_of = ROOT
				}
				167 = {
					add_core_of = ROOT
				}
				168 = {
					add_core_of = ROOT
				}
				173 = {
					add_core_of = ROOT
				}
				118 = {
					add_core_of = ROOT
				}
				290 = {
					add_core_of = ROOT
				}
				461 = {
					add_core_of = ROOT
				}
				459 = {
					add_core_of = ROOT
				}
				460 = {
					add_core_of = ROOT
				}
				116 = {
					add_core_of = ROOT
				}
				458 = {
					add_core_of = ROOT
				}
				665 = {
					add_core_of = ROOT
				}
				448 = {
					add_core_of = ROOT
				}
				661 = {
					add_core_of = ROOT
				}
				273 = {
					add_core_of = ROOT
				}
				662 = {
					add_core_of = ROOT
				}
				449 = {
					add_core_of = ROOT
				}
				450 = {
					add_core_of = ROOT
				}
				663 = {
					add_core_of = ROOT
				}
				451 = {
					add_core_of = ROOT
				}
				452 = {
					add_core_of = ROOT
				}
				447 = {
					add_core_of = ROOT
				}
				907 = {
					add_core_of = ROOT
				}
				446 = {
					add_core_of = ROOT
				}
				453 = {
					add_core_of = ROOT
				}
				454 = {
					add_core_of = ROOT
				}
				553 = {
					add_core_of = ROOT
				}
				183 = {
					add_core_of = ROOT
				}
				677 = {
					add_core_of = ROOT
				}
				799 = {
					add_core_of = ROOT
				}
				344 = {
					add_core_of = ROOT
				}
				345 = {
					add_core_of = ROOT
				}
				342 = {
					add_core_of = ROOT
				}
				164 = {
					add_core_of = ROOT
				}
				182 = {
					add_core_of = ROOT
				}
				339 = {
					add_core_of = ROOT
				}
				187 = {
					add_core_of = ROOT
				}
				340 = {
					add_core_of = ROOT
				}
				797 = {
					add_core_of = ROOT
				}
				341 = {
					add_core_of = ROOT
				}
				184 = {
					add_core_of = ROOT
				}
				731 = {
					add_core_of = ROOT
				}
				47 = {
					add_core_of = ROOT
				}
				186 = {
					add_core_of = ROOT
				}
				185 = {
					add_core_of = ROOT
				}
				805 = {
					add_core_of = ROOT
				}
				44 = {
					add_core_of = ROOT
				}
				934 = {
					add_core_of = ROOT
				}
				105 = {
					add_core_of = ROOT
				}
				103 = {
					add_core_of = ROOT
				}
				163 = {
					add_core_of = ROOT
				}
				804 = {
					add_core_of = ROOT
				}
				104 = {
					add_core_of = ROOT
				}
				853 = {
					add_core_of = ROOT
				}
			}
			hidden_effect = {
				set_global_flag = SAU_laxide_chengli_luoma_flag
				news_event = {
					id = SAU_teshu_shijian.17
					hours = 6
				}
				if = {
					limit = {
						has_country_leader = {
							ruling_only = yes
							character = SAU_Abdullah_bin_Mutaib_Al
						}
					}
					SAU_Abdullah_bin_Mutaib_Al = {
						set_character_name = {
							name = SAU_aogusidu_Abdullah_bin_Mutaib_Al
						}
						set_portraits = {
							civilian = {
								large = GFX_portrait_leader_SAU_Abdullah_bin_Mutaib_Al_Rashid_1
							}
						}
					}
				}
				else_if = {
					limit = {
						has_country_leader = {
							ruling_only = yes
							character = TUR_durrushehvar_i
						}
					}
					TUR_durrushehvar_i = {
						set_character_name = {
							name = SAU_TUR_durrushehvar_i_aosiman
						}
						set_portraits = {
							civilian = {
								large = GFX_portrait_leader_SAU_aogusidu_dulusaiwaer
							}
						}
					}
				}
			}
			add_stability = 0.1
		}
		ai_will_do = {
			factor = 200
		}
	}
	SAU_reintigrate_hispania = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 794			#Eastern Aragon
			controls_state = 166			#Western Aragon
			controls_state = 172			#Navarra
			controls_state = 792			#Pais Vasco
			controls_state = 790			#Asturias
			controls_state = 171			#Galicia
			controls_state = 174			#Leon
			controls_state = 791			#Valladolid
			controls_state = 176			#Burgos
			controls_state = 793			#Guadalajara
			controls_state = 788			#Salamanca
			controls_state = 41			#Madrid
			controls_state = 175			#Ciudad Real
			controls_state = 170			#Extramadura
			controls_state = 789			#Cordoba
			controls_state = 169			#Sevilla
			controls_state = 179			#Beja
			controls_state = 795			#Santarem
			controls_state = 112			#Lisbon
			controls_state = 181			#Guarda
			controls_state = 180			#Porto
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Eastern Aragon
			794 = {
				add_core_of = ROOT
			}
			# Western Aragon
			166 = {
				add_core_of = ROOT
			}
			# Navarra
			172 = {
				add_core_of = ROOT
			}
			# Pais Vasco
			792 = {
				add_core_of = ROOT
			}
			# Asturias
			790 = {
				add_core_of = ROOT
			}
			# Galicia
			171 = {
				add_core_of = ROOT
			}
			# Leon
			174 = {
				add_core_of = ROOT
			}
			# Valladolid
			791 = {
				add_core_of = ROOT
			}
			# Burgos
			176 = {
				add_core_of = ROOT
			}
			# Guadalajara
			793 = {
				add_core_of = ROOT
			}
			# Salamanca
			788 = {
				add_core_of = ROOT
			}
			# Madrid
			41 = {
				add_core_of = ROOT
			}
			# Ciudad Real
			175 = {
				add_core_of = ROOT
			}
			# Extramadura
			170 = {
				add_core_of = ROOT
			}
			# Cordoba
			789 = {
				add_core_of = ROOT
			}
			# Sevilla
			169 = {
				add_core_of = ROOT
			}
			# Beja
			179 = {
				add_core_of = ROOT
			}
			# Santarem
			795 = {
				add_core_of = ROOT
			}
			# Lisbon
			112 = {
				add_core_of = ROOT
			}
			# Guarda
			181 = {
				add_core_of = ROOT
			}
			# Porto
			180 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_reintigrate_dacia = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 76			#North Transylvania
			controls_state = 84			#Transylvania
			controls_state = 83			#Crisana
			controls_state = 81			#Oltenia
			controls_state = 82			#Banat
			controls_state = 764			#West Banat
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# North Transylvania
			76 = {
				add_core_of = ROOT
			}
			# Transylvania
			84 = {
				add_core_of = ROOT
			}
			# Crisana
			83 = {
				add_core_of = ROOT
			}
			# Oltenia
			81 = {
				add_core_of = ROOT
			}
			# Banat
			82 = {
				add_core_of = ROOT
			}
			# West Banat
			764 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_reintigrate_moesia = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 766			#Southern Bessarabia
			controls_state = 46			#Muntenia
			controls_state = 971			#Constanta
			controls_state = 77			#Dobrudja
			controls_state = 211			#Burgas
			controls_state = 801			#Moesia
			controls_state = 212			#Plovdiv
			controls_state = 48			#Sofia
			controls_state = 803			#Southern Serbia
			controls_state = 106			#Macedonia
			controls_state = 970			#Debar
			controls_state = 802			#Kosovo
			controls_state = 108			#Morava
			controls_state = 107			#Serbia
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Southern Bessarabia
			766 = {
				add_core_of = ROOT
			}
			# Muntenia
			46 = {
				add_core_of = ROOT
			}
			# Constanta
			971 = {
				add_core_of = ROOT
			}
			# Dobrudja
			77 = {
				add_core_of = ROOT
			}
			# Burgas
			211 = {
				add_core_of = ROOT
			}
			# Moesia
			801 = {
				add_core_of = ROOT
			}
			# Plovdiv
			212 = {
				add_core_of = ROOT
			}
			# Sofia
			48 = {
				add_core_of = ROOT
			}
			# Southern Serbia
			803 = {
				add_core_of = ROOT
			}
			# Macedonia
			106 = {
				add_core_of = ROOT
			}
			# Debar
			970 = {
				add_core_of = ROOT
			}
			# Kosovo
			802 = {
				add_core_of = ROOT
			}
			# Morava
			108 = {
				add_core_of = ROOT
			}
			# Serbia
			107 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_reintigrate_aegyptus = {
		icon = GFX_decision_generic_nationalism
		cost = 75
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 552			#Western Desert
			controls_state = 456			#Aswan
			controls_state = 457			#Eastern Desert
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Western Desert
			552 = {
				add_core_of = ROOT
			}
			# Aswan
			456 = {
				add_core_of = ROOT
			}
			# Eastern Desert
			457 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_restore_mesopotamia = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 656			#Kuwait
			controls_state = 291			#Baghdad
			controls_state = 675			#Al Hajara
			controls_state = 676			#Mosul
			controls_state = 680			#Deir-az-Zur
			controls_state = 350			#Diyarbakir
			controls_state = 1010			#Al-Anbar
			controls_state = 1011			#Al-Basrah
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Kuwait
			656 = {
				add_core_of = ROOT
			}
			# Baghdad
			291 = {
				add_core_of = ROOT
			}
			# Al Hajara
			675 = {
				add_core_of = ROOT
			}
			# Mosul
			676 = {
				add_core_of = ROOT
			}
			# Deir-az-Zur
			680 = {
				add_core_of = ROOT
			}
			# Diyarbakir
			350 = {
				add_core_of = ROOT
			}
			# Al Anbar
			1010 = {
				add_core_of = ROOT
			}
			# Al Basrah
			1011 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_reconquer_galatia_et_cappadocia = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 347			#Izmit
			controls_state = 49			#Ankara
			controls_state = 343			#Afyon
			controls_state = 346			#Konya
			controls_state = 356			#Kastamonu
			controls_state = 798			#Amasya
			controls_state = 348			#Kayseri
			controls_state = 349			#Sivas
			controls_state = 355			#Samsun
			controls_state = 354			#Trabzon
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Izmit
			347 = {
				add_core_of = ROOT
			}
			# Ankara
			49 = {
				add_core_of = ROOT
			}
			# Afyon
			343 = {
				add_core_of = ROOT
			}
			# Konya
			346 = {
				add_core_of = ROOT
			}
			# Kastamonu
			356 = {
				add_core_of = ROOT
			}
			# Amasya
			798 = {
				add_core_of = ROOT
			}
			# Kayseri
			348 = {
				add_core_of = ROOT
			}
			# Sivas
			349 = {
				add_core_of = ROOT
			}
			# Samsun
			355 = {
				add_core_of = ROOT
			}
			# Trabzon
			354 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_integrate_armenian_lands = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 230			#Armenia
			controls_state = 800			#Van
			controls_state = 353			#Tunceli
			controls_state = 352			#Hakkari
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Armenia
			230 = {
				add_core_of = ROOT
			}
			# Van
			800 = {
				add_core_of = ROOT
			}
			# Tunceli
			353 = {
				add_core_of = ROOT
			}
			# Hakkari
			352 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_restore_order_in_arabia_petra = {
		icon = GFX_decision_generic_nationalism
		cost = 75
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 554			#Damascus
			controls_state = 455			#Jordan
			controls_state = 854			#Jawf
			controls_state = 855			#Tabuk
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Damascus
			554 = {
				add_core_of = ROOT
			}
			# Jordan
			455 = {
				add_core_of = ROOT
			}
			# Jawf
			854 = {
				add_core_of = ROOT
			}
			# Tabuk
			855 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_restore_order_in_mauretania = {
		icon = GFX_decision_generic_nationalism
		cost = 75
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 513			#Tlemcen
			controls_state = 514			#Algerian Desert
			controls_state = 462			#Marrakech
			controls_state = 783			#Sidi Ifni
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Tlemcen
			513 = {
				add_core_of = ROOT
			}
			# Algerian Desert
			514 = {
				add_core_of = ROOT
			}
			# Marrakech
			462 = {
				add_core_of = ROOT
			}
			# Sidi Ifni
			783 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_return_to_pannonia = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 43			#Northern Hungary
			controls_state = 973			#Bacs
			controls_state = 974			#Southern Transdanubia
			controls_state = 154			#Alföld
			controls_state = 155			#Transdanubia
			controls_state = 45			#Vojvodina
			controls_state = 109			#Croatia
			controls_state = 102			#North Slovenia
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Northern Hungary
			43 = {
				add_core_of = ROOT
			}
			# Alföld
			154 = {
				add_core_of = ROOT
			}
			# Bacs
			973 = {
				add_core_of = ROOT
			}
			# Transdanubia
			155 = {
				add_core_of = ROOT
			}
			# South Transdanubia
			974 = {
				add_core_of = ROOT
			}
			# Vojvodina
			45 = {
				add_core_of = ROOT
			}
			# Croatia
			109 = {
				add_core_of = ROOT
			}
			# North Slovenia
			102 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_restore_roman_rule_to_raetia_et_noricum = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 4			#Lower Austria
			controls_state = 152			#Upper Austria
			controls_state = 153			#Tyrol
			controls_state = 848			#Vorarlberg
			controls_state = 975			#Burgenland
			controls_state = 976			#Steirmark Kärten
			controls_state = 151			#Eastern Swiss Alps
			controls_state = 846			#Ticino
			controls_state = 847			#Western Swiss Alps
			controls_state = 3			#Swiss Plateu
			controls_state = 845			#Jura Mountains
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Lower Austria 
			4 = {
				add_core_of = ROOT
			}
			# Upper Austria
			152 = {
				add_core_of = ROOT
			}
			# Tyrol
			153 = {
				add_core_of = ROOT
			}
			# Vorarlberg
			848 = {
				add_core_of = ROOT
			}
			#Burgenland
			975 = {
				add_core_of = ROOT
			}
			#Steirmark Kärten
			976 = {
				add_core_of = ROOT
			}
			# Eastern Swiss Alps
			151 = {
				add_core_of = ROOT
			}
			# Ticino
			846 = {
				add_core_of = ROOT
			}
			# Western Swiss Alps
			847 = {
				add_core_of = ROOT
			}
			# Swiss Plateu
			3 = {
				add_core_of = ROOT
			}
			# Jura Mountains
			845 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_restore_roman_rule_to_gaul = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 806			#Pyrenees-Atlantiques
			controls_state = 19			#Aquitaine
			controls_state = 25			#Limousin
			controls_state = 26			#Auveragne
			controls_state = 20			#Rhone
			controls_state = 32			#Alpes
			controls_state = 33			#Centre-Sud
			controls_state = 23			#Poitou
			controls_state = 30			#Loire
			controls_state = 14			#Brittany
			controls_state = 27			#Bourgogne
			controls_state = 17			#Franche-Comte
			controls_state = 28			#Alsace-Lorraine
			controls_state = 16			#Ile De France
			controls_state = 24			#Centre
			controls_state = 15			#Normandy
			controls_state = 785			#Picardy
			controls_state = 18			#Champagne
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Pyrenees-Atlantiques 
			806 = {
				add_core_of = ROOT
			}
			# Aquitaine
			19 = {
				add_core_of = ROOT
			}
			# Limousin
			25 = {
				add_core_of = ROOT
			}
			# Auveragne
			26 = {
				add_core_of = ROOT
			}
			# Rhone
			20 = {
				add_core_of = ROOT
			}
			# Alpes
			32 = {
				add_core_of = ROOT
			}
			# Centre-Sud
			33 = {
				add_core_of = ROOT
			}
			# Poitou
			23 = {
				add_core_of = ROOT
			}
			# Loire
			30 = {
				add_core_of = ROOT
			}
			# Brittany
			14 = {
				add_core_of = ROOT
			}
			# Bourgogne
			27 = {
				add_core_of = ROOT
			}
			# Franche-Comte
			17 = {
				add_core_of = ROOT
			}
			# Alsace-Lorraine
			28 = {
				add_core_of = ROOT
			}
			# Ile De France
			16 = {
				add_core_of = ROOT
			}
			# Centre
			24 = {
				add_core_of = ROOT
			}
			# Normandy
			15 = {
				add_core_of = ROOT
			}
			# Picardy
			785 = {
				add_core_of = ROOT
			}
			# Champagne
			18 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_restore_roman_rule_to_belgica = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 35			#Brabant
			controls_state = 6			#Vlaanderen
			controls_state = 34			#Wallonia
			controls_state = 977			#Antwerpen
			controls_state = 980			#Ardennes
			controls_state = 8			#Luxembourg
			controls_state = 29			#Nord-Pas-De-Calais
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Brabant
			35 = {
				add_core_of = ROOT
			}
			# Vlaanderen
			6 = {
				add_core_of = ROOT
			}
			# Wallonia
			34 = {
				add_core_of = ROOT
			}
			# Antwerpen
			977 = {
				add_core_of = ROOT
			}
			# Ardennes
			980 = {
				add_core_of = ROOT
			}
			# Luxembourg
			8 = {
				add_core_of = ROOT
			}
			# Nord-Pas-De-Calais
			29 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_occupy_iberia = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 229			#Azerbaijan
			controls_state = 231			#Georgia
			controls_state = 826			#Abkhazia
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Azerbaijan
			229 = {
				add_core_of = ROOT
			}
			# Georgia
			231 = {
				add_core_of = ROOT
			}
			# Abkhazia
			826 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_return_to_britannia = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 127			#Sussex
			controls_state = 123			#South-West England
			controls_state = 338			#Gloucestershire
			controls_state = 126			#Greater London Area
			controls_state = 125			#East Anglia
			controls_state = 128			#West Midlands
			controls_state = 122			#Wales
			controls_state = 129			#East Midlands
			controls_state = 132			#Lancashire
			controls_state = 130			#Yorkshire
			controls_state = 131			#Nothern England
			controls_state = 931			#Cumbria
			controls_state = 932			#Mann
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Sussex
			127 = {
				add_core_of = ROOT
			}
			# South-West England
			123 = {
				add_core_of = ROOT
			}
			# Gloucestershire
			338 = {
				add_core_of = ROOT
			}
			# Greater London Area
			126 = {
				add_core_of = ROOT
			}
			# East Anglia
			125 = {
				add_core_of = ROOT
			}
			# West Midlands
			128 = {
				add_core_of = ROOT
			}
			# Wales
			122 = {
				add_core_of = ROOT
			}
			# East Midlands
			129 = {
				add_core_of = ROOT
			}
			# Lancashire
			132 = {
				add_core_of = ROOT
			}
			# Yorkshire
			130 = {
				add_core_of = ROOT
			}
			# Nothern England
			131 = {
				add_core_of = ROOT
			}
			# Cumbria
			931 = {
				add_core_of = ROOT
			}
			# Mann
			932 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_conquer_hibernia = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 113			#Leinster
			controls_state = 135			#Munster
			controls_state = 134			#Connaught
			controls_state = 119			#Northern Ireland
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Leinster
			113 = {
				add_core_of = ROOT
			}
			# Munster
			135 = {
				add_core_of = ROOT
			}
			# Connaught
			134 = {
				add_core_of = ROOT
			}
			# Northern Ireland
			119 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_conquer_caledonia = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 133			#Lanark
			controls_state = 121			#Lothian
			controls_state = 136			#Aberdeenshire
			controls_state = 120			#Scottish Highlands
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Lanark
			133 = {
				add_core_of = ROOT
			}
			# Lothian
			121 = {
				add_core_of = ROOT
			}
			# Aberdeenshire
			136 = {
				add_core_of = ROOT
			}
			# Scottish Highlands
			120 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_avenge_teutoburg = {
		icon = GFX_decision_generic_nationalism
		cost = 100
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 7			#Holland
			controls_state = 36			#Friesland
			controls_state = 56			#Weser-Ems
			controls_state = 57			#Westfalen
			controls_state = 51			#Rhineland
			controls_state = 42			#Moselland
			controls_state = 55			#Hessen
			controls_state = 54			#Franken
			controls_state = 50			#Wurtemberg
			controls_state = 978			#Baden
			controls_state = 52			#Oberbayern
			controls_state = 53			#Niederbayern
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Holland
			7 = {
				add_core_of = ROOT
			}
			# Friesland
			36 = {
				add_core_of = ROOT
			}
			# Weser-Ems
			56 = {
				add_core_of = ROOT
			}
			# Westfalen
			57 = {
				add_core_of = ROOT
			}
			# Rhineland
			51 = {
				add_core_of = ROOT
			}
			# Moselland
			42 = {
				add_core_of = ROOT
			}
			# Hessen
			55 = {
				add_core_of = ROOT
			}
			# Franken
			54 = {
				add_core_of = ROOT
			}
			# Wurtemberg
			50 = {
				add_core_of = ROOT
			}
			# Baden
			978 = {
				add_core_of = ROOT
			}
			# Oberbayern
			52 = {
				add_core_of = ROOT
			}
			# Niederbayern
			53 = {
				add_core_of = ROOT
			}
			add_stability = -0.05
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	SAU_reestablish_the_bosporan_kingdom = {
		icon = GFX_decision_generic_nationalism
		cost = 120
		allowed = {
			original_tag = SAU
		}
		available = {
			controls_state = 192			#Odessa
			controls_state = 197			#Mykolaiv
			controls_state = 196			#Kherson
			controls_state = 137			#Crimea
			controls_state = 226			#Dnipropetrovsk
			controls_state = 200			#Zaporozhe
			controls_state = 227			#Stalino
			controls_state = 218			#Rostov
			controls_state = 234			#Krasnodar
			OR = {
				CRI = {
					exists = no
				}
				CRI = {
					is_subject_of = ITA
				}
			}
		}
		visible = {
			original_tag = SAU
			has_global_flag = SAU_laxide_chengli_luoma_flag
		}
		fire_only_once = yes
		complete_effect = {
			# Odessa
			192 = {
				add_core_of = CRI
			}
			# Mykolaiv
			197 = {
				add_core_of = CRI
			}
			# Kherson
			196 = {
				add_core_of = CRI
			}
			# Dnipropetrovsk
			226 = {
				add_core_of = CRI
			}
			# Zaporozhe
			200 = {
				add_core_of = CRI
			}
			# Stalino
			227 = {
				add_core_of = CRI
			}
			# Rostov
			218 = {
				add_core_of = CRI
			}
			# Krasnodar
			234 = {
				add_core_of = CRI
			}
			CRI = {
				transfer_state = 192
				transfer_state = 197
				transfer_state = 196
				transfer_state = 137
				transfer_state = 226
				transfer_state = 200
				transfer_state = 227
				transfer_state = 218
				transfer_state = 234
				set_cosmetic_tag = regnum_bospori
			}
			hidden_effect = {
				IF = {
					limit = {
						SAU = {
							has_government = fascism
						}
					}
					CRI = {
						set_politics = {
							ruling_party = fascism
							elections_allowed = no
							last_election = "1935.12.17"
							election_frequency = 48
						}
					}
				}
				IF = {
					limit = {
						SAU = {
							has_government = neutrality
						}
					}
					CRI = {
						set_politics = {
							ruling_party = neutrality
							elections_allowed = no
							last_election = "1935.12.17"
							election_frequency = 48
						}
					}
				}
				ROOT = {
					puppet = CRI
				}
			}
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

#################################################################################
#################################       哈希姆      ########################
#################################################################################
SAU_haximu_alabo_zhiyuanjun = {
	SAU_haximu_alabo_zhiyuanjun_decisions = {
		icon = GFX_decision_generic_prepare_civil_war
		allowed = {
			original_tag = SAU
		}
		visible = {
			hidden_trigger = {
				#Otherwise this will show up in the cancel trigger tooltip
				OR = {
					has_government = fascism
					has_government = neutrality
				}
			}
			NOT = {
				has_war_with = FROM.owner
			}
		}
		available = {
			NOT = {
				has_country_flag = IRQ_recruiting_arab_legion
			}
			has_equipment = {
				infantry_equipment > 999
			}
			has_opinion = {
				target = SAU
				value > 39
			}
		}
		target_root_trigger = {
			original_tag = SAU
		}
		target_trigger = {
			FROM = {
				OR = {
					tag = EGY
					tag = JOR
					tag = PAL
					tag = SYR
					tag = LEB
					tag = IRQ
					tag = TUR
					tag = PER
				}
			}
		}
		on_map_mode = map_and_decisions_view
		custom_cost_trigger = {
			command_power > 24.9
		}
		custom_cost_text = BRA_decision_cost_cangaceiro
		fire_only_once = no
		days_remove = 30
		days_re_enable = 100
		cancel_if_not_visible = yes
		complete_effect = {
			add_command_power = -25
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
			hidden_effect = {
				set_country_flag = IRQ_recruiting_arab_legion
			}
		}
		remove_effect = {
			hidden_effect = {
				clr_country_flag = IRQ_recruiting_arab_legion
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "division_template = \"Arab Free Legion\" start_experience_factor = 0.05 start_equipment_factor = 1"
					owner = SAU
					count = 1
				}
			}
		}
		cancel_effect = {
			hidden_effect = {
				clr_country_flag = IRQ_recruiting_arab_legion
			}
		}
	}
}

#################################################################################
#################################       伊赫万      ########################
#################################################################################
SAU_yihewan_lueduo = {
	SAU_yihewan_lueduo_zhouwei = {
		priority = 10
		icon = GFX_decision_generic_cavalry
		ai_will_do = {
			factor = 10
		}
		allowed = {
			original_tag = SAU
		}
		visible = {
		}
		available = {
			FROM.owner = {
				controls_state = FROM
			}
			NOT = {
				has_country_flag = country_beilueduo_flag
			}
			has_equipment = {
				infantry_equipment > 99
			}
			command_power > 9.9
		}
		target_trigger = {
			FROM = {
				NOT = {
					owner = {
						has_war_with = ROOT
					}
				}
				NOT = {
					is_owned_by = ROOT
				}
				any_neighbor_state = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
		}
		state_target = yes
		on_map_mode = map_and_decisions_view
		days_remove = 15
		days_re_enable = 90
		fire_only_once = no
		custom_cost_trigger = {
			command_power > 9.9
		}
		custom_cost_text = SAU_yihewan_lueduo_zhouwei_cost_cangaceiro
		complete_effect = {
			add_command_power = -10
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -100
			}
			set_country_flag = country_beilueduo_flag
			FROM = {
				set_state_flag = FROM_beilueduo_flag
				owner = {
					country_event = {
						id = SAU_yihewan_beiduyin.8
						days = 5
					}
				}
			}
		}
		remove_effect = {
			clr_country_flag = country_beilueduo_flag
			FROM = {
				clr_state_flag = FROM_beilueduo_flag
			}
		}
	}
}

SAU_yihewan_jihade = {
	SAU_zhengzhao_shengzhanshi = {
		priority = 10
		icon = GFX_decision_generic_reorganize_irregulars
		ai_will_do = {
			factor = 10
		}
		allowed = {
			original_tag = SAU
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_jihade_shengzhan
		}
		available = {
			has_capitulated = no
			is_subject = no
		}
		fire_only_once = no
		cost = 25
		days_remove = 30
		days_re_enable = 120
		complete_effect = {
			division_template = {
				name = "jihadist Legion"
				is_locked = no
				template_counter = 1
				regiments = {
					militia = {
						x = 0
						y = 0
					}
					militia = {
						x = 0
						y = 1
					}
					militia = {
						x = 0
						y = 2
					}
					militia = {
						x = 0
						y = 3
					}
					militia = {
						x = 1
						y = 0
					}
					militia = {
						x = 1
						y = 1
					}
					militia = {
						x = 1
						y = 2
					}
					militia = {
						x = 2
						y = 0
					}
					militia = {
						x = 2
						y = 1
					}
					militia = {
						x = 2
						y = 2
					}
				}
			}
			random_controlled_state = {
				create_unit = {
					division = "name = \"jihadist Legion\" division_template = \"jihadist Legion\" start_experience_factor = 0.1 start_equipment_factor = 1"
					owner = ROOT
					count = 3
				}
			}
		}
		remove_effect = {
		}
	}
	SAU_zhenli_yi_lailin = {
		priority = 10
		icon = GFX_decision_SAU_yihewan_lueduo
		ai_will_do = {
			factor = 10
		}
		target_trigger = {
			FROM = {
				OR = {
					tag = IRQ
					tag = PER
					tag = AFG
					tag = TUR
					tag = RAJ
					tag = SIK
					tag = MAL
					tag = INS
					tag = SOV
				}
				NOT = {
					has_capitulated = yes
					is_subject_of = SAU
				}
				OWNER = {
					is_neighbor_of = ROOT					#是邻居
				}
			}
		}
		visible = {
			has_civil_war = no
			has_completed_focus = Saudi_Arabia_yisilanguo_zhenli_yilailin
		}
		custom_cost_trigger = {
			command_power > 9.9
		}
		custom_cost_text = SAU_yihewan_lueduo_zhouwei_cost_cangaceiro
		available = {
			NOT = {
				has_country_flag = zhengzai_jihade_flag
			}
		}
		fire_only_once = yes
		days_remove = 10
		complete_effect = {
			add_command_power = -10
			set_variable = {
				SAU.SAU_diguo_jingshen_zhiding = FROM
			}
			set_country_flag = {
				flag = zhengzai_jihade_flag
				value = 1
				days = 70
			}
		}
		remove_effect = {
			add_timed_idea = {
				idea = SAU_jihade_ideas
				days = 60
			}
		}
	}
	SAU_xuwang_yi_huimie = {
		priority = 10
		icon = GFX_decision_SAU_yihewan_lueduo
		ai_will_do = {
			factor = 10
		}
		target_trigger = {
			FROM = {
				OR = {
					tag = EGY
					tag = ETH
					tag = ITA
					tag = POR
					tag = ENG
					tag = FRA
					tag = SPA
					tag = SPR
				}
				NOT = {
					has_capitulated = yes
					is_subject_of = SAU
				}
				OWNER = {
					is_neighbor_of = ROOT					#是邻居
				}
			}
		}
		visible = {
			has_civil_war = no
			has_completed_focus = Saudi_Arabia_yisilanguo_xuwang_yixiaomie
		}
		custom_cost_trigger = {
			command_power > 9.9
		}
		custom_cost_text = SAU_yihewan_lueduo_zhouwei_cost_cangaceiro
		available = {
			NOT = {
				has_country_flag = zhengzai_jihade_flag
			}
		}
		fire_only_once = yes
		days_remove = 10
		complete_effect = {
			add_command_power = -10
			set_variable = {
				SAU.SAU_diguo_jingshen_zhiding = FROM
			}
			set_country_flag = {
				flag = zhengzai_jihade_flag
				value = 1
				days = 70
			}
		}
		remove_effect = {
			add_timed_idea = {
				idea = SAU_jihade_ideas
				days = 60
			}
		}
	}
	#核心
	SAU_chuanyue_huangsha = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_abasi_zhili
		}
		available = {
			IRQ = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			SYR = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			LEB = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			PAL = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			JOR = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			KUW = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = IRQ
						is_core_of = SYR
						is_core_of = LEB
						is_core_of = PAL
						is_core_of = JOR
						is_core_of = KUW
					}
				}
				add_core_of = SAU
			}
		}
	}
	SAU_haixia_zhijiao = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_abasi_zhili
		}
		available = {
			VEM = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			IMO = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			OMA = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			UAE = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			QAT = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			BHR = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			ERI = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			SOM = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			KEN = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			AFA = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						region = 236
						region = 238
						region = 273
						is_core_of = SOM
						is_core_of = KEN
					}
				}
				add_core_of = SAU
			}
		}
	}
	SAU_zhidao_qundao = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_abasi_zhili
		}
		available = {
			MAL = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			INS = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = MAL
						is_core_of = INS
					}
				}
				add_core_of = SAU
			}
		}
	}
	SAU_jinru_gaoyuan = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_abasi_zhili
		}
		available = {
			PER = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					is_core_of = PER
				}
				add_core_of = SAU
			}
		}
	}
	SAU_shengsuofeiya_de_qiongding = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_abasi_zhili
		}
		available = {
			TUR = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			AZR = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			GEO = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			ARM = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = TUR
						is_core_of = ARM
						is_core_of = GEO
						is_core_of = AZR
					}
				}
				add_core_of = SAU
			}
		}
	}
	SAU_babuer_zhimeng = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_abasi_zhili
		}
		available = {
			AFG = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			PAK = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = AFG
						is_core_of = PAK
					}
				}
				add_core_of = SAU
			}
		}
	}
	SAU_taohuashi_han = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_abasi_zhili
		}
		available = {
			SIK = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			UZB = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			TMS = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			TAJ = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = SIK
						is_core_of = UZB
						is_core_of = TMS
						is_core_of = TAJ
					}
				}
				add_core_of = SAU
			}
		}
	}
	SAU_niluohe_zhi_meng = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_wumaiye_zhiguang
		}
		available = {
			EGY = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			SUD = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = EGY
						is_core_of = SUD
					}
				}
				add_core_of = SAU
			}
		}
	}
	SAU_wumaiye_de_rongguang = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_wumaiye_zhiguang
		}
		available = {
			LIB = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			TUN = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
			MOR = {
				all_core_state = {
					is_fully_controlled_by = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = LIB
						is_core_of = TUN
						is_core_of = MOR
					}
				}
				add_core_of = LIB
				add_core_of = TUN
				add_core_of = MOR
			}
		}
	}
	SAU_baifenghuang_de_nietan = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_wumaiye_zhiguang
		}
		available = {
			OR = {
				AND = {
					SPR = {
						all_core_state = {
							is_fully_controlled_by = SAU
						}
					}
				}
				AND = {
					SPA = {
						all_core_state = {
							is_fully_controlled_by = SAU
						}
					}
				}
				AND = {
					SPC = {
						all_core_state = {
							is_fully_controlled_by = SAU
						}
					}
				}
				AND = {
					SPB = {
						all_core_state = {
							is_fully_controlled_by = SAU
						}
					}
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = SPA
						is_core_of = SPR
						is_core_of = SPD
						is_core_of = SPC
						is_core_of = SPB
					}
				}
				add_core_of = SAU
			}
		}
	}
	SAU_chuanyue_sahala = {
		priority = 10
		icon = GFX_decision_eng_puppet_usa
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_yisilanguo_wumaiye_zhiguang
		}
		available = {
			any_state = {
				OR = {
					region = 226
					region = 140
				}
				OWNER = {
					tag = SAU
				}
			}
		}
		days_remove = 90
		cost = 35
		fire_only_once = yes
		modifier = {
			consumer_goods_factor = 0.03
			political_power_factor = -0.1
		}
		remove_effect = {
			every_state = {
				limit = {
					OR = {
						region = 226
						region = 140
					}
				}
				add_core_of = SAU
			}
		}
	}
}

#################################################################################
#################################       多神教      ########################
#################################################################################
SAU_duoshenjiao_ouxiangchongbai = {
	SAU_duoshenjiao_ouxiangchongbai_hubaile = {
		priority = 10
		icon = GFX_decisions_xiaotubiao_SAU_duoshenjiao_hubaile
		ai_will_do = {
			factor = 10
		}
		visible = {
		}
		available = {
			has_capitulated = NO
		}
		cost = 30
		days_remove = 90
		fire_only_once = no
		complete_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_1 = 0.1
				tooltip = decryption_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_7 = 0.2
				tooltip = army_intel_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_8 = 0.2
				tooltip = navy_intel_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_9 = 0.2
				tooltip = airforce_intel_factor_tt
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_1 = -0.1
				tooltip = decryption_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_7 = -0.2
				tooltip = army_intel_factor_1_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_8 = -0.2
				tooltip = navy_intel_factor_1_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_9 = -0.2
				tooltip = airforce_intel_factor_1_tt
			}
		}
	}
	SAU_duoshenjiao_ouxiangchongbai_anla = {
		priority = 10
		icon = GFX_decisions_xiaotubiao_SAU_duoshenjiao_anla
		ai_will_do = {
			factor = 10
		}
		visible = {
		}
		available = {
			has_capitulated = NO
		}
		cost = 30
		days_remove = 90
		fire_only_once = no
		complete_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_18 = 1
				tooltip = land_night_attack_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_19 = -1
				tooltip = air_night_penalty_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_21 = 0.5
				tooltip = acclimatization_cold_climate_gain_factor_tt
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_18 = -1
				tooltip = land_night_attack_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_19 = 1
				tooltip = air_night_penalty_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_21 = -0.5
				tooltip = acclimatization_cold_climate_gain_factor_tt
			}
		}
	}
	SAU_duoshenjiao_ouxiangchongbai_mona = {
		priority = 10
		icon = GFX_decisions_xiaotubiao_SAU_duoshenjiao_mona
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_duoshenjiao_mingyun_mona_ananke
		}
		available = {
			has_capitulated = NO
		}
		cost = 30
		days_remove = 90
		fire_only_once = no
		complete_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_3 = -0.5
				tooltip = air_accidents_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_4 = -0.5
				tooltip = air_weather_penalty_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_5 = 0.5
				tooltip = naval_strike_targetting_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_6 = 0.5
				tooltip = air_bombing_targetting_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_10 = 0.5
				tooltip = naval_critical_score_chance_factor_tt
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_3 = 0.5
				tooltip = air_accidents_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_4 = 0.5
				tooltip = air_weather_penalty_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_5 = -0.5
				tooltip = naval_strike_targetting_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_6 = -0.5
				tooltip = air_bombing_targetting_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_10 = -0.5
				tooltip = naval_critical_score_chance_factor_tt
			}
		}
	}
	SAU_duoshenjiao_ouxiangchongbai_late = {
		priority = 10
		icon = GFX_decisions_xiaotubiao_SAU_duoshenjiao_late
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_duoshenjiao_shengli_zhi_late
		}
		available = {
			has_capitulated = NO
		}
		cost = 30
		days_remove = 90
		fire_only_once = no
		complete_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_11 = 0.01
				tooltip = war_support_weekly_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_12 = 0.1
				tooltip = army_org_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_13 = 0.1
				tooltip = army_morale_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_14 = 0.1
				tooltip = army_attack_factor_tt
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_11 = -0.01
				tooltip = war_support_weekly_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_12 = -0.1
				tooltip = army_org_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_13 = -0.1
				tooltip = army_morale_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_14 = -0.1
				tooltip = army_attack_factor_tt
			}
		}
	}
	SAU_duoshenjiao_ouxiangchongbai_ouzha = {
		priority = 10
		icon = GFX_decisions_xiaotubiao_SAU_duoshenjiao_ouzha
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = Saudi_Arabia_duoshenjiao_meili_zhi_ouzha_weinasi
		}
		available = {
			has_capitulated = NO
		}
		cost = 30
		days_remove = 90
		fire_only_once = no
		complete_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_15 = 0.1
				tooltip = conscription_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_16 = 0.03
				tooltip = conscription_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_17 = 500
				tooltip = weekly_manpower_tt
			}
		}
		remove_effect = {
			custom_effect_tooltip = modify_SAU_duoshenjiao_zuxian_chongbai
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_15 = -0.1
				tooltip = conscription_factor_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_16 = -0.03
				tooltip = conscription_tt
			}
			add_to_variable = {
				SAU_duoshenjiao_zuxian_chongbai_17 = -500
				tooltip = weekly_manpower_tt
			}
		}
	}
}

###############################
### 安壬 ###
###############################
SAU_the_seeds_of_revolution = {
	SAU_integrate_commune_1 = {
		name = SAU_integrate_commune
		icon = generic_nationalism
		allowed = {
		}
		available = {
			FROM = {
				compliance > 50
				OR = {
					is_island_state = yes
					any_neighbor_state = {
						is_core_of = SAU
					}
				}
			}
		}
		state_target = yes
		on_map_mode = map_only
		#targets = {  }
		target_array = controlled_states
		target_trigger = {
			has_completed_focus = Saudi_Arabia_duoshenjiao_quanqiu_fangyu_weiyuanhui
			FROM = {
				NOT = {
					is_core_of = SAU
				}
				OR = {
					is_island_state = yes
					any_neighbor_state = {
						is_core_of = SAU
					}
				}
				compliance > 35
			}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 60
		modifier = {
			political_power_gain = -1
		}
		visible = {
			has_completed_focus = Saudi_Arabia_duoshenjiao_quanqiu_fangyu_weiyuanhui
			always = yes
		}
		complete_effect = {
		}
		remove_effect = {
			FROM = {
				add_core_of = SAU
			}
			transfer_state = FROM
		}
	}
	SAU_integrate_commune_2 = {
		name = SAU_integrate_commune
		icon = generic_nationalism
		allowed = {
		}
		available = {
			FROM = {
				compliance > 50
				NOT = {
					is_island_state = yes
					any_neighbor_state = {
						is_core_of = SAU
					}
				}
			}
		}
		state_target = yes
		on_map_mode = map_only
		#targets = {  }
		target_array = controlled_states
		target_trigger = {
			has_completed_focus = Saudi_Arabia_duoshenjiao_quanqiu_fangyu_weiyuanhui
			FROM = {
				NOT = {
					is_core_of = SAU
				}
				NOT = {
					is_island_state = yes
					any_neighbor_state = {
						is_core_of = SAU
					}
				}
				compliance > 35
			}
		}
		cost = 150
		fire_only_once = yes
		days_remove = 90
		modifier = {
			political_power_gain = -1
		}
		visible = {
			has_completed_focus = Saudi_Arabia_duoshenjiao_quanqiu_fangyu_weiyuanhui
			always = yes
		}
		complete_effect = {
		}
		remove_effect = {
			FROM = {
				add_core_of = SAU
			}
			transfer_state = FROM
		}
	}
	SAU_ignite_uprising = {
		icon = generic_ignite_civil_war
		allowed = {
		}
		available = {
			FROM = {
				has_civil_war = no
				any_controlled_state = {
					is_in_home_area = yes
					is_capital = no
				}
			}
			has_equipment = {
				infantry_equipment > 19999
			}
			any_controlled_state = {
				NOT = {
					has_state_flag = anarchist_uprising
				}
			}
		}
		target_trigger = {
			FROM = {
				exists = yes
				has_war_with = SAU
				any_controlled_state = {
					is_in_home_area = yes
					any_neighbor_state = {
						is_controlled_by = SAU
					}
				}
			}
		}
		cost = 150
		fire_only_once = yes
		days_remove = 90
		modifier = {
		}
		visible = {
			has_completed_focus = Saudi_Arabia_duoshenjiao_geming_de_zhongzi
			FROM = {
				exists = yes
			}
		}
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -20000
			}
			hidden_effect = {
				FROM = {
					set_country_flag = SPR_ignite_uprising_timer_flag
					activate_mission = SPR_ignite_uprising_timer_mission
				}
			}
		}
		remove_effect = {
			if = {
				limit = {
					FROM = {
						any_controlled_state = {
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 750
								}
							}
						}
					}
				}
				random_state = {
					limit = {
						is_controlled_by = FROM
						is_in_home_area = yes
						is_capital = no
						NOT = {
							has_state_flag = anarchist_uprising
						}
						any_state = {
							is_controlled_by = SAU
							NOT = {
								has_state_flag = anarchist_uprising
							}
							distance_to = {
								target = PREV
								value < 750
							}
						}
					}
					set_state_flag = anarchist_uprising
					create_unit = {
						division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
						owner = SAU
						allow_spawning_on_enemy_provs = yes
					}
					create_unit = {
						division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
						owner = SAU
						allow_spawning_on_enemy_provs = yes
					}
					create_unit = {
						division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
						owner = SAU
						allow_spawning_on_enemy_provs = yes
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						any_controlled_state = {
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 1500
								}
							}
						}
					}
				}
				random_state = {
					limit = {
						is_controlled_by = FROM
						is_in_home_area = yes
						is_capital = no
						NOT = {
							has_state_flag = anarchist_uprising
						}
						any_state = {
							is_controlled_by = SAU
							NOT = {
								has_state_flag = anarchist_uprising
							}
							distance_to = {
								target = PREV
								value < 1500
							}
						}
					}
					set_state_flag = anarchist_uprising
					create_unit = {
						division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
						owner = SAU
						allow_spawning_on_enemy_provs = yes
					}
					create_unit = {
						division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
						owner = SAU
						allow_spawning_on_enemy_provs = yes
					}
					create_unit = {
						division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
						owner = SAU
						allow_spawning_on_enemy_provs = yes
					}
				}
			}
			else = {
				random_state = {
					limit = {
						is_controlled_by = FROM
						is_in_home_area = yes
						is_capital = no
						NOT = {
							has_state_flag = anarchist_uprising
						}
						any_state = {
							is_controlled_by = SAU
							NOT = {
								has_state_flag = anarchist_uprising
							}
						}
					}
					set_state_flag = anarchist_uprising
					create_unit = {
						division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
						owner = SAU
						allow_spawning_on_enemy_provs = yes
					}
					create_unit = {
						division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
						owner = SAU
						allow_spawning_on_enemy_provs = yes
					}
					create_unit = {
						division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
						owner = SAU
						allow_spawning_on_enemy_provs = yes
					}
				}
			}
			if = {
				limit = {
					FROM = {
						num_of_controlled_states > 4
					}
				}
				if = {
					limit = {
						FROM = {
							any_controlled_state = {
								is_in_home_area = yes
								is_capital = no
								NOT = {
									has_state_flag = anarchist_uprising
								}
								any_state = {
									is_controlled_by = SAU
									NOT = {
										has_state_flag = anarchist_uprising
									}
									distance_to = {
										target = PREV
										value < 750
									}
								}
							}
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 750
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
				else_if = {
					limit = {
						FROM = {
							any_controlled_state = {
								is_in_home_area = yes
								is_capital = no
								NOT = {
									has_state_flag = anarchist_uprising
								}
								any_state = {
									is_controlled_by = SAU
									NOT = {
										has_state_flag = anarchist_uprising
									}
									distance_to = {
										target = PREV
										value < 1500
									}
								}
							}
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 1500
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
				else = {
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
			}
			if = {
				limit = {
					FROM = {
						num_of_controlled_states > 7
					}
				}
				if = {
					limit = {
						FROM = {
							any_controlled_state = {
								is_in_home_area = yes
								is_capital = no
								NOT = {
									has_state_flag = anarchist_uprising
								}
								any_state = {
									is_controlled_by = SAU
									NOT = {
										has_state_flag = anarchist_uprising
									}
									distance_to = {
										target = PREV
										value < 750
									}
								}
							}
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 750
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
				else_if = {
					limit = {
						FROM = {
							any_controlled_state = {
								is_in_home_area = yes
								is_capital = no
								NOT = {
									has_state_flag = anarchist_uprising
								}
								any_state = {
									is_controlled_by = SAU
									NOT = {
										has_state_flag = anarchist_uprising
									}
									distance_to = {
										target = PREV
										value < 1500
									}
								}
							}
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 1500
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
				else = {
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
			}
			if = {
				limit = {
					FROM = {
						num_of_controlled_states > 11
					}
				}
				if = {
					limit = {
						FROM = {
							any_controlled_state = {
								is_in_home_area = yes
								is_capital = no
								NOT = {
									has_state_flag = anarchist_uprising
								}
								any_state = {
									is_controlled_by = SAU
									NOT = {
										has_state_flag = anarchist_uprising
									}
									distance_to = {
										target = PREV
										value < 750
									}
								}
							}
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 750
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 750
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
				else_if = {
					limit = {
						FROM = {
							any_controlled_state = {
								is_in_home_area = yes
								is_capital = no
								NOT = {
									has_state_flag = anarchist_uprising
								}
								any_state = {
									is_controlled_by = SAU
									NOT = {
										has_state_flag = anarchist_uprising
									}
									distance_to = {
										target = PREV
										value < 1500
									}
								}
							}
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 1500
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 1500
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
				else = {
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
			}
			if = {
				limit = {
					FROM = {
						num_of_controlled_states > 19
					}
				}
				if = {
					limit = {
						FROM = {
							any_controlled_state = {
								is_in_home_area = yes
								is_capital = no
								NOT = {
									has_state_flag = anarchist_uprising
								}
								any_state = {
									is_controlled_by = SAU
									NOT = {
										has_state_flag = anarchist_uprising
									}
									distance_to = {
										target = PREV
										value < 750
									}
								}
							}
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 750
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 750
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
				else_if = {
					limit = {
						FROM = {
							any_controlled_state = {
								is_in_home_area = yes
								is_capital = no
								NOT = {
									has_state_flag = anarchist_uprising
								}
								any_state = {
									is_controlled_by = SAU
									NOT = {
										has_state_flag = anarchist_uprising
									}
									distance_to = {
										target = PREV
										value < 1500
									}
								}
							}
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 1500
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
								distance_to = {
									target = PREV
									value < 1500
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
				else = {
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
					random_state = {
						limit = {
							is_controlled_by = FROM
							is_in_home_area = yes
							is_capital = no
							NOT = {
								has_state_flag = anarchist_uprising
							}
							any_state = {
								is_controlled_by = SAU
								NOT = {
									has_state_flag = anarchist_uprising
								}
							}
						}
						set_state_flag = anarchist_uprising
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
						create_unit = {
							division = "division_template = \"Anarchist Militia Division\" start_experience_factor = 0.1"
							owner = SAU
							allow_spawning_on_enemy_provs = yes
						}
					}
				}
			}
		}
	}
	SAU_ignite_uprising_timer_mission = {
		icon = generic_ignite_civil_war
		available = {
			hidden_trigger = {
				always = no
			}
		}
		days_mission_timeout = 90
		fire_only_once = yes
		activation = {
			always = no
		}
		visible = {
			has_country_flag = SPR_ignite_uprising_timer_flag
		}
		cancel_if_not_visible = no
		is_good = yes
		timeout_effect = {
			clr_country_flag = SPR_ignite_uprising_timer_flag
			custom_effect_tooltip = SPR_ignite_uprising_timer_mission_tt
		}
	}
}

#################################################################################
#################################       debug测试      ########################
#################################################################################
DEBUG_ceshi = {
	DEBUG_1111 = {
		priority = 10
		icon = GFX_decision_eng_propaganda_campaigns
		ai_will_do = {
			factor = 10
		}
		allowed = {
			always = yes
		}
		visible = {
			is_ai = no
			is_debug = yes
		}
		available = {
			always = no			#
		}
		fire_only_once = no
		complete_effect = {
			ITA = {
				if = {
					limit = {
						has_character = ITA_giovanni_messe
					}
					remove_advisor_role = {
						character = ITA_giovanni_messe
						slot = theorist
					}
					add_advisor_role = {
						character = ITA_giovanni_messe
						advisor = {
							slot = theorist
							cost = 150
							idea_token = ITA_giovanni_messe_sau
							traits = {
								mobile_warfare_expert
							}
						}
					}
					ITA_giovanni_messe = {
						set_nationality = SAU
					}
				}
			}
		}
		remove_effect = {
		}
	}
	DEBUG_2222 = {
		priority = 10
		icon = GFX_decision_eng_propaganda_campaigns
		ai_will_do = {
			factor = 10
		}
		allowed = {
			always = yes
		}
		visible = {
			is_ai = no
			is_debug = yes
		}
		available = {
			always = no			#
		}
		fire_only_once = no
		complete_effect = {
			annex_country = {
				target = TUR
				transfer_troops = yes
			}
		}
		remove_effect = {
		}
	}
}
