using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { public class BoneMatter : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; public override void SetStaticDefaults() { Main.projFrames[Projectile.type] = 6; ProjectileID.Sets.MinionShot[Projectile.type] = true; } public override void SetDefaults() { Projectile.width = 26; Projectile.height = 32; Projectile.friendly = true; Projectile.minion = true; Projectile.tileCollide = true; Projectile.penetrate = 1; Projectile.DamageType = DamageClass.Summon; } public override void AI() { if (Projectile.frameCounter++ % 9 == 8) { Projectile.frame++; if (Projectile.frame >= Main.projFrames[Projectile.type]) Projectile.Kill(); } } } }