Zone balancing
This commit is contained in:
@@ -853,7 +853,7 @@ public class Blocks implements ContentList{
|
|||||||
alwaysUnlocked = true;
|
alwaysUnlocked = true;
|
||||||
|
|
||||||
health = 1100;
|
health = 1100;
|
||||||
itemCapacity = 1000;
|
itemCapacity = 2000;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
vault = new Vault("vault"){{
|
vault = new Vault("vault"){{
|
||||||
|
|||||||
@@ -110,18 +110,59 @@ public class Zones implements ContentList{
|
|||||||
frozenForest = new Zone("frozenForest", new MapGenerator("frozenForest", 2)
|
frozenForest = new Zone("frozenForest", new MapGenerator("frozenForest", 2)
|
||||||
.decor(new Decoration(Blocks.snow, Blocks.sporeCluster, 0.02))){{
|
.decor(new Decoration(Blocks.snow, Blocks.sporeCluster, 0.02))){{
|
||||||
alwaysUnlocked = true;
|
alwaysUnlocked = true;
|
||||||
deployCost = ItemStack.with(Items.copper, 300);
|
deployCost = ItemStack.with(Items.copper, 500);
|
||||||
startingItems = ItemStack.with(Items.copper, 200);
|
startingItems = ItemStack.with(Items.copper, 400);
|
||||||
conditionWave = 15;
|
conditionWave = 15;
|
||||||
zoneRequirements = new Zone[]{craters};
|
zoneRequirements = new Zone[]{craters};
|
||||||
blockRequirements = new Block[]{Blocks.copperWall};
|
itemRequirements = ItemStack.with(Items.copper, 4000, Items.lead, 2000);
|
||||||
rules = () -> new Rules(){{
|
rules = () -> new Rules(){{
|
||||||
waves = true;
|
waves = true;
|
||||||
waveTimer = true;
|
waveTimer = true;
|
||||||
waveSpacing = 60 * 60 * 2;
|
waveSpacing = 60 * 60;
|
||||||
spawns = Array.with(
|
spawns = Array.with(
|
||||||
|
new SpawnGroup(UnitTypes.titan){{
|
||||||
|
unitScaling = 3;
|
||||||
|
end = 9;
|
||||||
|
}},
|
||||||
|
|
||||||
new SpawnGroup(UnitTypes.dagger){{
|
new SpawnGroup(UnitTypes.dagger){{
|
||||||
unitScaling = 2;
|
unitScaling = 2;
|
||||||
|
begin = 2;
|
||||||
|
end = 9;
|
||||||
|
}},
|
||||||
|
|
||||||
|
new SpawnGroup(UnitTypes.dagger){{
|
||||||
|
unitScaling = 2;
|
||||||
|
begin = 5;
|
||||||
|
end = 9;
|
||||||
|
}},
|
||||||
|
|
||||||
|
new SpawnGroup(UnitTypes.crawler){{
|
||||||
|
unitScaling = 0.5f;
|
||||||
|
begin = 10;
|
||||||
|
spacing = 10;
|
||||||
|
unitAmount = 5;
|
||||||
|
}},
|
||||||
|
|
||||||
|
new SpawnGroup(UnitTypes.titan){{
|
||||||
|
begin = 11;
|
||||||
|
unitAmount = 2;
|
||||||
|
unitScaling = 2;
|
||||||
|
spacing = 2;
|
||||||
|
}},
|
||||||
|
|
||||||
|
new SpawnGroup(UnitTypes.dagger){{
|
||||||
|
begin = 12;
|
||||||
|
unitAmount = 2;
|
||||||
|
unitScaling = 2;
|
||||||
|
spacing = 2;
|
||||||
|
}},
|
||||||
|
|
||||||
|
new SpawnGroup(UnitTypes.crawler){{
|
||||||
|
unitScaling = 0.5f;
|
||||||
|
begin = 35;
|
||||||
|
spacing = 10;
|
||||||
|
unitAmount = 6;
|
||||||
}}
|
}}
|
||||||
);
|
);
|
||||||
}};
|
}};
|
||||||
|
|||||||
@@ -157,7 +157,8 @@ public class TechTreeDialog extends FloatingDialog{
|
|||||||
button.tapped(() -> moved = false);
|
button.tapped(() -> moved = false);
|
||||||
button.setSize(nodeSize, nodeSize);
|
button.setSize(nodeSize, nodeSize);
|
||||||
button.update(() -> {
|
button.update(() -> {
|
||||||
button.setPosition(node.x + panX + width/2f, node.y + panY + height/2f, Align.center);
|
float offset = (Core.graphics.getHeight() % 2) / 2f;
|
||||||
|
button.setPosition(node.x + panX + width/2f, node.y + panY + height/2f + offset, Align.center);
|
||||||
button.getStyle().up = Core.scene.skin.getDrawable(!locked(node.node) ? "content-background" : "content-background-locked");
|
button.getStyle().up = Core.scene.skin.getDrawable(!locked(node.node) ? "content-background" : "content-background-locked");
|
||||||
((TextureRegionDrawable)button.getStyle().imageUp)
|
((TextureRegionDrawable)button.getStyle().imageUp)
|
||||||
.setRegion(node.visible ? node.node.block.icon(Icon.medium) : Core.atlas.find("icon-tree-locked"));
|
.setRegion(node.visible ? node.node.block.icon(Icon.medium) : Core.atlas.find("icon-tree-locked"));
|
||||||
|
|||||||
Reference in New Issue
Block a user