samson_ISR = {
	
	invest_in_nuclear_tech = {

		icon = GFX_decision_Make_Nukes

		cost = 150

		fire_only_once = no

		visible = {
			tag = ISR
		}
		
		available = {
			num_of_nukes < 10
		}

		days_remove = 120
		
		cancel_if_not_visible = yes
		complete_effect = {
			add_nuclear_bombs = 1
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	deploy_nukes = {
		ai_will_do = {
			factor = 1000
		}
		icon = GFX_decision_Deploy_Nukes
		fire_only_once = yes
		visible = {
			tag = ISR
		}
		available = {
		    has_war_with = SYR
			surrender_progress > 0.5
			num_of_nukes > 5
		}
		complete_effect = {
			if = {
				limit = { has_global_flag = SOV_syrian_ID_finished }
				PAL = { set_capital = {
				  state = 914
				}
				news_event = { id = samsonnews.19 hours = 12 }
				ISR = {
					add_war_support = -0.6
					add_stability = -0.6
				}
				JOR = {
					add_war_support = 0.25
					add_stability = 0.2
				}
				SYR = {
					add_war_support = 0.25
					add_stability = 0.2
				}
				PAL = {
					add_war_support = 0.25
					add_stability = 0.2
				}
				EGY = {
					add_war_support = 0.25
					add_stability = 0.2
				}
				HRL = {
					add_war_support = 0.25
					add_stability = 0.2
				}
				HEZ = {
					add_war_support = 0.25
					add_stability = 0.2
				}
				SAU = {
					add_war_support = 0.25
					add_stability = 0.2
				}
				PER = {
					add_war_support = 0.25
					add_stability = 0.2
					}
				}
			}
			
			else = {
			every_country = {
				goto_province = 4111 
			}
			news_event = { id = news.211 hours = 6 }
			launch_nuke = {
				state = 1032
				controller = SYR
				use_nuke = yes
			}
			launch_nuke = {
				state = 1034
				controller = SYR
				use_nuke = yes
			}
			launch_nuke = {
				province = 1088
				controller = SYR
				use_nuke = yes
			}
			#Fuck you for good measure
			launch_nuke = {
				province = 7011
				controller = EGY
				use_nuke = yes
			}
			launch_nuke = {
				province = 4076
				controller = EGY
				use_nuke = yes
			}
			launch_nuke = {
				province = 11999
				controller = EGY
				use_nuke = yes
			}
			#Theyre basically Palestine 2
			launch_nuke = {
				province = 7151
				controller = JOR
				use_nuke = yes
			}
			#THOSE STARVING BABIES WERE TERRORISTS
			launch_nuke = {
				province = 13247
				controller = PAL
				use_nuke = yes
			}
			launch_nuke = {
				province = 4088
				controller = PAL
				use_nuke = yes
			}
			#Revenge for 1991
			launch_nuke = {
				province = 2097
				controller = IRQ
				use_nuke = yes
			}
			launch_nuke = {
				province = 10106
				controller = IRQ
				use_nuke = yes
			}
			launch_nuke = {
				province = 2089
				controller = IRQ
				use_nuke = yes
			}
			launch_nuke = {
				province = 10876
				controller = IRQ
				use_nuke = yes
			}
			#Revenge for 1982
			launch_nuke = {
				province = 792
				controller = LEB
				use_nuke = yes
			}
			#Revenge for 2006
			launch_nuke = {
				province = 13290
				controller = HEZ
				use_nuke = yes
			}
			#FUCK YOU MOST OF ALL (some missiles get intercepted)
			launch_nuke = {
				province = 7982
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 7953
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 12773
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 1896
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 2026
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 8117
				controller = PER
				use_nuke = yes
			}
			#IF I CANT HAVE IT NOONE CAN
			launch_nuke = {
				province = 13795
				controller = SAU
				use_nuke = yes
				}
			launch_nuke = {
				province = 12758
				controller = SAU
				use_nuke = yes
				}
				#FUCK THE SAUDIS
				if = {
					limit = { ROC = {
						owns_state = 1126
						owns_state = 679
						owns_state 1066
						owns_state = 1061
						owns_state = 1067
						}
					}
					launch_nuke = {
					province = 12702
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 13790
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 5037
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 10791
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 14145
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 12455
					controller = SAU
					use_nuke = yes
					}
				}
				if = {
					limit = { JAH = {
						owns_state = 1126
						owns_state = 679
						owns_state 1066
						owns_state = 1061
						owns_state = 1067
						}
					}
					launch_nuke = {
					province = 12702
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 13790
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 5037
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 10791
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 14145
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 12455
					controller = SAU
					use_nuke = yes
					}
				}
				if = {
					limit = { SAR = {
						owns_state = 1126
						owns_state = 679
						owns_state 1066
						owns_state = 1061
						owns_state = 1067
						}
					}
					launch_nuke = {
					province = 12702
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 13790
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 5037
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 10791
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 14145
					controller = SAU
					use_nuke = yes
					}
					launch_nuke = {
					province = 12455
					controller = SAU
					use_nuke = yes
					}
				}
				
			#FUCK THE HOUTHIS
			if = {
					limit = { HOU = {
						owns_state = 920
						owns_state = 925
						owns_state 919
						}
					}
					launch_nuke = {
					province = 13271
					controller = HOU
					use_nuke = yes
					}
					launch_nuke = {
					province = 13288
					controller = HOU
					use_nuke = yes
					}
					launch_nuke = {
					province = 13287
					controller = HOU
					use_nuke = yes
					}
					launch_nuke = {
					province = 13272
					controller = HOU
					use_nuke = yes
					}
				}
			#FUCK GADDAFI (or haftar)
			if = {
					limit = { HRL = {
						owns_state = 448
						}
					}
					launch_nuke = {
					province = 11954
					controller = HRL
					use_nuke = yes
					}
					launch_nuke = {
					province = 1130
					controller = HOU
					use_nuke = yes
					}
					launch_nuke = {
					province = 13287
					controller = HOU
					use_nuke = yes
					}
					launch_nuke = {
					province = 13272
					controller = HOU
					use_nuke = yes
					}
				}
			#you know what? just for the hell of it
			launch_nuke = {
				province = 14499
				controller = SUD
				use_nuke = yes
			}
			launch_nuke = {
				province = 14500
				controller = SUD
				use_nuke = yes
			}
			launch_nuke = {
				province = 14496
				controller = SUD
				use_nuke = yes
			}
			launch_nuke = {
				province = 12725
				controller = SUD
				use_nuke = yes
			}
			#HOLY FUCK IT DETONATED IN THE SILO
			launch_nuke = {
				province = 4206
				controller = ISR
				use_nuke = yes
			}
			sound_effect = siren_sound_effect
			set_variable = { disband_fraction = 1 }
			disband_units_fraction = yes
			clear_variable = disband_fraction
			add_ideas = ai_disabled_production
			SYR = {
				#set_variable = { disband_fraction = 1 }
				#disband_units_fraction = yes
				#clear_variable = disband_fraction
				country_event = { id = syria.33 days = 35 }
				country_event = { id = syria.29 days = 7 }
				country_event = { id = syria.34 days = 43 }
				leave_faction = yes
				set_variable = {
					disband_fraction = 0.75
				}
				disband_units_fraction = yes
				clear_variable = disband_fraction
			}
			EGY = {
			country_event = { id = egypt.16 days = 24 }
			leave_faction = yes
			}
			HEZ = {
				#set_variable = { disband_fraction = 1 }
				#disband_units_fraction = yes
				#clear_variable = disband_fraction
				add_ideas = ai_disabled_production
			}
			LEB = {
				#set_variable = { disband_fraction = 1 }
				#disband_units_fraction = yes
				#clear_variable = disband_fraction
				add_ideas = ai_disabled_production
			}
			JOR = {
				#set_variable = { disband_fraction = 1 }
				#disband_units_fraction = yes
				#clear_variable = disband_fraction
				country_event = { id = jordan.1 days = 9 }
			}
			set_global_flag = ISR_samson_used_flag
		PAL = { set_capital = { state = 914 }
				add_ideas = PAL_mournful_ummah }
		SYR = { add_ideas = PAL_mournful_ummah }
		PER = { add_ideas = PAL_mournful_ummah }
		HOU = { add_ideas = PAL_mournful_ummah }
		HEZ = { add_ideas = PAL_mournful_ummah }
		SAR = { add_ideas = PAL_mournful_ummah }
		PAK = { add_ideas = PAL_mournful_ummah }
		BAN = { add_ideas = PAL_mournful_ummah }
		FIA = { add_ideas = PAL_mournful_ummah }
		SIK = { add_ideas = PAL_mournful_ummah }
		ABK = { add_ideas = PAL_mournful_ummah }
		BUK = { add_ideas = PAL_mournful_ummah }
		KUR = { add_ideas = PAL_mournful_ummah }
		IRQ = { add_ideas = PAL_mournful_ummah }
		INS = { add_ideas = PAL_mournful_ummah }
		MAL = { add_ideas = PAL_mournful_ummah }
		PER = { add_ideas = PAL_mournful_ummah }
		AFG = { add_ideas = PAL_mournful_ummah }
		HRL = { add_ideas = PAL_mournful_ummah }
		FSA = { add_ideas = PAL_mournful_ummah }
		MUS = { add_ideas = PAL_mournful_ummah }
		JOR = { add_ideas = PAL_mournful_ummah }
		JR2 = { add_ideas = PAL_mournful_ummah }
		EGY = { add_ideas = PAL_mournful_ummah }
		MOR = { add_ideas = PAL_mournful_ummah }
		ALG = { add_ideas = PAL_mournful_ummah }
		TUN = { add_ideas = PAL_mournful_ummah }
		LBA = { add_ideas = PAL_mournful_ummah }
		WES = { add_ideas = PAL_mournful_ummah }
		SUD = { add_ideas = PAL_mournful_ummah }
		SOM = { add_ideas = PAL_mournful_ummah }
		AAS = { add_ideas = PAL_mournful_ummah }
		YEM = { add_ideas = PAL_mournful_ummah }
		KUW = { add_ideas = PAL_mournful_ummah }
		OMA = { add_ideas = PAL_mournful_ummah }
		UAE = { add_ideas = PAL_mournful_ummah }
		QAT = { add_ideas = PAL_mournful_ummah }
		SML = { add_ideas = PAL_mournful_ummah }
		DJI = { add_ideas = PAL_mournful_ummah }
		ERI = { add_ideas = PAL_mournful_ummah }
		MRT = { add_ideas = PAL_mournful_ummah }
		LEB = { add_ideas = PAL_mournful_ummah }
		SAU = { add_ideas = PAL_mournful_ummah }
		ROC = { add_ideas = PAL_mournful_ummah }
		ARR = { add_ideas = PAL_mournful_ummah }
		SAR = { add_ideas = PAL_mournful_ummah }
			}
		}
	}
}

ISR_arab_war = {
	ISR_arab_war_countdown = {
		icon = generic_industry
		allowed = { 
			tag = ISR
		}
		activation = {
			always = no
		}
		available = {
			always = no
		}
		cancel_trigger = {
			is_in_faction_with = USB
		}
		is_good = no
		selectable_mission = no
		days_mission_timeout = 700
		complete_effect = {
		}
		cancel_effect = {
		}
		timeout_effect = {
			country_event = {
				id = israel.15
			}
		}
	}
	ISR_declare_victory = {
		available = {
			tag = ISR
			has_war = no
			NOT = { is_in_faction_with = USB }
            JOR = { exists = no }
			PAL = { exists = no }
		}
		modifier = {
		}
		ai_will_do = {
			factor = 100
		}
		fire_only_once = yes
		cost = 0
		
		remove_effect = {
			remove_mission = ISR_arab_war_countdown
			set_global_flag = ISR_arabs_defeated
			news_event = {
         		id = news.377
                hours = 5
			}
			add_state_core = 915
            add_state_core = 810
            add_state_core = 881
            add_state_core = 811
			annex_country = {
			    target = HEZ
				transfer_troops = no
			}
			annex_country = {
			    target = GDL
				transfer_troops = no
			}
			LEB = { transfer_state = 928 }
			#HRL = {
			#    create_wargoal = {
			#        type = annex_everything
			#        target = EGY
		    #    }
			#}
		}
	}
	ISR_kill_syria = {
		allowed = {
			tag = ISR
		}
		visible = {
			has_war_with = SYR
			NOT = { is_in_faction_with = USB }
		}
		available = {
			tag = ISR
			OR = {
				AND = {
					controls_state = 1032
					controls_state = 1033
					controls_state = 554
				}
				SYR = { surrender_progress > 0.5 }
			}
		}
		modifier = {
		}
		ai_will_do = {
			factor = 100
		}
		fire_only_once = yes
		days_remove = 1
		cost = 0
		
		complete_effect = {
			SYR = {
				leave_faction = yes
			}
			ISR = {
				transfer_state = 1033
			    white_peace = SYR
				create_wargoal = {
					type = annex_everything
					target = JOR
				}
			}
			1029 = {
				set_demilitarized_zone = yes
			}
			1030 = {
				set_demilitarized_zone = yes
			}
			1031 = {
				set_demilitarized_zone = yes
			}
			814 = {
				set_demilitarized_zone = yes
			}
			1028 = {
				set_demilitarized_zone = yes
			}
			1108 = {
				set_demilitarized_zone = yes
			}
			1027 = {
				set_demilitarized_zone = yes
			}
			677 = {
				set_demilitarized_zone = yes
			}
			680 = {
				set_demilitarized_zone = yes
			}
			1034 = {
				set_demilitarized_zone = yes
			}
			1035 = {
				set_demilitarized_zone = yes
			}
			1109 = {
				set_demilitarized_zone = yes
			}
			SYR = {
				country_event = { id = syria.34 days = 63 }
				leave_faction = yes
				set_variable = {
					disband_fraction = 0.75
				}
				disband_units_fraction = yes
				clear_variable = disband_fraction
			}
		}
	}
	ISR_kill_egypt = {
		allowed = {
			tag = ISR
		}
		visible = {
			OR = {
			has_war_with = EGY
			has_war_with = MUS
			}
			NOT = { is_in_faction_with = USB }
		}
		available = {
			tag = ISR
			controls_state = 813
			controls_state = 453	
			OR = {
				AND = {
					controls_state = 813
					controls_state = 453
				}
				OR = {
				EGY = { surrender_progress > 0.5 }
				MUS = { surrender_progress > 0.5 }
				}
			}
		}
		modifier = {
		}
		ai_will_do = {
			factor = 100
		}
		fire_only_once = yes
		days_remove = 1
		cost = 0
		
		complete_effect = {
			ISR = {
			    white_peace = EGY
				white_peace = MUS
				transfer_state = 453
				transfer_state = 813
			}
			EGY = {
			    dismantle_faction = yes
				leave_faction = yes
			}
			MUS = {
			    dismantle_faction = yes
				leave_faction = yes
			}
		}
	}
}

ISR_GER_solomon = {
	GER_ISR_send_guns = {
		allowed = {
			tag = GER
		}
		visible = {
			has_country_flag = GER_arab_israeli_war_flag
		}
		icon = GFX_decision_european_union
		fire_only_once = no
		days_remove = 20
		days_re_enable = 30
		ai_will_do = {
			factor = 10
		}
		remove_effect = {
			ISR = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_2
					amount = 2500
					producer = GER
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 250
					producer = GER
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 300
					producer = GER
				}
				add_equipment_to_stockpile = {
					type = anti_air_equipment_1
					amount = 300
					producer = GER
				}
			}
		}
		cost = 25
	}
	GER_ISR_send_tanks = {
		allowed = {
			tag = GER
		}
		visible = {
			has_country_flag = GER_arab_israeli_war_flag
		}
		icon = GFX_decision_european_union
		fire_only_once = no
		days_remove = 20
		days_re_enable = 30
		ai_will_do = {
			factor = 10
		}
		remove_effect = {
			ISR = {
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 500
					producer = GER
				}
				add_equipment_to_stockpile = {
					type = modern_tank_equipment_1
					amount = 150
					producer = GER
				}
				add_equipment_to_stockpile = {
					type = light_mechanized_equipment_2
					amount = 200
					producer = GER
				}
				add_equipment_to_stockpile = {
					type = mechanized_equipment_2
					amount = 200
					producer = GER
				}
				add_equipment_to_stockpile = {
					type = modern_tank_artillery_equipment_1
					amount = 200
					producer = GER
				}
			}
		}
		cost = 40
	}
	GER_ISR_send_planes = {
		allowed = {
			tag = GER
		}
		visible = {
			has_country_flag = GER_arab_israeli_war_flag
		}
		icon = GFX_decision_european_union
		fire_only_once = no
		days_remove = 20
		days_re_enable = 90
		ai_will_do = {
			factor = 10
		}
		remove_effect = {
			ISR = {
				add_equipment_to_stockpile = {
					type = attack_helicopter_equipment_1
					amount = 50
					producer = GER
				}
				add_equipment_to_stockpile = {
					type = small_plane_cas_airframe_1
					amount = 50
					producer = GER
					variant_name = "Tornado IDS"
				}
			}
		}
		cost = 60
	}
	GER_ISR_humanitarian_aid = {
		allowed = {
			tag = GER
		}
		visible = {
			has_country_flag = GER_arab_israeli_war_flag
		}
		icon = GFX_decision_european_union
		fire_only_once = no
		days_remove = 20
		days_re_enable = 40
		remove_effect = {
			ISR = {
				country_event = {
					id = uk.116
				}
			}
		}
		cost = 40
	}
	GER_ISR_intensify_volunteers = {
		allowed = {
			tag = GER
		}
		visible = {
			has_country_flag = GER_arab_israeli_war_flag
			NOT = {
				has_global_flag = GER_sended_volunteers_isr
			}
		}
		icon = GFX_decision_european_union
		fire_only_once = yes
		days_remove = 14
		ai_will_do = {
			factor = 100
		}
		complete_effect = {
		}
		remove_effect = {
            custom_effect_tooltip = GER_ISR_intensify_volunteers_tt
			hidden_effect = {
				set_global_flag = GER_sended_volunteers_isr
			}
		}
		cost = 60
	}
}