mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user