mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 14:07:53 +03:00
This reverts commit 58f3ff4f5c.
# Conflicts:
# Content.Shared/_White/Standing/SharedLayingDownSystem.cs
23 lines
713 B
C#
23 lines
713 B
C#
using Content.Server.Traits.Assorted;
|
|
using Content.Server.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.Cooldown *= component.LayingDownCooldownMultiplier;
|
|
layingDown.DownedSpeedMultiplier *= component.DownedSpeedMultiplierMultiplier;
|
|
}
|
|
}
|