100 to MathHelper.TwoPi

This commit is contained in:
mochi-angel authored and Cameron Ewell committed 2024-12-01 15:18:32 -05:00
1 parent 9e448ba344
commit 1f61db4fee
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Rogue
public override void AI()
{
Vector2 randVel = new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.04f, (Main.rand.NextBool(3) ? 0.4f : 0.5f));
Vector2 randVel = new Vector2(8, 8).RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(0.04f, (Main.rand.NextBool(3) ? 0.4f : 0.5f));
Particle smoke = new HeavySmokeParticle(Projectile.Center + randVel, randVel, Color.GreenYellow, Main.rand.Next(25, 35 + 1), Main.rand.NextFloat(0.3f, 0.5f), 0.3f);
GeneralParticleHandler.SpawnParticle(smoke);
if (Main.rand.NextBool(2))
+3 -3
View File
@@ -68,13 +68,13 @@ namespace CalamityMod.Projectiles.Rogue
}
for (int k = 0; k < 11; k++)
{
Dust dust = Dust.NewDustPerfect(Projectile.Center, DustID.JungleSpore, new Vector2(6, 6).RotatedByRandom(100) * Main.rand.NextFloat(4f, 9f), 0, default, Main.rand.NextFloat(0.4f, 0.6f));
Dust dust = Dust.NewDustPerfect(Projectile.Center, DustID.JungleSpore, new Vector2(6, 6).RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(4f, 9f), 0, default, Main.rand.NextFloat(0.4f, 0.6f));
dust.noGravity = false;
dust.alpha = Main.rand.Next(100, 120 + 1);
}
for (int k = 0; k < 11; k++)
{
Dust dust = Dust.NewDustPerfect(Projectile.Center, DustID.MagicMirror, new Vector2(6, 6).RotatedByRandom(100) * Main.rand.NextFloat(0.5f, 0.8f), 0, Color.GreenYellow, Main.rand.NextFloat(0.6f, 0.8f));
Dust dust = Dust.NewDustPerfect(Projectile.Center, DustID.MagicMirror, new Vector2(6, 6).RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(0.5f, 0.8f), 0, Color.GreenYellow, Main.rand.NextFloat(0.6f, 0.8f));
dust.noGravity = false;
dust.alpha = Main.rand.Next(100, 120 + 1);
}
@@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Rogue
Particle blastRing2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Green * 0.8f, "CalamityMod/Particles/SoftRoundExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0.04f, 0.07f, 20, true);
GeneralParticleHandler.SpawnParticle(blastRing2);
#endregion
// Spawn an on-hit explosion which deals 30% of the projectile's damage.
//On hit, expand the hitbox and hit again for 30% of the projectile's damage
if (Projectile.owner == Main.myPlayer)
{
Projectile.damage = (int)(Projectile.damage * 0.3f);
@@ -141,7 +141,7 @@ namespace CalamityMod.Projectiles.Typeless
{
for (int k = 0; k < 15; k++)
{
Dust dust2 = Dust.NewDustPerfect(Projectile.Center, 303, new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.05f, 0.8f));
Dust dust2 = Dust.NewDustPerfect(Projectile.Center, 303, new Vector2(8, 8).RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(0.05f, 0.8f));
dust2.scale = Main.rand.NextFloat(0.75f, 0.95f);
dust2.noGravity = true;
dust2.color = Main.rand.NextBool(3) ? Color.YellowGreen : Color.OliveDrab;