From 74c6a8478a94341bb94ad071676f4018d34e09ab Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 18 Oct 2023 01:33:35 +0200 Subject: [PATCH] [MIRROR] Distillation fixed [MDB IGNORE] (#24409) * Distillation fixed (#79045) ## About The Pull Request The recent changes to the food defines have broken the quality scaling for the fruit wine. This PR fixes the regression. ## Why It's Good For The Game Bug fix ## Changelog :cl: fix: Distilled drink quality is fixed - can't give a mood debuff anymore /:cl: * Distillation fixed --------- Co-authored-by: Andrew --- code/modules/hydroponics/grown.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 098c6e81ce6..98569f7e248 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -114,7 +114,7 @@ /obj/item/food/grown/proc/ferment() var/reagent_purity = seed.get_reagent_purity() var/purity_above_base = clamp((reagent_purity - 0.5) * 2, 0, 1) - var/quality_min = 0 + var/quality_min = DRINK_NICE var/quality_max = DRINK_FANTASTIC var/quality = round(LERP(quality_min, quality_max, purity_above_base)) for(var/datum/reagent/reagent in reagents.reagent_list)