fix zero LP cost ritual in the weight = 15 case, and make LP multiplier scale more smoothly with weight (similar to how weight actually works)

This commit is contained in:
__felix__ authored and GitHub committed 2025-12-20 18:08:27 -05:00
1 parent 3ab4120f7e
commit 3ffbe656f3
1 file changed
+1 -1
@@ -143,7 +143,7 @@ public class RitualEffectEnchant extends RitualEffect {
Enchantment ench = Enchantment.enchantmentsList[d.enchant];
double lpDiff = Math.min(
(double) Integer.MAX_VALUE,
500D * (Math.max(0, 15 - Math.min(15, ench.getWeight())) * 1.05D)
500D * (15D / (double) ench.getWeight() * 1.05D)
* ((3D + d.level * d.level) * 0.25D)
* (0.9D + enchants.size() * 0.05D));
if (lpDiff + (double) lpRequired > (double) Integer.MAX_VALUE) {