office chairs spin with you when emoting (#18211)

This commit is contained in:
Will
2025-08-09 08:29:33 -04:00
committed by GitHub
parent 7e3b992c26
commit 3a78e9db95
+6
View File
@@ -210,6 +210,8 @@
/mob/proc/spin(spintime, speed)
if(!speed || speed < 1) // Do NOT spin with infinite speed, it will break the reality
return
if(istype(buckled,/obj/structure/bed/chair/office)) // WEEEE!!!
playsound(src, 'sound/effects/roll.ogg', 100, 1)
spawn()
var/D = dir
while(spintime >= speed)
@@ -224,5 +226,9 @@
if(WEST)
D = NORTH
set_dir(D)
if(istype(buckled,/obj/structure/bed/chair/office))
var/obj/structure/bed/chair/office/O = buckled
O.dir = D
O.set_dir(D)
spintime -= speed
return