Block icon rework / Dynamic icon generation / Tech tree tweaks
This commit is contained in:
@@ -166,7 +166,7 @@ public class Blocks implements ContentList{
|
||||
}};
|
||||
|
||||
sand = new Floor("sand"){{
|
||||
drops = new ItemStack(Items.sand, 1);
|
||||
itemDrop = Items.sand;
|
||||
minimapColor = Color.valueOf("988a67");
|
||||
hasOres = true;
|
||||
playerUnmineable = true;
|
||||
|
||||
@@ -5,7 +5,7 @@ import io.anuke.mindustry.game.ContentList;
|
||||
import io.anuke.mindustry.type.Liquid;
|
||||
|
||||
public class Liquids implements ContentList{
|
||||
public static Liquid water, slag, oil, cryofluid, acid;
|
||||
public static Liquid water, slag, oil, cryofluid;
|
||||
|
||||
@Override
|
||||
public void load(){
|
||||
@@ -38,10 +38,5 @@ public class Liquids implements ContentList{
|
||||
tier = 1;
|
||||
effect = StatusEffects.freezing;
|
||||
}};
|
||||
|
||||
acid = new Liquid("acid", Color.valueOf("e9f9b3")){{
|
||||
heatCapacity = 0.1f; //don't use acid as coolant, it's bad
|
||||
effect = StatusEffects.corroded;
|
||||
}};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package io.anuke.mindustry.content;
|
||||
|
||||
import io.anuke.mindustry.game.Content;
|
||||
import io.anuke.mindustry.game.ContentList;
|
||||
import io.anuke.mindustry.type.ItemStack;
|
||||
import io.anuke.mindustry.world.Block;
|
||||
|
||||
import static io.anuke.mindustry.type.ItemStack.with;
|
||||
|
||||
@@ -11,7 +11,7 @@ public class TechTree implements ContentList{
|
||||
|
||||
@Override
|
||||
public void load(){
|
||||
root = new TechNode(Items.copper, with(),
|
||||
root = new TechNode(null, with(),
|
||||
new TechNode(Blocks.copperWall, with(Items.copper, 100),
|
||||
new TechNode(Blocks.copperWallLarge, with(Items.copper, 100))
|
||||
),
|
||||
@@ -26,26 +26,23 @@ public class TechTree implements ContentList{
|
||||
new TechNode(Blocks.itemBridge, with(Items.copper, 10))
|
||||
),
|
||||
|
||||
new TechNode(Items.lead, with(),
|
||||
new TechNode(Items.metaglass, with(),
|
||||
new TechNode(Blocks.conduit, with(Items.metaglass, 10)),
|
||||
new TechNode(Blocks.liquidJunction, with(Items.metaglass, 10)),
|
||||
new TechNode(Blocks.liquidRouter, with(Items.metaglass, 10),
|
||||
new TechNode(Blocks.liquidTank, with(Items.metaglass, 10))
|
||||
)
|
||||
new TechNode(Blocks.conduit, with(Items.metaglass, 10),
|
||||
new TechNode(Blocks.liquidJunction, with(Items.metaglass, 10)),
|
||||
new TechNode(Blocks.liquidRouter, with(Items.metaglass, 10),
|
||||
new TechNode(Blocks.liquidTank, with(Items.metaglass, 10))
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public static class TechNode{
|
||||
public final Content content;
|
||||
public final Block block;
|
||||
public final ItemStack[] requirements;
|
||||
public final TechNode[] children;
|
||||
public TechNode parent;
|
||||
|
||||
TechNode(Content content, ItemStack[] requirements, TechNode... children){
|
||||
this.content = content;
|
||||
TechNode(Block block, ItemStack[] requirements, TechNode... children){
|
||||
this.block = block;
|
||||
this.requirements = requirements;
|
||||
this.children = children;
|
||||
for(TechNode node : children){
|
||||
|
||||
Reference in New Issue
Block a user