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
+6 -4
View File
@@ -73,8 +73,9 @@
return
user.visible_message("\The [user] puts down \the [src]'s kickstand.", "You put down \the [src]'s kickstand.", "You hear a thunk.")
playsound(src, 'sound/misc/bike_stand_down.ogg', 50, 1)
if(pulledby)
pulledby.stop_pulling()
if(ismob(pulledby))
var/mob/M = pulledby
M.stop_pulling()
kickstand = !kickstand
anchored = (kickstand || on)
@@ -143,8 +144,9 @@
update_icon()
if(pulledby)
pulledby.stop_pulling()
if(ismob(pulledby))
var/mob/M = pulledby
M.stop_pulling()
..()
/obj/vehicle/bike/turn_off()