1
0

DamageProtectionBuffComponent.cs 540 B

1234567891011121314151617
  1. using Content.Shared.Damage.Prototypes;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Damage.Components;
  4. /// <summary>
  5. /// Applies the specified DamageModifierSets when the entity takes damage.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent]
  8. public sealed partial class DamageProtectionBuffComponent : Component
  9. {
  10. /// <summary>
  11. /// The damage modifiers for entities with this component.
  12. /// </summary>
  13. [DataField]
  14. public Dictionary<string, DamageModifierSetPrototype> Modifiers = new();
  15. }