Adds barotrauma (pressure damage) (#1605)
* Adds barotrauma, disables it for now * At least show status effect, but don't damage the mobs * Fix switch misuse
This commit is contained in:
committed by
GitHub
parent
079937a9fe
commit
ffc9a24ea0
@@ -0,0 +1,27 @@
|
||||
using Content.Server.Interfaces.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.GameObjects.Components.Atmos
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class PressureProtectionComponent : Component, IPressureProtection
|
||||
{
|
||||
public override string Name => "PressureProtection";
|
||||
|
||||
[ViewVariables]
|
||||
public float HighPressureMultiplier { get; private set; }
|
||||
|
||||
[ViewVariables]
|
||||
public float LowPressureMultiplier { get; private set; }
|
||||
|
||||
public override void ExposeData(ObjectSerializer serializer)
|
||||
{
|
||||
base.ExposeData(serializer);
|
||||
|
||||
serializer.DataField(this, x => HighPressureMultiplier, "highPressureMultiplier", 1f);
|
||||
serializer.DataField(this, x => LowPressureMultiplier, "lowPressureMultiplier", 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user