mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
23 lines
716 B
C#
23 lines
716 B
C#
using Content.Server.Traits.Assorted;
|
|
using Content.Shared._White.Standing;
|
|
|
|
namespace Content.Shared.Traits.Assorted.Systems;
|
|
|
|
public sealed class LayingDownModifierSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<LayingDownModifierComponent, ComponentStartup>(OnStartup);
|
|
}
|
|
|
|
private void OnStartup(EntityUid uid, LayingDownModifierComponent component, ComponentStartup args)
|
|
{
|
|
if (!TryComp<LayingDownComponent>(uid, out var layingDown))
|
|
return;
|
|
|
|
layingDown.StandingUpTime *= component.LayingDownCooldownMultiplier;
|
|
layingDown.SpeedModify *= component.DownedSpeedMultiplierMultiplier;
|
|
}
|
|
}
|