Misc bugfixes / New zone

This commit is contained in:
Anuken
2019-02-02 10:14:16 -05:00
parent 59a68ee981
commit e21a3347ac
13 changed files with 1526 additions and 1490 deletions

View File

@@ -277,18 +277,18 @@ public class Blocks implements ContentList{
}};
ignarock = new Floor("ignarock"){{
blendGroup = sand;
}};
hotrock = new Floor("hotrock"){{
heat = 0.5f;
blendGroup = ignarock;
blendGroup = sand;
}};
magmarock = new Floor("magmarock"){{
heat = 0.75f;
updateEffect = Fx.magmasmoke;
blendGroup = ignarock;
blendGroup = sand;
}};
//endregion
@@ -457,6 +457,18 @@ public class Blocks implements ContentList{
consumes.liquid(Liquids.slag, 0.3f);
}};
cultivator = new Cultivator("cultivator"){{
requirements(Category.crafting, ItemStack.with(Items.copper, 20, Items.lead, 50, Items.silicon, 20));
output = Items.biomatter;
craftTime = 200;
size = 2;
hasLiquids = true;
hasPower = true;
consumes.power(0.80f);
consumes.liquid(Liquids.water, 0.15f);
}};
biomatterCompressor = new Compressor("biomattercompressor"){{
requirements(Category.crafting, ItemStack.with(Items.lead, 70, Items.silicon, 60));
liquidCapacity = 60f;
@@ -951,18 +963,6 @@ public class Blocks implements ContentList{
consumes.liquid(Liquids.water, 0.15f);
}};
cultivator = new Cultivator("cultivator"){{
requirements(Category.production, ItemStack.with(Items.copper, 20, Items.lead, 50, Items.silicon, 20));
output = Items.biomatter;
craftTime = 200;
size = 2;
hasLiquids = true;
hasPower = true;
consumes.power(0.80f);
consumes.liquid(Liquids.water, 0.15f);
}};
//endregion
//region storage

View File

@@ -387,16 +387,66 @@ public class Zones implements ContentList{
}};
}};
desolateRift = new Zone("desolateRift", new MapGenerator("desolateRift")){{
deployCost = ItemStack.with(Items.copper, 300);
startingItems = ItemStack.with(Items.copper, 200);
conditionWave = 15;
desolateRift = new Zone("desolateRift", new MapGenerator("desolateRift").dist(2f)){{
deployCost = ItemStack.with(Items.copper, 2000);
startingItems = ItemStack.with(Items.copper, 1500);
itemRequirements = ItemStack.with(Items.copper, 8000, Items.metaglass, 2000, Items.graphite, 3000);
conditionWave = 10;
launchPeriod = 20;
zoneRequirements = new Zone[]{stainedMountains};
blockRequirements = new Block[]{Blocks.copperWall};
blockRequirements = new Block[]{Blocks.thermalGenerator};
rules = () -> new Rules(){{
waves = true;
waveTimer = true;
waveSpacing = 60 * 80;
waveSpacing = 30 * 60;
spawns = Array.with(
new SpawnGroup(UnitTypes.crawler){{
unitScaling = 1;
spacing = 2;
end = 10;
}},
new SpawnGroup(UnitTypes.dagger){{
begin = 2;
spacing = 2;
unitScaling = 2;
}},
new SpawnGroup(UnitTypes.titan){{
begin = 10;
unitScaling = 1f;
unitAmount = 3;
spacing = 3;
}},
new SpawnGroup(UnitTypes.fortress){{
begin = 5;
unitScaling = 1;
spacing = 5;
unitAmount = 1;
}},
new SpawnGroup(UnitTypes.fortress){{
begin = 13;
unitScaling = 1;
spacing = 4;
unitAmount = 1;
}},
new SpawnGroup(UnitTypes.dagger){{
begin = 11;
spacing = 2;
unitScaling = 2;
unitAmount = 2;
}},
new SpawnGroup(UnitTypes.crawler){{
unitScaling = 1;
spacing = 2;
unitAmount = 4;
begin = 13;
}}
);
}};
}};