Skip to content

Commit

Permalink
Update Content.Server/_Goobstation/Weapons/Ranged/SyringeGunSystem.cs
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
KayzelW and coderabbitai[bot] authored Jan 25, 2025
1 parent 34dbf79 commit e60aec8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ public override void Initialize()
private void OnFire(Entity<SyringeGunComponent> gun, ref AmmoShotEvent args)
{
foreach (var projectile in args.FiredProjectiles)
{
if (TryComp(projectile, out SolutionInjectOnEmbedComponent? inject))
{
inject.Shot = true;
inject.PierceArmor = gun.Comp.PierceArmor;
}
}
}

}

0 comments on commit e60aec8

Please sign in to comment.