Fix negative artifact point values (#15748)
This commit is contained in:
@@ -74,9 +74,8 @@ public sealed partial class ArtifactSystem : EntitySystem
|
|||||||
|
|
||||||
var sumValue = component.NodeTree.Sum(n => GetNodePointValue(n, component, getMaxPrice));
|
var sumValue = component.NodeTree.Sum(n => GetNodePointValue(n, component, getMaxPrice));
|
||||||
var fullyExploredBonus = component.NodeTree.All(x => x.Triggered) || getMaxPrice ? 1.25f : 1;
|
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>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user