* First commit * Fixes * Added the noise * Renames * Timespan * Fixed space * entity -> ent * This shouldn't work * opps.... * Datafield name change * Better comments * small comment * Personal skill issue * Event renames and stuff * Couple fixes * Defib ref fixes (Silly me) * Added clumsy back! * no hard code clumsy! * Identity fix * Event name change * Comment change * Function name change * opp * Update names * Damage stuff! * Fixes! * Fixes * opps * This was hidden away!! * negative diff feeds me
36 lines
1.1 KiB
C#
36 lines
1.1 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.
|
|
/// When you can only affect mobs, you're capable of drawing from beakers.
|
|
/// </summary>
|
|
[AutoNetworkedField]
|
|
[DataField(required: true)]
|
|
public bool OnlyAffectsMobs = false;
|
|
|
|
/// <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;
|
|
}
|