Fixed sectors not auto-unlocking

This commit is contained in:
Anuken
2020-11-22 22:03:23 -05:00
parent ecea8eab01
commit 8d91a9b014
4 changed files with 2 additions and 12 deletions
+1 -1
View File
@@ -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();
}