Files
wwdpublic/Content.Server/_White/Throwing/ThrowingItemModifierSystem.cs
Spatison ae973b610e [Fix] Bugs (#494)
* some fixs

* fix infil

* fix embeddable projectile

* tweak
2025-05-17 14:27:25 +03:00

17 lines
506 B
C#

using Content.Shared.Throwing;
namespace Content.Server._White.Throwing;
public sealed class ThrowingItemModifierSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<ThrowingItemModifierComponent, BeforeGettingThrownEvent>(OnGettingThrown);
}
public void OnGettingThrown(EntityUid uid, ThrowingItemModifierComponent component, ref BeforeGettingThrownEvent args) =>
args.ThrowSpeed *= component.ThrowingMultiplier;
}