Cargo Material Purchasing (#19435)

* material sell tweaks

* material purchases

* test this

* missing 50 spawners

* fix

* missing mats

* oops

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Will
2026-05-03 19:43:46 -04:00
committed by GitHub
parent 1d2cbea8e9
commit 8bbb5a00a9
29 changed files with 216 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)].")