mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 14:31:59 +01:00
Relaymove tweaks (#19489)
Made relaymoves uniform in function header and non sleepable. Improved IPC/borg recharger, made it time constant. Tweaked client/Move() to avoid a range(), moved a relaymove around to fix a bug, some minor tweaks. Fixed IPC/borg recharge station not taking the IPC/Borg in on bump.
This commit is contained in:
@@ -79,8 +79,12 @@ var/const/OVERMAP_SPEED_CONSTANT = (1 SECOND)
|
||||
|
||||
. = ..()
|
||||
|
||||
/obj/effect/overmap/visitable/ship/relaymove(mob/user, direction, accel_limit)
|
||||
accelerate(direction, accel_limit)
|
||||
/obj/effect/overmap/visitable/ship/relaymove(mob/living/user, direction, accel_limit)
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
|
||||
INVOKE_ASYNC(src, PROC_REF(accelerate), direction, accel_limit)
|
||||
|
||||
/obj/effect/overmap/visitable/ship/proc/is_still()
|
||||
return !MOVING(speed[1]) && !MOVING(speed[2])
|
||||
|
||||
Reference in New Issue
Block a user