Files
CalamityModPublic/Projectiles/Summon/BoneMatter.cs
T
2024-10-15 23:48:00 +07:00

35 lines
966 B
C#

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[Type] = 6;
ProjectileID.Sets.MinionShot[Type] = true;
}
public override void SetDefaults()
{
Projectile.width = 26;
Projectile.height = 32;
Projectile.friendly = true;
Projectile.tileCollide = true;
Projectile.DamageType = DamageClass.Summon;
}
public override void AI()
{
if (Projectile.frameCounter++ % 9 == 8)
{
Projectile.frame++;
if (Projectile.frame >= Main.projFrames[Type])
Projectile.Kill();
}
}
}
}