burning sea has given me more problems that it should have

This commit is contained in:
termigator1359 committed 2020-05-13 09:19:11 -04:00
1 parent c58de9772b
commit a39293b097
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -31,6 +31,9 @@ namespace CalamityMod.Projectiles.Magic
public override void AI()
{
//Doesn't use += to override vanilla rotation by AI
projectile.rotation = projectile.rotation + 0.7f;
Lighting.AddLight(projectile.Center, 0.25f, 0f, 0f);
if (projectile.wet && !projectile.lavaWet)
{
+2 -1
View File
@@ -25,7 +25,8 @@ namespace CalamityMod.Projectiles.Magic
public override void AI()
{
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + MathHelper.ToRadians(90);
Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 229, 0f, 0f, 100, default, 0.6f);
if (Main.rand.NextBool(2))
Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 229, 0f, 0f, 100, default, 0.6f);
CalamityGlobalProjectile.HomeInOnNPC(projectile, false, 500f, 22f, 20f);
}