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:
@@ -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
|
/// Whether or not the injector is able to draw from containers or if it's a single use
|
||||||
/// device that can only inject.
|
/// device that can only inject.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("injectOnly")]
|
[DataField]
|
||||||
public bool InjectOnly;
|
public bool InjectOnly;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -39,29 +39,26 @@ public sealed partial class InjectorComponent : Component
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// for example: droppers would ignore mobs
|
/// for example: droppers would ignore mobs
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[DataField("ignoreMobs")]
|
[DataField]
|
||||||
public bool IgnoreMobs;
|
public bool IgnoreMobs;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The minimum amount of solution that can be transferred at once from this solution.
|
/// The minimum amount of solution that can be transferred at once from this solution.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("minTransferAmount")]
|
[DataField("minTransferAmount")]
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
|
||||||
public FixedPoint2 MinimumTransferAmount = FixedPoint2.New(5);
|
public FixedPoint2 MinimumTransferAmount = FixedPoint2.New(5);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum amount of solution that can be transferred at once from this solution.
|
/// The maximum amount of solution that can be transferred at once from this solution.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("maxTransferAmount")]
|
[DataField("maxTransferAmount")]
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
|
||||||
public FixedPoint2 MaximumTransferAmount = FixedPoint2.New(50);
|
public FixedPoint2 MaximumTransferAmount = FixedPoint2.New(50);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Amount to inject or draw on each usage. If the injector is inject only, it will
|
/// 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.
|
/// attempt to inject it's entire contents upon use.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[DataField]
|
||||||
[DataField("transferAmount")]
|
|
||||||
[AutoNetworkedField]
|
[AutoNetworkedField]
|
||||||
public FixedPoint2 TransferAmount = FixedPoint2.New(5);
|
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
|
/// The base delay has a minimum of 1 second, but this will still be modified if the target is incapacitated or
|
||||||
/// in combat mode.
|
/// in combat mode.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[DataField]
|
||||||
[DataField("delay")]
|
|
||||||
public TimeSpan Delay = TimeSpan.FromSeconds(5);
|
public TimeSpan Delay = TimeSpan.FromSeconds(5);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -81,7 +77,6 @@ public sealed partial class InjectorComponent : Component
|
|||||||
/// right SolutionCaps to support injection/drawing. For InjectOnly injectors this should
|
/// right SolutionCaps to support injection/drawing. For InjectOnly injectors this should
|
||||||
/// only ever be set to Inject
|
/// only ever be set to Inject
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
|
||||||
[AutoNetworkedField]
|
[AutoNetworkedField]
|
||||||
[DataField]
|
[DataField]
|
||||||
public InjectorToggleMode ToggleState = InjectorToggleMode.Draw;
|
public InjectorToggleMode ToggleState = InjectorToggleMode.Draw;
|
||||||
|
|||||||
@@ -785,7 +785,7 @@
|
|||||||
# Syringes
|
# Syringes
|
||||||
- type: entity
|
- type: entity
|
||||||
name: ephedrine syringe
|
name: ephedrine syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeEphedrine
|
id: SyringeEphedrine
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -798,7 +798,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: inaprovaline syringe
|
name: inaprovaline syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeInaprovaline
|
id: SyringeInaprovaline
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -811,7 +811,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: tranexamic acid syringe
|
name: tranexamic acid syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeTranexamicAcid
|
id: SyringeTranexamicAcid
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -824,7 +824,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: bicaridine syringe
|
name: bicaridine syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeBicaridine
|
id: SyringeBicaridine
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -837,7 +837,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: dermaline syringe
|
name: dermaline syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeDermaline
|
id: SyringeDermaline
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -850,7 +850,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: hyronalin syringe
|
name: hyronalin syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeHyronalin
|
id: SyringeHyronalin
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -863,7 +863,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: ipecac syringe
|
name: ipecac syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeIpecac
|
id: SyringeIpecac
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -876,7 +876,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: ambuzol syringe
|
name: ambuzol syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeAmbuzol
|
id: SyringeAmbuzol
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -889,7 +889,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: sigynate syringe
|
name: sigynate syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeSigynate
|
id: SyringeSigynate
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -902,7 +902,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: ethylredoxrazine syringe
|
name: ethylredoxrazine syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeEthylredoxrazine
|
id: SyringeEthylredoxrazine
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -915,7 +915,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: phalanximine syringe
|
name: phalanximine syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringePhalanximine
|
id: SyringePhalanximine
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -928,7 +928,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: saline syringe
|
name: saline syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeSaline
|
id: SyringeSaline
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -942,7 +942,7 @@
|
|||||||
#this is where all the syringes are so i didn't know where to put it
|
#this is where all the syringes are so i didn't know where to put it
|
||||||
- type: entity
|
- type: entity
|
||||||
name: romerol syringe
|
name: romerol syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeRomerol
|
id: SyringeRomerol
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
@@ -955,7 +955,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: stimulants syringe
|
name: stimulants syringe
|
||||||
parent: BaseSyringe
|
parent: PrefilledSyringe
|
||||||
id: SyringeStimulants
|
id: SyringeStimulants
|
||||||
components:
|
components:
|
||||||
- type: SolutionContainerManager
|
- type: SolutionContainerManager
|
||||||
|
|||||||
@@ -364,6 +364,13 @@
|
|||||||
- Syringe
|
- Syringe
|
||||||
- Trash
|
- Trash
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: BaseSyringe
|
||||||
|
id: PrefilledSyringe
|
||||||
|
components:
|
||||||
|
- type: Injector
|
||||||
|
toggleState: Inject
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: SyringeBluespace
|
id: SyringeBluespace
|
||||||
parent: BaseSyringe
|
parent: BaseSyringe
|
||||||
|
|||||||
Reference in New Issue
Block a user