mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
[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:
co-authored by
Will
Cameron Lennox
Kashargul
parent
b4b442bcdc
commit
9fcaf0265f
@@ -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)].")
|
||||
|
||||
Reference in New Issue
Block a user