mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 13:07:46 +01:00
add 'get machines by type' to SSmachines (#28979)
This commit is contained in:
@@ -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]"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user