Skip to content

Commit

Permalink
Merge pull request #1103 from TeslaRage/Issue-1101
Browse files Browse the repository at this point in the history
Resolves #1101
  • Loading branch information
Xymanek authored Feb 26, 2022
2 parents ab4d5e4 + b730421 commit 28e5631
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1533,9 +1533,9 @@ simulated function string AddStatModifier(bool bAddCommaSeparator, string Label,
if(bAddCommaSeparator) Result $= ", ";
Result $= Label;
if(bSymbolOnRight)
Result @= Value $ (Value < 0 ? "-" : "+");
Result @= Value $ (Value >= 0 ? "+" : ""); //Issue #1101 - Weapon Upgrade with negative stat modifier shows as "--x"
else
Result @= (Value < 0 ? "-" : "+") $ Value;
Result @= (Value >= 0 ? "+" : "") $ Value; //Issue #1101 - Weapon Upgrade with negative stat modifier shows as "--x"
Result = class'UIUtilities_Text'.static.GetColoredText(Result $ PostFix, ColorState);
Result = class'UIUtilities_Text'.static.FormatCommaSeparatedNouns(Result);
return Result;
Expand Down

0 comments on commit 28e5631

Please sign in to comment.