mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Merge pull request #4811 from VOREStation/upstream-merge-5981
[MIRROR] Handtele no longer relies on teleporter being mapped in in very specific way
This commit is contained in:
@@ -138,7 +138,16 @@ Frequency:
|
||||
return
|
||||
var/list/L = list( )
|
||||
for(var/obj/machinery/teleport/hub/R in machines)
|
||||
var/obj/machinery/computer/teleporter/com = locate(/obj/machinery/computer/teleporter, locate(R.x - 2, R.y, R.z))
|
||||
var/obj/machinery/computer/teleporter/com
|
||||
var/obj/machinery/teleport/station/station
|
||||
for(var/direction in cardinal)
|
||||
station = locate(/obj/machinery/teleport/station, get_step(R, direction))
|
||||
if(station)
|
||||
for(direction in cardinal)
|
||||
com = locate(/obj/machinery/computer/teleporter, get_step(station, direction))
|
||||
if(com)
|
||||
break
|
||||
break
|
||||
if (istype(com, /obj/machinery/computer/teleporter) && com.locked && !com.one_time_use)
|
||||
if(R.icon_state == "tele1")
|
||||
L["[com.id] (Active)"] = com.locked
|
||||
|
||||
Reference in New Issue
Block a user