ensure atoms spawned over chasms fall when appropriate (#28889)

* ensure atoms spawned over chasms fall when appropriate

* no more sleepy
This commit is contained in:
warriorstar-orion
2025-04-05 11:45:26 +00:00
committed by GitHub
parent 9d27575a7e
commit d3ed7c5582
2 changed files with 11 additions and 1 deletions
+8
View File
@@ -42,6 +42,14 @@
var/drop_y = 1
var/drop_z = 2 // so that it doesn't send you to CC if something fucks up.
/turf/simulated/floor/chasm/Initialize(mapload)
. = ..()
RegisterSignal(src, COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZED_ON, PROC_REF(on_new_atom_at_loc))
/turf/simulated/floor/chasm/proc/on_new_atom_at_loc(turf/location, atom/created, init_flags)
SIGNAL_HANDLER // COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZED_ON
drop_stuff(created)
/turf/simulated/floor/chasm/Entered(atom/movable/AM)
..()
START_PROCESSING(SSprocessing, src)
@@ -360,7 +360,9 @@ GLOBAL_LIST_EMPTY(wormhole_effect)
inactive = TRUE
menu_open = FALSE
sleep(5 SECONDS)
addtimer(CALLBACK(src, PROC_REF(post_activate)), 5 SECONDS)
/obj/item/wormhole_jaunter/wormhole_weaver/proc/post_activate()
if(emp_inflicted)
return