18 lines
493 B
C#
18 lines
493 B
C#
|
|
using Content.Shared.Throwing;
|
||
|
|
|
||
|
|
namespace Content.Server._White.Other.ChangeThrowForceSystem;
|
||
|
|
|
||
|
|
public sealed class ChangeThrowForceSystem : EntitySystem
|
||
|
|
{
|
||
|
|
public override void Initialize()
|
||
|
|
{
|
||
|
|
base.Initialize();
|
||
|
|
SubscribeLocalEvent<ChangeThrowForceComponent, BeforeThrowEvent>(HandleThrow);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void HandleThrow(EntityUid uid, ChangeThrowForceComponent component, ref BeforeThrowEvent args)
|
||
|
|
{
|
||
|
|
args.ThrowStrength = component.ThrowForce;
|
||
|
|
}
|
||
|
|
}
|