Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions Content.Shared/Chemistry/Components/InjectorComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -39,28 +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")]
public FixedPoint2 MaximumTransferAmount = FixedPoint2.New(15);
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);

Expand All @@ -71,16 +69,14 @@ 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>
/// The state of the injector. Determines it's attack behavior. Containers must have the
/// 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@
# Syringes
- type: entity
name: ephedrine syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeEphedrine
components:
- type: SolutionContainerManager
Expand All @@ -799,7 +799,7 @@

- type: entity
name: inaprovaline syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeInaprovaline
components:
- type: SolutionContainerManager
Expand All @@ -812,7 +812,7 @@

- type: entity
name: tranexamic acid syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeTranexamicAcid
components:
- type: SolutionContainerManager
Expand All @@ -825,7 +825,7 @@

- type: entity
name: bicaridine syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeBicaridine
components:
- type: SolutionContainerManager
Expand All @@ -838,7 +838,7 @@

- type: entity
name: dermaline syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeDermaline
components:
- type: SolutionContainerManager
Expand All @@ -851,7 +851,7 @@

- type: entity
name: hyronalin syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeHyronalin
components:
- type: SolutionContainerManager
Expand All @@ -864,7 +864,7 @@

- type: entity
name: ipecac syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeIpecac
components:
- type: SolutionContainerManager
Expand All @@ -877,7 +877,7 @@

- type: entity
name: ambuzol syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeAmbuzol
components:
- type: SolutionContainerManager
Expand All @@ -890,7 +890,7 @@

- type: entity
name: sigynate syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeSigynate
components:
- type: SolutionContainerManager
Expand All @@ -903,7 +903,7 @@

- type: entity
name: ethylredoxrazine syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeEthylredoxrazine
components:
- type: SolutionContainerManager
Expand All @@ -916,7 +916,7 @@

- type: entity
name: phalanximine syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringePhalanximine
components:
- type: SolutionContainerManager
Expand All @@ -929,7 +929,7 @@

- type: entity
name: saline syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeSaline
components:
- type: SolutionContainerManager
Expand All @@ -943,7 +943,7 @@
#this is where all the syringes are so i didn't know where to put it
- type: entity
name: romerol syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeRomerol
components:
- type: SolutionContainerManager
Expand All @@ -956,7 +956,7 @@

- type: entity
name: stimulants syringe
parent: BaseSyringe
parent: PrefilledSyringe
id: SyringeStimulants
components:
- type: SolutionContainerManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@
- Syringe
- Trash

- type: entity
parent: BaseSyringe
id: PrefilledSyringe
components:
- type: Injector
toggleState: Inject

- type: entity
id: SyringeBluespace
parent: BaseSyringe
Expand Down