mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
21 lines
640 B
Plaintext
21 lines
640 B
Plaintext
/atom/movable/proc/move_to_turf(var/atom/movable/am, var/old_loc, var/new_loc)
|
|
var/turf/T = get_turf(new_loc)
|
|
if(T && T != loc)
|
|
forceMove(T)
|
|
|
|
// Similar to above but we also follow into nullspace
|
|
/atom/movable/proc/move_to_turf_or_null(var/atom/movable/am, var/old_loc, var/new_loc)
|
|
var/turf/T = get_turf(new_loc)
|
|
if(T != loc)
|
|
forceMove(T)
|
|
|
|
/atom/movable/proc/move_to_loc_or_null(var/atom/movable/am, var/old_loc, var/new_loc)
|
|
if(new_loc != loc)
|
|
forceMove(new_loc)
|
|
|
|
/atom/proc/recursive_dir_set(var/atom/a, var/old_dir, var/new_dir)
|
|
set_dir(new_dir)
|
|
|
|
// Sometimes you just want to end yourself
|
|
/datum/proc/qdel_self()
|
|
qdel(src) |