diff --git a/Items/Weapons/Rogue/ShardofAntumbra.cs b/Items/Weapons/Rogue/ShardofAntumbra.cs index 41e5a94627..ffc7347d05 100644 --- a/Items/Weapons/Rogue/ShardofAntumbra.cs +++ b/Items/Weapons/Rogue/ShardofAntumbra.cs @@ -11,11 +11,6 @@ namespace CalamityMod.Items.Weapons.Rogue [LegacyName("XerocPitchfork")] public class ShardofAntumbra : RogueWeapon { - public override void SetStaticDefaults() - { - Item.ResearchUnlockCount = 99; - } - public override void SetDefaults() { Item.width = 48; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index c27887db7a..06dc107259 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1427,7 +1427,6 @@ RoverDrive: { If depleted, the barrier's health regenerates after not receiving damage for 10 seconds Getting hit resets the timer Can also be scrapped at an extractinator - ''' ShieldAdren: Halved Adrenaline loss if all damage is absorbed } diff --git a/NPCs/SunkenSea/AlphaSeaMinnow.cs b/NPCs/SunkenSea/AlphaSeaMinnow.cs index aa9282c224..dd4fca62ae 100644 --- a/NPCs/SunkenSea/AlphaSeaMinnow.cs +++ b/NPCs/SunkenSea/AlphaSeaMinnow.cs @@ -167,7 +167,7 @@ namespace CalamityMod.NPCs.SunkenSea NPC.frameCounter = 0.0; return; } - NPC.frameCounter += 0.075f; + NPC.frameCounter += 0.1f; NPC.frameCounter %= Main.npcFrameCount[NPC.type]; int frame = (int)NPC.frameCounter; NPC.frame.Y = frame * frameHeight; diff --git a/NPCs/SunkenSea/HauntedChum.cs b/NPCs/SunkenSea/HauntedChum.cs index c10f666750..68ee6f28cc 100644 --- a/NPCs/SunkenSea/HauntedChum.cs +++ b/NPCs/SunkenSea/HauntedChum.cs @@ -172,7 +172,10 @@ namespace CalamityMod.NPCs.SunkenSea for (int i = 0; i < 2; i++) { int dustPos = NPC.spriteDirection == 1 ? -10 : 0; + if (ChildSafety.Disabled) + { Dust.NewDust(new Vector2(NPC.Center.X + dustPos, NPC.position.Y + NPC.height / 4), 0, NPC.height / 2, DustID.Blood, -NPC.spriteDirection * Main.rand.NextFloat(4f, 5f), Main.rand.NextFloat(-3, 3), Scale: Main.rand.NextFloat(0.6f, 1f)); + } } // Update the chain diff --git a/NPCs/SunkenSea/LostShoal.cs b/NPCs/SunkenSea/LostShoal.cs index aa9b59854e..b28c7f8f58 100644 --- a/NPCs/SunkenSea/LostShoal.cs +++ b/NPCs/SunkenSea/LostShoal.cs @@ -22,6 +22,7 @@ namespace CalamityMod.NPCs.SunkenSea public static Texture2D BlueTexture; public static Texture2D GoldTexture; + public float RandomOpacityOffset; public ref float Variant => ref NPC.ai[1]; public ref float Leader => ref NPC.ai[2]; public ref float Role => ref NPC.ai[3]; @@ -87,6 +88,9 @@ namespace CalamityMod.NPCs.SunkenSea { Variant = (int)ShoalColor.Gold; } + + RandomOpacityOffset = Main.rand.NextFloat(MathHelper.TwoPi); + NPC.frameCounter = Main.rand.NextFloat(Main.npcFrameCount[Type]); } public override void AI() @@ -209,23 +213,32 @@ namespace CalamityMod.NPCs.SunkenSea } Lighting.AddLight(NPC.Center, glowColor.R * intensity, glowColor.G * intensity, glowColor.B * intensity); // Sprinkle down ash particles + // Trail glowing dust as they move if (Main.rand.NextBool(120)) { - Color ashColor = new(40, 48, 41); + //Color ashColor = new(40, 48, 41); + int dustid = DustID.CoralTorch; switch (Variant) { case (int)ShoalColor.Blue: - ashColor = new(44, 63, 66); + //ashColor = new(44, 63, 66); + dustid = DustID.BoneTorch; break; case (int)ShoalColor.Red: - ashColor = new(79, 41, 42); + //ashColor = new(79, 41, 42); + dustid = DustID.CrimsonTorch; break; case (int)ShoalColor.Gold: - ashColor = Color.Yellow; + //ashColor = Color.Yellow; + dustid = DustID.IchorTorch; break; } - Particle ash = new SquareAshParticle(NPC.Center, new Vector2(0, 4), 150, Main.rand.NextFloat(0.85f, 1f), ashColor); - GeneralParticleHandler.SpawnParticle(ash); + //Particle ash = new SquareAshParticle(NPC.Center, new Vector2(0, 4), 150, Main.rand.NextFloat(0.85f, 1f), ashColor); + //GeneralParticleHandler.SpawnParticle(ash); + + Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, dustid, Scale: 1.5f); + dust.noGravity = true; + dust.velocity = Vector2.Zero; } if (Variant == (int)ShoalColor.Gold) { @@ -305,7 +318,7 @@ namespace CalamityMod.NPCs.SunkenSea public override void FindFrame(int frameHeight) { - NPC.frameCounter += 0.075f; + NPC.frameCounter += 0.2f; NPC.frameCounter %= Main.npcFrameCount[NPC.type]; int frame = (int)NPC.frameCounter; NPC.frame.Y = frame * frameHeight; @@ -338,7 +351,7 @@ namespace CalamityMod.NPCs.SunkenSea // Spooky glowey aura effect spriteBatch.End(); spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); - Texture2D bloom = ModContent.Request("CalamityMod/Particles/BloomCircle").Value; + Texture2D bloom = ModContent.Request("CalamityMod/Particles/SmallBloom").Value; Color glowColor = Color.SeaGreen; switch (Variant) { @@ -352,7 +365,8 @@ namespace CalamityMod.NPCs.SunkenSea glowColor = Color.Yellow; break; } - spriteBatch.Draw(bloom, NPC.position - Main.screenPosition + new Vector2(20, 5), null, glowColor * 0.4f, 0f, bloom.Size() / 2f, 0.5f, SpriteEffects.None, 0); + + spriteBatch.Draw(bloom, NPC.Center - Main.screenPosition, null, glowColor * 0.45f, 0f, bloom.Size() / 2f, 0.3f, SpriteEffects.None, 0); spriteBatch.End(); spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); @@ -390,10 +404,12 @@ namespace CalamityMod.NPCs.SunkenSea } } + float sine = MathF.Sin(Main.GlobalTimeWrappedHourly * 3f + RandomOpacityOffset) / 2f + 0.5f; + Vector2 npcOffset = NPC.Center - screenPos; npcOffset -= new Vector2((float)texture.Width, (float)(texture.Height / Main.npcFrameCount[NPC.type])) * NPC.scale / 2f; npcOffset += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture, npcOffset, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, origin, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture, npcOffset, NPC.frame, drawColor * MathHelper.Lerp(0.4f, 0.8f, sine), NPC.rotation, origin, NPC.scale, spriteEffects, 0f); return false; } diff --git a/NPCs/SunkenSea/PolypPanasea.cs b/NPCs/SunkenSea/PolypPanasea.cs index 668941e501..d1c14b8688 100644 --- a/NPCs/SunkenSea/PolypPanasea.cs +++ b/NPCs/SunkenSea/PolypPanasea.cs @@ -161,7 +161,7 @@ namespace CalamityMod.NPCs.SunkenSea NPC.frameCounter = 0.0; return; } - NPC.frameCounter += 0.075f; + NPC.frameCounter += 0.1f; NPC.frameCounter %= Main.npcFrameCount[NPC.type]; int frame = (int)NPC.frameCounter; NPC.frame.Y = frame * frameHeight; diff --git a/NPCs/SunkenSea/SeaMinnow.cs b/NPCs/SunkenSea/SeaMinnow.cs index 790cac6f7c..e18cf5ffc4 100644 --- a/NPCs/SunkenSea/SeaMinnow.cs +++ b/NPCs/SunkenSea/SeaMinnow.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Placeables.Banners; using CalamityMod.NPCs.CalamityAIs.CalamityRegularEnemyAIs; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -26,8 +27,8 @@ namespace CalamityMod.NPCs.SunkenSea NPC.npcSlots = 0.1f; NPC.noGravity = true; NPC.damage = 0; - NPC.width = 36; - NPC.height = 22; + NPC.width = 32; + NPC.height = 26; NPC.defense = 0; NPC.lifeMax = 5; NPC.aiStyle = -1; @@ -49,6 +50,10 @@ namespace CalamityMod.NPCs.SunkenSea }); } + public override void OnSpawn(IEntitySource source) + { + NPC.frameCounter = Main.rand.NextFloat(Main.npcFrameCount[Type]); + } public override void AI() { NPC owner = Main.npc[(int)NPC.ai[2]]; @@ -321,7 +326,7 @@ namespace CalamityMod.NPCs.SunkenSea NPC.frameCounter = 0.0; return; } - NPC.frameCounter += 0.075f; + NPC.frameCounter += 0.15f; NPC.frameCounter %= Main.npcFrameCount[NPC.type]; int frame = (int)NPC.frameCounter; NPC.frame.Y = frame * frameHeight; diff --git a/NPCs/SunkenSea/SeaMinnow.png b/NPCs/SunkenSea/SeaMinnow.png index a9d0582896..4baf632a28 100644 Binary files a/NPCs/SunkenSea/SeaMinnow.png and b/NPCs/SunkenSea/SeaMinnow.png differ diff --git a/NPCs/SunkenSea/SeaMinnowGold.png b/NPCs/SunkenSea/SeaMinnowGold.png index 71b227145a..f070775305 100644 Binary files a/NPCs/SunkenSea/SeaMinnowGold.png and b/NPCs/SunkenSea/SeaMinnowGold.png differ diff --git a/NPCs/SunkenSea/Sharkoon.png b/NPCs/SunkenSea/Sharkoon.png index 5306c2b6ec..c49606738c 100644 Binary files a/NPCs/SunkenSea/Sharkoon.png and b/NPCs/SunkenSea/Sharkoon.png differ