1
0

ClothingSlowOnDamageModifierComponent.cs 544 B

1234567891011121314151617
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Damage.Components;
  3. /// <summary>
  4. /// This is used for a clothing item that modifies the slowdown from taking damage.
  5. /// Used for entities with <see cref="SlowOnDamageComponent"/>
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, Access(typeof(SlowOnDamageSystem))]
  8. public sealed partial class ClothingSlowOnDamageModifierComponent : Component
  9. {
  10. /// <summary>
  11. /// A coefficient modifier for the slowdown
  12. /// </summary>
  13. [DataField]
  14. public float Modifier = 1;
  15. }