v2.0.0: fixed buff turns remaining rarely using arabic characters

This commit is contained in:
Evan Debenham
2023-02-17 13:28:04 -05:00
parent d7ce59a862
commit e82ea5a5f0

View File

@@ -29,7 +29,9 @@ import com.watabou.noosa.Image;
import com.watabou.utils.Reflection;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.HashSet;
import java.util.Locale;
public class Buff extends Actor {
@@ -133,7 +135,7 @@ public class Buff extends Actor {
//to handle the common case of showing how many turns are remaining in a buff description.
protected String dispTurns(float input){
return new DecimalFormat("#.##").format(input);
return new DecimalFormat("#.##", DecimalFormatSymbols.getInstance(Locale.ENGLISH)).format(input);
}
//buffs act after the hero, so it is often useful to use cooldown+1 when display buff time remaining