anchor.diff:  	mod_pick_name = "rcd"
   
   /client/proc/disable_rcd()
  -	set category = "AI Modules"
  +	set category = "Malfunction"
   	set name = "Disable RCDs"
  -	for(var/obj/item/weapon/rcd/rcd in world)
  -		rcd = new /obj/item/weapon/rcd_fake(rcd)
  +	for(var/datum/game_mode/malfunction/AI_Module/large/disable_rcd/rcdmod in usr:current_modules)
  +		if(rcdmod.uses > 0)
  +			rcdmod.uses --
  +			for(var/obj/item/weapon/rcd/rcd in world)
  +				rcd = new /obj/item/weapon/rcd_fake(rcd)
  +		else usr << "Out of uses."
   
   /datum/game_mode/malfunction/AI_Module/small/overload_machine
   	module_name = "Machine overload"
  
positive.code: 	mod_pick_name = "coreup"
  
  /client/proc/fireproof_core()
  	set category = "AI Modules"
  	set name = "Fireproof Core"
  	for(var/mob/living/silicon/ai/ai in world)
  		ai.fire_res_on_core = 1
  
negative.code: /datum/game_mode/malfunction/AI_Module/module_picker/Topic(href, href_list)
  	..()
  	if (href_list["coreup"])
  		var/already
  		for (var/datum/game_mode/malfunction/AI_Module/mod in usr:current_modules)
  			if(istype(mod, /datum/game_mode/malfunction/AI_Module/large/fireproof_core))
  				already = 1
  		if (!already)
  			usr.verbs += /client/proc/fireproof_core
  			usr:current_modules += new /datum/game_mode/malfunction/AI_Module/large/fireproof_core
  			src.temp = "An upgrade to improve core resistance, making it immune to fire and heat. This effect is permanent."
  			src.processing_time -= 50
  		else src.temp = "This module is only needed once."
  
  	else if (href_list["turret"])
  		var/already
  		for (var/datum/game_mode/malfunction/AI_Module/mod in usr:current_modules)
  			if(istype(mod, /datum/game_mode/malfunction/AI_Module/large/upgrade_turrets))
  				already = 1
  		if (!already)
  			usr.verbs += /client/proc/upgrade_turrets
  			usr:current_modules += new /datum/game_mode/malfunction/AI_Module/large/upgrade_turrets
  			src.temp = "Improves the firing speed and health of all AI turrets. This effect is permanent."
  			src.processing_time -= 50
  		else src.temp = "This module is only needed once."
  
  	else if (href_list["rcd"])
  		var/already
  		for (var/datum/game_mode/malfunction/AI_Module/mod in usr:current_modules)
  			if(istype(mod, /datum/game_mode/malfunction/AI_Module/large/disable_rcd))
  				mod:uses += 1
  				already = 1
  		if (!already)
  			usr:current_modules += new /datum/game_mode/malfunction/AI_Module/large/disable_rcd
  			usr.verbs += /client/proc/disable_rcd
  			src.temp = 	"Send a specialised pulse to break all RCD devices on the station."
  		else src.temp = "Additional use added to RCD disabler."
  		src.processing_time -= 50
  
  	else if (href_list["overload"])
  		var/already
  		for (var/datum/game_mode/malfunction/AI_Module/mod in usr:current_modules)
  			if(istype(mod, /datum/game_mode/malfunction/AI_Module/small/overload_machine))
  				mod:uses += 2
  				already = 1
  		if (!already)
  			usr.verbs += /client/proc/overload_machine
  			usr:current_modules += new /datum/game_mode/malfunction/AI_Module/small/overload_machine
  			src.temp = "Overloads an electrical machine, causing a small explosion. 2 uses."
  		else src.temp = "Two additional uses added to Overload module."
  		src.processing_time -= 15
  
  	else if (href_list["blackout"])
  		var/already
  		for (var/datum/game_mode/malfunction/AI_Module/mod in usr:current_modules)
  			if(istype(mod, /datum/game_mode/malfunction/AI_Module/small/blackout))
  				mod:uses += 3
  				already = 1
  		if (!already)
  			usr.verbs += /client/proc/blackout
  			src.temp = "Attempts to overload the lighting circuits on the station, destroying some bulbs. 3 uses."
  			usr:current_modules += new /datum/game_mode/malfunction/AI_Module/small/blackout
  		else src.temp = "Three additional uses added to Blackout module."
  		src.processing_time -= 15
  
  	else if (href_list["interhack"])
  		var/already
  		for (var/datum/game_mode/malfunction/AI_Module/mod in usr:current_modules)
  			if(istype(mod, /datum/game_mode/malfunction/AI_Module/small/interhack))
  				already = 1
  		if (!already)
  			usr.verbs += /client/proc/interhack
  			src.temp = "Hacks the status upgrade from Cent. Com, removing any information about malfunctioning electrical systems."
  			usr:current_modules += new /datum/game_mode/malfunction/AI_Module/small/interhack
  			src.processing_time -= 15
  		else src.temp = "This module is only needed once."
  
  	else if (href_list["recam"])
  		var/already
  		for (var/datum/game_mode/malfunction/AI_Module/mod in usr:current_modules)
  			if(istype(mod, /datum/game_mode/malfunction/AI_Module/small/reactivate_camera))
  				mod:uses += 10
  				already = 1
  		if (!already)
  			usr.verbs += /client/proc/reactivate_camera
  			src.temp = "Reactivates a currently disabled camera. 10 uses."
  			usr:current_modules += new /datum/game_mode/malfunction/AI_Module/small/reactivate_camera
  		else src.temp = "Ten additional uses added to ReCam module."
  		src.processing_time -= 15
  
  	else
  		if (href_list["temp"])
  			src.temp = null
  