Made lightbulbs weaker, added a subclass for bulbs which gives out a bit more light

This commit is contained in:
Albert Iordache
2012-03-18 16:35:49 +02:00
parent 5685532e8a
commit 6e918f0848
+10 -2
View File
@@ -41,10 +41,12 @@
icon_state = "bulb1"
base_state = "bulb"
fitting = "bulb"
brightness = 5
brightness = 3
desc = "A small lighting fixture."
light_type = /obj/item/weapon/light/bulb
/obj/machinery/light/small/spot
brightness = 5
/obj/machinery/light/spot
name = "spotlight"
@@ -77,9 +79,15 @@
spawn(2)
switch(fitting)
if("tube")
if(src.loc && src.loc.loc && isarea(src.loc.loc))
var/area/A = src.loc.loc
brightness = A.area_lights_luminosity
else
brightness = rand(6,9)
if(prob(10))
broken(1)
if("bulb")
brightness = 3
if(prob(25))
broken(1)
spawn(1)