Files
CalamityModPublic/Projectiles/Rogue/AbyssalMirrorProjectile.cs
T
Ozzatron 31f396d29b 1 - Replaced AverageDamage with "best class damage"
2 - Shield slams scale with melee instead of anything
3 - A few things scale with summon instead of anything, like Demonshade Red Devil
4 - Hide of Astrum Deus scales with melee instead of anything
5 - Other minor pedantic scaling changes
6 - Hundreds of compile errors
2022-05-22 19:13:21 -04:00

44 lines
1.3 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.DamageType = RogueDamageClass.Instance;
}
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);
}
}
}
}