* Fix doc comment on FitsInDispenserComponent It's clearly intended to be a doc comment, but wasn't. * Allow the ChemMaster to accept canisters and bottles * Give the ChemMaster an output container slot * Tweak ChemMaster UI layout * Make more ChemMaster UI tweaks * Update ChemMaster SpinBox max handling * Rework the ChemMaster * Apply suggestions from code review Co-authored-by: Flipp Syder <76629141+vulppine@users.noreply.github.com> * Implement PR feedback * Switch ChemMaster to a tabbed UI layout * Rename Amount to Dosage for clarity * Replace Amount with Dosage in messages * Clarify dose in UI Co-authored-by: Flipp Syder <76629141+vulppine@users.noreply.github.com>
28 lines
988 B
C#
28 lines
988 B
C#
using Content.Server.Chemistry.EntitySystems;
|
|
using Content.Shared.Chemistry;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Server.Chemistry.Components
|
|
{
|
|
/// <summary>
|
|
/// An industrial grade chemical manipulator with pill and bottle production included.
|
|
/// <seealso cref="ChemMasterSystem"/>
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[Access(typeof(ChemMasterSystem))]
|
|
public sealed class ChemMasterComponent : Component
|
|
{
|
|
[DataField("pillType"), ViewVariables(VVAccess.ReadWrite)]
|
|
public uint PillType = 0;
|
|
|
|
[DataField("mode"), ViewVariables(VVAccess.ReadWrite)]
|
|
public ChemMasterMode Mode = ChemMasterMode.Transfer;
|
|
|
|
[DataField("pillDosageLimit", required: true), ViewVariables(VVAccess.ReadWrite)]
|
|
public uint PillDosageLimit;
|
|
|
|
[DataField("clickSound"), ViewVariables(VVAccess.ReadWrite)]
|
|
public SoundSpecifier ClickSound = new SoundPathSpecifier("/Audio/Machines/machine_switch.ogg");
|
|
}
|
|
}
|