* changing accumulators to timespan targets * Update Content.Server/Abilities/Mime/MimePowersSystem.cs Co-authored-by: 0x6273 <0x40@keemail.me> * Update MimePowersSystem.cs * serializing timespans and adding pausetime where applicable * remove nullable Co-authored-by: CommieFlowers <rasmus.cedergren@hotmail.com> Co-authored-by: 0x6273 <0x40@keemail.me>
22 lines
628 B
C#
22 lines
628 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
|
|
|
|
[DataField("sleepMultiplier")]
|
|
public float SleepMultiplier = 3f;
|
|
|
|
public TimeSpan NextHealTime = TimeSpan.Zero; //Next heal
|
|
}
|
|
}
|