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
+27 -1
View File
@@ -228,6 +228,10 @@
var/obj/docking_port/stationary/destination
var/obj/docking_port/stationary/previous
/// Does this shuttle use the lockdown system?
var/uses_lockdown = FALSE
/// If this variable is true, shuttle is on lockdown, and other requests can not be processed
var/lockeddown = FALSE
/obj/docking_port/mobile/Initialize(mapload)
. = ..()
@@ -731,6 +735,26 @@
dst = destination
. += " towards [dst ? dst.name : "unknown location"] ([timeLeft(600)]mins)"
/obj/docking_port/mobile/labour
dir = 8
dwidth = 2
height = 5
id = "laborcamp"
name = "labor camp shuttle"
rebuildable = TRUE
width = 9
uses_lockdown = TRUE
/obj/docking_port/mobile/mining
dir = 8
dwidth = 3
height = 5
id = "mining"
name = "mining shuttle"
rebuildable = TRUE
width = 7
uses_lockdown = TRUE
/obj/machinery/computer/shuttle
name = "Shuttle Console"
icon_screen = "shuttle"
@@ -832,8 +856,10 @@
return TRUE
if(1)
to_chat(usr, "<span class='warning'>Invalid shuttle requested.</span>")
else
if(2)
to_chat(usr, "<span class='notice'>Unable to comply.</span>")
if(3)
atom_say("Shuttle has already received a pending movement request. Please wait until the movement request is processed.")
/obj/machinery/computer/shuttle/emag_act(mob/user)