Files
crystall-punk-14/Content.Shared/Damage/Components/SlowOnDamageComponent.cs

18 lines
655 B
C#
Raw Permalink Normal View History

2022-05-13 00:59:03 -07:00
using Content.Shared.FixedPoint;
2021-11-10 03:06:27 -07:00
using Robust.Shared.GameStates;
namespace Content.Shared.Damage.Components
{
// TODO It'd be nice if this could be a destructible threshold, but on the other hand,
// that doesn't really work with events at all, and
[RegisterComponent, NetworkedComponent]
public sealed partial class SlowOnDamageComponent : Component
2021-11-10 03:06:27 -07:00
{
/// <summary>
/// Damage -> movespeed dictionary. This is -damage-, not -health-.
/// </summary>
[DataField("speedModifierThresholds", required: true)]
public Dictionary<FixedPoint2, float> SpeedModifierThresholds = default!;
2021-11-10 03:06:27 -07:00
}
}