You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both 1.20 and 1.21 use the same formula for source generation from saturation: mana += (int) (30.0 * ((<Saturation> * 2.0)))
The problem is, 1.20 uses saturationModifier value, while 1.21 uses saturation value
Those are not the same values for almost any given food
Formula for deriving the saturation value from saturationModifier in 1.20 is (nutrition * saturationModifier * 2), while 1.20.5 and onwards saturation is simply specified in data
Formula for source generation from saturation value in 1.20 matching resulting source from 1.20.1 formula would be as follows: mana += (int) (30.0 * (((food.getNutrition() * food.getSaturationModifier() * 2) * 2.0)));
#1500 actually brings up the issue, but it wasn't understood correctly before the issue was closed
If we use the formula before the alleged "fix" relating to the issue, the fixed formulas would be as follows:
For 1.20: mana += (int) 30 * (food.getNutrition() * food.getSaturationModifier() * 2)
For 1.21: mana += (int) 30 * food.saturation();
The text was updated successfully, but these errors were encountered:
The food values for 1.21 were intentionally increased from how they are in 1.20. Are there outliers or disagreements with the calculation as it is now, or were you just pointing out the mismatch?
Both 1.20 and 1.21 use the same formula for source generation from saturation:
mana += (int) (30.0 * ((<Saturation> * 2.0)))
The problem is, 1.20 uses
saturationModifier
value, while 1.21 usessaturation
valueThose are not the same values for almost any given food
Formula for deriving the saturation value from
saturationModifier
in 1.20 is (nutrition * saturationModifier * 2
), while 1.20.5 and onwardssaturation
is simply specified in dataFormula for source generation from
saturation
value in 1.20 matching resulting source from 1.20.1 formula would be as follows:mana += (int) (30.0 * (((food.getNutrition() * food.getSaturationModifier() * 2) * 2.0)));
#1500 actually brings up the issue, but it wasn't understood correctly before the issue was closed
If we use the formula before the alleged "fix" relating to the issue, the fixed formulas would be as follows:
For 1.20:
mana += (int) 30 * (food.getNutrition() * food.getSaturationModifier() * 2)
For 1.21:
mana += (int) 30 * food.saturation();
The text was updated successfully, but these errors were encountered: