Files
CalamityModPublic/Projectiles/Rogue/CrystalPiercerShard.cs
T
Ozzatron 31f396d29b 1 - Replaced AverageDamage with "best class damage"
2 - Shield slams scale with melee instead of anything
3 - A few things scale with summon instead of anything, like Demonshade Red Devil
4 - Hide of Astrum Deus scales with melee instead of anything
5 - Other minor pedantic scaling changes
6 - Hundreds of compile errors
2022-05-22 19:13:21 -04:00

41 lines
1.0 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class CrystalPiercerShard : ModProjectile
{
private bool initialized = false;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Crystal Shard");
}
public override void SetDefaults()
{
Projectile.width = 6;
Projectile.height = 6;
Projectile.friendly = true;
Projectile.penetrate = 1;
Projectile.timeLeft = 120;
Projectile.DamageType = RogueDamageClass.Instance;
}
public override void AI()
{
Projectile.rotation += Projectile.direction * 0.05f;
if (!initialized)
{
Projectile.scale = Main.rand.NextFloat(0.85f, 1.15f);
initialized = true;
}
}
//glowmask effect
public override Color? GetAlpha(Color lightColor) => new Color(200, 200, 200, 200);
}
}