Broken-but-On Light fix

This commit is contained in:
TullyBurnalot
2017-01-09 03:25:34 +00:00
parent cb328a1742
commit c460124da2
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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()
+3
View File
@@ -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