mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
fix for custom shuttles
This commit is contained in:
@@ -253,11 +253,12 @@
|
||||
..()
|
||||
|
||||
/obj/machinery/computer/camera_advanced/shuttle_docker/custom/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
|
||||
if(!shuttleId)
|
||||
// This may look ugly (it does), but nowadays this docker already gains an id, so we forbid interactions until correctly linked.
|
||||
if(shuttlePortId != "shuttle[shuttleId]_custom")
|
||||
to_chat(user, "<span class='warning'>You must link the console to a shuttle first.</span>")
|
||||
return
|
||||
return ..()
|
||||
|
||||
/obj/machinery/computer/camera_advanced/shuttle_docker/custom/proc/linkShuttle(var/new_id)
|
||||
/obj/machinery/computer/camera_advanced/shuttle_docker/custom/proc/linkShuttle(new_id)
|
||||
shuttleId = new_id
|
||||
shuttlePortId = "shuttle[new_id]_custom"
|
||||
|
||||
Reference in New Issue
Block a user