diff --git a/Items/Weapons/Ranged/GildedGatherer.cs b/Items/Weapons/Ranged/GildedGatherer.cs new file mode 100644 index 0000000000..4e1e2e0f02 --- /dev/null +++ b/Items/Weapons/Ranged/GildedGatherer.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using CalamityMod.Items.BaseItems; +using CalamityMod.Projectiles.Magic; +using CalamityMod.Projectiles.Ranged; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.Ranged +{ + public class GildedGatherer : CustomUseProjItem, ILocalizedModType, IHideFrontArm + { + Asset RealSprite; + + bool IHideFrontArm.ShouldHideArm(Player player) => false; + + public new string LocalizationCategory => "Items.Weapons.Ranged"; + + public override void SetDefaults() + { + Item.DamageType = DamageClass.Ranged; + Item.noUseGraphic = true; + Item.damage = 20; + Item.knockBack = 5; + Item.useTime = 50; + Item.useAnimation = 66; + Item.useStyle = ItemUseStyleID.Swing; + Item.noMelee = true; + Item.channel = true; + Item.knockBack = 3f; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; + Item.rare = ItemRarityID.Orange; + Item.autoReuse = true; + Item.shoot = ModContent.ProjectileType(); + Item.scale = 1f; + } + } +} diff --git a/Items/Weapons/Ranged/GildedGatherer.png b/Items/Weapons/Ranged/GildedGatherer.png new file mode 100644 index 0000000000..a49ab5f1d8 Binary files /dev/null and b/Items/Weapons/Ranged/GildedGatherer.png differ diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 5445cc1191..94ab90d1ce 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1411,3 +1411,8 @@ WulfrumBlunderbuss: { [c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.'] ''' } + +GildedGatherer: { + DisplayName: Gilded Gatherer + Tooltip: "" +} diff --git a/Projectiles/BaseProjectiles/BaseCustomUseStyleProjectile.cs b/Projectiles/BaseProjectiles/BaseCustomUseStyleProjectile.cs index f5e5803881..b07847957b 100644 --- a/Projectiles/BaseProjectiles/BaseCustomUseStyleProjectile.cs +++ b/Projectiles/BaseProjectiles/BaseCustomUseStyleProjectile.cs @@ -107,6 +107,11 @@ namespace CalamityMod.Projectiles.BaseProjectiles /// public float FinalRotation => Projectile.rotation + RotationOffset; + /// + /// Useful for flipping the sprite horizontally or vertically in case of holdouts needing to be flipped based on player direction. + /// + public SpriteEffects spriteEffects = SpriteEffects.None; + /// /// Rotation offset for the hitbox that doesn't affect the sprite. /// Useful for if you have, for instance, a sword sprite at a 45 degree angle, and need that to reflect on the hitbox. @@ -122,6 +127,7 @@ namespace CalamityMod.Projectiles.BaseProjectiles /// /// Overrides the projectile owner's center as the projectile's location, so long as it isn't Vector2.Zero. + /// If not equal to Vector2.Zero, this value will be affected by the projectile's velocity just like its normal position. /// public Vector2 AbsolutePosition = Vector2.Zero; @@ -200,6 +206,7 @@ namespace CalamityMod.Projectiles.BaseProjectiles } else { + AbsolutePosition += Projectile.velocity; Projectile.position = AbsolutePosition - (Projectile.Size / 2) + Offset; } @@ -254,7 +261,7 @@ namespace CalamityMod.Projectiles.BaseProjectiles float r = FlipAsSword ? MathHelper.ToRadians(90) : 0f; - Main.EntitySpriteDraw(tex.Value, Projectile.Center - Main.screenPosition + new Vector2(0, Owner.gfxOffY), tex.Frame(1, FrameCount, 0, Frame), lightColor, Projectile.rotation + RotationOffset + r, FlipAsSword ? new Vector2(tex.Width() - SpriteOrigin.X, SpriteOrigin.Y) : SpriteOrigin, Projectile.scale, FlipAsSword ? SpriteEffects.FlipHorizontally : SpriteEffects.None); + Main.EntitySpriteDraw(tex.Value, Projectile.Center - Main.screenPosition + new Vector2(0, Owner.gfxOffY), tex.Frame(1, FrameCount, 0, Frame), lightColor, Projectile.rotation + RotationOffset + r, FlipAsSword ? new Vector2(tex.Width() - SpriteOrigin.X, SpriteOrigin.Y) : SpriteOrigin, Projectile.scale, spriteEffects != SpriteEffects.None ? spriteEffects : (FlipAsSword ? SpriteEffects.FlipHorizontally : SpriteEffects.None)); } return false; diff --git a/Projectiles/Magic/MelodyOfParadiseDragon.png b/Projectiles/Magic/MelodyOfParadiseDragon.png new file mode 100644 index 0000000000..4a6108b026 Binary files /dev/null and b/Projectiles/Magic/MelodyOfParadiseDragon.png differ diff --git a/Projectiles/Magic/MelodyOfParadiseDragon_Alt.png b/Projectiles/Magic/MelodyOfParadiseDragon_Alt.png new file mode 100644 index 0000000000..32a27d98a0 Binary files /dev/null and b/Projectiles/Magic/MelodyOfParadiseDragon_Alt.png differ diff --git a/Projectiles/Magic/SongOfParadiseDragon.cs b/Projectiles/Magic/SongOfParadiseDragon.cs index 1a0bb7934d..9d7fe25b11 100644 --- a/Projectiles/Magic/SongOfParadiseDragon.cs +++ b/Projectiles/Magic/SongOfParadiseDragon.cs @@ -8,6 +8,7 @@ using CalamityMod.NPCs.TownNPCs; using CalamityMod.Particles; using Microsoft.Build.Construction; using Microsoft.Build.Tasks; +using Microsoft.CodeAnalysis; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using ReLogic.Content; @@ -21,15 +22,16 @@ using Terraria.Utilities.Terraria.Utilities; namespace CalamityMod.Projectiles.Magic { - public class SongOfParadiseDragon : ModProjectile, ILocalizedModType + public class SongOfParadiseDragon : ModProjectile, ILocalizedModType, IPixelatedPrimitiveRenderer { + public static SoundStyle CollideSound = new SoundStyle("CalamityMod/Sounds/Item/SongWyvernCollide"); public override string Texture => "CalamityMod/Projectiles/Magic/Jimmy"; Vector2 cen; NPC excen = null; public new string LocalizationCategory => "Projectiles.Magic"; public override void SetStaticDefaults() { - ProjectileID.Sets.TrailCacheLength[Projectile.type] = 25; + ProjectileID.Sets.TrailCacheLength[Projectile.type] = 50; ProjectileID.Sets.TrailingMode[Projectile.type] = 3; } public override void OnSpawn(IEntitySource source) @@ -96,10 +98,19 @@ namespace CalamityMod.Projectiles.Magic Projectile.ai[0] = MathHelper.Lerp(Projectile.ai[0], 120, -0.05f); Projectile.velocity = Vector2.Lerp(Projectile.Center, cen + new Vector2(Projectile.ai[0] * 2, 0).RotatedBy(MathHelper.ToRadians((-Projectile.ai[0] * 6) + (Projectile.ai[2] * 90) - 55f)), 0.3f) - Projectile.Center; } - else if (Projectile.timeLeft == 30) + else if (Projectile.timeLeft == 29) { Projectile.velocity = Vector2.Zero; - SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode, Projectile.Center); + SoundEngine.PlaySound(CollideSound, Projectile.Center); + SoundEngine.PlaySound(SoundID.NPCDeath14, Projectile.Center); + GeneralParticleHandler.SpawnParticle(new BloomParticle(cen, Vector2.Zero, Color.White, 3.5f, 0f, 30)); + for (int i = 0; i < 6; i++) + { + Vector2 vec2 = cen + new Vector2(Main.rand.Next(30, 100), 0).RotatedBy(Main.rand.NextFloat(MathHelper.TwoPi)); + Color col = Projectile.ai[2] >= 0 ? Color.SkyBlue : Color.Goldenrod; + GeneralParticleHandler.SpawnParticle(new GlowSparkParticle(Vector2.Lerp(vec2, cen, 0.5f), vec2.DirectionFrom(cen) * (vec2.Distance(cen) * 0.2f), false, 30, Main.rand.NextFloat(0.02f, 0.1f), col, Vector2.One)); + GeneralParticleHandler.SpawnParticle(new SparkParticle(vec2, vec2.DirectionFrom(cen) * 10f, false, Main.rand.Next(20, 50), Main.rand.NextFloat(1f, 2f), col)); + } } if (excen != null) @@ -111,28 +122,39 @@ namespace CalamityMod.Projectiles.Magic { } - public override bool PreDraw(ref Color lightColor) + void IPixelatedPrimitiveRenderer.RenderPixelatedPrimitives(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { Asset tex = ModContent.Request(Texture); + if (!Main.getGoodWorld) + { + tex = ModContent.Request("CalamityMod/Projectiles/Magic/" + (Projectile.ai[2] > 0 ? "MelodyOfParadiseDragon" : "MelodyOfParadiseDragon_Alt")); + } float Width = CalamityUtils.CircOutEasing(Projectile.ai[1] < 90 ? ((float)Projectile.timeLeft / 60) : 1f, 1) * tex.Height(); if (Projectile.ai[1] > 90 && Projectile.timeLeft < 30) { Width *= MathHelper.Lerp(0.01f, 1f, (float)Projectile.timeLeft / 30f); } + Width /= 2; List positions = new(); - for (int i = 0; i < 25; i++) + for (int i = 0; i < 50; i++) { positions.Add(Projectile.oldPos[i] + (Projectile.Size / 2)); } GameShaders.Misc["CalamityMod:PrimitiveTexture"].SetShaderTexture(ModContent.Request("CalamityMod/Projectiles/Magic/" + (Projectile.ai[2] > 0 ? "Jimmy" : "Timmy"))); + if (!Main.getGoodWorld) + { + GameShaders.Misc["CalamityMod:PrimitiveTexture"].SetShaderTexture(ModContent.Request("CalamityMod/Projectiles/Magic/" + (Projectile.ai[2] > 0 ? "MelodyOfParadiseDragon" : "MelodyOfParadiseDragon_Alt"))); + } GameShaders.Misc["CalamityMod:PrimitiveTexture"].Shader.Parameters["uPrimitiveSize"].SetValue(tex.Width()); GameShaders.Misc["CalamityMod:PrimitiveTexture"].Shader.Parameters["flipVertically"].SetValue(true); - PrimitiveRenderer.RenderTrail(positions, new PrimitiveSettings(W => { return Width; }, C => { return Color.White; }, O => { return Vector2.Zero; }, true, false, GameShaders.Misc["CalamityMod:PrimitiveTexture"]), 75); - + PrimitiveRenderer.RenderTrail(positions, new PrimitiveSettings(W => { return Width; }, C => { return Lighting.GetColor((positions[Math.Clamp((int)((float)C * (float)positions.Count), 0, positions.Count)] / 16).ToPoint()); }, O => { return Vector2.Zero; }, false, true, GameShaders.Misc["CalamityMod:PrimitiveTexture"]), 75); + } + public override bool PreDraw(ref Color lightColor) + { return false; } } diff --git a/Projectiles/Magic/SongOfParadiseHoldout.cs b/Projectiles/Magic/SongOfParadiseHoldout.cs index 08e4597a49..8420f0b1f1 100644 --- a/Projectiles/Magic/SongOfParadiseHoldout.cs +++ b/Projectiles/Magic/SongOfParadiseHoldout.cs @@ -108,7 +108,7 @@ namespace CalamityMod.Projectiles.Magic { if (Projectile.ai[1] > 1) { - VV.Volume = MathHelper.Lerp(VV.Volume, 0f, 0.1f); + VV.Pitch = MathHelper.Lerp(VV.Pitch, 0f, 0.1f); } return new ProjectileAudioTracker(Projectile).IsActiveAndInGame(); }); diff --git a/Projectiles/Ranged/GildedGathererHarpoon.cs b/Projectiles/Ranged/GildedGathererHarpoon.cs new file mode 100644 index 0000000000..325e7bd82a --- /dev/null +++ b/Projectiles/Ranged/GildedGathererHarpoon.cs @@ -0,0 +1,315 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using CalamityMod.Graphics.Primitives; +using CalamityMod.Items.Fishing.FishingRods; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; +using CalamityMod.Sounds; +using CalamityMod.World; +using FullSerializer.Internal; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; +using Terraria; +using Terraria.Audio; +using Terraria.DataStructures; +using Terraria.Graphics.Shaders; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Ranged +{ + public class GildedGathererHarpoon : BaseCustomUseStyleProjectile, ILocalizedModType, IPixelatedPrimitiveRenderer + { + List positions = new List(); + public override Vector2 HitboxSize => new Vector2(16, 16); + public NPC npcToTarget = null; + public Vector2 latchOffset; + public Vector2 mousePos; + public override Vector2 SpriteOrigin => new(4,4); + public override int AssignedItemID => ModContent.ItemType(); + public override void SetDefaults() + { + base.SetDefaults(); + Projectile.width = 16; + Projectile.height = 16; + Projectile.penetrate = -1; + Projectile.height = 6; + Projectile.DamageType = DamageClass.Ranged; + Projectile.aiStyle = -1; + Projectile.friendly = true; + } + public override void OnSpawn(IEntitySource source) + { + Player player = Main.player[Projectile.owner]; + + SoundEngine.PlaySound(SoundID.DD2_CrystalCartImpact, player.Center); + + latchOffset = Vector2.Zero; + + player.Calamity().mouseWorldListener = true; + Vector2 mW = player.Calamity().mouseWorld; + + Vector2 v2 = mousePos - player.Center; + + player.direction = Math.Sign(v2.X); + + mousePos = player.Center + v2.RotatedBy(MathHelper.ToRadians(-player.direction * 45)); + } + public override bool OnTileCollide(Vector2 oldVelocity) + { + if (Projectile.velocity != Vector2.Zero) + { + Player player = Main.player[Projectile.owner]; + SoundEngine.PlaySound(SoundID.DD2_CrystalCartImpact, player.Center); + } + Projectile.velocity = Vector2.Zero; + return false; + } + public override bool? CanHitNPC(NPC target) + { + return base.CanHitNPC(target).Equals(true) && (npcToTarget == null) && (Projectile.velocity != Vector2.Zero); + } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + if (npcToTarget == null && Projectile.ai[1] == 1) + { + npcToTarget = target; + latchOffset = (Projectile.DirectionFrom(npcToTarget.Center) * 14); + } + base.OnHitNPC(target, hit, damageDone); + } + public Vector2 ArmOffset() + { + return new Vector2(0, -6f * Main.player[Projectile.owner].direction).RotatedBy(Projectile.rotation); + } + public override void UseStyle() + { + DrawUnconditionally = true; + + Player player = Main.player[Projectile.owner]; + + player.Calamity().mouseWorldListener = true; + + player.direction = 1; + if (AbsolutePosition == Vector2.Zero) player.direction = (player.Calamity().mouseWorld.X > player.Center.X) ? 1 : -1; + else player.direction = (Projectile.Center.X > player.Center.X) ? 1 : -1; + + ArmRotationOffset = MathHelper.ToRadians(-90f); + + if (npcToTarget != null) + { + if (!npcToTarget.active) + { + Projectile.velocity = new Vector2(6,0).RotatedBy(Projectile.rotation); + npcToTarget = null; + } + } + + if (!player.controlUseItem && Projectile.ai[1] == 0) + { + Vector2 vel = player.velocity * 3; + if (!Collision.CanHitLine(player.Center, 1, 1, player.Center + vel + (player.DirectionTo(mousePos) * 52), 1, 1)) + { + player.velocity += (player.DirectionFrom(mousePos) * 10) * new Vector2(1f, 1.6f); + Projectile.ai[1] = 3; + Projectile.ai[2] = 35f; + player.itemAnimation = 30; + SoundEngine.PlaySound(SoundID.Item89.WithPitchOffset(0.7f)); + SoundEngine.PlaySound(SoundID.DD2_DrakinShot.WithPitchOffset(0.4f)); + + for (int i = 0; i < 6; i++) + { + GeneralParticleHandler.SpawnParticle( + new HeavySmokeParticle(player.Center, player.DirectionTo(mousePos).RotatedBy(Main.rand.NextFloat(-0.1f, 0.1f)) * Main.rand.NextFloat(7, 15), Color.LightSkyBlue, 50, Main.rand.NextFloat(0.4f, 1f), 1f, Main.rand.NextFloat(-0.01f, 0.01f)) + ); + } + for (int i = 0; i < 3; i++) + { + GeneralParticleHandler.SpawnParticle( + new SparkParticle(player.Center, player.DirectionTo(mousePos).RotatedBy(Main.rand.NextFloat(-0.1f, 0.1f) + MathHelper.ToRadians(90f)) * Main.rand.NextFloat(10, 20), false, 10, 1f, Color.LightSkyBlue) + ); + GeneralParticleHandler.SpawnParticle( + new SparkParticle(player.Center, player.DirectionTo(mousePos).RotatedBy(Main.rand.NextFloat(-0.1f, 0.1f) + MathHelper.ToRadians(-90f)) * Main.rand.NextFloat(10, 20), false, 10, 1f, Color.LightSkyBlue) + ); + } + } + else + { + SoundEngine.PlaySound(SoundID.Item99.WithPitchOffset(-0.5f)); + Projectile.ai[1] = 1; + Projectile.ai[2] = 0.45f; + player.itemAnimation = 3; + AbsolutePosition = player.Center; + Projectile.velocity = (player.DirectionTo(mousePos) * 135); + } + } + if (player.controlUseItem && Projectile.ai[1] == 1 && Projectile.velocity == Vector2.Zero) + { + Projectile.ai[1] = 2; + player.itemAnimation = 3; + Projectile.ai[2] = 50; + } + + switch (Projectile.ai[1]) + { + case 0: + { + mousePos = player.Calamity().mouseWorld; + Projectile.rotation = player.AngleTo(mousePos); + Projectile.direction = Math.Sign(mousePos.X - player.Center.X); + player.direction = Projectile.direction; + player.itemAnimation = 3; + Offset = ArmOffset(); + break; + } + case 1: + { + Projectile.velocity *= Projectile.ai[2]; + Projectile.ai[2] = MathHelper.Lerp(Projectile.ai[2], 1f, 0.35f); + Projectile.tileCollide = true; + Projectile.direction = Math.Sign(Projectile.Center.X - player.Center.X); + player.direction = Projectile.direction; + player.itemAnimation = 3; + Offset = Vector2.Zero; + + if (npcToTarget != null) + { + AbsolutePosition = npcToTarget.Center + latchOffset; + Projectile.velocity = Vector2.Zero; + spriteEffects = Projectile.Center.X > player.Center.X ? SpriteEffects.None : SpriteEffects.FlipVertically; + } + else if (Projectile.velocity != Vector2.Zero) + { + spriteEffects = Projectile.velocity.X > 0 ? SpriteEffects.None : SpriteEffects.FlipVertically; + + Projectile.velocity.Y += 0.2f; + Projectile.velocity.X *= 0.99f; + Projectile.rotation = Vector2.Zero.AngleTo(Projectile.velocity); + + positions.Add(AbsolutePosition + Offset); + } + else + { + Projectile.rotation = Projectile.AngleFrom(player.Center); + } + + break; + } + case 2: + { + spriteEffects = Projectile.velocity.X < 0 ? SpriteEffects.None : SpriteEffects.FlipVertically; + + if (Projectile.ai[2] > 30) + { + Projectile.ai[2] -= 2; + if (Projectile.ai[2] % 4 == 0) + { + SoundEngine.PlaySound(SoundID.Item73.WithPitchOffset(Projectile.ai[2] / 50)); + } + } + + Projectile.tileCollide = false; + Projectile.direction = Math.Sign(Projectile.Center.X - player.Center.X); + player.direction = Projectile.direction; + Projectile.velocity = Projectile.DirectionTo(player.Center) * Projectile.ai[2]; + Projectile.rotation = Vector2.Zero.AngleTo(Projectile.velocity) + MathHelper.ToRadians(180f); + if (Projectile.Distance(player.Center) > Projectile.ai[2] + 5) + { + player.itemAnimation = 3; + } + else + { + player.itemAnimation = 0; + Projectile.Kill(); + Projectile.ai[1] = 4; + } + break; + } + case 3: + { + Vector2 v2 = mousePos - player.Center; + + mousePos = player.Center + v2.RotatedBy(MathHelper.ToRadians(-player.direction * Projectile.ai[2])); + Projectile.rotation = player.AngleTo(mousePos); + Projectile.ai[2] *= 0.85f; + if (Projectile.ai[2] < 2) + { + player.itemAnimation = 0; + Projectile.Kill(); + Projectile.ai[1] = 4; + } + break; + } + } + + for (float i = 0; i < positions.Count; i++) + { + positions[(int)i] = Vector2.Lerp(positions[(int)i], Vector2.Lerp(AbsolutePosition + new Vector2(0, 6), player.Center + ArmOffset(), (i / (float)positions.Count)), + MathHelper.Clamp(CalamityUtils.CircInEasing(i / (float)positions.Count, 1), 0f, 1f) + ); + positions[(int)i] = Vector2.Lerp(positions[(int)i], Vector2.Lerp(AbsolutePosition + new Vector2(0, 6), player.Center + ArmOffset(), (i / (float)positions.Count)), + MathHelper.Lerp(1f,0f,CalamityUtils.CircOutEasing(i / (float)positions.Count, 1)) + ); + } + + if (player.itemAnimation <= 0) Projectile.Kill(); + } + public override bool PreDraw(ref Color lightColor) + { + Asset tex = ModContent.Request(Texture); + if (AbsolutePosition == Vector2.Zero) + { + Main.EntitySpriteDraw(tex.Value, Main.player[Projectile.owner].Center + new Vector2(0,Main.player[Projectile.owner].gfxOffY) + new Vector2(0, 10) + new Vector2(0, -16).RotatedBy(Projectile.rotation) - Main.screenPosition, tex.Frame(), lightColor, Projectile.rotation, new Vector2(12, 6), 1f, spriteEffects); + } + else + { + Main.EntitySpriteDraw(tex.Value, Projectile.Center - Main.screenPosition, tex.Frame(), lightColor, Projectile.rotation, new Vector2(12, 6), 1f, spriteEffects); + } + return false; + } + public override void ResetStyle() + { + + } + + void IPixelatedPrimitiveRenderer.RenderPixelatedPrimitives(SpriteBatch spriteBatch) + { + List poss = positions; + + if (poss.Count > 0) + { + poss[0] = AbsolutePosition + new Vector2(0, 6); + + if (poss.Count > 1) + { + poss[poss.Count - 1] = Main.player[Projectile.owner].Center + ArmOffset(); + } + if (poss.Count > 2) + { + poss[poss.Count - 2] = Main.player[Projectile.owner].Center + ArmOffset(); + } + } + + for (int i = 0; i < poss.Count; i++) + { + Vector2 vec2 = poss[i]; + + vec2.Y += Main.player[Projectile.owner].gfxOffY; + + poss[i] = vec2; + } + + PrimitiveRenderer.RenderTrail(poss, new PrimitiveSettings(W => { return 3f; }, + C => { return Lighting.GetColor((poss[Math.Clamp((int)((float)C * (float)poss.Count), 0, poss.Count)] / 16).ToPoint()).MultiplyRGB(new Color(50, 55, 85)); }, + null, false, true)); + PrimitiveRenderer.RenderTrail(poss, new PrimitiveSettings(W => { return 1f; }, + C => { return Lighting.GetColor((poss[Math.Clamp((int)((float)C * (float)poss.Count), 0, poss.Count)] / 16).ToPoint()).MultiplyRGB(new Color(155, 200, 255)); }, + null, false, true)); + } + } +} diff --git a/Projectiles/Ranged/GildedGathererHarpoon.png b/Projectiles/Ranged/GildedGathererHarpoon.png new file mode 100644 index 0000000000..0c0b0cb8d4 Binary files /dev/null and b/Projectiles/Ranged/GildedGathererHarpoon.png differ diff --git a/Sounds/Item/SongOfSpirit.mp3 b/Sounds/Item/SongOfSpirit.mp3 index f5f2a54081..2894580d90 100644 Binary files a/Sounds/Item/SongOfSpirit.mp3 and b/Sounds/Item/SongOfSpirit.mp3 differ diff --git a/Sounds/Item/SongWyvernCollide.mp3 b/Sounds/Item/SongWyvernCollide.mp3 new file mode 100644 index 0000000000..b19940f8fb Binary files /dev/null and b/Sounds/Item/SongWyvernCollide.mp3 differ diff --git a/en-US.hjson b/en-US.hjson index 987dbea8e4..0011e71482 100644 --- a/en-US.hjson +++ b/en-US.hjson @@ -6,5 +6,7 @@ Mods: { Tooltip: "" } } + + Projectiles.GildedGathererHarpoon.DisplayName: Gilded Gatherer Harpoon } }