2 - Provi darkness is now at max distance during all attacks while any guardian is alive. 3 - Elemental Quiver increases ranged damage by 15% instead of 10%. 4 - Increased Frequency Manipulator damage by 13 and made it throw the spear sooner. 5 - Increased Galvanizing Glaive damage by 16 and made the spear itself ignore more i-frames. 6 - Increased Gauss Dagger size by 50% and allowed the player to turn while using it. 7 - Decreased Gauss Pistol damage by 20 and made the projectile stay still for half the time. 8 - Increased Plasma Grenade damage by 1000 and gave it an impact sound. 9 - Increased Pulse Rifle damage by 2000. 10 - Increased Snake Eyes damage by 15 and made the leash distance longer. 11 - Decreased Taser damage by 6 and increased the velocity of it. 12 - Increased Tesla Cannon damage by 5000 and increased split beam damage by 10%. 13 - Tripled Wave Pounder damage. 14 - Reduced Shadowdrop Staff projectiles from 20 per use to 6 and reduced spread by 75%. 15 - Increased Ancient Crusher size by 50% again. 16 - Increased Astral Blade damage due to how dangerous it is to use at times. 17 - Gave Brimlance, Earthen Pike, Fulguration Halberd, Goldplume Spear, Hellion Flower Spear, Marnite Spear, Sausage Maker, Starnight Lance, Urchin Spear and Yateveo Bloom autoswing. 18 - Increased Earthen Pike, Majestic Guard and Fulguration Halberd size by 50%. 19 - Decreased Insidious Impaler damage by 40. 20 - Ultimus Cleaver explodes on hit now and increased size by 50%. 21 - Decreased Arterial Assault damage by 32. 22 - Onyxia onyx shard travels further. 23 - Increased God's Bellows range. 24 - Made SCal bullet hell 5 feel less rng with how full or empty it can sometimes feel. 25 - Reduced how often Supreme Catastrophe fires projectiles. 26 - Reduced how insane Old Duke is in Boss Rush. 27 - Reduced Rev+ Destroyer laser speed again from 14 to 12. 28 - Fixed a bug with Rev+ Destroyer flying phase lights where they'd show even when broken. 29 - Dark Energies resist piercing. 30 - Skeletron Head is now immune to all debuffs. 31 - Storm Weaver phase 2 resists Wave Pounder. 32 - Increased Volt Crasher Voltage Stream damage. 33 - Destroyer and Aquatic Scourge resist Volt Crasher. 34 - Gauss Rifle dust particles are smaller and the explosion no longer vanishes when tiles are near it, made the explosion pierce infinitely. 35 - Pole Warpers ignore more i-frames. 36 - Gave Pulse Dragon an extra update. 37 - Decreased Tracking Disk laser damage. 38 - Matter Modulator projectiles now deal a third of their damage if they haven't hit a tile yet to avoid confusion. 39 - Astral Pike stars now home in. 40 - Gilded Proboscis heals less often. 41 - Increased Goldplume Spear feather damage. 42 - Increased Avalanche ice shard damage. 43 - Gave Mourningstar an extra update and made it ignore more i-frames. 44 - True Caustic Edge projectiles no longer gain damage on tile collision. 45 - Version bump.
99 lines
3.4 KiB
C#
99 lines
3.4 KiB
C#
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Projectiles.Melee
|
|
{
|
|
public class TrueCausticEdgeProjectile : ModProjectile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Edge");
|
|
ProjectileID.Sets.TrailCacheLength[projectile.type] = 10;
|
|
ProjectileID.Sets.TrailingMode[projectile.type] = 1;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
projectile.width = 20;
|
|
projectile.height = 20;
|
|
projectile.aiStyle = 27;
|
|
projectile.friendly = true;
|
|
projectile.melee = true;
|
|
projectile.penetrate = 3;
|
|
projectile.timeLeft = 600;
|
|
projectile.usesLocalNPCImmunity = true;
|
|
projectile.localNPCHitCooldown = 10;
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
Lighting.AddLight(projectile.Center, 0f, 0.35f, 0f);
|
|
}
|
|
|
|
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
|
{
|
|
if (projectile.timeLeft > 595)
|
|
return false;
|
|
|
|
CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 2);
|
|
return false;
|
|
}
|
|
|
|
public override Color? GetAlpha(Color lightColor)
|
|
{
|
|
return new Color(0, 100, 0, 0);
|
|
}
|
|
|
|
public override bool OnTileCollide(Vector2 oldVelocity)
|
|
{
|
|
projectile.penetrate--;
|
|
if (projectile.penetrate <= 0)
|
|
{
|
|
projectile.Kill();
|
|
}
|
|
else
|
|
{
|
|
projectile.ai[0] += 0.1f;
|
|
if (projectile.velocity.X != oldVelocity.X)
|
|
{
|
|
projectile.velocity.X = -oldVelocity.X;
|
|
}
|
|
if (projectile.velocity.Y != oldVelocity.Y)
|
|
{
|
|
projectile.velocity.Y = -oldVelocity.Y;
|
|
}
|
|
Main.PlaySound(SoundID.Item10, projectile.position);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
|
{
|
|
target.AddBuff(BuffID.OnFire, 240);
|
|
target.AddBuff(BuffID.Venom, 120);
|
|
}
|
|
|
|
public override void Kill(int timeLeft)
|
|
{
|
|
Main.PlaySound(SoundID.Item10, projectile.position);
|
|
int num3;
|
|
for (int num795 = 4; num795 < 31; num795 = num3 + 1)
|
|
{
|
|
float num796 = projectile.oldVelocity.X * (30f / (float)num795);
|
|
float num797 = projectile.oldVelocity.Y * (30f / (float)num795);
|
|
int num798 = Dust.NewDust(new Vector2(projectile.oldPosition.X - num796, projectile.oldPosition.Y - num797), 8, 8, 44, projectile.oldVelocity.X, projectile.oldVelocity.Y, 100, default, 1.8f);
|
|
Main.dust[num798].noGravity = true;
|
|
Dust dust = Main.dust[num798];
|
|
dust.velocity *= 0.5f;
|
|
num798 = Dust.NewDust(new Vector2(projectile.oldPosition.X - num796, projectile.oldPosition.Y - num797), 8, 8, 44, projectile.oldVelocity.X, projectile.oldVelocity.Y, 100, default, 1.4f);
|
|
dust = Main.dust[num798];
|
|
dust.velocity *= 0.05f;
|
|
num3 = num795;
|
|
}
|
|
}
|
|
}
|
|
}
|