You can no longer redirect the mining / labour shuttle when it is moving (#20083)

* You can no longer redirect the mining / labour shuttle when it is moving

* Sirryans changes

* done
This commit is contained in:
Qwertytoforty
2023-01-13 16:32:23 -05:00
committed by GitHub
parent ad189f9275
commit b864c95dcf
3 changed files with 35 additions and 19 deletions
+6
View File
@@ -205,6 +205,12 @@ SUBSYSTEM_DEF(shuttle)
/datum/controller/subsystem/shuttle/proc/moveShuttle(shuttleId, dockId, timed, mob/user)
var/obj/docking_port/mobile/M = getShuttle(shuttleId)
var/obj/docking_port/stationary/D = getDock(dockId)
//check if the shuttle is on lockdown
if(M.lockeddown)
return 3
if(M.uses_lockdown)
M.lockeddown = TRUE
addtimer(VARSET_CALLBACK(M, lockeddown, FALSE), 15 SECONDS)
if(!M)
return 1
M.last_caller = user // Save the caller of the shuttle for later logging