mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-03 21:42:06 +00:00
* Some more harddel fixes (#58305) * Some more harddel fixes Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
15 lines
467 B
Plaintext
15 lines
467 B
Plaintext
|
|
|
|
/datum/unit_test/reagent_id_typos
|
|
|
|
/datum/unit_test/reagent_id_typos/Run()
|
|
build_chemical_reactions_lists()
|
|
build_chemical_reagent_list()
|
|
|
|
for(var/I in GLOB.chemical_reactions_list_reactant_index)
|
|
for(var/V in GLOB.chemical_reactions_list_reactant_index[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]")
|