Make delay incurred from additional syringe contents modifiable + tiny syringe buff/fix (#29825)

* Make delay incurred by transfer amount modifiable

* No unintentional negative delay please

* Use more fixedpoint, hope I didn't break anything

* merge review suggestion

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>

---------

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
This commit is contained in:
osjarw
2024-07-22 13:20:36 +03:00
committed by GitHub
parent cac867fa6d
commit d8433a8f86
2 changed files with 15 additions and 5 deletions

View File

@@ -73,6 +73,12 @@ public sealed partial class InjectorComponent : Component
[DataField]
public TimeSpan Delay = TimeSpan.FromSeconds(5);
/// <summary>
/// Each additional 1u after first 5u increases the delay by X seconds.
/// </summary>
[DataField]
public TimeSpan DelayPerVolume = TimeSpan.FromSeconds(0.1);
/// <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