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:
Fluffy
2024-06-22 15:13:29 +00:00
committed by GitHub
parent 36793514d6
commit 67030cf90e
37 changed files with 316 additions and 99 deletions
@@ -530,7 +530,11 @@
if(istype(user, /mob/living/silicon/robot) && Adjacent(user)) // Robots can open/close it, but not the AI.
attack_hand(user)
/obj/structure/closet/relaymove(mob/user as mob)
/obj/structure/closet/relaymove(mob/living/user, direction)
. = ..()
if(!.)
return
if(user.stat || !isturf(loc))
return
@@ -152,7 +152,11 @@
/obj/structure/closet/statue/MouseDrop_T()
return
/obj/structure/closet/statue/relaymove()
/obj/structure/closet/statue/relaymove(mob/living/user, direction)
. = ..()
if(!.)
return
return
/obj/structure/closet/statue/attack_hand()