-Fixed Custom Spark/Vel changing Spark/ Glow Spark Particles not fading out their glows properly. -Fixed Tracking Disk Stealth having tile collision -Fixed Septic Skewer pulling enemies multiple times during execution. -Added a gfb feature that makes all custom sparks, vel changing sparks, glow sparks and custom pulses use the mammoth particle visual if it's Tuesday. -Fixed some weird particle rotation on Vitriolic Viper -Exorcism GFB sound (Thanks Shayy) -The guaranteed crits on Hellkite and Compact Railgun now convert your crit chance into extra damage for the hit.
23 lines
887 B
C#
23 lines
887 B
C#
using CalamityMod.Items.Ammo;
|
|
using Terraria;
|
|
using Terraria.Audio;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Projectiles.Typeless
|
|
{
|
|
public class HyperiusDamage : DirectStrike, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Projectiles.Typeless";
|
|
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
|
{
|
|
Player Owner = Main.player[Projectile.owner];
|
|
|
|
modifiers.HideCombatText(); // Has special combat text
|
|
modifiers.SourceDamage *= 0;
|
|
modifiers.FinalDamage.Flat = Projectile.damage; // Always does the exact damage of the hit so that it doesn't double scale with defense and dr
|
|
|
|
SoundEngine.PlaySound(HyperiusBullet.hit with { Volume = 0.45f, Pitch = Main.rand.NextFloat(-0.15f, 0.15f), MaxInstances = 10 }, Projectile.Center);
|
|
}
|
|
}
|
|
}
|