anchor.diff:  /datum/AI_Module/small/
   	uses = 5
   
  +//////DOOMSDAY DEVICE
  +
  +/datum/AI_Module/large/nuke_station
  +	module_name = "Doomsday Device"
  +	mod_pick_name = "nukestation"
  +	description = "Activate a weapon that will disintegrate all organic life on the station after a 450 second delay."
  +	cost = 130
  +	one_time = 1
  +
  +	power_type = /mob/living/silicon/ai/proc/nuke_station
  +
  +/mob/living/silicon/ai/proc/nuke_station()
  +	set category = "Malfunction"
  +	set name = "Doomsday Device"
  +
  +	for(var/turf/simulated/floor/bluegrid/T in orange(5, src))
  +		T.icon_state = "rcircuitanim" //Causes blue tiles near the AI to change to flashing red
  +
  +	src << "<span class='notice'>Nuclear device armed.</span>"
  +	priority_announce("Hostile runtimes detected in all station systems, please deactivate your AI to prevent possible damage to its morality core.", "Anomaly Alert", 'sound/AI/aimalf.ogg')
  +	set_security_level("delta")
  +	SSshuttle.emergencyNoEscape = 1
  +	nuking = 1
  +	var/obj/machinery/doomsday_device/DOOM = new /obj/machinery/doomsday_device(src)
  +	doomsday_device = DOOM
  +	verbs -= /mob/living/silicon/ai/proc/nuke_station
  +
  +/obj/machinery/doomsday_device
  +	icon = 'icons/obj/machines/nuke_terminal.dmi'
  +	name = "doomsday device"
  +	icon_state = "nuclearbomb_base"
  +	desc = "A weapon which disintegrates all organic life in a large area."
  +	anchored = 1
  +	density = 1
  +	verb_exclaim = "blares"
  +	var/timing = 1
  +	var/timer = 450
  +
  +/obj/machinery/doomsday_device/process()
  +	if(!timing)
  +		return
  +	if(timer <= 0)
  +		var/turf/T = get_turf(src)
  +		timing = 0
  +		detonate(T.z)
  +		qdel(src)
  +	else
  +		timer--
  +		if(!(timer%60))
  +			var/message = "[timer] SECONDS UNTIL DOOMSDAY DEVICE ACTIVATION!"
  +			minor_announce(message, "ERROR ER0RR $R0RRO$!R41.%%!!(%$^^__+ @#F0E4", 1)
  +
  +
  +/obj/machinery/doomsday_device/proc/detonate(z_level = 1)
  +	for(var/mob/M in player_list)
  +		M << 'sound/machines/Alarm.ogg'
  +	sleep(100)
  +	for(var/mob/living/L in mob_list)
  +		var/turf/T = get_turf(L)
  +		if(T.z != z_level)
  +			continue
  +		if(issilicon(L))
  +			continue
  +		L << "<span class='danger'><B>The blast wave from the [src] tears you atom from atom!</B></span>"
  +		L.dust()
  +	world << "<B>The AI cleansed the station of life with the doomsday device!</B>"
  +	ticker.force_ending = 1
   
   /datum/AI_Module/large/fireproof_core
   	module_name = "Core Upgrade"
  
positive.code: 			if(AM.mod_pick_name == href_list["showdesc"])
  				temp = AM.description
  	src.use(usr)
  	return
  
  /datum/AI_Module/large/nuke_station
  	module_name = "Doomsday Device"
  	mod_pick_name = "nukestation"
  	description = "Activate a weapon that will disintegrate all organic life on the station after a 500 second delay."
  	cost = 150
  	one_time = 1
  
  	power_type = /mob/living/silicon/ai/proc/nuke_station
  
  /mob/living/silicon/ai/proc/nuke_station()
  	set category = "Malfunction"
  	set name = "Doomsday Device"
  
  	for(var/turf/simulated/floor/bluegrid/T in orange(5, src))
  		T.icon_state = "rcircuitanim" //Causes blue tiles near the AI to change to flashing red
  
  	src << "<span class='notice'>Nuclear device armed.</span>"
  	priority_announce("Hostile runtimes detected in all station systems, please deactivate your AI to prevent possible damage to its morality core.", "Anomaly Alert", 'sound/AI/aimalf.ogg')
  	set_security_level("delta")
  	SSshuttle.emergencyNoEscape = 1
  	nuking = 1
  	var/obj/machinery/doomsday_device/DOOM = new /obj/machinery/doomsday_device(src)
  	doomsday_device = DOOM
  	verbs -= /mob/living/silicon/ai/proc/nuke_station
  
  /obj/machinery/doomsday_device
  	icon = 'icons/obj/machines/nuke_terminal.dmi'
  	name = "doomsday device"
  	icon_state = "nuclearbomb_base"
  	desc = "A weapon which disintegrates all organic life in a large area."
  	anchored = 1
  	density = 1
  	verb_exclaim = "blares"
  	var/timing = 1
  	var/timer = 500
  	var/obj/item/device/radio/radio
  
  
  /obj/machinery/doomsday_device/New()
  	..()
  	radio = new /obj/item/device/radio
  
  /obj/machinery/doomsday_device/process()
  	if(!timing)
  		return
  	if(timer <= 0)
  		var/turf/T = get_turf(src)
  		timing = 0
  		detonate(T.z)
  		qdel(src)
  	else
  		timer--
  		if(!(timer%60))
  			var/message = "[timer] SECONDS UNTIL ACTIVATION!!!"
  			radio.talk_into(src, message, null, list(SPAN_ROBOT))
  
  
  /obj/machinery/doomsday_device/proc/detonate(z_level = 1)
  	for(var/mob/M in player_list)
  		M << 'sound/machines/Alarm.ogg'
  	sleep(100)
  	for(var/mob/living/L in mob_list)
  		var/turf/T = get_turf(L)
  		if(T.z != z_level)
  			continue
  		if(issilicon(L))
  			continue
  		L << "<span class='danger'><B>The blast wave from the [src] tears you atom from atom!</B></span>"
  		L.dust()
  	world << "<B>The AI cleansed the station of life with the doomsday device!</B>"
  	ticker.force_ending = 1
  
negative.code: 	one_time = 1
  
  	power_type = /mob/living/silicon/ai/proc/fireproof_core
  
  
  
  //////END DOOMSDAY DEVICE
  
  
  /mob/living/silicon/ai/proc/fireproof_core()
  	set category = "Malfunction"
  