Beds, Medical Beds, Stasis Beds (#6695)

This commit is contained in:
Rane
2022-04-15 18:53:52 -04:00
committed by GitHub
parent 3383350c03
commit 5376aed6ea
36 changed files with 534 additions and 31 deletions

View File

@@ -0,0 +1,17 @@
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
public float Accumulator = 0f; //Time accumulated
}
}

View File

@@ -0,0 +1,8 @@
using Content.Shared.Damage;
namespace Content.Server.Bed.Components
{
[RegisterComponent]
public sealed class HealOnBuckleHealingComponent : Component
{}
}

View File

@@ -0,0 +1,13 @@
namespace Content.Server.Bed.Components
{
[RegisterComponent]
public sealed class StasisBedComponent : Component
{
/// <summary>
/// What the metabolic update rate will be multiplied by (higher = slower metabolism)
/// </summary>
[DataField("multiplier", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public float Multiplier = 10f;
}
}