mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-25 00:22:39 +00:00
* Fermichem part 2.1: Adds a reaction/reagent lookup GUI! * Update chem_dispenser.dm * Update reagents.dm Co-authored-by: Thalpy <33956696+Thalpy@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
15 lines
437 B
Plaintext
15 lines
437 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)
|
|
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]")
|