Files
CalamityModPublic/Projectiles/Summon/SpikecragSpike.cs
T
Altixal 3a79bf6048 removed various dynamic/double minion scaling
actually both angelic alliance and atlas munitions triple scale
buffed munitions beacon because of the triple scale
also sirius use fix
2023-09-22 12:55:11 +07:00

41 lines
1.2 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Buffs.DamageOverTime;
namespace CalamityMod.Projectiles.Summon
{
public class SpikecragSpike : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Summon";
public override void SetStaticDefaults()
{
ProjectileID.Sets.SentryShot[Projectile.type] = true;
}
public override void SetDefaults()
{
Projectile.width = Projectile.height = 6;
Projectile.friendly = true;
Projectile.timeLeft = 600;
Projectile.aiStyle = ProjAIStyleID.Arrow;
Projectile.DamageType = DamageClass.Summon;
}
public override void AI()
{
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2;
Projectile.velocity.Y += 0.1f;
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
if (Main.zenithWorld)
{
target.AddBuff(ModContent.BuffType<HolyFlames>(), 180);
}
}
}
}