namespace = mod_nuclear_strategic_strike

### Threaten a nuclear war

mod_nuclear_strategic_strike.100 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.100.t
	desc = mod_nuclear_strategic_strike.100.d
	flavor = mod_nuclear_strategic_strike.100.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuclear_strike_2.dds"
	}

	option = {
		name = mod_nuclear_strategic_strike.100.1
		trigger = {
			is_diplomatic_play_committed_participant = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
		}
		ROOT = {
			save_scope_as = threaten_initiator
		}
		random_country = {
			limit = {
				is_diplomatic_play_enemy_of = ROOT
				OR = {
					is_diplomatic_play_initiator = yes
					is_diplomatic_play_target = yes
				}
			}
			trigger_event = mod_nuclear_strategic_strike.101
			## Barrage 1
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.100.2
		trigger_event = mod_nuclear_strategic_strike.100
	}

	option = {
		name = mod_nuclear_strategic_strike.100.3
	}
}

mod_nuclear_strategic_strike.101 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.101.t
	desc = mod_nuclear_strategic_strike.101.d
	flavor = mod_nuclear_strategic_strike.101.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuclear_strike_1.dds"
	}

	option = {
		name = mod_nuclear_strategic_strike.101.1
		default_option = yes
		## Yield
		random_diplomatic_play = {
			limit = {
				any_scope_play_involved = {
					THIS = ROOT # THIS is the current scope, in this line THIS is any_scope_play_involved
				}
				any_scope_play_involved = {
					THIS = scope:threaten_initiator # THIS is the current scope, in this line THIS is any_scope_play_involved
				}
			}
			end_play = yes
			scope:threaten_initiator = {
				trigger_event = mod_nuclear_strategic_strike.110	
			}
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.101.2
		trigger = {
			OR = {
				is_ai = no
				AND = {
					var:warhead_current_stockpile >= 1
					var:strike_capacity_current_stockpile >= 1
					has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
				}
			}
		}
		ROOT = {
			save_scope_as = threaten_receiver
		}
		random_diplomatic_play = {
			scope:threaten_initiator = {
				trigger_event = mod_nuclear_strategic_strike.2	
			}
		}
	}
}

### Backed Down Event
mod_nuclear_strategic_strike.110 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.110.t
	desc = mod_nuclear_strategic_strike.110.d
	flavor = mod_nuclear_strategic_strike.110.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuclear_strike_2.dds"
	}
	
	immediate = {
		clear_saved_scope = scope:threaten_initiator
	}
	option = {
		name = mod_nuclear_strategic_strike.110.1
	}
}

