From 42a3f91b84ac72b2d70efbd6dbd52015dedd2916 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Fri, 26 Jun 2026 13:16:13 -0700 Subject: [PATCH] Entropy's Vigil --- .../Mods.CalamityMod.Projectiles.Summon.hjson | 2 +- Projectiles/Summon/BrimstoneLaserSummon.cs | 25 ++++++++++++------ Projectiles/Summon/BrimstoneLaserSummon.png | Bin 180 -> 0 bytes 3 files changed, 18 insertions(+), 9 deletions(-) delete mode 100644 Projectiles/Summon/BrimstoneLaserSummon.png diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson index 121827ff82..f4b7fda204 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson @@ -47,7 +47,7 @@ BrimstoneElementalMinion.DisplayName: Brimstone Elemental BrimstoneExplosionMinion.DisplayName: Explosion BrimstoneFireballMinion.DisplayName: Brimstone Fireball BrimstoneFireSummon.DisplayName: Brimstone Fire -BrimstoneLaserSummon.DisplayName: Brimstone Laser +BrimstoneLaserSummon.DisplayName: Vigil Mini Fireball BrittleStarMinion.DisplayName: Brittle Star CalamarisLamentMinion.DisplayName: Calamari CalamarisLamentProjectile.DisplayName: Calamari Ink diff --git a/Projectiles/Summon/BrimstoneLaserSummon.cs b/Projectiles/Summon/BrimstoneLaserSummon.cs index 69c063bd29..151eafd682 100644 --- a/Projectiles/Summon/BrimstoneLaserSummon.cs +++ b/Projectiles/Summon/BrimstoneLaserSummon.cs @@ -1,5 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; -using Microsoft.Xna.Framework; +using CalamityMod.Graphics.Metaballs; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +8,7 @@ namespace CalamityMod.Projectiles.Summon public class BrimstoneLaserSummon : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; public override void SetStaticDefaults() { @@ -17,8 +18,6 @@ namespace CalamityMod.Projectiles.Summon public override void SetDefaults() { Projectile.width = Projectile.height = 10; - Projectile.aiStyle = ProjAIStyleID.Arrow; - AIType = ProjectileID.CursedBullet; Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.alpha = 120; @@ -29,13 +28,23 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - Lighting.AddLight(Projectile.Center, Projectile.Opacity * 0.5f, Projectile.Opacity * 0.05f, Projectile.Opacity * 0.05f); - Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; + CalamityUtils.HomeInOnNPC(Projectile, false, 300, 5.5f, 10f, true); + + if (Projectile.Calamity().HomingTarget < 0) + { + Projectile.velocity.Y += 0.025f; + } + + CalamitasMetaball.SpawnParticle(Projectile.Center + Projectile.velocity, Main.rand.NextVector2Circular(2, 2), 16f); + + if (Projectile.velocity.Y > 16f) + { + Projectile.velocity.Y = 16f; + } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 300); - public override Color? GetAlpha(Color lightColor) => new Color(250, 50, 50, Projectile.alpha); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 300); } } diff --git a/Projectiles/Summon/BrimstoneLaserSummon.png b/Projectiles/Summon/BrimstoneLaserSummon.png deleted file mode 100644 index 9b0d2a4f50ed6094d184a05aab71934a6add2435..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 180 zcmeAS@N?(olHy`uVBq!ia0vp^OhBx_!3HEPF0GUVQjEnx?oJHr&dIz4a#+$GeH|GX zHuiJ>Nn{1`ISV`@iy0XBj({-ZRBb+KprEIxi(`mJaPpsgxnJ`cIc7Mpa0GN8{4w9L zw`8*9dn1iW59g`#)Jr%>D1Msq(43h=*(J{SPbx!V%L!uz{uV){^Nnc@1|cntj6fmD VqunlUwm?G}JYD@<);T3K0RUYoGEo2k