Chem stuff QoL (#321)
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.Components
|
||||
/// <seealso cref="ChemMasterSystem"/>
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(ChemMasterSystem))]
|
||||
[Access(typeof(ChemMasterSystem), typeof(ReagentDispenserSystem))] // WD EDIT
|
||||
public sealed partial class ChemMasterComponent : Component
|
||||
{
|
||||
[DataField("pillType"), ViewVariables(VVAccess.ReadWrite)]
|
||||
@@ -23,5 +23,12 @@ namespace Content.Server.Chemistry.Components
|
||||
|
||||
[DataField("clickSound"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public SoundSpecifier ClickSound = new SoundPathSpecifier("/Audio/Machines/machine_switch.ogg");
|
||||
|
||||
// WD START
|
||||
public const string ChemMasterPort = "ChemMasterReceiver";
|
||||
|
||||
[ViewVariables]
|
||||
public EntityUid? ConnectedDispenser;
|
||||
// WD END
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.Components
|
||||
/// A machine that dispenses reagents into a solution container.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(ReagentDispenserSystem))]
|
||||
[Access(typeof(ReagentDispenserSystem), typeof(ChemMasterSystem))]
|
||||
public sealed partial class ReagentDispenserComponent : Component
|
||||
{
|
||||
|
||||
@@ -27,5 +27,15 @@ namespace Content.Server.Chemistry.Components
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public ReagentDispenserDispenseAmount DispenseAmount = ReagentDispenserDispenseAmount.U10;
|
||||
|
||||
// WD START
|
||||
public const string ChemMasterPort = "ChemMasterSender";
|
||||
|
||||
[ViewVariables]
|
||||
public bool ChemMasterInRange;
|
||||
|
||||
[ViewVariables]
|
||||
public EntityUid? ChemMaster;
|
||||
// WD END
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user