### Insist Launching a Strike Event
### Launching a strike
mod_nuclear_strategic_strike.2 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.2.t
	desc = mod_nuclear_strategic_strike.2.d
	flavor = mod_nuclear_strategic_strike.2.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuclear_strike_1.dds"
	}

	immediate = {
		clear_saved_scope = scope:threaten_initiator
	}

	option = {
		name = mod_nuclear_strategic_strike.1.1
		trigger = {
			is_diplomatic_play_committed_participant = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
		}
		if = {
			limit = {
				NOT = {
					scope:threaten_receiver = {
						has_war_with = root
					}
				}				
			}
			change_infamy = 5
			random_diplomatic_play = {
				limit = {
					any_scope_play_involved = {
						THIS = ROOT # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
					any_scope_play_involved = {
						THIS = scope:threaten_receiver # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
				}
				set_war = yes
			}
		}
		scope:threaten_receiver = {
			trigger_event = mod_nuclear_strategic_strike.10
			## Barrage 1
			clear_saved_scope = scope:threaten_receiver
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 1
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 1
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.1.2
		trigger = {
			is_diplomatic_play_committed_participant = yes
			var:warhead_current_stockpile >= 5
			var:strike_capacity_current_stockpile >= 5
		}
		if = {
			limit = {
				NOT = {
					scope:threaten_receiver = {
						has_war_with = root
					}
				}				
			}
			change_infamy = 5
			random_diplomatic_play = {
				limit = {
					any_scope_play_involved = {
						THIS = ROOT # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
					any_scope_play_involved = {
						THIS = scope:threaten_receiver # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
				}
				set_war = yes
			}
		}
		scope:threaten_receiver = {
			trigger_event = mod_nuclear_strategic_strike.11
			clear_saved_scope = scope:threaten_receiver
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 5
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 5
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.1.3
		trigger = {
			is_diplomatic_play_committed_participant = yes
			var:warhead_current_stockpile >= 10
			var:strike_capacity_current_stockpile >= 10
		}
		if = {
			limit = {
				NOT = {
					scope:threaten_receiver = {
						has_war_with = root
					}
				}				
			}
			change_infamy = 5
			random_diplomatic_play = {
				limit = {
					any_scope_play_involved = {
						THIS = ROOT # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
					any_scope_play_involved = {
						THIS = scope:threaten_receiver # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
				}
				set_war = yes
			}
		}
		scope:threaten_receiver = {
			trigger_event = mod_nuclear_strategic_strike.12
			## Barrage 1
			clear_saved_scope = scope:threaten_receiver
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 10
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 10
		}
	}
	option = {
		name = mod_nuclear_strategic_strike.1.4
		trigger = {
			is_diplomatic_play_committed_participant = yes
			var:warhead_current_stockpile >= 20
			var:strike_capacity_current_stockpile >= 20
		}
		if = {
			limit = {
				NOT = {
					scope:threaten_receiver = {
						has_war_with = root
					}
				}				
			}
			change_infamy = 5
			random_diplomatic_play = {
				limit = {
					any_scope_play_involved = {
						THIS = ROOT # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
					any_scope_play_involved = {
						THIS = scope:threaten_receiver # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
				}
				set_war = yes
			}
		}
		scope:threaten_receiver = {
			trigger_event = mod_nuclear_strategic_strike.13
			## Barrage 1
			clear_saved_scope = scope:threaten_receiver
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 20
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 20
		}
	}
	option = {
		name = mod_nuclear_strategic_strike.1.5
		trigger = {
			is_diplomatic_play_committed_participant = yes
			var:warhead_current_stockpile >= 50
			var:strike_capacity_current_stockpile >= 50
		}
		if = {
			limit = {
				NOT = {
					scope:threaten_receiver = {
						has_war_with = root
					}
				}				
			}
			change_infamy = 5
			random_diplomatic_play = {
				limit = {
					any_scope_play_involved = {
						THIS = ROOT # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
					any_scope_play_involved = {
						THIS = scope:threaten_receiver # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
				}
				set_war = yes
			}
		}
		scope:threaten_receiver = {
			trigger_event = mod_nuclear_strategic_strike.14
			## Barrage 1
			clear_saved_scope = scope:threaten_receiver
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 50
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 50
		}
	}
	option = {
		name = mod_nuclear_strategic_strike.1.6
		trigger = {
			is_diplomatic_play_committed_participant = yes
			var:warhead_current_stockpile >= 100
			var:strike_capacity_current_stockpile >= 100
		}
		if = {
			limit = {
				NOT = {
					scope:threaten_receiver = {
						has_war_with = root
					}
				}				
			}
			change_infamy = 5
			random_diplomatic_play = {
				limit = {
					any_scope_play_involved = {
						THIS = ROOT # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
					any_scope_play_involved = {
						THIS = scope:threaten_receiver # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
				}
				set_war = yes
			}
		}
		scope:threaten_receiver = {
			trigger_event = mod_nuclear_strategic_strike.15
			## Barrage 1
			clear_saved_scope = scope:threaten_receiver
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 100
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 100
		}
	}
	option = {
		name = mod_nuclear_strategic_strike.1.7
		trigger = {
			is_diplomatic_play_committed_participant = yes
			var:warhead_current_stockpile >= 200
			var:strike_capacity_current_stockpile >= 200
		}
		if = {
			limit = {
				NOT = {
					scope:threaten_receiver = {
						has_war_with = root
					}
				}				
			}
			change_infamy = 5
			random_diplomatic_play = {
				limit = {
					any_scope_play_involved = {
						THIS = ROOT # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
					any_scope_play_involved = {
						THIS = scope:threaten_receiver # THIS is the current scope, in this line THIS is any_scope_play_involved
					}
				}
				set_war = yes
			}
		}
		scope:threaten_receiver = {
			trigger_event = mod_nuclear_strategic_strike.16
			## Barrage 1
			clear_saved_scope = scope:threaten_receiver
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 200
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 200
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.1.9
		## Stand Down
		scope:threaten_receiver = {
			clear_saved_scope = scope:threaten_receiver
		}
	}
}



### Launching a strike
mod_nuclear_strategic_strike.1 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.1.t
	desc = mod_nuclear_strategic_strike.1.d
	flavor = mod_nuclear_strategic_strike.1.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuclear_strike_1.dds"
	}

	option = {
		name = mod_nuclear_strategic_strike.1.1
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
		}
		random_country = {
			limit = {
				has_war_with = ROOT
				OR = {
					ROOT = {
						is_at = no
					}
					is_diplomatic_play_initiator = yes
					is_diplomatic_play_target = yes
				}
			}
			trigger_event = mod_nuclear_strategic_strike.10
			## Barrage 1
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 1
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 1
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.1.2
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 5
			var:strike_capacity_current_stockpile >= 5
		}
		random_country = {
			limit = {
				has_war_with = ROOT
				OR = {
					ROOT = {
						is_at = no
					}
					is_diplomatic_play_initiator = yes
					is_diplomatic_play_target = yes
				}
			}
			trigger_event = mod_nuclear_strategic_strike.11
			## Barrage 5
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 5
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 5
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.1.3
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 10
			var:strike_capacity_current_stockpile >= 10
		}
		random_country = {
			limit = {
				has_war_with = ROOT
			}
			trigger_event = mod_nuclear_strategic_strike.12
			## Barrage 10
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 10
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 10
		}
	}
	option = {
		name = mod_nuclear_strategic_strike.1.4
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 20
			var:strike_capacity_current_stockpile >= 20
		}

		random_country = {
			limit = {
				has_war_with = ROOT
				OR = {
					ROOT = {
						is_at = no
					}
					is_diplomatic_play_initiator = yes
					is_diplomatic_play_target = yes
				}
			}
			trigger_event = mod_nuclear_strategic_strike.13
			## Barrage 20
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 20
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 20
		}
	}
	option = {
		name = mod_nuclear_strategic_strike.1.5
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 50
			var:strike_capacity_current_stockpile >= 50
		}
		random_country = {
			limit = {
				has_war_with = ROOT
				OR = {
					ROOT = {
						is_at = no
					}
					is_diplomatic_play_initiator = yes
					is_diplomatic_play_target = yes
				}
			}
			trigger_event = mod_nuclear_strategic_strike.14
			## Barrage 50
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 50
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 50
		}
	}
	option = {
		name = mod_nuclear_strategic_strike.1.6
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 100
			var:strike_capacity_current_stockpile >= 100
		}
		random_country = {
			limit = {
				has_war_with = ROOT
				OR = {
					ROOT = {
						is_at = no
					}
					is_diplomatic_play_initiator = yes
					is_diplomatic_play_target = yes
				}
			}
			trigger_event = mod_nuclear_strategic_strike.15
			## Barrage 100
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 100
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 100
		}
	}
	option = {
		name = mod_nuclear_strategic_strike.1.7
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 200
			var:strike_capacity_current_stockpile >= 200
		}
		random_country = {
			limit = {
				has_war_with = ROOT
			}
			trigger_event = mod_nuclear_strategic_strike.16
			## Barrage 200
		}
		change_variable = {
			name = warhead_current_stockpile
			subtract = 200
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			subtract = 200
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.1.8
		## Stand Down
		trigger_event = mod_nuclear_strategic_strike.1 
	}

	option = {
		name = mod_nuclear_strategic_strike.1.9
		## Stand Down
	}
}

mod_nuclear_strategic_strike.10 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.10.t
	desc = mod_nuclear_strategic_strike.10.d
	flavor = mod_nuclear_strategic_strike.10.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuke_1.dds"
	}

	immediate = {
		while = {
			count = 1
			random_scope_state = {
				# weight = {population}
				drop_nuke_one_effect = yes
			}
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.a
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
			has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
		}
		trigger_event = mod_nuclear_strategic_strike.1 
	}

	option = {
		name = mod_nuclear_strategic_strike.10.b
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.b
		trigger = {
			OR = {
				NOT = {
					has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
				}
				var:warhead_current_stockpile < 0
				var:strike_capacity_current_stockpile < 0
			}
		}
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}
}


mod_nuclear_strategic_strike.11 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.11.t
	desc = mod_nuclear_strategic_strike.10.d
	flavor = mod_nuclear_strategic_strike.10.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuke_1.dds"
	}

	immediate = {
		while = {
			count = 5
			random_scope_state = {
				# weight = {population}
				drop_nuke_one_effect = yes
			}
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.a
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
			has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
		}
		trigger_event = mod_nuclear_strategic_strike.1 
	}

	option = {
		name = mod_nuclear_strategic_strike.10.b
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.c
		trigger = {
			OR = {
				NOT = {
					has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
				}
				var:warhead_current_stockpile < 0
				var:strike_capacity_current_stockpile < 0
			}
		}
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}
}


mod_nuclear_strategic_strike.12 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.12.t
	desc = mod_nuclear_strategic_strike.10.d
	flavor = mod_nuclear_strategic_strike.10.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuke_1.dds"
	}

	immediate = {
		while = {
			count = 10
			random_scope_state = {
				# weight = {population}
				drop_nuke_one_effect = yes
			}
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.a
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
			has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
		}
		trigger_event = mod_nuclear_strategic_strike.1 
	}

	option = {
		name = mod_nuclear_strategic_strike.10.b
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.c
		trigger = {
			OR = {
				NOT = {
					has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
				}
				var:warhead_current_stockpile < 0
				var:strike_capacity_current_stockpile < 0
			}
		}
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}
}

mod_nuclear_strategic_strike.13 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.13.t
	desc = mod_nuclear_strategic_strike.10.d
	flavor = mod_nuclear_strategic_strike.10.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuke_1.dds"
	}

	immediate = {
		while = {
			count = 20
			random_scope_state = {
				# weight = {population}
				drop_nuke_one_effect = yes
			}
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.a
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
			has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
		}
		trigger_event = mod_nuclear_strategic_strike.1 
	}

	option = {
		name = mod_nuclear_strategic_strike.10.b
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.c
		trigger = {
			OR = {
				NOT = {
					has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
				}
				var:warhead_current_stockpile < 0
				var:strike_capacity_current_stockpile < 0
			}
		}
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}
}

mod_nuclear_strategic_strike.14 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.14.t
	desc = mod_nuclear_strategic_strike.10.d
	flavor = mod_nuclear_strategic_strike.10.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuke_1.dds"
	}

	immediate = {
		while = {
			count = 50
			random_scope_state = {
				# weight = {population}
				drop_nuke_one_effect = yes
			}
		}
	}


	option = {
		name = mod_nuclear_strategic_strike.10.a
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
			has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
		}
		trigger_event = mod_nuclear_strategic_strike.1 
	}

	option = {
		name = mod_nuclear_strategic_strike.10.b
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.c
		trigger = {
			OR = {
				NOT = {
					has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
				}
				var:warhead_current_stockpile < 0
				var:strike_capacity_current_stockpile < 0
			}
		}
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}
}

