connects floodlights to powernet on init (#93671)

## About The Pull Request
why is copilot automatically writing my webedit commits bro

## Why It's Good For The Game
Not a pain in the ass for Mappers

## Changelog
🆑
code: mapped in floodlights connect to powernet immediately  
/🆑

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
Fikou
2025-11-04 01:51:01 +01:00
committed by GitHub
co-authored by Ghom
parent 86708b4c8e
commit c535784dcf
+3
View File
@@ -155,6 +155,9 @@
. = ..()
RegisterSignal(src, COMSIG_OBJ_PAINTED, TYPE_PROC_REF(/obj/machinery/power/floodlight, on_color_change)) //update light color when color changes
register_context()
if(mapload)
set_anchored(TRUE)
connect_to_network()
/obj/machinery/power/floodlight/proc/on_color_change(obj/machinery/power/flood_light, mob/user, obj/item/toy/crayon/spraycan/spraycan, is_dark_color)
SIGNAL_HANDLER