mirror of
https://github.com/GTNewHorizons/BloodArsenal.git
synced 2026-11-22 13:09:43 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user