Files
Bubberstation/code/modules/mining/laborcamp/laborshuttle.dm
SkyratBot 7559990f20 [MIRROR] [MDB IGNORE] Shuttle engine code improvement and fixes [MDB IGNORE] (#16116)
* [MDB IGNORE] Shuttle engine code improvement and fixes

* what even happened in shuttlepanel.dm

* should be the last few

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: Paxilmaniac <paxilmaniac@gmail.com>
2022-09-10 18:28:57 -04:00

40 lines
1.3 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_warning("Cannot locate shuttle!"))
return FALSE
var/obj/docking_port/stationary/S = M.get_docked()
if(S?.name == "laborcamp_away")
to_chat(user, span_warning("Shuttle is already at the outpost!"))
return FALSE
return TRUE
/obj/docking_port/stationary/laborcamp_home
name = "SS13: Labor Shuttle Dock"
shuttle_id = "laborcamp_home"
roundstart_template = /datum/map_template/shuttle/labour/delta
width = 9
dwidth = 2
height = 5
/obj/docking_port/stationary/laborcamp_home/kilo
roundstart_template = /datum/map_template/shuttle/labour/kilo