* Seperate container draw from affects mobs * Spaces * More spaces * Fix toggle * Use better ands * Reorder checks for Performance™️ --------- Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Shared.Chemistry.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class HyposprayComponent : Component
|
|
{
|
|
[DataField]
|
|
public string SolutionName = "hypospray";
|
|
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public FixedPoint2 TransferAmount = FixedPoint2.New(5);
|
|
|
|
[DataField]
|
|
public SoundSpecifier InjectSound = new SoundPathSpecifier("/Audio/Items/hypospray.ogg");
|
|
|
|
/// <summary>
|
|
/// Decides whether you can inject everything or just mobs.
|
|
/// </summary>
|
|
[AutoNetworkedField]
|
|
[DataField(required: true)]
|
|
public bool OnlyAffectsMobs = false;
|
|
|
|
/// <summary>
|
|
/// If this can draw from containers in mob-only mode.
|
|
/// </summary>
|
|
[AutoNetworkedField]
|
|
[DataField]
|
|
public bool CanContainerDraw = true;
|
|
|
|
/// <summary>
|
|
/// Whether or not the hypospray is able to draw from containers or if it's a single use
|
|
/// device that can only inject.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool InjectOnly = false;
|
|
}
|