[MIRROR] Pass reagent purity into food created via chemical reaction [MDB IGNORE] (#24526)

* Pass reagent purity into food created via chemical reaction (#79148)

## About The Pull Request

Another missed argument passage.
Dough created by mixing reagents now has a purity related to the purity
of the creating reagents, and so on for other foods created by mixing
chemicals.

## Changelog

🆑
fix: Food created by mixing chemicals once again has a reagent purity
based on the component chemicals.
/🆑

* Pass reagent purity into food created via chemical reaction

---------

Co-authored-by: Jacquerel <hnevard@gmail.com>
This commit is contained in:
SkyratBot
2023-10-23 19:13:02 +02:00
committed by GitHub
parent 122ef42037
commit 3bd95e30bc
@@ -45,10 +45,9 @@
if(resulting_food_path)
var/atom/location = holder.my_atom.drop_location()
for(var/i in 1 to created_volume)
var/obj/item/food/result = new resulting_food_path(location)
if(ispath(resulting_food_path, /obj/item/food) && !isnull(resulting_reagent_purity))
new resulting_food_path(location, resulting_reagent_purity)
else
new resulting_food_path(location)
result.reagents?.set_all_reagents_purity(resulting_reagent_purity)
/datum/chemical_reaction/food/tofu
required_reagents = list(/datum/reagent/consumable/soymilk = 10)