Files
Bubberstation/code/modules/unit_tests/reagent_recipe_collisions.dm
SkyratBot 6f3befe233 [MIRROR] Reagent soup / Soup rework / Stoves - A kitchen expansion [MDB IGNORE] (#20410)
* Reagent soup / Soup rework / Stoves - A kitchen expansion

* fixes that stuff

* puts the range stove on maps that sohuld have it

* fixes some paths that don't exist anymore

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: Paxilmaniac <paxilmaniac@gmail.com>
2023-04-08 13:30:41 -04:00

17 lines
803 B
Plaintext

/datum/unit_test/reagent_recipe_collisions
/datum/unit_test/reagent_recipe_collisions/Run()
build_chemical_reactions_lists()
// Exclude soup from this test, they all have the same "reagents" just about
var/list/reactions_sans_soup = GLOB.chemical_reactions_list - subtypesof(/datum/chemical_reaction/food/soup)
for(var/reaction_type_a as anything in reactions_sans_soup)
for(var/reaction_type_b as anything in reactions_sans_soup)
if(reaction_type_a == reaction_type_b)
continue
var/datum/chemical_reaction/reaction_a = reactions_sans_soup[reaction_type_a]
var/datum/chemical_reaction/reaction_b = reactions_sans_soup[reaction_type_b]
if(chem_recipes_do_conflict(reaction_a, reaction_b))
TEST_FAIL("Chemical recipe conflict between [reaction_type_a] and [reaction_type_b]")