Sleeping (#9793)
This commit is contained in:
20
Content.Server/Bed/Components/HealOnBuckleComponent.cs
Normal file
20
Content.Server/Bed/Components/HealOnBuckleComponent.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
|
||||
[DataField("sleepMultiplier")]
|
||||
public float SleepMultiplier = 3f;
|
||||
public float Accumulator = 0f; //Time accumulated
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user