@@ -2146,21 +2146,21 @@ public class Blocks implements ContentList{
|
||||
//region experimental
|
||||
|
||||
blockForge = new BlockForge("block-forge"){{
|
||||
requirements(Category.production, BuildVisibility.debugOnly, with(Items.thorium, 100));
|
||||
requirements(Category.crafting, BuildVisibility.debugOnly, with(Items.thorium, 100));
|
||||
hasPower = true;
|
||||
consumes.power(2f);
|
||||
size = 3;
|
||||
}};
|
||||
|
||||
blockLoader = new BlockLoader("block-loader"){{
|
||||
requirements(Category.production, BuildVisibility.debugOnly, with(Items.thorium, 100));
|
||||
requirements(Category.distribution, BuildVisibility.debugOnly, with(Items.thorium, 100));
|
||||
hasPower = true;
|
||||
consumes.power(2f);
|
||||
size = 3;
|
||||
}};
|
||||
|
||||
blockUnloader = new BlockUnloader("block-unloader"){{
|
||||
requirements(Category.production, BuildVisibility.debugOnly, with(Items.thorium, 100));
|
||||
requirements(Category.distribution, BuildVisibility.debugOnly, with(Items.thorium, 100));
|
||||
hasPower = true;
|
||||
consumes.power(2f);
|
||||
size = 3;
|
||||
|
||||
@@ -40,7 +40,7 @@ public class DatabaseDialog extends BaseDialog{
|
||||
for(int j = 0; j < allContent.length; j++){
|
||||
ContentType type = ContentType.all[j];
|
||||
|
||||
Seq<Content> array = allContent[j].select(c -> c instanceof UnlockableContent && !((UnlockableContent)c).isHidden());
|
||||
Seq<Content> array = allContent[j].select(c -> c instanceof UnlockableContent u && (!u.isHidden() || u.node() != null));
|
||||
if(array.size == 0) continue;
|
||||
|
||||
table.add("@content." + type.name() + ".name").growX().left().color(Pal.accent);
|
||||
|
||||
@@ -43,10 +43,12 @@ public class ConsumeItemDynamic extends Consume{
|
||||
|
||||
private void rebuild(Building tile, Table table){
|
||||
table.clear();
|
||||
int i = 0;
|
||||
|
||||
for(ItemStack stack : items.get(tile)){
|
||||
table.add(new ReqImage(new ItemImage(stack.item.icon(Cicon.medium), stack.amount),
|
||||
() -> tile.items != null && tile.items.has(stack.item, stack.amount))).padRight(8);
|
||||
() -> tile.items != null && tile.items.has(stack.item, stack.amount))).padRight(8).left();
|
||||
if(++i % 4 == 0) table.row();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,10 +34,14 @@ public class ConsumeItems extends Consume{
|
||||
|
||||
@Override
|
||||
public void build(Building tile, Table table){
|
||||
for(ItemStack stack : items){
|
||||
table.add(new ReqImage(new ItemImage(stack.item.icon(Cicon.medium), stack.amount),
|
||||
table.table(c -> {
|
||||
int i = 0;
|
||||
for(ItemStack stack : items){
|
||||
c.add(new ReqImage(new ItemImage(stack.item.icon(Cicon.medium), stack.amount),
|
||||
() -> tile.items != null && tile.items.has(stack.item, stack.amount))).padRight(8);
|
||||
}
|
||||
if(++i % 4 == 0) table.row();
|
||||
}
|
||||
}).left();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user