]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Syringe changes. (#14441)
authorWhisper <121047731+QuietlyWhisper@users.noreply.github.com>
Tue, 18 Apr 2023 14:23:54 +0000 (10:23 -0400)
committerGitHub <noreply@github.com>
Tue, 18 Apr 2023 14:23:54 +0000 (10:23 -0400)
* Syringe changes

* Fix

* Fix

* Fix

* Trying to rerun the tests because idk how

* revert self heal nerf

Content.Server/Chemistry/EntitySystems/ChemistrySystem.Injector.cs

index 08bcf300d19152d43f023330530b8676dfb7bb44..e05d7602a6763baacae069b4e1a32bfe6c452476 100644 (file)
@@ -218,8 +218,8 @@ public sealed partial class ChemistrySystem
 
         var actualDelay = MathF.Max(component.Delay, 1f);
 
-        // Injections take 1 second longer per additional 5u
-        actualDelay += (float) component.TransferAmount / component.Delay - 1;
+        // Injections take 0.5 seconds longer per additional 5u
+        actualDelay += (float) component.TransferAmount / component.Delay - 0.5f;
 
         var isTarget = user != target;
 
@@ -233,7 +233,7 @@ public sealed partial class ChemistrySystem
             // Check if the target is incapacitated or in combat mode and modify time accordingly.
             if (_mobState.IsIncapacitated(target))
             {
-                actualDelay /= 2;
+                actualDelay /= 2.5f;
             }
             else if (_combat.IsInCombatMode(target))
             {