Files
Bubberstation/code/modules/mining/laborcamp/laborshuttle.dm
Arkatos1 6613107bb6 tgui: Interface improvements (#53902)
* Tgui improvements

* Shuttle Console tweaks

* Status color keys

* Rebuild tgui

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2020-09-26 06:10:19 +03:00

29 lines
1.0 KiB
Plaintext

/obj/machinery/computer/shuttle/labor
name = "labor shuttle console"
desc = "Used to call and send the labor camp shuttle."
circuit = /obj/item/circuitboard/computer/labor_shuttle
shuttleId = "laborcamp"
possible_destinations = "laborcamp_home;laborcamp_away"
req_access = list(ACCESS_BRIG)
/obj/machinery/computer/shuttle/labor/one_way
name = "prisoner shuttle console"
desc = "A one-way shuttle console, used to summon the shuttle to the labor camp."
possible_destinations = "laborcamp_away"
circuit = /obj/item/circuitboard/computer/labor_shuttle/one_way
req_access = list( )
/obj/machinery/computer/shuttle/labor/one_way/launch_check(mob/user)
. = ..()
if(!.)
return FALSE
var/obj/docking_port/mobile/M = SSshuttle.getShuttle("laborcamp")
if(!M)
to_chat(user, "<span class='warning'>Cannot locate shuttle!</span>")
return FALSE
var/obj/docking_port/stationary/S = M.get_docked()
if(S?.name == "laborcamp_away")
to_chat(user, "<span class='warning'>Shuttle is already at the outpost!</span>")
return FALSE
return TRUE