Entropy's Vigil

This commit is contained in:
sunny-raindrops committed 2026-06-26 13:16:13 -07:00
1 parent 65a2e20503
commit 42a3f91b84
3 files changed
+18 -9

No files matched your search

@@ -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
+17 -8
View File
@@ -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<BrimstoneFlames>(), 120);
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 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<BrimstoneFlames>(), 300);
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B