mod_nuclear_strategic_strike.15 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.15.t
	desc = mod_nuclear_strategic_strike.10.d
	flavor = mod_nuclear_strategic_strike.10.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuke_1.dds"
	}

	immediate = {
		while = {
			count = 100
			random_scope_state = {
				# weight = {population}
				drop_nuke_one_effect = yes
			}
		}
	}


	option = {
		name = mod_nuclear_strategic_strike.10.a
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
			has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
		}
		trigger_event = mod_nuclear_strategic_strike.1 
	}

	option = {
		name = mod_nuclear_strategic_strike.10.b
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.c
		trigger = {
			OR = {
				NOT = {
					has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
				}
				var:warhead_current_stockpile < 0
				var:strike_capacity_current_stockpile < 0
			}
		}
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}
}

mod_nuclear_strategic_strike.16 = {
	type = country_event
	
	title = mod_nuclear_strategic_strike.16.t
	desc = mod_nuclear_strategic_strike.10.d
	flavor = mod_nuclear_strategic_strike.10.f

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/nuke_1.dds"
	}

	immediate = {
		while = {
			count = 200
			random_scope_state = {
				# weight = {population}
				drop_nuke_one_effect = yes
			}
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.a
		trigger = {
			is_at_war = yes
			var:warhead_current_stockpile >= 1
			var:strike_capacity_current_stockpile >= 1
			has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
		}
		trigger_event = mod_nuclear_strategic_strike.1 
	}

	option = {
		name = mod_nuclear_strategic_strike.10.b
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}

	option = {
		name = mod_nuclear_strategic_strike.10.c
		trigger = {
			OR = {
				NOT = {
					has_journal_entry = je_Mod_Nuclear_Atomic_Weapon_Tracker
				}
				var:warhead_current_stockpile < 0
				var:strike_capacity_current_stockpile < 0
			}
		}
		set_variable = {
			name = recent_nuclear_strike
			days = 28
		}
	}
}
