* partial buckling refactor * git mv test * change test namespace * git mv test * Update test namespace * Add pulling test * Network BuckleTime * Add two more tests * smelly
31 lines
872 B
C#
31 lines
872 B
C#
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;
|
|
|
|
/// <summary>
|
|
/// Damage multiplier that gets applied if the entity is sleeping.
|
|
/// </summary>
|
|
[DataField]
|
|
public float SleepMultiplier = 3f;
|
|
|
|
public TimeSpan NextHealTime = TimeSpan.Zero; //Next heal
|
|
|
|
[DataField] public EntityUid? SleepAction;
|
|
}
|
|
}
|