mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Broken-but-On Light fix
This commit is contained in:
@@ -1367,6 +1367,8 @@
|
||||
cell.use(20)
|
||||
spawn(0)
|
||||
for(var/obj/machinery/light/L in area)
|
||||
if(!L.isfunctional())
|
||||
continue
|
||||
if(prob(chance))
|
||||
L.on = 1
|
||||
L.broken()
|
||||
|
||||
@@ -581,6 +581,9 @@
|
||||
sleep(1)
|
||||
qdel(src)
|
||||
|
||||
/obj/machinery/light/proc/isfunctional()
|
||||
return status == LIGHT_OK
|
||||
|
||||
// the light item
|
||||
// can be tube or bulb subtypes
|
||||
// will fit into empty /obj/machinery/light of the corresponding type
|
||||
|
||||
Reference in New Issue
Block a user