Balancing
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1052,7 +1052,7 @@ public class Blocks implements ContentList{
|
|||||||
range = 90f;
|
range = 90f;
|
||||||
shootCone = 15f;
|
shootCone = 15f;
|
||||||
ammoUseEffect = Fx.shellEjectSmall;
|
ammoUseEffect = Fx.shellEjectSmall;
|
||||||
health = 110;
|
health = 150;
|
||||||
inaccuracy = 2f;
|
inaccuracy = 2f;
|
||||||
rotatespeed = 10f;
|
rotatespeed = 10f;
|
||||||
}};
|
}};
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class Zones implements ContentList{
|
|||||||
deployCost = ItemStack.with(Items.copper, 60);
|
deployCost = ItemStack.with(Items.copper, 60);
|
||||||
startingItems = ItemStack.with(Items.copper, 50);
|
startingItems = ItemStack.with(Items.copper, 50);
|
||||||
alwaysUnlocked = true;
|
alwaysUnlocked = true;
|
||||||
conditionWave = 5;
|
conditionWave = 10;
|
||||||
launchPeriod = 5;
|
launchPeriod = 5;
|
||||||
rules = () -> new Rules(){{
|
rules = () -> new Rules(){{
|
||||||
waves = true;
|
waves = true;
|
||||||
@@ -63,14 +63,14 @@ public class Zones implements ContentList{
|
|||||||
craters = new Zone("craters", new MapGenerator("craters", 1).dist(0)){{
|
craters = new Zone("craters", new MapGenerator("craters", 1).dist(0)){{
|
||||||
deployCost = ItemStack.with(Items.copper, 200);
|
deployCost = ItemStack.with(Items.copper, 200);
|
||||||
startingItems = ItemStack.with(Items.copper, 200);
|
startingItems = ItemStack.with(Items.copper, 200);
|
||||||
conditionWave = 15;
|
conditionWave = 10;
|
||||||
itemRequirements = ItemStack.with(Items.copper, 2000);
|
itemRequirements = ItemStack.with(Items.copper, 2000);
|
||||||
zoneRequirements = new Zone[]{groundZero};
|
zoneRequirements = new Zone[]{groundZero};
|
||||||
blockRequirements = new Block[]{Blocks.router};
|
blockRequirements = new Block[]{Blocks.router};
|
||||||
rules = () -> new Rules(){{
|
rules = () -> new Rules(){{
|
||||||
waves = true;
|
waves = true;
|
||||||
waveTimer = true;
|
waveTimer = true;
|
||||||
waveSpacing = 60 * 60;
|
waveSpacing = 60 * 60 * 1.5f;
|
||||||
spawns = Array.with(
|
spawns = Array.with(
|
||||||
new SpawnGroup(UnitTypes.dagger){{
|
new SpawnGroup(UnitTypes.dagger){{
|
||||||
unitScaling = 2;
|
unitScaling = 2;
|
||||||
@@ -112,13 +112,13 @@ public class Zones implements ContentList{
|
|||||||
.decor(new Decoration(Blocks.snow, Blocks.sporeCluster, 0.02))){{
|
.decor(new Decoration(Blocks.snow, Blocks.sporeCluster, 0.02))){{
|
||||||
deployCost = ItemStack.with(Items.copper, 500);
|
deployCost = ItemStack.with(Items.copper, 500);
|
||||||
startingItems = ItemStack.with(Items.copper, 400);
|
startingItems = ItemStack.with(Items.copper, 400);
|
||||||
conditionWave = 15;
|
conditionWave = 10;
|
||||||
zoneRequirements = new Zone[]{craters};
|
zoneRequirements = new Zone[]{craters};
|
||||||
itemRequirements = ItemStack.with(Items.copper, 4000, Items.lead, 2000);
|
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;
|
waveSpacing = 60 * 60 * 1.5f;
|
||||||
spawns = Array.with(
|
spawns = Array.with(
|
||||||
new SpawnGroup(UnitTypes.titan){{
|
new SpawnGroup(UnitTypes.titan){{
|
||||||
unitScaling = 3;
|
unitScaling = 3;
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ public class NetServer implements ApplicationListener{
|
|||||||
player.y = prevy;
|
player.y = prevy;
|
||||||
|
|
||||||
//set interpolator target to *new* position so it moves toward it
|
//set interpolator target to *new* position so it moves toward it
|
||||||
player.getInterpolator().read(player.x, player.y, newx, newy, sent, rotation, baseRotation);
|
player.getInterpolator().read(player.x, player.y, newx, newy, rotation, baseRotation);
|
||||||
player.velocity().set(xVelocity, yVelocity); //only for visual calculation purposes, doesn't actually update the player
|
player.velocity().set(xVelocity, yVelocity); //only for visual calculation purposes, doesn't actually update the player
|
||||||
|
|
||||||
connection.lastRecievedClientSnapshot = snapshotID;
|
connection.lastRecievedClientSnapshot = snapshotID;
|
||||||
|
|||||||
@@ -11,10 +11,7 @@ import io.anuke.arc.math.Mathf;
|
|||||||
import io.anuke.arc.math.geom.Geometry;
|
import io.anuke.arc.math.geom.Geometry;
|
||||||
import io.anuke.arc.math.geom.Rectangle;
|
import io.anuke.arc.math.geom.Rectangle;
|
||||||
import io.anuke.arc.math.geom.Vector2;
|
import io.anuke.arc.math.geom.Vector2;
|
||||||
import io.anuke.arc.util.Align;
|
import io.anuke.arc.util.*;
|
||||||
import io.anuke.arc.util.Interval;
|
|
||||||
import io.anuke.arc.util.Pack;
|
|
||||||
import io.anuke.arc.util.Time;
|
|
||||||
import io.anuke.arc.util.pooling.Pools;
|
import io.anuke.arc.util.pooling.Pools;
|
||||||
import io.anuke.mindustry.content.Fx;
|
import io.anuke.mindustry.content.Fx;
|
||||||
import io.anuke.mindustry.content.Mechs;
|
import io.anuke.mindustry.content.Mechs;
|
||||||
@@ -410,6 +407,7 @@ public class Player extends Unit implements BuilderTrait, ShooterTrait{
|
|||||||
Draw.reset();
|
Draw.reset();
|
||||||
Pools.free(layout);
|
Pools.free(layout);
|
||||||
font.getData().setScale(1f);
|
font.getData().setScale(1f);
|
||||||
|
font.setColor(Color.WHITE);
|
||||||
font.setUseIntegerPositions(ints);
|
font.setUseIntegerPositions(ints);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ public class NetworkIO{
|
|||||||
stream.writeInt(player.id);
|
stream.writeInt(player.id);
|
||||||
player.write(stream);
|
player.write(stream);
|
||||||
|
|
||||||
|
world.spawner.write(stream);
|
||||||
SaveIO.getSaveWriter().writeMap(stream);
|
SaveIO.getSaveWriter().writeMap(stream);
|
||||||
|
|
||||||
stream.write(Team.all.length);
|
stream.write(Team.all.length);
|
||||||
@@ -105,6 +106,7 @@ public class NetworkIO{
|
|||||||
world.beginMapLoad();
|
world.beginMapLoad();
|
||||||
|
|
||||||
//map
|
//map
|
||||||
|
world.spawner.read(stream);
|
||||||
SaveIO.getSaveWriter().readMap(stream);
|
SaveIO.getSaveWriter().readMap(stream);
|
||||||
world.setMap(new Map(map, 0, 0));
|
world.setMap(new Map(map, 0, 0));
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public class PausedDialog extends FloatingDialog{
|
|||||||
cont.addButton("$back", this::hide).colspan(2).width(dw*2 + 20f);
|
cont.addButton("$back", this::hide).colspan(2).width(dw*2 + 20f);
|
||||||
|
|
||||||
cont.row();
|
cont.row();
|
||||||
cont.addButton("$database", ui.database::show);
|
cont.addButton("techtree", ui.tech::show);
|
||||||
cont.addButton("$settings", ui.settings::show);
|
cont.addButton("$settings", ui.settings::show);
|
||||||
|
|
||||||
if(!world.isZone()){
|
if(!world.isZone()){
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import io.anuke.mindustry.graphics.Palette;
|
|||||||
import io.anuke.mindustry.graphics.Shaders;
|
import io.anuke.mindustry.graphics.Shaders;
|
||||||
import io.anuke.mindustry.net.Net;
|
import io.anuke.mindustry.net.Net;
|
||||||
import io.anuke.mindustry.type.Item;
|
import io.anuke.mindustry.type.Item;
|
||||||
|
import io.anuke.mindustry.type.ItemType;
|
||||||
import io.anuke.mindustry.world.Tile;
|
import io.anuke.mindustry.world.Tile;
|
||||||
import io.anuke.mindustry.world.meta.BlockFlag;
|
import io.anuke.mindustry.world.meta.BlockFlag;
|
||||||
|
|
||||||
@@ -58,7 +59,7 @@ public class CoreBlock extends StorageBlock{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getMaximumAccepted(Tile tile, Item item){
|
public int getMaximumAccepted(Tile tile, Item item){
|
||||||
return itemCapacity * state.teams.get(tile.getTeam()).cores.size;
|
return item.type == ItemType.material ? itemCapacity * state.teams.get(tile.getTeam()).cores.size : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user