]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix negative artifact point values (#15748)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Tue, 25 Apr 2023 13:18:30 +0000 (09:18 -0400)
committerGitHub <noreply@github.com>
Tue, 25 Apr 2023 13:18:30 +0000 (23:18 +1000)
Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs

index 74ba6d6d5bd04b360054b20f71da2722390a4034..637d64d9a8a84829c4aa52d3503c443c57ee5529 100644 (file)
@@ -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;
     }
 
     /// <summary>