mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Yummy bugfixes
This commit is contained in:
@@ -77,12 +77,16 @@
|
||||
update_lighting()
|
||||
|
||||
/obj/item/integrated_circuit/output/light/proc/update_lighting()
|
||||
if(light_toggled)
|
||||
if(assembly)
|
||||
assembly.set_light(l_range = light_brightness, l_power = light_brightness, l_color = light_rgb)
|
||||
else
|
||||
if(assembly)
|
||||
assembly.set_light(0)
|
||||
//CHOMPEdit Begin
|
||||
if(assembly)
|
||||
var/atom/light_source = assembly
|
||||
if(istype(assembly,/obj/item/device/electronic_assembly/clothing))
|
||||
light_source = assembly.loc
|
||||
if(light_toggled)
|
||||
light_source.set_light(l_range = light_brightness, l_power = light_brightness, l_color = light_rgb)
|
||||
else
|
||||
light_source.set_light(0)
|
||||
//CHOMPEdit End
|
||||
power_draw_idle = light_toggled ? light_brightness * light_brightness : 0 // Should be the same draw as regular lights.
|
||||
|
||||
/obj/item/integrated_circuit/output/light/power_fail() // Turns off the flashlight if there's no power left.
|
||||
|
||||
Reference in New Issue
Block a user