2022-04-15 18:53:52 -04:00
|
|
|
using Content.Shared.Damage;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Bed.Components
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class HealOnBuckleComponent : Component
|
2022-04-15 18:53:52 -04:00
|
|
|
{
|
|
|
|
|
[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
|
2022-07-27 00:46:24 -04:00
|
|
|
|
|
|
|
|
[DataField("sleepMultiplier")]
|
|
|
|
|
public float SleepMultiplier = 3f;
|
2022-11-08 20:59:34 +01:00
|
|
|
|
|
|
|
|
public TimeSpan NextHealTime = TimeSpan.Zero; //Next heal
|
2023-09-08 18:16:05 -07:00
|
|
|
|
|
|
|
|
[DataField("sleepAction")] public EntityUid? SleepAction;
|
2022-04-15 18:53:52 -04:00
|
|
|
}
|
|
|
|
|
}
|