defective sphere bug fix

This commit is contained in:
termigator1359 committed 2020-07-14 12:53:18 -04:00
1 parent 35efede8b3
commit a949ca7252
1 file changed
+11 -5
+11 -5
View File
@@ -1102,14 +1102,13 @@ namespace CalamityMod.Projectiles
crit = Main.rand.NextBool(6);
}
//Needs to be done in here. If done in the projectile file, it's overridden by the thing above
if (projectile.type == ProjectileType<PwnagehammerProj>() && projectile.ai[0] == 1f)
crit = true;
if (rogue && stealthStrike && modPlayer.stealthStrikeAlwaysCrits)
crit = true;
//Done here since crit calcs are overridden here
//Following things need to be done in here. If done in the projectile file, it's overridden by the thing above
if (projectile.type == ProjectileType<PwnagehammerProj>() && projectile.ai[0] == 1f)
crit = true;
if (projectile.type == ProjectileType<ImpactRound>())
{
double damageMult = 1D;
@@ -1123,6 +1122,13 @@ namespace CalamityMod.Projectiles
}
damage = (int)(damage * damageMult);
}
if (projectile.type == ProjectileType<SphereSpiked>())
{
damage = (int)(damage * 1.2);
if (!crit)
crit = Main.rand.NextBool(10);
}
}
}
#endregion