Files
crystall-punk-14/Content.Server/Bed/Components/HealOnBuckleComponent.cs

31 lines
872 B
C#
Raw Permalink Normal View History

using Content.Shared.Damage;
namespace Content.Server.Bed.Components
{
[RegisterComponent]
public sealed partial class HealOnBuckleComponent : Component
{
/// <summary>
/// Damage to apply to entities that are strapped to this entity.
/// </summary>
[DataField(required: true)]
public DamageSpecifier Damage = default!;
/// <summary>
/// How frequently the damage should be applied, in seconds.
/// </summary>
[DataField(required: false)]
public float HealTime = 1f;
2022-07-27 00:46:24 -04:00
/// <summary>
/// Damage multiplier that gets applied if the entity is sleeping.
/// </summary>
[DataField]
2022-07-27 00:46:24 -04:00
public float SleepMultiplier = 3f;
public TimeSpan NextHealTime = TimeSpan.Zero; //Next heal
[DataField] public EntityUid? SleepAction;
}
}