Refactors do_teleport (#18668)

* Teleport refactor

* Televore

* Additions

* Update

* No effects

* .

* Attempt

* proc name change

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Guti
2025-11-07 21:28:21 +01:00
committed by GitHub
co-authored by Cameron Lennox
parent 4cf68d7b23
commit 838bb093e8
12 changed files with 182 additions and 253 deletions
@@ -33,7 +33,7 @@
/datum/component/bluespace_connection/RegisterWithParent()
RegisterSignal(parent, COMSIG_CLOSET_CLOSED, PROC_REF(on_close))
RegisterSignal(parent, COMSIG_ATOM_HITBY, PROC_REF(on_hit))
/datum/component/bluespace_connection/UnregisterFromParent()
UnregisterSignal(parent, list(COMSIG_CLOSET_CLOSED, COMSIG_ATOM_HITBY))
@@ -76,7 +76,7 @@
var/obj/structure/closet/exit_closet = exit_point
if(!exit_closet.can_open()) // Bwomp. You're locked now. :)
for(var/atom/movable/AM in contents)
do_noeffect_teleport(AM, exit_closet, 0, 1)
do_teleport(AM, exit_closet, channel = TELEPORT_CHANNEL_BLUESPACE, no_effects = TRUE)
return
exit_closet.open()
@@ -86,7 +86,7 @@
for(var/atom/movable/AM in contents)
if(QDELETED(AM))
continue
do_noeffect_teleport(AM, get_turf(exit_point), 0, 1)
do_teleport(AM, get_turf(exit_point), channel = TELEPORT_CHANNEL_BLUESPACE, no_effects = TRUE)
if(!isbelly(exit_point))
AM.throw_at(target, throw_range, 1)
contents.Cut()