mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[MIRROR] Fixes crafted foods not getting reagents from its contents (#3837)
* Fixes crafted foods not getting reagents from its contents (#57258) * Fixes crafted foods not getting reagents from its contents Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
@@ -194,20 +194,9 @@ Behavior that's still missing from this component that original food items had t
|
||||
|
||||
this_food.reagents.multiply_reagents(CRAFTED_FOOD_BASE_REAGENT_MODIFIER)
|
||||
|
||||
for(var/obj/item/crafted_part in this_food.contents)
|
||||
for(var/obj/item/food/crafted_part in parts_list)
|
||||
crafted_part.reagents?.trans_to(this_food.reagents, crafted_part.reagents.maximum_volume, CRAFTED_FOOD_INGREDIENT_REAGENT_MODIFIER)
|
||||
|
||||
var/list/objects_to_delete = list()
|
||||
|
||||
// Remove all non recipe objects from the contents
|
||||
for(var/content_object in this_food.contents)
|
||||
for(var/recipe_object in recipe.real_parts)
|
||||
if(istype(content_object, recipe_object))
|
||||
continue
|
||||
objects_to_delete += content_object
|
||||
|
||||
QDEL_LIST(objects_to_delete)
|
||||
|
||||
SSblackbox.record_feedback("tally", "food_made", 1, type)
|
||||
|
||||
/datum/component/edible/proc/OnMicrowaved(datum/source, obj/machinery/microwave/used_microwave)
|
||||
|
||||
Reference in New Issue
Block a user