38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Projectiles.Summon
|
|
{
|
|
public class BoneMatter2 : ModProjectile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Bone Matter");
|
|
Main.projFrames[Projectile.type] = 6;
|
|
ProjectileID.Sets.MinionShot[Projectile.type] = true;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Projectile.width = 26;
|
|
Projectile.height = 28;
|
|
Projectile.friendly = true;
|
|
Projectile.minion = true;
|
|
Projectile.tileCollide = true;
|
|
Projectile.penetrate = 1;
|
|
Projectile.DamageType = DamageClass.Summon;
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
Projectile.frameCounter++;
|
|
if (Projectile.frameCounter % 9 == 8)
|
|
{
|
|
Projectile.frame++;
|
|
if (Projectile.frame >= Main.projFrames[Projectile.type])
|
|
Projectile.Kill();
|
|
}
|
|
}
|
|
}
|
|
}
|