HealOnBuckleComponent.cs 872 B

123456789101112131415161718192021222324252627282930
  1. using Content.Shared.Damage;
  2. namespace Content.Server.Bed.Components
  3. {
  4. [RegisterComponent]
  5. public sealed partial class HealOnBuckleComponent : Component
  6. {
  7. /// <summary>
  8. /// Damage to apply to entities that are strapped to this entity.
  9. /// </summary>
  10. [DataField(required: true)]
  11. public DamageSpecifier Damage = default!;
  12. /// <summary>
  13. /// How frequently the damage should be applied, in seconds.
  14. /// </summary>
  15. [DataField(required: false)]
  16. public float HealTime = 1f;
  17. /// <summary>
  18. /// Damage multiplier that gets applied if the entity is sleeping.
  19. /// </summary>
  20. [DataField]
  21. public float SleepMultiplier = 3f;
  22. public TimeSpan NextHealTime = TimeSpan.Zero; //Next heal
  23. [DataField] public EntityUid? SleepAction;
  24. }
  25. }