mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 06:04:23 +01:00
into the bin (#24289)
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
if(areas && areas.len > 0)
|
||||
for(var/area/A in areas)
|
||||
for(var/obj/machinery/light/L in A)
|
||||
L.flicker(10)
|
||||
L.forced_flicker(10)
|
||||
|
||||
/datum/event/prison_break/end()
|
||||
for(var/area/A in shuffle(areas))
|
||||
|
||||
@@ -176,8 +176,7 @@
|
||||
/obj/effect/proc_holder/spell/aoe/flicker_lights/cast(list/targets, mob/user = usr)
|
||||
for(var/turf/T in targets)
|
||||
for(var/obj/machinery/light/L in T)
|
||||
L.flicker()
|
||||
return
|
||||
L.forced_flicker()
|
||||
|
||||
//Blind AOE
|
||||
/obj/effect/proc_holder/spell/aoe/blindness
|
||||
|
||||
@@ -300,7 +300,7 @@
|
||||
manifested = FALSE
|
||||
addtimer(CALLBACK(src, TYPE_PROC_REF(/mob/living/simple_animal/hostile/floor_cluwne, Manifest)), 2)
|
||||
for(var/obj/machinery/light/L in range(H, 8))
|
||||
L.flicker()
|
||||
L.forced_flicker()
|
||||
|
||||
if(STAGE_ATTACK)
|
||||
|
||||
|
||||
@@ -218,13 +218,6 @@
|
||||
addtimer(CALLBACK(src, PROC_REF(flicker), TRUE), 1)
|
||||
cut_overlays()
|
||||
managed_overlays = null
|
||||
// APC power distruptions have a chance to propogate to other machines on its network
|
||||
for(var/obj/machinery/M in apc_area)
|
||||
// Please don't cascade, thanks
|
||||
if(M == src)
|
||||
continue
|
||||
if(prob(10))
|
||||
M.flicker()
|
||||
else
|
||||
flick("apcemag", src) //Second time we cause the APC to update its icon, then add a timer to update icon later
|
||||
addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_icon), TRUE), 10)
|
||||
|
||||
@@ -650,7 +650,10 @@
|
||||
if(current_apc)
|
||||
RegisterSignal(machine_powernet, COMSIG_POWERNET_POWER_CHANGE, PROC_REF(update), override = TRUE)
|
||||
|
||||
/obj/machinery/light/flicker(amount = rand(20, 30))
|
||||
/obj/machinery/light/get_spooked()
|
||||
return forced_flicker()
|
||||
|
||||
/obj/machinery/light/proc/forced_flicker(amount = rand(20, 30))
|
||||
if(flickering)
|
||||
return FALSE
|
||||
|
||||
|
||||
@@ -176,13 +176,3 @@
|
||||
if(prob(MACHINE_FLICKER_CHANCE))
|
||||
powernet_apc?.flicker()
|
||||
|
||||
// lights don't have their own processing loop, so local powernets will be the father they never had. 3x as likely to cause a light flicker in a particular area, pick a light to flicker at random
|
||||
if(prob(MACHINE_FLICKER_CHANCE * 3))
|
||||
var/list/lights = list()
|
||||
for(var/obj/machinery/light/L in powernet_area)
|
||||
lights += L
|
||||
|
||||
if(length(lights))
|
||||
var/obj/machinery/light/picked_light = pick(lights)
|
||||
ASSERT(istype(picked_light))
|
||||
picked_light.flicker()
|
||||
|
||||
Reference in New Issue
Block a user