v1.1.0: added a cap to liquid metal produced from upgraded weapons
This commit is contained in:
parent
5b1e2bc3a9
commit
42bc39bf72
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user