From 2b147b29c28c694b8b15aefbee18248167d0803c Mon Sep 17 00:00:00 2001 From: hal9000PR <69320440+hal9000PR@users.noreply.github.com> Date: Mon, 28 Jun 2021 11:00:27 +0100 Subject: [PATCH] Fixes upgraded teleporters UI (#16198) * fix * I did an oopsy --- code/game/machinery/teleporter.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm index 3665934aced..5e3c4b75f33 100644 --- a/code/game/machinery/teleporter.dm +++ b/code/game/machinery/teleporter.dm @@ -313,7 +313,7 @@ name = "teleporter hub" desc = "It's the hub of a teleporting machine." icon_state = "tele0" - var/accurate = FALSE + var/accurate = 0 use_power = IDLE_POWER_USE idle_power_usage = 10 active_power_usage = 2000 @@ -353,6 +353,8 @@ for(var/obj/item/stock_parts/matter_bin/M in component_parts) A += M.rating accurate = A + if(accurate >= 3) + calibrated = TRUE /obj/machinery/teleport/hub/proc/link_power_station() if(power_station) @@ -406,7 +408,8 @@ . = do_teleport(M, locate(rand((2*TRANSITIONEDGE), world.maxx - (2*TRANSITIONEDGE)), rand((2*TRANSITIONEDGE), world.maxy - (2*TRANSITIONEDGE)), pick(target_z)), 2, bypass_area_flag = com.area_bypass) else . = do_teleport(M, com.target, bypass_area_flag = com.area_bypass) - calibrated = FALSE + if(accurate < 3) + calibrated = FALSE /obj/machinery/teleport/hub/update_icon() if(panel_open)