Runtime is now always well lit. (#10580)

This commit is contained in:
mikomyazaki
2020-11-20 12:34:48 +00:00
committed by GitHub
parent ef60228753
commit a7b4a44db5
4 changed files with 100 additions and 11 deletions
+2 -1
View File
@@ -31,6 +31,7 @@
var/light_type = /obj/item/light/tube // the type of light item
var/obj/item/light/inserted_light = /obj/item/light/tube
var/fitting = "tube"
var/must_start_working = FALSE // Whether the bulb can break during Initialize or not
var/switchcount = 0 // count of number of times switched on/off
// this is used to calc the probability the light burns out
@@ -122,7 +123,7 @@
if (start_with_cell && !no_emergency)
cell = new /obj/item/cell/device/emergency_light(src)
if (mapload && loc && isNotAdminLevel(z))
if (!must_start_working && mapload && loc && isNotAdminLevel(z))
switch(fitting)
if("tube")
if(prob(2))