droppers behave more like syringes (#12518)

This commit is contained in:
Justin Trotter
2022-11-09 16:59:54 -08:00
committed by GitHub
parent a9e4e77489
commit 57907bde6f
3 changed files with 25 additions and 12 deletions

View File

@@ -25,6 +25,16 @@ namespace Content.Server.Chemistry.Components
[DataField("injectOnly")]
public bool InjectOnly;
/// <summary>
/// Whether or not the injector is able to draw from or inject from mobs
/// </summary>
/// <remarks>
/// for example: droppers would ignore mobs
/// </remarks>
[ViewVariables]
[DataField("ignoreMobs")]
public bool IgnoreMobs = false;
/// <summary>
/// The minimum amount of solution that can be transferred at once from this solution.
/// </summary>
@@ -72,6 +82,7 @@ namespace Content.Server.Chemistry.Components
/// only ever be set to Inject
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("toggleState")]
public InjectorToggleMode ToggleState
{
get => _toggleState;