mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01:00
Addresses suggestion by Krausus/Syntax fix
This commit is contained in:
@@ -1370,7 +1370,6 @@
|
||||
if(!L.isfunctional())
|
||||
continue
|
||||
if(prob(chance))
|
||||
L.on = 1
|
||||
L.broken()
|
||||
stoplag()
|
||||
|
||||
|
||||
@@ -514,17 +514,14 @@
|
||||
status = LIGHT_EMPTY
|
||||
update()
|
||||
|
||||
/obj/machinery/light/proc/broken(skip_sound_and_sparks = 0)
|
||||
if(status == LIGHT_EMPTY || status == LIGHT_BROKEN)
|
||||
/obj/machinery/light/proc/broken()
|
||||
if(status == LIGHT_EMPTY || status == LIGHT_BROKEN || status == LIGHT_BURNED)
|
||||
return
|
||||
|
||||
if(!skip_sound_and_sparks)
|
||||
if(status == LIGHT_OK || status == LIGHT_BURNED)
|
||||
playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1)
|
||||
if(on)
|
||||
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
|
||||
s.set_up(3, 1, src)
|
||||
s.start()
|
||||
if(status == LIGHT_OK)
|
||||
playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1)
|
||||
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
|
||||
s.set_up(3, 1, src)
|
||||
s.start()
|
||||
status = LIGHT_BROKEN
|
||||
update()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user