v1.1.0: fixed liquid metal recipe cap applying incorrectly

This commit is contained in:
Evan Debenham 2021-09-26 15:17:21 -04:00
parent be40007183
commit 9dcfc21a72

View File

@ -182,7 +182,7 @@ public class LiquidMetal extends Item {
MissileWeapon m = (MissileWeapon) i;
float quantity = m.quantity()-1;
quantity += 0.25f + 0.0075f*m.durabilityLeft();
quantity *= Math.pow(2, Math.max(3, m.level()));
quantity *= Math.pow(2, Math.min(3, m.level()));
metalQuantity += Math.round((5*(m.tier+1))*quantity);
}