diff --git a/Items/Weapons/Magic/SHPC.cs b/Items/Weapons/Magic/SHPC.cs index e5262ae1e6..062af5b9ea 100644 --- a/Items/Weapons/Magic/SHPC.cs +++ b/Items/Weapons/Magic/SHPC.cs @@ -20,9 +20,9 @@ namespace CalamityMod.Items.Weapons.Magic { public new string LocalizationCategory => "Items.Weapons.Magic"; public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/AnomalysNanogunMPFBShot"); - public static readonly SoundStyle VacuumStart = new SoundStyle("CalamityMod/Sounds/Item/SHPCVacuumStart"); - public static readonly SoundStyle VacuumLoop = new SoundStyle("CalamityMod/Sounds/Item/SHPCVacuumLoop"); - public static readonly SoundStyle VacuumEnd = new SoundStyle("CalamityMod/Sounds/Item/SHPCVacuumEnd"); + public static readonly SoundStyle VacuumStart = new SoundStyle("CalamityMod/Sounds/Item/SHPCVacuumStart") with { Volume = 0.75f }; + public static readonly SoundStyle VacuumLoop = new SoundStyle("CalamityMod/Sounds/Item/SHPCVacuumLoop") with { Volume = 0.75f }; + public static readonly SoundStyle VacuumEnd = new SoundStyle("CalamityMod/Sounds/Item/SHPCVacuumEnd") with { Volume = 0.75f }; public const int ShotsPerSoul = 50; public int storedSoulpower = 0; diff --git a/Projectiles/Magic/SHPS.cs b/Projectiles/Magic/SHPS.cs index 4b75bb5e05..664be68c63 100644 --- a/Projectiles/Magic/SHPS.cs +++ b/Projectiles/Magic/SHPS.cs @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Magic RandomAnglingStrength = Main.rand.NextFloat(-0.16f, 0.16f); Projectile.velocity = Projectile.velocity.RotatedBy(RandomAnglingStrength); if (Projectile.velocity.Length() > 3f && Pickup == 1f) - Projectile.velocity *= 0.985f; + Projectile.velocity *= 0.98f; break; case 1f: Projectile.extraUpdates = 1; @@ -100,7 +100,8 @@ namespace CalamityMod.Projectiles.Magic Projectile.velocity = Projectile.velocity.ToRotation().AngleTowards(Projectile.SafeDirectionTo(Target.Center).ToRotation(), 0.15f).ToRotationVector2() * speed; break; case 2f: - Projectile.velocity = (Projectile.velocity * 15f + Utils.DirectionTo(Projectile.Center, ToSuckTowards.ModProjectile().TipPosition) * 15f) / 16f; + float speedMult = Utils.GetLerpValue(720f, 32f, Vector2.Distance(Projectile.Center, ToSuckTowards.ModProjectile().TipPosition), true); + Projectile.velocity = (Projectile.velocity * 15f + Utils.DirectionTo(Projectile.Center, ToSuckTowards.ModProjectile().TipPosition) * 25f * speedMult) / 16f; if (Vector2.Distance(Projectile.Center, ToSuckTowards.ModProjectile().TipPosition) < 40f) { ToSuckTowards.ModProjectile().SoulColors.Add(Projectile.ai[0]); diff --git a/Projectiles/Magic/SHPV.cs b/Projectiles/Magic/SHPV.cs index 38e9ccdf43..1fd0ad639c 100644 --- a/Projectiles/Magic/SHPV.cs +++ b/Projectiles/Magic/SHPV.cs @@ -29,9 +29,9 @@ namespace CalamityMod.Projectiles.Magic public ref float Timer => ref Projectile.ai[0]; // The maximum distance in pixels out from the tip of the gun in which souls can be sucked in. - private const float Size = 480f; - // The spread of the suction on each side. 25 degrees on each side, 50 degrees total. - private const float Spread = MathHelper.Pi / 7.2f; + private const float Size = 576f; + // The spread of the suction on each side. 27 degrees on each side, 54 degrees total. + private const float Spread = MathHelper.Pi / 6.66f; // Maximum number of souls per visual ring drawn on the gun. Additional souls get moved into additional rings. private const int MaxSoulsRing = 10; // Manual offset used for drawing the gun. @@ -107,8 +107,8 @@ namespace CalamityMod.Projectiles.Magic else { // Debug code used for assessing the visual and functional area of the vacuum - /*BloomLineVFX l = new(Owner.Center, Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld).RotatedBy(Spread) * Size, 0.4f, Color.Gray, 2, true); - BloomLineVFX l2 = new(Owner.Center, Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld).RotatedBy(-Spread) * Size, 0.4f, Color.Gray, 2, true); + /*BloomLineVFX l = new(TipPosition, Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld).RotatedBy(Spread) * Size, 0.4f, Color.Gray, 2, true); + BloomLineVFX l2 = new(TipPosition, Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld).RotatedBy(-Spread) * Size, 0.4f, Color.Gray, 2, true); GeneralParticleHandler.SpawnParticle(l); GeneralParticleHandler.SpawnParticle(l2);*/ @@ -168,7 +168,7 @@ namespace CalamityMod.Projectiles.Magic for (int j = 0; j < 3; j++) { float distRatio = 1f - (Main.GameUpdateCount + j * 10) % 30 / 30f; - Vector2 posOffset = new Vector2(MathF.Sin(MathHelper.TwoPi / 6f * i) * 25f * distRatio, MathF.Cos(Main.GameUpdateCount * MathHelper.Pi / 30f + MathHelper.TwoPi / 6f * i) * 160f * distRatio).RotatedBy(rotation); + Vector2 posOffset = new Vector2(MathF.Sin(MathHelper.TwoPi / 6f * i) * 25f * distRatio, MathF.Cos(Main.GameUpdateCount * MathHelper.Pi / 30f + MathHelper.TwoPi / 6f * i) * 240f * distRatio).RotatedBy(rotation); float colorMult = 0.5f * Utils.GetLerpValue(1f, 0.8f, distRatio, true); Main.EntitySpriteDraw(tex, Vector2.Lerp(TipPosition, farthestPos, distRatio) + posOffset - Main.screenPosition, frame, Color.Gray * colorMult, rotation + MathHelper.Pi, frame.Size() / 2f, 1.5f * distRatio, SpriteEffects.None); }