18 lines
494 B
C#
18 lines
494 B
C#
using CalamityMod.Utilities;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Projectiles.Typeless
|
|
{
|
|
public class Gunshot : DirectStrike, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Projectiles.Typeless";
|
|
public Player Owner => Main.player[Projectile.owner];
|
|
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
|
{
|
|
modifiers.ApplyScalingForcedCrit(Projectile);
|
|
}
|
|
|
|
}
|
|
}
|