bugfixes etc etc etc
This commit is contained in:
@@ -22,20 +22,20 @@ public class Zones implements ContentList{
|
|||||||
baseLaunchCost = ItemStack.with(Items.copper, -50);
|
baseLaunchCost = ItemStack.with(Items.copper, -50);
|
||||||
startingItems = ItemStack.list(Items.copper, 50);
|
startingItems = ItemStack.list(Items.copper, 50);
|
||||||
alwaysUnlocked = true;
|
alwaysUnlocked = true;
|
||||||
conditionWave = 10;
|
conditionWave = 5;
|
||||||
launchPeriod = 5;
|
launchPeriod = 5;
|
||||||
resources = new Item[]{Items.copper, Items.scrap};
|
resources = new Item[]{Items.copper, Items.scrap};
|
||||||
rules = () -> new Rules(){{
|
rules = () -> new Rules(){{
|
||||||
waves = true;
|
waves = true;
|
||||||
waveTimer = true;
|
waveTimer = true;
|
||||||
waveSpacing = 60 * 60 * 2; //2 mins
|
waveSpacing = 60 * 60 * 2;
|
||||||
spawns = Array.with(
|
spawns = Array.with(
|
||||||
new SpawnGroup(UnitTypes.dagger){{
|
new SpawnGroup(UnitTypes.dagger){{
|
||||||
unitScaling = 1.5f;
|
unitScaling = 1.5f;
|
||||||
}},
|
}},
|
||||||
|
|
||||||
new SpawnGroup(UnitTypes.dagger){{
|
new SpawnGroup(UnitTypes.dagger){{
|
||||||
begin = 10;
|
begin = 5;
|
||||||
unitScaling = 2;
|
unitScaling = 2;
|
||||||
}},
|
}},
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ public class Logic implements ApplicationListener{
|
|||||||
Time.runTask(30f, () -> {
|
Time.runTask(30f, () -> {
|
||||||
for(Tile tile : new ObjectSetIterator<>(state.teams.get(defaultTeam).cores)){
|
for(Tile tile : new ObjectSetIterator<>(state.teams.get(defaultTeam).cores)){
|
||||||
for(Item item : content.items()){
|
for(Item item : content.items()){
|
||||||
data.addItem(item, tile.entity.items.get(item) / playerGroup.size());
|
data.addItem(item, tile.entity.items.get(item));
|
||||||
}
|
}
|
||||||
world.removeBlock(tile);
|
world.removeBlock(tile);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ public class Zone extends UnlockableContent{
|
|||||||
for(ItemStack other : startingItems){
|
for(ItemStack other : startingItems){
|
||||||
if(other.item == out.item){
|
if(other.item == out.item){
|
||||||
out.amount += other.amount;
|
out.amount += other.amount;
|
||||||
|
out.amount = Math.max(out.amount, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stacks.add(out);
|
stacks.add(out);
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ public class Conveyor extends Block{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(entity.convey.size * itemSpace < 0.9f){
|
if(entity.convey.size * itemSpace < 0.9f){
|
||||||
unit.velocity().add((tx * speed + centerx) * entity.delta(), (ty * speed + centery) * entity.delta());
|
unit.applyImpulse((tx * speed + centerx) * entity.delta(), (ty * speed + centery) * entity.delta());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ public class PowerNode extends PowerBlock{
|
|||||||
//Lines.stroke(2f);
|
//Lines.stroke(2f);
|
||||||
//Lines.line(x1, y1, x2, y2);
|
//Lines.line(x1, y1, x2, y2);
|
||||||
|
|
||||||
Shapes.laser("laser", "laser-end", x1, y1, x2, y2, 0.5f);
|
Shapes.laser("laser", "laser-end", x1, y1, x2, y2, 0.6f);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user