mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
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:
+1
-1
@@ -24,7 +24,7 @@ GLOBAL_LIST_BOILERPLATE(all_darkportal_minions, /obj/structure/dark_portal/minio
|
||||
to_check.Stun(10)
|
||||
return
|
||||
|
||||
do_teleport(M, locked, precision, local = FALSE, bohsafe = TRUE)
|
||||
do_teleport(M, locked, precision, channel = TELEPORT_CHANNEL_QUANTUM)
|
||||
|
||||
if(one_time_use)
|
||||
one_time_use = 0
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user