Files
wwdpublic/Content.Server/Traits/Assorted/LayingDownModifierSystem.cs
Remuchi b84ac2bd96 Revert "[Port] Lying Down System / Система Лежания (#2)"
This reverts commit 58f3ff4f5c.

# Conflicts:
#	Content.Shared/_White/Standing/SharedLayingDownSystem.cs
2024-10-19 13:00:03 +07:00

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;
}
}