Allow solutions to store extra reagent data (#19323)
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.FixedPoint;
|
||||
|
||||
namespace Content.Server.Power.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed partial class RiggableComponent : Component
|
||||
{
|
||||
public const string SolutionName = "battery";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("isRigged")]
|
||||
public bool IsRigged;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("solution")]
|
||||
public string Solution = "battery";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("reagent")]
|
||||
public ReagentQuantity RequiredQuantity = new("Plasma", FixedPoint2.New(5), null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user