From 951732c36132490ac7b6e9f0813b1149300bac7d Mon Sep 17 00:00:00 2001 From: Timothy Teakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Thu, 9 Apr 2020 20:12:02 +0100 Subject: [PATCH] make secret sauce work on customizables --- code/modules/reagents/chemistry/reagents/food_reagents.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/reagents/chemistry/reagents/food_reagents.dm b/code/modules/reagents/chemistry/reagents/food_reagents.dm index c555609992..cf6c3789ec 100644 --- a/code/modules/reagents/chemistry/reagents/food_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/food_reagents.dm @@ -782,7 +782,11 @@ if(reac_volume >= 1 && istype(O, /obj/item/reagent_containers/food)) var/obj/item/reagent_containers/food/splashed_food = O splashed_food.adjust_food_quality(100) - + // if it's a customisable food, we need to edit its total quality too, to prevent its quality resetting from adding more ingredients! + if(istype(O, obj/item/reagent_containers/food/customizable)) + var/obj/item/reagent_containers/food/customizable/splashed_custom_food = O + splashed_custom_food.total_quality += 10000 +r /datum/reagent/consumable/char name = "Char" description = "Essence of the grill. Has strange properties when overdosed."