Files
CalamityModPublic/Projectiles/Magic/FabOrb.cs
T
Andrew Marheine 3bb9829a3b 1 - Renamed Pulse Rifle to Pulse Rifle.
2 - Eradicator and a few other weapons can now fire beams at multiple enemies at once.
2020-07-24 00:58:29 -05:00

30 lines
838 B
C#

using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Magic
{
public class FabOrb : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Orb");
}
public override void SetDefaults()
{
projectile.width = 14;
projectile.height = 14;
projectile.friendly = true;
projectile.alpha = 255;
projectile.penetrate = -1;
projectile.timeLeft = 30;
projectile.magic = true;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 10;
}
public override void AI()
{
CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 150f, 6f, 6f, 2, ModContent.ProjectileType<FabBolt>(), 1D, true);
}
}
}