1
0

SlowOnDamageComponent.cs 655 B

1234567891011121314151617
  1. using Content.Shared.FixedPoint;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Damage.Components
  4. {
  5. // TODO It'd be nice if this could be a destructible threshold, but on the other hand,
  6. // that doesn't really work with events at all, and
  7. [RegisterComponent, NetworkedComponent]
  8. public sealed partial class SlowOnDamageComponent : Component
  9. {
  10. /// <summary>
  11. /// Damage -> movespeed dictionary. This is -damage-, not -health-.
  12. /// </summary>
  13. [DataField("speedModifierThresholds", required: true)]
  14. public Dictionary<FixedPoint2, float> SpeedModifierThresholds = default!;
  15. }
  16. }