mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +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:
@@ -41,7 +41,11 @@
|
||||
H.take_overall_damage(5, 0, DAMAGE_FLAG_SHARP, src)
|
||||
to_chat(user, SPAN_WARNING("You cut yourself while climbing into \the [src]!"))
|
||||
|
||||
/obj/structure/trash_pile/relaymove(mob/user)
|
||||
/obj/structure/trash_pile/relaymove(mob/living/user, direction)
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
|
||||
if(user.stat || user.resting) // don't care too much about use_check here, checking these will suffice
|
||||
return
|
||||
user.forceMove(get_turf(src))
|
||||
|
||||
Reference in New Issue
Block a user