Add space lube tube (#17387)
This commit is contained in:
47
Content.Shared/Lube/LubeComponent.cs
Normal file
47
Content.Shared/Lube/LubeComponent.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Shared.Lube;
|
||||
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class LubeComponent : Component
|
||||
{
|
||||
[DataField("squeeze")]
|
||||
public SoundSpecifier Squeeze = new SoundPathSpecifier("/Audio/Items/squeezebottle.ogg");
|
||||
|
||||
/// <summary>
|
||||
/// Solution on the entity that contains the glue.
|
||||
/// </summary>
|
||||
[DataField("solution")]
|
||||
public string Solution = "drink";
|
||||
|
||||
/// <summary>
|
||||
/// Reagent that will be used as glue.
|
||||
/// </summary>
|
||||
[DataField("reagent", customTypeSerializer: typeof(PrototypeIdSerializer<ReagentPrototype>))]
|
||||
public string Reagent = "SpaceLube";
|
||||
|
||||
/// <summary>
|
||||
/// Reagent consumption per use.
|
||||
/// </summary>
|
||||
[DataField("consumption"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public FixedPoint2 Consumption = FixedPoint2.New(3);
|
||||
|
||||
/// <summary>
|
||||
/// Min slips per unit
|
||||
/// </summary>
|
||||
[DataField("minSlips"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public int MinSlips = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Max slips per unit
|
||||
/// </summary>
|
||||
[DataField("maxSlips"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public int MaxSlips = 6;
|
||||
|
||||
[DataField("slipStrength"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public int SlipStrength = 10;
|
||||
}
|
||||
17
Content.Shared/Lube/LubedComponent.cs
Normal file
17
Content.Shared/Lube/LubedComponent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Content.Shared.Lube;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class LubedComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Reverts name to before prefix event (essentially removes prefix).
|
||||
/// </summary>
|
||||
[DataField("beforeLubedEntityName")]
|
||||
public string BeforeLubedEntityName = string.Empty;
|
||||
|
||||
[DataField("slipsLeft"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public int SlipsLeft;
|
||||
|
||||
[DataField("slipStrength"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public int SlipStrength;
|
||||
}
|
||||
Reference in New Issue
Block a user