Files
CalamityModPublic/Projectiles/Rogue/DynamicPursuerLaser.cs
T
Storm2103 deee6e5b0a More Rogue balacing:
Venerated Locket: Saw it perform and it still was pretty bad so these buffs should make it more powerful overall and be able to compete for a slot. Buffing its damage gain to 12% is tempting.

Dragon Scales:
Finally butchered it properly, 30k dps on an accessory is fucked up.

Dynamic Pursuer (NOT FINAL): Buffed base damage a little, doubled stealth multiplier, made projectile sizes bigger (matches sprite better and easier to hit), explosion iframes doubled, electricity draws better (it was trying too hard and lagged the game as a result (200 turn tries bruh), also replaced the scale formula with the better Gale lighting formula as it had some wacky results). Should be a better weapon now. NEEDS TO BE TESTED ON EXOS MORE (Thanathos moment).
2023-02-08 00:27:09 -06:00

56 lines
1.7 KiB
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class DynamicPursuerLaser : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public float Time
{
get => Projectile.localAI[0];
set => Projectile.localAI[0] = value;
}
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Laser");
}
public override void SetDefaults()
{
Projectile.width = 2;
Projectile.height = 2;
Projectile.friendly = true;
Projectile.DamageType = RogueDamageClass.Instance;
Projectile.tileCollide = false;
Projectile.penetrate = 1;
Projectile.extraUpdates = 100;
Projectile.timeLeft = 600;
}
public override void AI()
{
Lighting.AddLight(Projectile.Center, 0.2f, 0.1f, 0f);
for (int i = 0; i < 2; i++)
{
Dust dust = Dust.NewDustDirect(Projectile.Center, 0, 0, 182, 0f, 0f, 160, default, 2f);
dust.position = Projectile.Center;
dust.velocity = Projectile.velocity;
dust.scale = Projectile.scale;
dust.noGravity = true;
}
}
public override void Kill(int timeLeft)
{
Projectile.ExpandHitboxBy(60);
Projectile.maxPenetrate = -1;
Projectile.penetrate = -1;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 20;
Projectile.Damage();
}
}
}