fixes traps not adding connect_loc in base type (#59196)

This commit is contained in:
Kylerace
2021-05-20 21:49:41 -07:00
committed by GitHub
parent 922183fa2e
commit d8fc3410f4
3 changed files with 5 additions and 18 deletions
+5 -4
View File
@@ -25,6 +25,11 @@
spark_system.set_up(4,1,src)
spark_system.attach(src)
var/static/list/loc_connections = list(
COMSIG_ATOM_ENTERED = .proc/on_entered
)
AddElement(/datum/element/connect_loc, src, loc_connections)
if(!ignore_typecache)
ignore_typecache = typecacheof(list(
/obj/effect,
@@ -108,10 +113,6 @@
. = ..()
time_between_triggers = 10
flare_message = "<span class='warning'>[src] snaps shut!</span>"
var/static/list/loc_connections = list(
COMSIG_ATOM_ENTERED = .proc/on_entered,
)
AddElement(/datum/element/connect_loc, src, loc_connections)
/obj/structure/trap/stun/hunter/on_entered(datum/source, atom/movable/AM)
if(isliving(AM))