Skip to content

Commit

Permalink
[MIRROR] Distillation fixed [MDB IGNORE] (#24409) (#121)
Browse files Browse the repository at this point in the history
* 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: SkyratBot <[email protected]>
Co-authored-by: Andrew <[email protected]>
  • Loading branch information
3 people authored Oct 18, 2023
1 parent c468221 commit d67f504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/hydroponics/grown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d67f504

Please sign in to comment.