diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index ca7439e221..586903e4e7 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -846,7 +846,9 @@ namespace CalamityMod.CalPlayer /// public int bootLevel = 0; public bool hellfireTreads = false; - public bool abyssalAmulet = false; + public bool sSpiritAmulet = false; + public int sSpiritAmuletTimer = 0; + public bool sSpiritAmuletVisual = false; public bool lumenousAmulet = false; public bool oceanCrest = false; public bool aquaticEmblem = false; @@ -1898,8 +1900,8 @@ namespace CalamityMod.CalPlayer Player.statLifeMax2 += 45; int percentMaxLifeIncrease = 0; - if (ZoneAbyss && (abyssalAmulet || lumenousAmulet)) - percentMaxLifeIncrease += lumenousAmulet ? 25 : 10; + if (ZoneAbyss && lumenousAmulet) + percentMaxLifeIncrease += 25; // Blood Pact and Chalice of the Blood God stack their HP bonuses if you want to equip both if (bloodPact) @@ -2239,7 +2241,7 @@ namespace CalamityMod.CalPlayer fairyBoots = false; flameWakerBoots = false; hellfireTreads = false; - abyssalAmulet = false; + sSpiritAmulet = false; lumenousAmulet = false; oceanCrest = false; aquaticEmblem = false; diff --git a/CalPlayer/CalamityPlayerFishing.cs b/CalPlayer/CalamityPlayerFishing.cs index 24dcdd8f01..ca94674777 100644 --- a/CalPlayer/CalamityPlayerFishing.cs +++ b/CalPlayer/CalamityPlayerFishing.cs @@ -291,6 +291,7 @@ namespace CalamityMod.CalPlayer ModContent.ItemType() }; legendaryCatches.AddWithCondition(ModContent.ItemType(), DownedBossSystem.downedDesertScourge); + legendaryCatches.AddWithCondition(ModContent.ItemType(), DownedBossSystem.downedDesertScourge); legendaryCatches.AddWithCondition(ModContent.ItemType(), Main.hardMode); itemDrop = legendaryCatches[Main.rand.Next(legendaryCatches.Count)]; } @@ -314,11 +315,7 @@ namespace CalamityMod.CalPlayer { if (attempt.legendary) { - itemDrop = Utils.SelectRandom(Main.rand, new int[] - { - ModContent.ItemType(), - ModContent.ItemType() - }); + ModContent.ItemType(); } else if (attempt.common && Main.rand.NextBool()) itemDrop = ModContent.ItemType(); diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index b7f062a66c..a15ed25915 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1577,6 +1577,64 @@ namespace CalamityMod.CalPlayer if (transformerDelay > 0) transformerDelay--; + if (sSpiritAmulet) + { + int spawnTime = 65; // Time between energy spawns + int energyCap = 8; // Max number of energies that can be alive at a time + + Projectile projectile = null; + if (Player.dashDelay == -1) // When the player dashes, make all the energies exit idle phase + { + for (int x = 0; x < Main.maxProjectiles; x++) + { + projectile = Main.projectile[x]; + if (projectile.active && projectile.type == ModContent.ProjectileType() && projectile.ai[2] == 0 && projectile.owner == Player.whoAmI) + { + projectile.ai[2] = 5; + } + } + sSpiritAmuletTimer = -spawnTime; // The spawn cooldown after launching energies is twice as long + } + int numOfEnergy = 0; + for (int x = 0; x < Main.maxProjectiles; x++) // Get a count of energies in idle mode + { + projectile = Main.projectile[x]; + if (projectile.active && projectile.type == ModContent.ProjectileType() && projectile.ai[2] == 0 && projectile.owner == Player.whoAmI) + numOfEnergy++; + } + if (sSpiritAmuletTimer >= spawnTime) + { + if (numOfEnergy < energyCap) + { + int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(22); + Projectile energy = Projectile.NewProjectileDirect(Player.GetSource_FromThis(), Player.Center, (Vector2.One * 4).RotatedByRandom(Math.PI), ModContent.ProjectileType(), energyDamage, 0f, Player.whoAmI, 0, numOfEnergy); + if (numOfEnergy + 1 == energyCap && Player.Calamity().sSpiritAmuletVisual) + { + SoundStyle transform = new("CalamityMod/Sounds/Item/WaterSplash1"); + SoundEngine.PlaySound(transform with { Volume = 0.25f, Pitch = 0.9f, MaxInstances = -1 }, Player.Center); + + for (int i = 0; i <= 14; i++) + { + Vector2 vel = (Vector2.One * 5).RotatedByRandom(Math.PI) * Main.rand.NextFloat(0.4f, 1.2f); + + Dust dust2 = Dust.NewDustPerfect(Player.Center, ModContent.DustType(), vel); + dust2.scale = Main.rand.NextFloat(0.8f, 1.4f); + dust2.noGravity = false; + dust2.alpha = 180; + dust2.color = Main.rand.NextBool() ? Color.Turquoise : Color.Aquamarine; + dust2.noLight = true; + dust2.noLightEmittence = true; + } + } + } + sSpiritAmuletTimer = 0; + } + else if (!Player.dead) + { + sSpiritAmuletTimer++; + } + } + if (unstableGraniteCore) { zapActivity += 1; diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 4829ec1ed0..86cc5f84eb 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -83,6 +83,9 @@ namespace CalamityMod.CalPlayer target.Calamity().IncreasedSicknessEffects_ToxicHeart = toxicHeart; + target.Calamity().IncreasedWaterEffects_Amulet1 = sSpiritAmulet; + target.Calamity().IncreasedWaterEffects_Amulet2 = false; + target.Calamity().IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin; target.Calamity().IncreasedSicknessAndWaterEffects_CorrosiveSpine = corrosiveSpine; @@ -199,6 +202,9 @@ namespace CalamityMod.CalPlayer cgn.IncreasedSicknessEffects_ToxicHeart = toxicHeart; + cgn.IncreasedWaterEffects_Amulet1 = sSpiritAmulet; + cgn.IncreasedWaterEffects_Amulet2 = false; + cgn.IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin; cgn.IncreasedSicknessAndWaterEffects_CorrosiveSpine = corrosiveSpine; @@ -1181,10 +1187,6 @@ namespace CalamityMod.CalPlayer int duration = 60; target.AddBuff(BuffType(), duration); } - if (abyssalAmulet) - { - CalamityUtils.Inflict246DebuffsNPC(target, BuffType()); - } if (lumenousAmulet) { CalamityUtils.Inflict246DebuffsNPC(target, BuffType()); diff --git a/Items/Accessories/LumenousAmulet.cs b/Items/Accessories/LumenousAmulet.cs index 99f96bc469..7b07d0c8f0 100644 --- a/Items/Accessories/LumenousAmulet.cs +++ b/Items/Accessories/LumenousAmulet.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Accessories public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(15). AddTile(TileID.MythrilAnvil). Register(); diff --git a/Items/Accessories/AbyssalAmulet.cs b/Items/Accessories/SeaSpiritAmulet.cs similarity index 78% rename from Items/Accessories/AbyssalAmulet.cs rename to Items/Accessories/SeaSpiritAmulet.cs index e060bee4ed..74f6b94a0c 100644 --- a/Items/Accessories/AbyssalAmulet.cs +++ b/Items/Accessories/SeaSpiritAmulet.cs @@ -6,8 +6,9 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { + [LegacyName("AbyssalAmulet")] [AutoloadEquip(EquipType.Neck)] - public class AbyssalAmulet : ModItem, ILocalizedModType + public class SeaSpiritAmulet : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() @@ -22,8 +23,8 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); - modPlayer.abyssalAmulet = true; - player.buffImmune[ModContent.BuffType()] = true; + modPlayer.sSpiritAmulet = true; + modPlayer.sSpiritAmuletVisual = !hideVisual; } } } diff --git a/Items/Accessories/AbyssalAmulet.png b/Items/Accessories/SeaSpiritAmulet.png similarity index 100% rename from Items/Accessories/AbyssalAmulet.png rename to Items/Accessories/SeaSpiritAmulet.png diff --git a/Items/Accessories/AbyssalAmulet_Neck.png b/Items/Accessories/SeaSpiritAmulet_Neck.png similarity index 100% rename from Items/Accessories/AbyssalAmulet_Neck.png rename to Items/Accessories/SeaSpiritAmulet_Neck.png diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 0e432a9d91..69b0a8cf28 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -8,15 +8,6 @@ Abaddon: { ''' } -AbyssalAmulet: { - DisplayName: Abyssal Amulet - Tooltip: - ''' - Attacks inflict Riptide, and grants immunity to Riptide - While in the abyss you gain 10% increased max life - ''' -} - AbyssalDivingGear: { DisplayName: Abyssal Diving Gear Tooltip: @@ -1491,6 +1482,18 @@ ScuttlersJewel: { ''' } +SeaSpiritAmulet: { + DisplayName: Sea Spirit Amulet + Tooltip: + ''' +Slowly accumulate up to eight spirit orbs that follow you +Spirits disperse when dashing +If below 50% life, they will heal you, otherwise they will attack nearby enemies +Multiplies all water debuff damage by 1.35x +Spirit orbs are transparent and silent if visibility is disabled + ''' +} + ShatteredCommunity: { DisplayName: Shattered Community Tooltip: diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Typeless.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Typeless.hjson index 991328cb45..fdf34000e6 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Typeless.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Typeless.hjson @@ -1,6 +1,7 @@ AbaddonCrit.DisplayName: Brimstone Blast AeroExplosive.DisplayName: Aeroboom AllianceTriangle.DisplayName: Alliance Triangle +AmuletEnergy.DisplayName: Sea Spirit ArcZap.DisplayName: Arc Zap ArtifactOfResilienceShards.DisplayName: Artifact Shard AscendantAura.DisplayName: Ascendant Aura diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index b62811cf15..03b3b04c80 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -168,6 +168,10 @@ namespace CalamityMod.NPCs // Toxic Heart effect public bool IncreasedSicknessEffects_ToxicHeart = false; + // Amulets effects + public bool IncreasedWaterEffects_Amulet1 = false; + public bool IncreasedWaterEffects_Amulet2 = false; + // Sickness and Water debuff effects public bool IncreasedSicknessAndWaterEffects_EvergreenGin = false; public bool IncreasedSicknessAndWaterEffects_CorrosiveSpine = false; @@ -513,6 +517,8 @@ namespace CalamityMod.NPCs myClone.IncreasedHeatEffects_FireBoots = IncreasedHeatEffects_FireBoots; myClone.IncreasedHeatEffects_FlameWings = IncreasedHeatEffects_FlameWings; myClone.IncreasedSicknessEffects_ToxicHeart = IncreasedSicknessEffects_ToxicHeart; + myClone.IncreasedWaterEffects_Amulet1 = IncreasedWaterEffects_Amulet1; + myClone.IncreasedWaterEffects_Amulet2 = IncreasedWaterEffects_Amulet2; myClone.IncreasedSicknessAndWaterEffects_CorrosiveSpine = IncreasedSicknessAndWaterEffects_CorrosiveSpine; myClone.IncreasedSicknessAndWaterEffects_EvergreenGin = IncreasedSicknessAndWaterEffects_EvergreenGin; @@ -938,6 +944,11 @@ namespace CalamityMod.NPCs if (IncreasedSicknessEffects_ToxicHeart) sicknessDamageMult += 0.5; + if (IncreasedWaterEffects_Amulet1) + waterDamageMult += 0.35; + if (IncreasedWaterEffects_Amulet2) + waterDamageMult += 0.75; + if (IncreasedSicknessAndWaterEffects_CorrosiveSpine) { sicknessDamageMult += 0.25; diff --git a/Projectiles/Typeless/AmuletEnergy.cs b/Projectiles/Typeless/AmuletEnergy.cs new file mode 100644 index 0000000000..54f2f69a84 --- /dev/null +++ b/Projectiles/Typeless/AmuletEnergy.cs @@ -0,0 +1,258 @@ +using System; +using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; +using CalamityMod.CalPlayer; +using CalamityMod.Dusts; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; +using ReLogic.Utilities; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Typeless +{ + public class AmuletEnergy : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Typeless"; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public Player Owner => Main.player[Projectile.owner]; + public Color bColor = Color.White; + public bool canDamage = false; + public bool visuals => Owner.Calamity().sSpiritAmuletVisual; // Enables/disables visuals and sounds based on accessory visibility + public ref float time => ref Projectile.ai[0]; + public ref float energyNumber => ref Projectile.ai[1]; // The number assigned to this energy, ranging from 1 to the max number of energies + public bool idle => Projectile.ai[2] == 0; // Floating around the player + public bool healing = false; // If the energies should heal the player. If false they will attack + public int soundCooldown = 0; // A cooldown after making a sound. Also used for some of the visuals when a sound is made + public SlotId soundSlot; + public NPC targeted; + public override void SetStaticDefaults() + { + ProjectileID.Sets.NoLiquidDistortion[Type] = true; + } + public override void SetDefaults() + { + Projectile.width = Projectile.height = 30; + Projectile.ignoreWater = true; + Projectile.timeLeft = 400; + Projectile.tileCollide = false; + Projectile.friendly = true; + Projectile.penetrate = 1; + Projectile.extraUpdates = 1; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; + Projectile.ArmorPenetration = 20; + } + + public override void AI() + { + bool spoke = (soundCooldown >= 250 * Projectile.MaxUpdates); + int startTime = 100; // Time after launch when it will begin attacking/healing + int endTime = 300; // Time after launch when it's movement code reaches it's cap on strength + + // Color is in blues if idle or healing, but becomes orange breifley if they speak or constantly if they are attacking + float colorShift = spoke ? Utils.GetLerpValue(250 * Projectile.MaxUpdates, 300 * Projectile.MaxUpdates, soundCooldown) : (idle || healing ? 0 : Utils.GetLerpValue(0, startTime, time)); + float rate = Main.GlobalTimeWrappedHourly * 5; + List eColors = new List() + { + Color.Lerp(Color.Aquamarine, Color.LightSalmon, colorShift), + Color.Lerp(Color.MediumTurquoise, Color.Coral, colorShift) + }; + + int colorIndex = (int)(rate / 2 % eColors.Count); + Color currentColor = eColors[colorIndex]; + Color nextColor = eColors[(colorIndex + 1) % eColors.Count]; + bColor = Color.Lerp(currentColor, nextColor, rate % 2f > 1f ? 1f : rate % 1f); + + if (idle || time < startTime) // If not attacking/healing keep it alive + Projectile.timeLeft++; + + if (Owner.dead || !Owner.Calamity().sSpiritAmulet) + Projectile.Kill(); + + if (Utils.Distance(Owner.Center, Projectile.Center) > 1100) // If it's too far away either teleport to the player if idle (or kill it if needed) + { + if (idle) + Projectile.Center = Owner.Center; + else if (targeted == null && !healing) + Projectile.Kill(); + } + + // Emit some light + Lighting.AddLight(Projectile.Center, bColor.ToVector3() * 1.5f); + + if (SoundEngine.TryGetActiveSound(soundSlot, out var sound) && sound.IsPlaying) + sound.Position = Projectile.Center; + + if (idle) // Following Ai + { + if (time == 0 && visuals) // On spawn fx + { + for (int i = 0; i <= 4; i++) + { + float variance = Main.rand.NextFloat(-0.5f, 0.5f); + Vector2 vel = (Projectile.velocity.SafeNormalize(Vector2.UnitX) * 4).RotatedBy(variance) * Main.rand.NextFloat(0.3f, 1f) * (1 - Math.Abs(variance)) * 2; + float scale = (Main.rand.NextFloat(1.5f, 1.7f) - Math.Abs(variance)) * 0.35f; + + Dust dust2 = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), vel); + dust2.scale = scale * 3; + dust2.noGravity = false; + dust2.alpha = 180; + dust2.color = Main.rand.NextBool(4) ? Color.Lerp(Color.Yellow, bColor, 0.5f) : bColor; + dust2.noLight = true; + dust2.noLightEmittence = true; + } + } + if (time > 80) // Track the player in a natural motion simular to swimming + { + float homingSpeed = Utils.Remap(Utils.Distance(Projectile.Center, Owner.Center), 200, 600, 0.07f, 0.16f) + 0.005f * energyNumber; + float offsetPower = Utils.GetLerpValue(1, 5, Owner.velocity.Length(), true); + float sine = (float)Math.Sin((time * 0.1f) / MathHelper.Pi); + float sine2 = (float)Math.Sin((time * 0.04f) / MathHelper.Pi); + Vector2 bonusMobility = (offsetPower > 0 ? ((Utils.DirectionTo(Projectile.Center, Owner.Center) * 50) * sine2).RotatedBy(0.8f * sine) * offsetPower : Vector2.Zero); + Vector2 goalPosition = Owner.MountedCenter + bonusMobility + ((MathHelper.TwoPi * energyNumber) / Math.Max(Owner.ownedProjectileCounts[ModContent.ProjectileType()], 1)).ToRotationVector2().RotatedBy(Main.GlobalTimeWrappedHourly * 0.4f) * 80; + + bool outOfRange = Utils.Distance(Projectile.Center, goalPosition) > 100; + if (Projectile.velocity.Length() < 5 && outOfRange) + Projectile.velocity = Projectile.velocity * 0.995f + Utils.DirectionTo(Projectile.Center, goalPosition) * homingSpeed; + else if (outOfRange) + Projectile.velocity *= 0.985f; + if (!outOfRange) + Projectile.velocity = Projectile.velocity.RotatedBy(0.0065f * (energyNumber % 2 == 0 ? -1 : 1)) * 1.004f; + + if (soundCooldown == 0 && Main.rand.NextBool(3500 * Projectile.MaxUpdates) && visuals) + { + SoundStyle certainlyNotADeadChild = new("CalamityMod/Sounds/Item/AmuletVox", 6); + soundSlot = SoundEngine.PlaySound(certainlyNotADeadChild with { Volume = 0.3f, Pitch = Main.rand.NextFloat(-0.1f, 0.1f), MaxInstances = -1 }, Projectile.Center); + soundCooldown = 300 * Projectile.MaxUpdates; + } + if (soundCooldown > 0) + soundCooldown--; + } + else + Projectile.velocity *= 0.99f; + } + else // Attack/Healing Ai + { + soundCooldown = 0; + if (Projectile.ai[2] == 5) // Effects for the moment they stop being idle + { + time = 0; + healing = (Owner.statLife < Owner.statLifeMax2 * 0.5f); + Projectile.ai[2]++; + Projectile.velocity = Vector2.Lerp(Utils.DirectionTo(Owner.Center, Projectile.Center), Owner.velocity.SafeNormalize(Vector2.UnitX), 0.6f) * Main.rand.NextFloat(4.5f, 5.5f); + } + if (time <= startTime) + Projectile.velocity *= 0.99f; + + if (healing) // I wonder what this does :clueless: + { + float sine = (float)Math.Sin((time * 0.3f) / MathHelper.Pi); + Projectile.extraUpdates = 6; + + if (time > startTime) + { + float homingSpeed = Utils.Remap(time, startTime, endTime, 0.01f, 0.1f); + + Vector2 goalPosition = Owner.Center; + + if (Projectile.velocity.Length() < 5) + Projectile.velocity = Projectile.velocity.RotatedBy(0.02f * sine) * 0.99f + Utils.DirectionTo(Projectile.Center, goalPosition) * homingSpeed; + else + Projectile.velocity *= 0.985f; + + if (Utils.Distance(goalPosition, Projectile.Center) < 50) + { + Owner.HealPlayer(2); + Projectile.Kill(); + } + } + } + else // Attacking + { + canDamage = true; + Projectile.extraUpdates = 6; + + if (time > startTime) + { + float homingSpeed = Utils.Remap(time, startTime, endTime, 0.01f, 0.1f); + + targeted = Projectile.Center.ClosestNPCAt(1200); + CalamityUtils.HomeInOnSelectedNPC(Projectile, targeted, true, homingSpeed, 25, 0.99f, accelerate: true); + + if (targeted == null) + { + Projectile.extraUpdates = 2; + if (Projectile.velocity.Y > -5) + { + Projectile.velocity.Y -= 0.8f * homingSpeed; + Projectile.velocity.X *= 0.997f; + } + } + else + Projectile.timeLeft++; + } + } + } + + float squash = Utils.GetLerpValue(1, 3, Projectile.velocity.Length(), true); + if (squash > 0.15f && visuals) + { + Particle fadeInfx = new CustomSpark(Projectile.Center, Projectile.velocity * 0.01f, "CalamityMod/Particles/BloomCircle", false, 15, 0.4f * Projectile.scale, bColor * 0.3f * squash, new Vector2(1 - 0.15f * squash, 1f), true, false, shrinkSpeed: 0.3f * squash); + GeneralParticleHandler.SpawnParticle(fadeInfx); + } + + Projectile.scale = MathHelper.Lerp(Projectile.scale, spoke ? 1.4f : 1, 0.1f); + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; + time++; + } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + target.AddBuff(ModContent.BuffType(), 420); + } + public override void OnKill(int timeLeft) + { + if (!healing && visuals) + { + for (int i = 0; i <= 4; i++) + { + float variance = Main.rand.NextFloat(-0.5f, 0.5f); + Vector2 vel = (Projectile.velocity.SafeNormalize(Vector2.UnitX) * 4).RotatedBy(variance) * Main.rand.NextFloat(0.3f, 1f) * (1 - Math.Abs(variance)) * 4; + float scale = (Main.rand.NextFloat(1.5f, 1.7f) - Math.Abs(variance)) * 0.35f; + + Particle sparks = new CustomSpark(Projectile.Center + vel, vel, "CalamityMod/Particles/BloomCircle", false, Main.rand.Next(13, 16 + 1), scale, bColor * 0.7f, new Vector2(1f, 1), true, false, 0, false, shrinkSpeed: 0.25f); + GeneralParticleHandler.SpawnParticle(sparks); + + Dust dust2 = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), vel); + dust2.scale = scale * 3; + dust2.noGravity = false; + dust2.alpha = 180; + dust2.color = Main.rand.NextBool(4) ? Color.Lerp(Color.Yellow, bColor, 0.5f) : bColor; + dust2.noLight = true; + dust2.noLightEmittence = true; + } + } + } + public override bool PreDraw(ref Color lightColor) + { + Asset orb = ModContent.Request("CalamityMod/Particles/BloomCircle"); + float sine = (float)Math.Sin((Main.GlobalTimeWrappedHourly * 10) / MathHelper.Pi); + Vector2 squash = new Vector2(Utils.Remap(Projectile.velocity.Length(), 1, 5, 1, 0.6f), Utils.Remap(Projectile.velocity.Length(), 1, 5, 1, 2f)); + + for (int i = 0; i < 6; i++) + { + Color orbColor = Color.Lerp(bColor, Color.Yellow, (i + 1) / 6) with { A = 0 } * 0.4f * (visuals ? 1 : 0.1f); + Vector2 scale = Projectile.scale * squash * (0.05f + i * 0.01f) * 3; + Main.EntitySpriteDraw(orb.Value, Projectile.Center - Main.screenPosition, null, orbColor, Projectile.rotation, orb.Size() * 0.5f, scale, SpriteEffects.None); + } + + return false; + } + public override bool? CanDamage() => canDamage ? null : false; + } +} diff --git a/Sounds/Item/AmuletVox1.ogg b/Sounds/Item/AmuletVox1.ogg new file mode 100644 index 0000000000..af09bedf93 Binary files /dev/null and b/Sounds/Item/AmuletVox1.ogg differ diff --git a/Sounds/Item/AmuletVox2.ogg b/Sounds/Item/AmuletVox2.ogg new file mode 100644 index 0000000000..631d38c19c Binary files /dev/null and b/Sounds/Item/AmuletVox2.ogg differ diff --git a/Sounds/Item/AmuletVox3.ogg b/Sounds/Item/AmuletVox3.ogg new file mode 100644 index 0000000000..933fea04ad Binary files /dev/null and b/Sounds/Item/AmuletVox3.ogg differ diff --git a/Sounds/Item/AmuletVox4.ogg b/Sounds/Item/AmuletVox4.ogg new file mode 100644 index 0000000000..6d3ec52bcb Binary files /dev/null and b/Sounds/Item/AmuletVox4.ogg differ diff --git a/Sounds/Item/AmuletVox5.ogg b/Sounds/Item/AmuletVox5.ogg new file mode 100644 index 0000000000..77888a2106 Binary files /dev/null and b/Sounds/Item/AmuletVox5.ogg differ diff --git a/Sounds/Item/AmuletVox6.ogg b/Sounds/Item/AmuletVox6.ogg new file mode 100644 index 0000000000..7f7ae9060d Binary files /dev/null and b/Sounds/Item/AmuletVox6.ogg differ