From 42bc39bf72dfc3926a07fdd2b103da15439f6670 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 24 Sep 2021 20:11:54 -0400 Subject: [PATCH] v1.1.0: added a cap to liquid metal produced from upgraded weapons --- .../shatteredpixel/shatteredpixeldungeon/items/LiquidMetal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/LiquidMetal.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/LiquidMetal.java index 197013848..8d57c0bde 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/LiquidMetal.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/LiquidMetal.java @@ -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); }