I Like Stats (#5347)

Co-authored-by: Leonwang4234 <leonwang4234@gmail.com>
This commit is contained in:
genNAowl
2021-06-04 08:31:33 -04:00
committed by GitHub
co-authored by Leonwang4234
parent 677bad5c60
commit b8daa422ee
3 changed files with 24 additions and 8 deletions
@@ -198,15 +198,10 @@ public class StatValues{
table.image(region).size(60).scaling(Scaling.bounded).right().top();
table.table(Tex.underline, w -> {
table.table(Tex.underline, w -> {
w.left().defaults().padRight(3).left();
if(weapon.inaccuracy > 0){
sep(w, "[lightgray]" + Stat.inaccuracy.localized() + ": [white]" + (int)weapon.inaccuracy + " " + StatUnit.degrees.localized());
}
sep(w, "[lightgray]" + Stat.reload.localized() + ": " + (weapon.mirror ? "2x " : "") + "[white]" + Strings.autoFixed(60f / weapon.reload * weapon.shots, 2));
ammo(ObjectMap.of(unit, weapon.bullet)).display(w);
weapon.addStats(unit, w);
}).padTop(-9).left();
table.row();
}
@@ -298,7 +293,6 @@ public class StatValues{
}
//for AmmoListValue
private static void sep(Table table, String text){
table.row();
table.add(text);