Unit factory production list

This commit is contained in:
Anuken 2020-10-24 15:11:27 -04:00
parent ddbca62f92
commit 819686e812
2 changed files with 13 additions and 1 deletions

View File

@ -14,7 +14,7 @@ import static mindustry.Vars.*;
public class LogicAI extends AIController{
/** Minimum delay between item transfers. */
public static final float transferDelay = 60f * 3f;
public static final float transferDelay = 60f * 2f;
/** Time after which the unit resets its controlled and reverts to a normal unit. */
public static final float logicControlTimeout = 10f * 60f;

View File

@ -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