Files
tbd-station-14/Content.Server/Bed/Components/HealOnBuckle.cs
2022-04-15 15:53:52 -07:00

18 lines
536 B
C#

using Content.Shared.Damage;
namespace Content.Server.Bed.Components
{
[RegisterComponent]
public sealed class HealOnBuckleComponent : Component
{
[DataField("damage", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier Damage = default!;
[DataField("healTime", required: false)]
[ViewVariables(VVAccess.ReadWrite)]
public float HealTime = 1f; // How often the bed applies the damage
public float Accumulator = 0f; //Time accumulated
}
}