1. Reverted Sand Cloak cooldown to 30 seconds 2. Changed Ink Bomb cooldown to 20 seconds 3. Nerfed Dark God's Sheath and Eclipse Mirror stealth acceleration bonuses 4. Nerfed Dragon Scales tornado damage 5. Nerfed Abyssal Mirror stealth regen 6. Buffed Eclipse mirror standing still regen 7. Nerfed Mirage Mirror stealth regen 8. Nerfed Spectral veil stealth regen while moving, now increases stealth regen while standing still 9. Nerfed max stealth of aerospec, statigel, sulphurous, victide, and gladiator armors 10. Buffed Magic Missile damage 11. Nerfed Scuttler's Jewel 12. Made Vigilance projectiles less opaque 13. Reduced the amount of laughs from Vigilance seekers 14. Increased the speed of Perdition's projectiles
79 lines
2.7 KiB
C#
79 lines
2.7 KiB
C#
using CalamityMod.Buffs.DamageOverTime;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Projectiles.Summon
|
|
{
|
|
public class BrimstoneDartSummon : ModProjectile
|
|
{
|
|
public override string Texture => "CalamityMod/Projectiles/Boss/BrimstoneBarrage";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Brimstone Dart");
|
|
Main.projFrames[Projectile.type] = 4;
|
|
ProjectileID.Sets.MinionShot[Projectile.type] = true;
|
|
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 2;
|
|
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Projectile.width = Projectile.height = 24;
|
|
Projectile.friendly = true;
|
|
Projectile.ignoreWater = true;
|
|
Projectile.tileCollide = false;
|
|
Projectile.minion = true;
|
|
Projectile.minionSlots = 0f;
|
|
Projectile.penetrate = 1;
|
|
Projectile.timeLeft = 120;
|
|
Projectile.Opacity = 0.5f;
|
|
Projectile.DamageType = DamageClass.Summon;
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
if (Projectile.velocity.Length() < 21f)
|
|
Projectile.velocity *= 1.02f;
|
|
|
|
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
|
|
|
Projectile.frameCounter++;
|
|
if (Projectile.frameCounter % 5 == 4)
|
|
Projectile.frame = (Projectile.frame + 1) % Main.projFrames[Projectile.type];
|
|
|
|
Projectile.Opacity = Utils.GetLerpValue(0f, 40f, Projectile.timeLeft, true);
|
|
|
|
Lighting.AddLight(Projectile.Center, 0.75f, 0f, 0f);
|
|
}
|
|
|
|
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
|
{
|
|
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
|
|
}
|
|
|
|
public override void Kill(int timeLeft)
|
|
{
|
|
if (Main.dedServ)
|
|
return;
|
|
|
|
for (int i = 0; i < 15; i++)
|
|
{
|
|
Dust brimstone = Dust.NewDustPerfect(Projectile.Center, 267);
|
|
brimstone.velocity = Projectile.velocity.RotatedByRandom(0.26f) * Main.rand.NextFloat(0.3f, 0.8f);
|
|
brimstone.scale = Main.rand.NextFloat(1.5f, 1.85f);
|
|
brimstone.color = Color.DarkRed;
|
|
brimstone.noGravity = true;
|
|
}
|
|
}
|
|
|
|
public override bool PreDraw(ref Color lightColor)
|
|
{
|
|
lightColor.R = (byte)(255 * Projectile.Opacity);
|
|
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1);
|
|
return false;
|
|
}
|
|
}
|
|
}
|