diff --git a/code/game/gamemodes/malfunction/Malf_Modules.dm b/code/game/gamemodes/malfunction/Malf_Modules.dm index 7ca0ce75a83..b37060a78c2 100644 --- a/code/game/gamemodes/malfunction/Malf_Modules.dm +++ b/code/game/gamemodes/malfunction/Malf_Modules.dm @@ -152,13 +152,23 @@ rcd light flash thingy on matter drain if(UC.uses > 0) if(C.assembly) var/upgraded = 0 + if(!C.isXRay()) C.upgradeXRay() + //Update what it can see. cameranet.updateVisibility(C) upgraded = 1 + if(!C.isEmpProof()) C.upgradeEmpProof() upgraded = 1 + + if(!C.isMotion()) + C.upgradeMotion() + upgraded = 1 + // Add it to machines that process + machines |= src + if(upgraded) UC.uses -- C.visible_message("\icon[src] *beep*") @@ -303,7 +313,7 @@ rcd light flash thingy on matter drain already = 1 if (!already) usr.verbs += /client/proc/upgrade_camera - src.temp = "Upgrades a camera to have X-Ray vision and be EMP-Proof. 10 uses." + src.temp = "Upgrades a camera to have X-Ray vision, Motion and be EMP-Proof. 10 uses." usr:current_modules += new /datum/AI_Module/small/upgrade_camera else src.temp = "Ten additional uses added to ReCam module." src.processing_time -= 15 diff --git a/code/game/machinery/camera/motion.dm b/code/game/machinery/camera/motion.dm index 7ce138b6146..588ab5005ce 100644 --- a/code/game/machinery/camera/motion.dm +++ b/code/game/machinery/camera/motion.dm @@ -3,6 +3,7 @@ var/list/motionTargets = list() var/detectTime = 0 var/area/ai_monitored/area_motion = null + var/alarm_delay = 100 // Don't forget, there's another 10 seconds in queueAlarm() /obj/machinery/camera/process() @@ -12,7 +13,7 @@ return if (detectTime > 0) var/elapsed = world.time - detectTime - if (elapsed > 300) + if (elapsed > alarm_delay) triggerAlarm() else if (detectTime == -1) for (var/mob/target in motionTargets)