v2.0.0: fixed buff turns remaining rarely using arabic characters
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user