mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Swarmer traps are actually initialised so they listen for COMSIG_ATOM_ENTERED (#59547)
Adds an Initialize() to swarmer traps so they can listen for COMSIG_ATOM_ENTERED.
This commit is contained in:
@@ -130,6 +130,13 @@
|
||||
max_integrity = 10
|
||||
density = FALSE
|
||||
|
||||
/obj/structure/swarmer/trap/Initialize()
|
||||
. = ..()
|
||||
var/static/list/loc_connections = list(
|
||||
COMSIG_ATOM_ENTERED = .proc/on_entered,
|
||||
)
|
||||
AddElement(/datum/element/connect_loc, src, loc_connections)
|
||||
|
||||
/obj/structure/swarmer/trap/proc/on_entered(datum/source, atom/movable/AM)
|
||||
SIGNAL_HANDLER
|
||||
if(isliving(AM))
|
||||
|
||||
Reference in New Issue
Block a user