From 3ee99961fd49933a85488451c061dc65ffcb1944 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Tue, 25 Apr 2023 09:18:30 -0400 Subject: [PATCH] Fix negative artifact point values (#15748) --- Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } /// -- 2.51.2