mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
17 lines
506 B
C#
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;
|
|
}
|