Fixes Pushing Custodial Carts Slowing You Down (#15409)

This commit is contained in:
SleepyGemmy
2023-01-06 17:44:24 +01:00
committed by GitHub
parent 678e5267bd
commit e4ef2c8c83
8 changed files with 29 additions and 19 deletions
+3 -2
View File
@@ -1311,8 +1311,9 @@
if (dest != loc && istype(dest, /atom/movable))
AM = dest
LAZYADD(AM.contained_mobs, src)
if(pulledby)
pulledby.stop_pulling()
if(ismob(pulledby))
var/mob/M = pulledby
M.stop_pulling()
if (istype(loc, /atom/movable))
AM = loc
+2 -1
View File
@@ -339,7 +339,8 @@
//Wheelchair pushing goes here for now.
//TODO: Fuck wheelchairs.
if(istype(mob.pulledby, /obj/structure/bed/stool/chair/office/wheelchair) || istype(mob.pulledby, /obj/structure/janitorialcart))
move_delay += 1
var/obj/structure/S = mob.pulledby
move_delay += S.slowdown
return mob.pulledby.relaymove(mob, direct)
var/old_loc = mob.loc