This commit is contained in:
Anuken 2019-02-11 17:32:44 -05:00
parent 39276b4b03
commit d218fb926a
5 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -58,7 +58,7 @@ public class TechTreeDialog extends FloatingDialog{
boolean locked = locked(node.node);
if(!locked) node.visible = true;
for(TechTreeNode l : node.children){
l.visible = !locked && l.node.block.isVisible();
l.visible = !locked;
checkNodes(l);
}
@ -89,7 +89,7 @@ public class TechTreeDialog extends FloatingDialog{
}
boolean locked(TechNode node){
return !data.isUnlocked(node.block);
return node.block.locked();
}
class TechTreeNode extends TreeNode<TechTreeNode>{

View File

@ -237,7 +237,7 @@ public class PowerGraph{
}
}
//currently ignores all other values and consumes power anyway.
//currently ignores all other consumers and consumes power anyway.
private boolean otherConsumersAreValid(Tile tile, Consume consumePower){
/*
for(Consume cons : tile.block().consumes.all()){

View File

@ -98,7 +98,7 @@ public class RepairPoint extends Block{
@Override
public TextureRegion[] generateIcons(){
return new TextureRegion[]{Core.atlas.find(name + "-base"), Core.atlas.find(name + "-turret")};
return new TextureRegion[]{Core.atlas.find(name + "-base"), Core.atlas.find(name)};
}
@Override