using CalamityMod.Items.Weapons.Magic; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { public class PaleoShatterExplosion : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Rogue"; public override void SetStaticDefaults() { Main.projFrames[Type] = 7; } public override void SetDefaults() { Projectile.width = 84; Projectile.height = 152; Projectile.friendly = true; Projectile.DamageType = RogueDamageClass.Instance; Projectile.penetrate = -1; Projectile.timeLeft = 60; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = -1; Projectile.tileCollide = false; } public override void AI() { if (Projectile.timeLeft == 60) Projectile.Bottom = Projectile.Center + new Vector2(0,16); if (Projectile.timeLeft % 3f == 2f) Projectile.frame++; if (Projectile.frame >= Main.projFrames[Type]) Projectile.Kill(); } } }