From 452b34caa28eee6b5253ec8297ce4ed3a1c66e14 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Sat, 30 Jun 2018 04:54:20 -0400 Subject: [PATCH] Cleans up leftover telesci teleporter code (#38789) --- code/game/machinery/computer/teleporter.dm | 37 +--------------------- code/game/objects/items/devices/gps.dm | 1 - 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/code/game/machinery/computer/teleporter.dm b/code/game/machinery/computer/teleporter.dm index 9e12a7bcdd..b9b95eecd0 100644 --- a/code/game/machinery/computer/teleporter.dm +++ b/code/game/machinery/computer/teleporter.dm @@ -5,13 +5,11 @@ icon_keyboard = "teleport_key" light_color = LIGHT_COLOR_BLUE circuit = /obj/item/circuitboard/computer/teleporter - var/obj/item/gps/locked var/regime_set = "Teleporter" var/id var/obj/machinery/teleport/station/power_station var/calibrating - var/turf/target //Used for one-time-use teleport cards (such as clown planet coordinates.) - //Setting this to 1 will set src.locked to null after a player enters the portal and will not allow hand-teles to open portals to that location. + var/turf/target /obj/machinery/computer/teleporter/Initialize() . = ..() @@ -33,18 +31,6 @@ break return power_station -/obj/machinery/computer/teleporter/attackby(obj/I, mob/living/user, params) - if(istype(I, /obj/item/gps)) - var/obj/item/gps/L = I - if(L.locked_location && !(stat & (NOPOWER|BROKEN))) - if(!user.transferItemToLoc(L, src)) - to_chat(user, "\the [I] is stuck to your hand, you cannot put it in \the [src]!") - return - locked = L - to_chat(user, "You insert the GPS device into the [name]'s slot.") - else - return ..() - /obj/machinery/computer/teleporter/ui_interact(mob/user) . = ..() var/data = "

Teleporter Status

" @@ -65,12 +51,6 @@ data += "Change regime
" data += "Set target
" - if(locked) - data += "
Get target from memory
" - data += "Eject GPS device
" - else - data += "
Get target from memory
" - data += "Eject GPS device
" data += "
Calibrate Hub" @@ -82,11 +62,6 @@ if(..()) return - if(href_list["eject"]) - eject() - updateDialog() - return - if(!check_hub_connection()) say("Error: Unable to detect hub.") return @@ -104,11 +79,6 @@ power_station.teleporter_hub.update_icon() power_station.teleporter_hub.calibrated = 0 set_target(usr) - if(href_list["locked"]) - power_station.engaged = 0 - power_station.teleporter_hub.update_icon() - power_station.teleporter_hub.calibrated = 0 - target = get_turf(locked.locked_location) if(href_list["calibrate"]) if(!target) say("Error: No target set to calibrate to.") @@ -144,11 +114,6 @@ else regime_set = "Teleporter" -/obj/machinery/computer/teleporter/proc/eject() - if(locked) - locked.forceMove(get_turf(src)) - locked = null - /obj/machinery/computer/teleporter/proc/set_target(mob/user) var/list/L = list() var/list/areaindex = list() diff --git a/code/game/objects/items/devices/gps.dm b/code/game/objects/items/devices/gps.dm index 07118e2a18..9bdd01ad77 100644 --- a/code/game/objects/items/devices/gps.dm +++ b/code/game/objects/items/devices/gps.dm @@ -9,7 +9,6 @@ GLOBAL_LIST_EMPTY(GPS_list) obj_flags = UNIQUE_RENAME var/gpstag = "COM0" var/emped = FALSE - var/turf/locked_location var/tracking = TRUE var/updating = TRUE //Automatic updating of GPS list. Can be set to manual by user. var/global_mode = TRUE //If disabled, only GPS signals of the same Z level are shown