mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-30 11:32:20 +00:00
* Added unit tests for reagent recipes * Renamed recipe_collisions unit test to reagent_recipe_collisions * Fixed chemical conflict unit test temperature logic * Made chemical reactions always choose the reaction with the most extreme temperature requirements if there are multiple possible reactions
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]")
|