mapped flashers (#18147)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Will
2025-08-05 04:09:15 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent 74c650e284
commit aa928bf598
+10
View File
@@ -24,6 +24,16 @@
base_state = "pflash"
density = TRUE
/obj/machinery/flasher/portable/Initialize(mapload)
..()
return INITIALIZE_HINT_LATELOAD
/obj/machinery/flasher/portable/LateInitialize()
// Map start flashers enable proximity sensing
if(anchored)
add_overlay("[base_state]-s")
sense_proximity(callback = TYPE_PROC_REF(/atom,HasProximity))
/obj/machinery/flasher/power_change()
..()
if(!(stat & NOPOWER))