34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using CalamityMod.Items.Weapons.Summon;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Projectiles.Summon.MirrorofKalandraMinions
|
|
{
|
|
public class HopeShredderArrowSplit : ModProjectile, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Projectiles.Summon";
|
|
|
|
public override void SetStaticDefaults() => ProjectileID.Sets.MinionShot[Type] = true;
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Projectile.usesLocalNPCImmunity = true;
|
|
Projectile.localNPCHitCooldown = MirrorofKalandra.Vile_SplitIFrames;
|
|
Projectile.penetrate = 3;
|
|
|
|
Projectile.DamageType = DamageClass.Summon;
|
|
Projectile.width = Projectile.height = 18;
|
|
Projectile.usesLocalNPCImmunity = true;
|
|
Projectile.friendly = true;
|
|
Projectile.ignoreWater = true;
|
|
Projectile.tileCollide = false;
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
Projectile.rotation = Projectile.velocity.ToRotation();
|
|
}
|
|
}
|
|
}
|