mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Save Alc content on the Brew
This commit is contained in:
@@ -116,8 +116,9 @@ public class BIngredients {
|
||||
if (cookRecipe != null) {
|
||||
// Potion is best with cooking only
|
||||
int quality = (int) Math.round((getIngredientQuality(cookRecipe) + getCookingQuality(cookRecipe, false)) / 2.0);
|
||||
P.p.debugLog("cooked potion has Quality: " + quality);
|
||||
brew = new Brew(quality, cookRecipe, this);
|
||||
int alc = (int) Math.round(cookRecipe.getAlcohol() * ((float) quality / 10.0f));
|
||||
P.p.debugLog("cooked potion has Quality: " + quality + ", Alc: " + alc);
|
||||
brew = new Brew(quality, alc, cookRecipe, this);
|
||||
BrewLore lore = new BrewLore(brew, potionMeta);
|
||||
lore.updateQualityStars(false);
|
||||
lore.updateCustomLore();
|
||||
|
||||
Reference in New Issue
Block a user