FireProtectionComponent.cs 747 B

123456789101112131415161718192021222324
  1. using Content.Shared.Clothing.EntitySystems;
  2. namespace Content.Shared.Clothing.Components;
  3. /// <summary>
  4. /// Makes this clothing reduce fire damage when worn.
  5. /// </summary>
  6. [RegisterComponent, Access(typeof(FireProtectionSystem))]
  7. public sealed partial class FireProtectionComponent : Component
  8. {
  9. /// <summary>
  10. /// Percentage to reduce fire damage by, subtracted not multiplicative.
  11. /// 0.25 means 25% less fire damage.
  12. /// </summary>
  13. [DataField(required: true)]
  14. public float Reduction;
  15. /// <summary>
  16. /// LocId for message that will be shown on detailed examine.
  17. /// Actually can be moved into system
  18. /// </summary>
  19. [DataField]
  20. public LocId ExamineMessage = "fire-protection-reduction-value";
  21. }