From 586f2182f10320f65c5039f0a1872e49033175ad Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 11 Apr 2015 19:06:27 -0400 Subject: [PATCH] v0.3.0: made rounding a bit more precise for Wand of Disintegration --- .../shatteredpixeldungeon/items/wands/WandOfDisintegration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfDisintegration.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfDisintegration.java index a9a6de97f..c7794588c 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfDisintegration.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfDisintegration.java @@ -90,7 +90,7 @@ public class WandOfDisintegration extends Wand { int lvl = level + chars.size() + terrainBonus; int dmgMin = lvl; - int dmgMax = 8 + lvl * lvl / 3; + int dmgMax = (int) (8 + lvl * lvl / 3f); for (Char ch : chars) { ch.damage( Random.NormalIntRange( dmgMin, dmgMax ), this ); ch.sprite.centerEmitter().burst( PurpleParticle.BURST, Random.IntRange( 1, 2 ) );