namespace = mod_nuclear_debug

mod_nuclear_nuke_own_colony.1 = {
	type = state_event
	title = mod_nuclear_nuke_own_colony.1.t
	desc = mod_nuclear_nuke_own_colony.1.d
	flavor = mod_nuclear_nuke_own_colony.1.f

	trigger = {
		has_decree = decree_strike_own_uninc_state 
	}

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

	option = {
		name = mod_nuclear_nuke_own_colony.1.1
		trigger = {
			owner = {
				var:warhead_current_stockpile >= 1
			}
		}
		kill_population_percent_in_state = {
			percent = 0.05
		}
		while = {
			count = 1
			drop_nuke_one_effect = yes
		}
		owner = {
			change_infamy = 2.5
			change_variable = {
				name = warhead_current_stockpile
				subtract = 1
			}
		}
		add_radicals_in_state = {
			value = 0.2
		}
		add_modifier = {
    			name = mod_nuclear_colony_recently_nuked
   			months = 4
		}
	}
	option = {
		name = mod_nuclear_nuke_own_colony.1.2
		trigger = {
			owner = {
				var:warhead_current_stockpile >= 5
			}
		}
		kill_population_percent_in_state = {
			percent = 0.05
		}
		while = {
			count = 5
			drop_nuke_one_effect = yes
		}
		owner = {
			change_infamy = 2.5
			change_variable = {
				name = warhead_current_stockpile
				subtract = 5
			}
		}
		add_radicals_in_state = {
			value = 0.2
		}
		add_modifier = {
    			name = mod_nuclear_colony_recently_nuked
   			months = 4
		}
	}
	option = {
		name = mod_nuclear_nuke_own_colony.1.3
		trigger = {
			owner = {
				var:warhead_current_stockpile >= 10
			}
		}
		kill_population_percent_in_state = {
			percent = 0.05
		}
		while = {
			count = 10
			drop_nuke_one_effect = yes
		}
		owner = {
			change_infamy = 2.5
			change_variable = {
				name = warhead_current_stockpile
				subtract = 10
			}
		}
		add_radicals_in_state = {
			value = 0.2
		}
		add_modifier = {
    			name = mod_nuclear_colony_recently_nuked
   			months = 4
		}
	}
	option = {
		name = mod_nuclear_nuke_own_colony.1.4
		trigger = {
			owner = {
				var:warhead_current_stockpile >= 20
			}
		}
		kill_population_percent_in_state = {
			percent = 0.05
		}
		while = {
			count = 20
			drop_nuke_one_effect = yes
		}
		owner = {
			change_infamy = 2.5
			change_variable = {
				name = warhead_current_stockpile
				subtract = 20
			}
		}
		add_radicals_in_state = {
			value = 0.2
		}
		add_modifier = {
    			name = mod_nuclear_colony_recently_nuked
   			months = 4
		}
	}
	option = {
		name = mod_nuclear_nuke_own_colony.1.5
		custom_tooltip = {
			text = mod_nuclear_nuke_own_colony.1.5_tooltip
		}
	}
}
