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
|
|
|
{
|
2024-06-20 03:14:18 +12:00
|
|
|
/// <summary>
|
|
|
|
|
/// Damage to apply to entities that are strapped to this entity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField(required: true)]
|
2022-04-15 18:53:52 -04:00
|
|
|
public DamageSpecifier Damage = default!;
|
|
|
|
|
|
2024-06-20 03:14:18 +12:00
|
|
|
/// <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
|
|
|
|
2024-06-20 03:14:18 +12: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;
|
2022-11-08 20:59:34 +01:00
|
|
|
|
|
|
|
|
public TimeSpan NextHealTime = TimeSpan.Zero; //Next heal
|
2023-09-08 18:16:05 -07:00
|
|
|
|
2024-06-20 03:14:18 +12:00
|
|
|
[DataField] public EntityUid? SleepAction;
|
2022-04-15 18:53:52 -04:00
|
|
|
}
|
|
|
|
|
}
|