Fixed sectors not auto-unlocking
This commit is contained in:
@@ -223,7 +223,7 @@ public class Control implements ApplicationListener, Loadable{
|
||||
|
||||
for(TechNode node : TechTree.all){
|
||||
if(!node.content.unlocked() && node.requirements.length == 0 && !node.objectives.contains(o -> !o.complete())){
|
||||
node.content.unlocked();
|
||||
node.content.unlock();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -700,11 +700,8 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
if(sector.save != null && sector.info.resources.any()){
|
||||
stable.table(t -> {
|
||||
t.add("@sectors.resources").padRight(4);
|
||||
int idx = 0;
|
||||
int max = 5;
|
||||
for(UnlockableContent c : sector.info.resources){
|
||||
t.image(c.icon(Cicon.small)).padRight(3).size(Cicon.small.size);
|
||||
//if(++idx % max == 0) t.row();
|
||||
}
|
||||
}).padLeft(10f).fillX().row();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user