Files
CalamityModPublic/Projectiles/Summon/BoneMatter2.cs
T
Altixal 2f95d68ddd more of these
fixed hellbound ench + pb pistons plague bee double scaling
fixed metastasis darts doing 2x intended damage
2023-09-22 13:45:33 +07:00

36 lines
1.0 KiB
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Summon
{
public class BoneMatter2 : 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 = 28;
Projectile.friendly = true;
Projectile.tileCollide = true;
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();
}
}
}
}