Make Droppers Respect Closed/Sealed Containers (#33011)

* Make droppers respect closed/sealed

* Combine nested

* Optimize conditions a bit
This commit is contained in:
Preston Smith
2024-11-12 06:06:43 -06:00
committed by GitHub
parent a1966d8671
commit 70e3650246
3 changed files with 16 additions and 3 deletions

View File

@@ -45,6 +45,15 @@ public sealed partial class InjectorComponent : Component
[DataField]
public bool IgnoreMobs;
/// <summary>
/// Whether or not the injector is able to draw from or inject into containers that are closed/sealed
/// </summary>
/// <remarks>
/// for example: droppers can not inject into cans, but syringes can
/// </remarks>
[DataField]
public bool IgnoreClosed = true;
/// <summary>
/// The minimum amount of solution that can be transferred at once from this solution.
/// </summary>