i spent 2 hours figuring out how to fix this
This commit is contained in:
@@ -213,6 +213,16 @@
|
||||
PDA.f_lum = 0
|
||||
PDA.update_icon()
|
||||
visible_message("<span class='danger'>The light in [PDA] shorts out!</span>")
|
||||
else if(istype(O, /obj/item/gun))
|
||||
var/obj/item/gun/weapon = O
|
||||
if(weapon.gun_light)
|
||||
var/obj/item/flashlight/seclite/light = weapon.gun_light
|
||||
light.on = FALSE
|
||||
light.brightness_on = 0
|
||||
light.flashlight_power = 0
|
||||
light.update_brightness()
|
||||
weapon.update_gunlight()
|
||||
visible_message("<span class='danger'>[light] on [O] flickers out and dies!</span>")
|
||||
else
|
||||
visible_message("<span class='danger'>[O] is disintegrated by [src]!</span>")
|
||||
O.burn()
|
||||
|
||||
Reference in New Issue
Block a user