Clean up all projectile code.
This commit is contained in:
@@ -28,15 +28,14 @@ public class BlueBoltRMB : ModProjectile
|
||||
Projectile.velocity.Y += Projectile.ai[0];
|
||||
if (Utils.NextFloat(Main.rand) < 0.1f && Projectile.alpha <= 100)
|
||||
{
|
||||
int dust1 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, ModContent.DustType<Dusts.FoxDustBlue>(), 0f, 0f, 0, default, 1f);
|
||||
int dust2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, ModContent.DustType<Dusts.FoxWitherDust>(), 0f, 0f, 0, default, 1f);
|
||||
int dust1 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, ModContent.DustType<Dusts.FoxDustBlue>());
|
||||
Main.dust[dust1].scale = 1f;
|
||||
Dust obj = Main.dust[dust1];
|
||||
obj.velocity *= 0.5f;
|
||||
Main.dust[dust1].velocity *= 0.5f;
|
||||
Main.dust[dust1].noGravity = true;
|
||||
|
||||
int dust2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, ModContent.DustType<Dusts.FoxWitherDust>());
|
||||
Main.dust[dust2].scale = 0.8f;
|
||||
Dust obj2 = Main.dust[dust2];
|
||||
obj2.velocity *= 0.5f;
|
||||
Main.dust[dust2].velocity *= 0.5f;
|
||||
Main.dust[dust2].noGravity = true;
|
||||
}
|
||||
}
|
||||
@@ -47,15 +46,14 @@ public class BlueBoltRMB : ModProjectile
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.1f && Projectile.alpha <= 100)
|
||||
{
|
||||
int dust1 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, ModContent.DustType<Dusts.FoxDustBlue>(), 0f, 0f, 0, default, 1f);
|
||||
int dust2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, ModContent.DustType<Dusts.FoxWitherDust>(), 0f, 0f, 0, default, 1f);
|
||||
int dust1 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, ModContent.DustType<Dusts.FoxDustBlue>());
|
||||
Main.dust[dust1].scale = 1f;
|
||||
Dust obj = Main.dust[dust1];
|
||||
obj.velocity *= 0.5f;
|
||||
Main.dust[dust1].velocity *= 0.5f;
|
||||
Main.dust[dust1].noGravity = true;
|
||||
|
||||
int dust2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, ModContent.DustType<Dusts.FoxWitherDust>());
|
||||
Main.dust[dust2].scale = 0.8f;
|
||||
Dust obj2 = Main.dust[dust2];
|
||||
obj2.velocity *= 0.5f;
|
||||
Main.dust[dust2].velocity *= 0.5f;
|
||||
Main.dust[dust2].noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user