From 609f98609e4ff9ae23f5647bb2b363f7400fb7a7 Mon Sep 17 00:00:00 2001 From: Jazz23 Date: Tue, 30 Oct 2018 15:41:18 -0700 Subject: [PATCH] Added a mode to set the target the perma teleporter's circuitboard The description of the perma teleporter states that it run off of preset coordinates from its circuiboard, except there is no method to upload these coordinates. A simple solution of setting a GPS's coords then uploading them to the circuit board. --- code/game/machinery/constructable_frame.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm index f9c1330e596..fc19325e594 100644 --- a/code/game/machinery/constructable_frame.dm +++ b/code/game/machinery/constructable_frame.dm @@ -730,6 +730,13 @@ obj/item/circuitboard/rdserver /obj/item/stock_parts/matter_bin = 1) var/target +/obj/item/circuitboard/teleporter_perma/attackby(obj/item/I, mob/living/user, params) + if(istype(I, /obj/item/gps)) + var/obj/item/gps/L = I + if(L.locked_location) + target = get_turf(L.locked_location) + to_chat(user, "You upload the data from [L]") + /obj/item/circuitboard/telesci_pad name = "Circuit board (Telepad)" build_path = /obj/machinery/telepad