mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-20 22:16:51 +00:00
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
23 lines
549 B
Plaintext
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
|