[MIRROR] Move autolathe design datums to techweb datums (#12565)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-03-21 03:53:42 -04:00
committed by GitHub
co-authored by Will Cameron Lennox
parent b61399d8e7
commit 90d7e7d352
137 changed files with 6181 additions and 1794 deletions
@@ -9,3 +9,42 @@
failed = TRUE
if(failed)
TEST_FAIL("Mech Construction - A construction datum had incorrect data.")
/datum/unit_test/all_machine_circuits_must_be_printable/Run()
// get a list of all construction frames that automatically populate their circuitboard, we don't need to test for these
var/list/prepopulated_circuits = list()
for(var/datum/frame/frame_types/path as anything in subtypesof(/datum/frame/frame_types))
var/obj/item/circuitboard/circuit = initial(path.circuit)
if(!circuit)
continue
prepopulated_circuits |= circuit
// Get all machines with circuitboards
var/list/all_circuitboard_machines = list()
for(var/obj/machinery/path as anything in subtypesof(/obj/machinery))
var/obj/item/circuitboard/circuit = initial(path.circuit)
if(!circuit)
continue
all_circuitboard_machines |= circuit
// Check all circuits that are need has a techweb design
all_circuitboard_machines -= prepopulated_circuits
for(var/id in SSresearch.techweb_designs)
var/datum/design_techweb/design = SSresearch.techweb_designs[id]
if(!(design.build_path in subtypesof(/obj/item/circuitboard)))
continue
all_circuitboard_machines -= design.build_path
var/failed = FALSE
if(length(all_circuitboard_machines))
for(var/obj/item/circuitboard/circuit as anything in all_circuitboard_machines)
if(ispath(circuit))
if(initial(circuit.hidden)) // Intentionally not meant to show up on station
continue
TEST_NOTICE(src, "[circuit] - Missing a circuit from techweb. Ensure a techweb entry exists, or [circuit.build_path] will not be constructable in round.")
else
TEST_NOTICE(src, "[circuit] - is a LEGACY STRING and must be converted to a path!!!")
failed = TRUE
if(failed)
TEST_FAIL("missing circuitboard print recipies.")