Syringes that spawn with content start in inject mode (#25881)

* Remove unnecessary datafield names, syringes with stuff in them start in inject mode

* No trash tag

* Remove ViewVariables since DataField has them implicitly

* Revert "No trash tag"

This reverts commit 2c42172653d2cc70d58bd5bedf61a880b939bf20.

* Get rid of tags entirely for PrefilledSyringes

---------

Co-authored-by: Plykiya <plykiya@protonmail.com>
This commit is contained in:
Plykiya
2024-03-09 02:19:03 -08:00
committed by GitHub
parent 08e1b79a7f
commit 5cb48c922f
3 changed files with 25 additions and 23 deletions

View File

@@ -30,7 +30,7 @@ public sealed partial class InjectorComponent : Component
/// Whether or not the injector is able to draw from containers or if it's a single use
/// device that can only inject.
/// </summary>
[DataField("injectOnly")]
[DataField]
public bool InjectOnly;
/// <summary>
@@ -39,29 +39,26 @@ public sealed partial class InjectorComponent : Component
/// <remarks>
/// for example: droppers would ignore mobs
/// </remarks>
[DataField("ignoreMobs")]
[DataField]
public bool IgnoreMobs;
/// <summary>
/// The minimum amount of solution that can be transferred at once from this solution.
/// </summary>
[DataField("minTransferAmount")]
[ViewVariables(VVAccess.ReadWrite)]
public FixedPoint2 MinimumTransferAmount = FixedPoint2.New(5);
/// <summary>
/// The maximum amount of solution that can be transferred at once from this solution.
/// </summary>
[DataField("maxTransferAmount")]
[ViewVariables(VVAccess.ReadWrite)]
public FixedPoint2 MaximumTransferAmount = FixedPoint2.New(50);
/// <summary>
/// Amount to inject or draw on each usage. If the injector is inject only, it will
/// attempt to inject it's entire contents upon use.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("transferAmount")]
[DataField]
[AutoNetworkedField]
public FixedPoint2 TransferAmount = FixedPoint2.New(5);
@@ -72,8 +69,7 @@ public sealed partial class InjectorComponent : Component
/// The base delay has a minimum of 1 second, but this will still be modified if the target is incapacitated or
/// in combat mode.
/// </remarks>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("delay")]
[DataField]
public TimeSpan Delay = TimeSpan.FromSeconds(5);
/// <summary>
@@ -81,7 +77,6 @@ public sealed partial class InjectorComponent : Component
/// right SolutionCaps to support injection/drawing. For InjectOnly injectors this should
/// only ever be set to Inject
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[AutoNetworkedField]
[DataField]
public InjectorToggleMode ToggleState = InjectorToggleMode.Draw;