Files
CalamityModPublic/Projectiles/Rogue/AbyssalMirrorProjectile.cs
T
Andrew Marheine 925f6f0247 1 - Bosses are now affected by slowing debuffs but gain a 20 second immunity to them after they wear off.
2 - Reduced the duration of most slowing debuffs.
3 - Cal Clone Soul Seekers cannot fire while she's doing a bullet hell.
4 - Reworked enemy and boss debuff immunities to make more sense.
5 - Increased Aquatic Scourge and Desert Scourge HP because they're now vulnerable to debuffs.
6 - Reduced the damage of Bloodflare ranged set bonus phantoms.
7 - Adjusted DoG's fireball explosion spread.
8 - Leviathan hitboxes should work properly now.
9 - Sun Bats no longer derp out.
2021-05-18 00:57:06 -05:00

44 lines
1.2 KiB
C#

using CalamityMod.Buffs.StatDebuffs;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class AbyssalMirrorProjectile : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Lumenyl Fluid");
Main.projFrames[projectile.type] = 3;
}
public override void SetDefaults()
{
projectile.width = 12;
projectile.height = 14;
projectile.friendly = true;
projectile.alpha = 0;
projectile.penetrate = -1;
projectile.tileCollide = true;
projectile.ignoreWater = true;
projectile.timeLeft = 50;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = -1;
projectile.Calamity().rogue = true;
}
public override void AI()
{
if (projectile.timeLeft < 25)
{ projectile.alpha += 10; }
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
if (!target.friendly)
{
target.AddBuff(ModContent.BuffType<Eutrophication>(), 120);
}
}
}
}