# Conflicts: # Content.Client/Lobby/LobbyUIController.cs # Content.Client/Lobby/UI/CharacterSetupGui.xaml # Content.Client/Lobby/UI/CharacterSetupGui.xaml.cs # Content.Server/Antag/AntagSelectionSystem.cs # Content.Server/GameTicking/GameTicker.Lobby.cs # Content.Server/Objectives/Systems/KillPersonConditionSystem.cs # Content.Server/Store/Systems/StoreSystem.Ui.cs # Content.Shared/Inventory/InventorySystem.Relay.cs # Resources/Maps/_Sunrise/Shuttles/abandoned_outpost.yml # Resources/Prototypes/Entities/Stations/base.yml # Resources/Textures/Interface/Misc/job_icons.rsi/meta.json # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarm0.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarm1.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarm2.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarm_b1.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarm_b2.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarm_bitem.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarmp.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarmx.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/meta.json
42 lines
1.3 KiB
C#
42 lines
1.3 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;
|
|
|
|
/// <summary>
|
|
/// Whether the hypospray uses a needle (i.e. medipens)
|
|
/// or sci fi bullshit that sprays into the bloodstream directly (i.e. hypos)
|
|
/// </summary>
|
|
[DataField]
|
|
public bool PierceArmor = false;
|
|
}
|