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
+1 -1
View File
@@ -55,7 +55,7 @@
landing_zone.dir = lz_dir
landing_zone.register() //new docking ports must be registered
for(var/obj/machinery/computer/shuttle/S in GLOB.machines)
for(var/obj/machinery/computer/shuttle/S in SSmachines.get_by_type(/obj/machinery/computer/shuttle))
if(S.shuttleId == shuttle_id)
S.possible_destinations = "[landing_zone.id]"
+2 -2
View File
@@ -110,7 +110,7 @@
port.id = "whiteship_custom_[dock_count]"
port.register()
for(var/obj/machinery/computer/shuttle/white_ship/S in GLOB.machines)
for(var/obj/machinery/computer/shuttle/white_ship/S in SSmachines.get_by_type(/obj/machinery/computer/shuttle/white_ship))
S.possible_destinations = null
S.connect()
possible_destinations = S.possible_destinations
@@ -119,7 +119,7 @@
to_chat(user, "<span class='notice'>Landing zone set.</span>")
/obj/item/whiteship_port_generator/AltClick(mob/user, modifiers)
for(var/obj/machinery/computer/shuttle/white_ship/S in GLOB.machines)
for(var/obj/machinery/computer/shuttle/white_ship/S in SSmachines.get_by_type(/obj/machinery/computer/shuttle/white_ship))
possible_destinations = S.possible_destinations
break