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 17:13:29 +02:00
committed by GitHub
parent 36793514d6
commit 67030cf90e
37 changed files with 316 additions and 99 deletions
+5 -1
View File
@@ -90,7 +90,11 @@
return
..()
/obj/vehicle/animal/relaymove(mob/user, direction)
/obj/vehicle/animal/relaymove(mob/living/user, direction)
. = ..()
if(!.)
return
if(user != load || user.incapacitated())
return
return Move(get_step(src, direction))
+5 -1
View File
@@ -189,7 +189,11 @@
to_chat(user, SPAN_NOTICE("\The [src] already has a key in it."))
..()
/obj/vehicle/bike/relaymove(mob/user, direction)
/obj/vehicle/bike/relaymove(mob/living/user, direction)
. = ..()
if(!.)
return
if(user != load || !on || user.incapacitated())
return
return Move(get_step(src, direction))
+5 -1
View File
@@ -45,7 +45,11 @@
to_chat(user, "You remove [load] from \the [src]")
to_chat(load, "You were removed from \the [src] by [user]")
/obj/vehicle/unicycle/relaymove(mob/user, direction)
/obj/vehicle/unicycle/relaymove(mob/living/user, direction)
. = ..()
if(!.)
return
if(user != load || !on || user.incapacitated())
return
return Move(get_step(src, direction))