mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-05 14:17:12 +01:00
253613c1c3
* A lot of shuttle code improvements * Makes use of ``as anything`` in many places * Adds mapload to connect_to_shuttle() * Renames many vars, including shuttle 'id' var to 'shuttle_id' and engine 'state' to 'engine_state'. * Engines now weakref their attached ship, and disconnect when unwrenched from it. * Removes check for force when deleting a mobile docking port, being deleted should still clear your stuff, regardless of being forced. Because of all the above, I was able to remove a few pointless checks scattered around, like engine's alter_engine_power() * better comment for port_id * Fixes Cargo, Arrivals, and Pirate ships. * Merge branch 'master' into shuttlecode-oh-no * last few * fixes the CI * fixes * Fixes infinite engines * Revert "Merge branch 'master' into shuttlecode-oh-no" This reverts commit 94eba37de9fe3f4a01dc40bb064771b764f379e3. * trammies * whiteship tram * Makes use of ?. instead apparently this is what weakrefs use, so 🤷 * i hate supernovaa41 Co-authored-by: Seth Scherer <supernovaa41@gmx.com> * removes lateinit that I never implemented * adds _ref to weakref var name * small change to weld time define Co-authored-by: Seth Scherer <supernovaa41@gmx.com>
40 lines
1.3 KiB
Plaintext
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
|