Testing liquids/items in tech tree
This commit is contained in:
@@ -140,6 +140,38 @@ public class TechTree implements ContentList{
|
||||
});
|
||||
|
||||
node(mechanicalDrill, () -> {
|
||||
|
||||
node(Liquids.water, () -> {
|
||||
node(mechanicalPump, () -> {
|
||||
node(conduit, () -> {
|
||||
node(liquidJunction, () -> {
|
||||
node(liquidRouter, () -> {
|
||||
node(liquidTank);
|
||||
|
||||
node(bridgeConduit);
|
||||
|
||||
node(pulseConduit, () -> {
|
||||
node(phaseConduit, () -> {
|
||||
|
||||
});
|
||||
|
||||
node(platedConduit, () -> {
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
node(rotaryPump, () -> {
|
||||
node(thermalPump, () -> {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
node(Items.coal, () -> {
|
||||
node(graphitePress, () -> {
|
||||
node(pneumaticDrill, () -> {
|
||||
node(cultivator, () -> {
|
||||
@@ -204,35 +236,6 @@ public class TechTree implements ContentList{
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
node(mechanicalPump, () -> {
|
||||
node(conduit, () -> {
|
||||
node(liquidJunction, () -> {
|
||||
node(liquidRouter, () -> {
|
||||
node(liquidTank);
|
||||
|
||||
node(bridgeConduit);
|
||||
|
||||
node(pulseConduit, () -> {
|
||||
node(phaseConduit, () -> {
|
||||
|
||||
});
|
||||
|
||||
node(platedConduit, () -> {
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
node(rotaryPump, () -> {
|
||||
node(thermalPump, () -> {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
node(combustionGenerator, () -> {
|
||||
node(powerNode, () -> {
|
||||
node(powerNodeLarge, () -> {
|
||||
@@ -288,6 +291,7 @@ public class TechTree implements ContentList{
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private static TechNode node(UnlockableContent content, Runnable children){
|
||||
|
||||
@@ -112,6 +112,7 @@ public class Weathers implements ContentList{
|
||||
Tmp.r1.grow(padding);
|
||||
Core.camera.bounds(Tmp.r2);
|
||||
int total = (int)(Tmp.r1.area() / density * state.intensity()) / 2;
|
||||
Lines.stroke(0.75f);
|
||||
|
||||
float t = Time.time() / 22f;
|
||||
|
||||
@@ -141,7 +142,6 @@ public class Weathers implements ContentList{
|
||||
Draw.color(Color.royal, Color.white, 0.3f);
|
||||
Draw.alpha(Mathf.slope(life) * state.opacity());
|
||||
|
||||
Lines.stroke(1f);
|
||||
float space = 45f;
|
||||
for(int j : new int[]{-1, 1}){
|
||||
Tmp.v1.trns(90f + j*space, 1f + 5f * life);
|
||||
|
||||
@@ -480,13 +480,11 @@ public class Mods implements Loadable{
|
||||
}catch(Throwable e){
|
||||
Core.app.post(() -> {
|
||||
Log.err("Error loading main script @ for mod @.", main.name(), mod.meta.name);
|
||||
e.printStackTrace();
|
||||
Log.err(e);
|
||||
});
|
||||
}
|
||||
}else{
|
||||
Core.app.post(() -> {
|
||||
Log.err("No main.js found for mod @.", mod.meta.name);
|
||||
});
|
||||
Core.app.post(() -> Log.err("No main.js found for mod @.", mod.meta.name));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -206,15 +206,14 @@ public class Drill extends Block{
|
||||
}
|
||||
|
||||
public class DrillEntity extends TileEntity{
|
||||
float progress;
|
||||
int index;
|
||||
float warmup;
|
||||
float timeDrilled;
|
||||
float lastDrillSpeed;
|
||||
|
||||
int dominantItems;
|
||||
Item dominantItem;
|
||||
public float progress;
|
||||
public int index;
|
||||
public float warmup;
|
||||
public float timeDrilled;
|
||||
public float lastDrillSpeed;
|
||||
|
||||
public int dominantItems;
|
||||
public Item dominantItem;
|
||||
|
||||
@Override
|
||||
public boolean shouldConsume(){
|
||||
|
||||
Reference in New Issue
Block a user