Files
CalamityModPublic/Projectiles/Typeless/EmpyreanMarble.cs
T
Ozzatron d4b5160f98 1 - Fully replaced Momentum Capacitor. It is now a channeled Burden Breaker.
2 - Stealth no longer gives movement speed.
3 - Moved a bunch of CalamityGlobalProjectile utilities to CalamityUtils where they belong.
4 - Renamed several things in CalamityGlobalProjectile
2022-07-02 19:42:56 -04:00

35 lines
1.1 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Typeless
{
public class EmpyreanMarble : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/Healing/EmpyreanHealOrb";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Empyrean Marble");
}
public override void SetDefaults()
{
Projectile.width = 4;
Projectile.height = 4;
Projectile.friendly = true;
Projectile.penetrate = 1;
Projectile.tileCollide = false;
Projectile.timeLeft = 200;
}
public override void AI()
{
int num469 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 62, 0f, 0f, 100, default, 2f);
Main.dust[num469].noGravity = true;
Main.dust[num469].velocity *= 0f;
CalamityUtils.HomeInOnNPC(Projectile, true, 200f, 7f, 20f);
}
}
}