From 7da8e4146490c50b6a63c1871d8caa775e5fa4d7 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 21 Oct 2024 15:00:08 -0400 Subject: [PATCH] v3.0.0: improved one case of number formatting in score breakdown --- .../shatteredpixeldungeon/windows/WndScoreBreakdown.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndScoreBreakdown.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndScoreBreakdown.java index fd8cb3deb..6157035c8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndScoreBreakdown.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndScoreBreakdown.java @@ -74,10 +74,10 @@ public class WndScoreBreakdown extends Window { } if (Statistics.winMultiplier > 1) { - pos = statSlot(this, Messages.get(this, "win_multiplier"), Statistics.winMultiplier + "x", pos, false); + pos = statSlot(this, Messages.get(this, "win_multiplier"), Messages.decimalFormat("#.##", Statistics.winMultiplier) + "x", pos, false); } if (Statistics.chalMultiplier > 1) { - pos = statSlot(this, Messages.get(this, "challenge_multiplier"), Statistics.chalMultiplier + "x", pos, false); + pos = statSlot(this, Messages.get(this, "challenge_multiplier"), Messages.decimalFormat("#.##", Statistics.chalMultiplier) + "x", pos, false); } pos = statSlot(this, Messages.get(this, "total"), num.format(Statistics.totalScore), pos, false);