Unit factory production list
This commit is contained in:
@@ -91,6 +91,18 @@ public class UnitFactory extends UnitBlock{
|
||||
super.setStats();
|
||||
|
||||
stats.remove(Stat.itemCapacity);
|
||||
|
||||
stats.add(Stat.output, table -> {
|
||||
Seq<UnitPlan> p = plans.select(u -> u.unit.unlockedNow());
|
||||
table.row();
|
||||
for(var plan : p){
|
||||
if(plan.unit.unlockedNow()){
|
||||
table.image(plan.unit.icon(Cicon.small)).size(8 * 3).padRight(2).right();
|
||||
table.add(plan.unit.localizedName).left();
|
||||
table.row();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user