Core tiers
This commit is contained in:
@@ -64,7 +64,7 @@ public class Blocks implements ContentList{
|
||||
mechanicalDrill, pneumaticDrill, laserDrill, blastDrill, plasmaDrill, waterExtractor, oilExtractor, cultivator,
|
||||
|
||||
//storage
|
||||
core, coreBastion, vault, container, unloader, launchPad,
|
||||
coreShard, coreFoundation, coreNucleus, vault, container, unloader, launchPad,
|
||||
|
||||
//turrets
|
||||
duo, hail, arc, wave, lancer, swarmer, salvo, fuse, ripple, cyclone, spectre, meltdown,
|
||||
@@ -915,12 +915,29 @@ public class Blocks implements ContentList{
|
||||
//endregion
|
||||
//region storage
|
||||
|
||||
core = new CoreBlock("core"){{
|
||||
coreShard = new CoreBlock("core-shard"){{
|
||||
requirements(Category.effect, () -> false, ItemStack.with(Items.titanium, 2000));
|
||||
alwaysUnlocked = true;
|
||||
|
||||
health = 1100;
|
||||
itemCapacity = 2000;
|
||||
size = 3;
|
||||
}};
|
||||
|
||||
coreFoundation = new CoreBlock("core-foundation"){{
|
||||
requirements(Category.effect, () -> false, ItemStack.with(Items.titanium, 4000, Items.silicon, 2000));
|
||||
|
||||
health = 2000;
|
||||
itemCapacity = 4000;
|
||||
size = 4;
|
||||
}};
|
||||
|
||||
coreNucleus = new CoreBlock("core-nucleus"){{
|
||||
requirements(Category.effect, () -> false, ItemStack.with(Items.titanium, 8000, Items.silicon, 4000, Items.surgealloy, 2000));
|
||||
|
||||
health = 3000;
|
||||
itemCapacity = 6000;
|
||||
size = 5;
|
||||
}};
|
||||
|
||||
vault = new Vault("vault"){{
|
||||
|
||||
@@ -12,7 +12,7 @@ public class TechTree implements ContentList{
|
||||
|
||||
@Override
|
||||
public void load(){
|
||||
root = node(core, () -> {
|
||||
root = node(coreShard, () -> {
|
||||
|
||||
node(conveyor, () -> {
|
||||
node(launchPad, () -> {
|
||||
|
||||
@@ -94,7 +94,7 @@ public class MapIO{
|
||||
}
|
||||
}
|
||||
|
||||
data.write(x, y, DataPosition.wall, Blocks.core.id);
|
||||
data.write(x, y, DataPosition.wall, Blocks.coreShard.id);
|
||||
data.write(x, y, DataPosition.rotationTeam, Pack.byteByte((byte)0, (byte)Team.blue.ordinal()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ public class MapGenerator extends Generator{
|
||||
}
|
||||
|
||||
//TODO set specific core block?
|
||||
tiles[core.x][core.y].setBlock(Blocks.core, defaultTeam);
|
||||
tiles[core.x][core.y].setBlock(Blocks.coreShard, defaultTeam);
|
||||
|
||||
world.prepareTiles(tiles);
|
||||
world.setMap(map);
|
||||
|
||||
@@ -24,7 +24,7 @@ public abstract class RandomGenerator extends Generator{
|
||||
}
|
||||
}
|
||||
|
||||
tiles[width/2][height/2].setBlock(Blocks.core, Team.blue);
|
||||
tiles[width/2][height/2].setBlock(Blocks.coreShard, Team.blue);
|
||||
tiles[width/2][height/2 - 6].setBlock(Blocks.launchPad, Team.blue);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ public class CoreBlock extends StorageBlock{
|
||||
solid = true;
|
||||
update = true;
|
||||
hasItems = true;
|
||||
size = 3;
|
||||
flags = EnumSet.of(BlockFlag.resupplyPoint, BlockFlag.target);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user