From 7bc4a4b92e25ed0590f324b2f4477b793e3f46d8 Mon Sep 17 00:00:00 2001 From: Jabkas Date: Mon, 8 Apr 2024 01:27:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B5=D0=B3=20=D1=85=D0=BE?= =?UTF-8?q?=D1=87=D0=B5=D1=82=D1=81=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/Anomaly/AnomalySystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Anomaly/AnomalySystem.cs b/Content.Server/Anomaly/AnomalySystem.cs index 434ab6fa30..c3f19aa177 100644 --- a/Content.Server/Anomaly/AnomalySystem.cs +++ b/Content.Server/Anomaly/AnomalySystem.cs @@ -109,14 +109,14 @@ public sealed partial class AnomalySystem : SharedAnomalySystem if (!Resolve(anomaly, ref component, false)) return 0; - var multiplier = 1.5f; + var multiplier = 1f; if (component.Stability > component.GrowthThreshold) multiplier = component.GrowingPointMultiplier; //more points for unstable //penalty of up to 50% based on health multiplier *= MathF.Pow(1.5f, component.Health) - 0.5f; - var severityValue = 1.05 / (1.05 + MathF.Pow(MathF.E, -7 * (component.Severity - 1.5f))); + var severityValue = 1 / (1 + MathF.Pow(MathF.E, -7 * (component.Severity - 0.5f))); return (int) ((component.MaxPointsPerSecond - component.MinPointsPerSecond) * severityValue * multiplier) + component.MinPointsPerSecond; }