v1.1.0: added a cap to liquid metal produced from upgraded weapons

This commit is contained in:
Evan Debenham 2021-09-24 20:11:54 -04:00
parent 5b1e2bc3a9
commit 42bc39bf72

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, m.level());
quantity *= Math.pow(2, Math.max(3, m.level()));
metalQuantity += Math.round((5*(m.tier+1))*quantity);
}