Files
Bubberstation/code/modules/events/camerafailure.dm
MrDoomBringer 16be1163c0 Gives random events a ghost follow link (#40727)
Also improves the code for anomalies a bit

cl MrDoomBringer
tweak: Random Events now have a follow link for ghosts!
/cl

Untested, and anomalies are broken right now but that takes like 2 seconds to fix
2018-10-27 13:11:48 +13:00

23 lines
549 B
Plaintext

/datum/round_event_control/camera_failure
name = "Camera Failure"
typepath = /datum/round_event/camera_failure
weight = 100
max_occurrences = 20
alert_observers = FALSE
/datum/round_event/camera_failure
fakeable = FALSE
/datum/round_event/camera_failure/start()
var/iterations = 1
var/list/cameras = GLOB.cameranet.cameras.Copy()
while(prob(round(100/iterations)))
var/obj/machinery/camera/C = pick_n_take(cameras)
if (!C)
break
if (!("ss13" in C.network))
continue
if(C.status)
C.toggle_cam(null, 0)
iterations *= 2.5