[MIRROR] Shuttle events [MDB IGNORE] (#21917)

Shuttle events

Co-authored-by: Time-Green <timkoster1@hotmail.com>
Co-authored-by: ghost sheep <sheepwiththemask@gmail.com>
This commit is contained in:
SkyratBot
2023-06-18 15:02:04 +02:00
committed by GitHub
co-authored by Time-Green ghost sheep
parent 8cc521de57
commit 8b7bdc4959
26 changed files with 598 additions and 14 deletions
@@ -94,7 +94,7 @@
/datum/turf_reservation/transit/make_repel(turf/pre_cordon_turf)
..()
RegisterSignal(pre_cordon_turf, COMSIG_ATOM_ENTERED, PROC_REF(space_dump))
RegisterSignal(pre_cordon_turf, COMSIG_ATOM_ENTERED, PROC_REF(space_dump_soft))
/datum/turf_reservation/transit/stop_repel(turf/pre_cordon_turf)
..()
@@ -106,6 +106,13 @@
dump_in_space(enterer)
///Only dump if we don't have the hyperspace cordon movement exemption trait
/datum/turf_reservation/transit/proc/space_dump_soft(atom/source, atom/movable/enterer)
SIGNAL_HANDLER
if(!HAS_TRAIT(enterer, TRAIT_FREE_HYPERSPACE_SOFTCORDON_MOVEMENT))
space_dump(source, enterer)
/datum/turf_reservation/proc/Reserve(width, height, zlevel)
src.width = width
src.height = height