Files
CalamityModPublic/Projectiles/Typeless/CirrusOrb.cs
T
termigator1359 1b22071cf4 squash merge: Removed all unused textures
Removed nearly all unused textures in the entire mod, especially focusing on projectiles.
Apotheosis & the Death Valley Duster weapon line were ignored to prevent merge conflicts.
2020-11-15 14:25:46 -05:00

33 lines
945 B
C#

using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Typeless
{
public class CirrusOrb : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
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;
projectile.npcProj = true;
}
public override void AI()
{
CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 150f, 6f, 6f, 2, ModContent.ProjectileType<CirrusBolt>());
}
}
}