Skip to content

Commit

Permalink
[MIRROR] Pass reagent purity into food created via chemical reaction …
Browse files Browse the repository at this point in the history
…[MDB IGNORE] (#236)

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

Co-authored-by: Jacquerel <[email protected]>
  • Loading branch information
Steals-The-PRs and Jacquerel authored Oct 23, 2023
1 parent 79909b5 commit e4c7563
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/modules/food_and_drinks/recipes/food_mixtures.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4c7563

Please sign in to comment.