From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Tue, 25 Apr 2023 13:18:30 +0000 (-0400) Subject: Fix negative artifact point values (#15748) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=3ee99961fd49933a85488451c061dc65ffcb1944;p=space-station-14.git Fix negative artifact point values (#15748) --- diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs index 74ba6d6d5b..637d64d9a8 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs @@ -74,9 +74,8 @@ public sealed partial class ArtifactSystem : EntitySystem var sumValue = component.NodeTree.Sum(n => GetNodePointValue(n, component, getMaxPrice)); var fullyExploredBonus = component.NodeTree.All(x => x.Triggered) || getMaxPrice ? 1.25f : 1; - sumValue -= component.ConsumedPoints; - return (int) (sumValue * fullyExploredBonus); + return (int) (sumValue * fullyExploredBonus) - component.ConsumedPoints; } ///