Cameras now have a small chance of being permanently destroyed.

This commit is contained in:
PsiOmega
2015-04-27 19:09:46 +02:00
parent 4bddde11ae
commit 27e91b3fa0

View File

@@ -14,9 +14,12 @@
for(var/obj/machinery/camera/cam in range(severity_range,C))
if(is_valid_camera(cam))
cam.wires.UpdateCut(CAMERA_WIRE_POWER, 0)
if(prob(5))
cam.wires.UpdateCut(CAMERA_WIRE_ALARM, 0)
if(prob(2*severity))
cam.destroy()
else
cam.wires.UpdateCut(CAMERA_WIRE_POWER, 0)
if(prob(5*severity))
cam.wires.UpdateCut(CAMERA_WIRE_ALARM, 0)
/datum/event/camera_damage/proc/acquire_random_camera(var/remaining_attempts = 5)
if(!cameranet.cameras.len)