Files
CalamityModPublic/Projectiles/Rogue/SeashellBoomerangProjectile.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

35 lines
1.0 KiB
C#

using CalamityMod.Projectiles.Typeless;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class SeashellBoomerangProjectile : ModProjectile
{
public override string Texture => "CalamityMod/Items/Weapons/Rogue/SeashellBoomerang";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Seashell Boomerang");
}
public override void SetDefaults()
{
Projectile.width = 14;
Projectile.height = 14;
Projectile.friendly = true;
Projectile.penetrate = -1;
Projectile.aiStyle = 3;
Projectile.timeLeft = 240;
AIType = ProjectileID.WoodenBoomerang;
Projectile.DamageType = RogueDamageClass.Instance;
}
public override void AI()
{
if (Projectile.Calamity().stealthStrike)
CalamityGlobalProjectile.MagnetSphereHitscan(Projectile, 300f, 10f, 20f, 5, ModContent.ProjectileType<Seashell>());
}
}
}