[MIRROR] Cargo Material Purchasing (#12734)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-05-05 20:18:56 -04:00
committed by GitHub
co-authored by Will Cameron Lennox Kashargul
parent b4b442bcdc
commit 9fcaf0265f
31 changed files with 221 additions and 13 deletions
+14
View File
@@ -54,3 +54,17 @@
if(failed)
TEST_FAIL("materials missing autolathe print recipies.")
/datum/unit_test/materials_shall_have_sell_prices
/datum/unit_test/materials_shall_have_sell_prices/Run()
var/list/failures = list()
for(var/name, value in GLOB.name_to_material)
var/datum/material/mat = value
if(!mat)
continue // how did we get here?
if(isnull(mat.supply_conversion_value))
failures += mat.type
if(length(failures))
TEST_FAIL("[length(failures)] material\s had missing supply conversion values: [english_list(failures)].")