mirror of
https://github.com/KabKebab/GS13.git
synced 2026-02-09 23:27:37 +00:00
15 lines
436 B
Plaintext
15 lines
436 B
Plaintext
|
|
|
|
/datum/unit_test/reagent_id_typos
|
|
|
|
/datum/unit_test/reagent_id_typos/Run()
|
|
build_chemical_reactions_list()
|
|
build_chemical_reagent_list()
|
|
|
|
for(var/I in GLOB.chemical_reactions_list)
|
|
for(var/V in GLOB.chemical_reactions_list[I])
|
|
var/datum/chemical_reaction/R = V
|
|
for(var/id in (R.required_reagents + R.required_catalysts))
|
|
if(!GLOB.chemical_reagents_list[id])
|
|
Fail("Unknown chemical id \"[id]\" in recipe [R.type]")
|