mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 06:00:23 +01:00
mapped flashers (#18147)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user