mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
<!-- This is a semi-strict format, you can add/remove sections as needed but the order/format should be kept the same Remove these comments before submitting --> # Description <!-- Explain this PR in as much detail as applicable Some example prompts to consider: How might this affect the game? The codebase? What might be some alternatives to this? How/Who does this benefit/hurt [the game/codebase]? --> Only use 1, 5, 10, 15, 20, 25, 30, 50 as default amounts. Add the ability to add your own as you please. --- # Changelog <!-- You can add an author after the `🆑` to change the name that appears in the changelog (ex: `🆑 Death`) Leaving it blank will default to your GitHub display name This includes all available types for the changelog --> 🆑 - tweak: Tweaked the ChemMaster to no longer have 300 buttons. (cherry picked from commit dc0539733636b3b099539d67699b5658bde7e759)
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
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 partial 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");
|
|
|
|
[DataField]
|
|
public int SortMethod;
|
|
|
|
[DataField]
|
|
public int TransferringAmount = 1;
|
|
|
|
[DataField]
|
|
public List<int> Amounts = new()
|
|
{
|
|
1, 5, 10, 15, 20, 25, 30, 50
|
|
};
|
|
}
|
|
}
|