Skip to content

Commit

Permalink
Resolves #1101
Browse files Browse the repository at this point in the history
  • Loading branch information
TeslaRage committed Dec 6, 2021
1 parent 553562b commit b730421
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 b730421

Please sign in to comment.