add 'get machines by type' to SSmachines (#28979)

This commit is contained in:
warriorstar-orion
2025-04-16 17:17:54 +00:00
committed by GitHub
parent e5a1f31e6d
commit fa1faf6054
49 changed files with 109 additions and 73 deletions
@@ -53,7 +53,7 @@
to_chat(user, "<span class='notice'>\The [src] is malfunctioning.</span>")
return
var/list/L = list()
for(var/obj/machinery/computer/teleporter/com in GLOB.machines)
for(var/obj/machinery/computer/teleporter/com in SSmachines.get_by_type(/obj/machinery/computer/teleporter))
if(com.target)
if(com.power_station && com.power_station.teleporter_hub && com.power_station.engaged)
L["[com.id] (Active)"] = com.target