chore: release CheatEnabler 2.4.8 and UXAssist 1.6.3

This commit is contained in:
soarqin committed 2026-10-31 15:29:47 +08:00
1 parent 35f5cfcdd8
commit 3580e9623f
6 files changed
+45 -23

No files matched your search

@@ -159,7 +159,7 @@ public static class BlueprintDescriptionFormatter
var scale = Math.Pow(1000, unit + 1);
// Keep the existing display precision; abbreviate only exact tenths of a unit.
if (rounded >= scale && rounded % (scale / 10) == 0)
return (rounded / scale).ToString("0.#", CultureInfo.InvariantCulture) + RateUnits[unit];
return (rounded / scale).ToString("#,##0.#", CultureInfo.InvariantCulture) + RateUnits[unit];
}
return FormatNumber(value);
@@ -191,7 +191,7 @@ public static class BlueprintDescriptionFormatter
throw new InvalidOperationException("A blueprint report contains an invalid rate or power value.");
var rounded = RoundForDisplay(value);
if (rounded > 0 || value == 0)
return rounded.ToString(value < 1 ? "0.###" : "0.##", CultureInfo.InvariantCulture);
return rounded.ToString(value < 1 ? "0.###" : "#,##0.##", CultureInfo.InvariantCulture);
var precise = value.ToString("0.######", CultureInfo.InvariantCulture);
return precise != "0" ? precise : value.ToString("0.###E+0", CultureInfo.InvariantCulture);
}