v0.3.0: made rounding a bit more precise for Wand of Disintegration
This commit is contained in:
parent
e6e380252d
commit
586f2182f1
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in New Issue
Block a user