mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
[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:
co-authored by
Time-Green
ghost sheep
parent
8cc521de57
commit
8b7bdc4959
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user