Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2022-11-04 08:59:29 -04:00
36 changed files with 37 additions and 4 deletions

View File

@@ -35,8 +35,7 @@ public class StatValues{
}
public static String fixValue(float value){
int precision = Math.abs((int)value - value) <= 0.001f ? 0 : Math.abs((int)(value * 10) - value * 10) <= 0.001f ? 1 : 2;
return Strings.fixed(value, precision);
return Strings.autoFixed(value, 2);
}
public static StatValue squared(float value, StatUnit unit){