mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
add 'get machines by type' to SSmachines (#28979)
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
if(tgui_alert(usr, "Are you sure you want to respawn as a drone?", "Are you sure?", list("Yes", "No")) != "Yes")
|
||||
return
|
||||
|
||||
for(var/obj/machinery/drone_fabricator/DF in GLOB.machines)
|
||||
for(var/obj/machinery/drone_fabricator/DF in SSmachines.get_by_type(/obj/machinery/drone_fabricator))
|
||||
if(DF.stat & NOPOWER || !DF.produce_drones)
|
||||
continue
|
||||
|
||||
|
||||
@@ -426,7 +426,7 @@
|
||||
return FALSE // Pretty damn hard to path through space
|
||||
|
||||
var/turf/target
|
||||
for(var/obj/machinery/drone_fabricator/DF in GLOB.machines)
|
||||
for(var/obj/machinery/drone_fabricator/DF in SSmachines.get_by_type(/obj/machinery/drone_fabricator))
|
||||
if(DF.z != z)
|
||||
continue
|
||||
target = get_turf(DF)
|
||||
|
||||
Reference in New Issue
Block a user