anchor.diff:  	to_chat(src, "<span class='notice'>Doomsday 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")
  -	nuking = 1
  -	var/obj/machinery/doomsday_device/DOOM = new /obj/machinery/doomsday_device(src)
  +	nuking = TRUE
  +	var/obj/machinery/doomsday_device/DOOM = new (src)
   	doomsday_device = DOOM
   	doomsday_device.start()
   	verbs -= /mob/living/silicon/ai/proc/nuke_station
  -	for(var/obj/item/weapon/pinpointer/P in GLOB.pinpointer_list)
  +	for(var/pinpointer in GLOB.pinpointer_list)
  +		var/obj/item/weapon/pinpointer/P = pinpointer
   		P.switch_mode_to(TRACK_MALF_AI) //Pinpointers start tracking the AI wherever it goes
   
   /obj/machinery/doomsday_device
  
positive.code: /datum/AI_Module
  	var/uses = 0
  	var/module_name
  
negative.code: 	name = "doomsday device"
  	icon_state = "nuclearbomb_base"
  	desc = "A weapon which disintegrates all organic life in a large area."
  	anchored = TRUE
  	density = TRUE
  	verb_exclaim = "blares"
  	var/timing = FALSE
  	var/obj/effect/countdown/doomsday/countdown
  	var/detonation_timer
  	var/list/milestones
  
  /obj/machinery/doomsday_device/Initialize()
  	. = ..()
  	countdown = new(src)
  	milestones = list()
  
  /obj/machinery/doomsday_device/Destroy()
  	QDEL_NULL(countdown)
  	STOP_PROCESSING(SSfastprocess, src)
  	SSshuttle.clearHostileEnvironment(src)
  	SSmapping.remove_nuke_threat(src)
  	for(var/A in GLOB.ai_list)
  		var/mob/living/silicon/ai/AI = A
  		if(AI.doomsday_device == src)
  			AI.doomsday_device = null
  	return ..()
  
  /obj/machinery/doomsday_device/proc/start()
  	detonation_timer = world.time + DEFAULT_DOOMSDAY_TIMER
  	timing = TRUE
  	countdown.start()
  	START_PROCESSING(SSfastprocess, src)
  