Misc bugfixes & balancing

This commit is contained in:
Anuken
2022-10-03 18:01:23 -04:00
parent eb1192cdbe
commit bd7a8ff02a
5 changed files with 11 additions and 13 deletions

View File

@@ -175,7 +175,7 @@ public class CommandAI extends AIController{
}
//others have arrived at destination, so this one will too
if(count >= Math.max(2, local.size / 2)){
if(count >= Math.max(3, local.size / 2)){
targetPos = null;
}
}

View File

@@ -2974,7 +2974,7 @@ public class Blocks{
reinforcedContainer = new StorageBlock("reinforced-container"){{
requirements(Category.effect, with(Items.tungsten, 30, Items.graphite, 40));
size = 2;
itemCapacity = 75;
itemCapacity = 80;
scaledHealth = 120;
coreMerge = false;
}};
@@ -4094,7 +4094,7 @@ public class Blocks{
ammo(
//TODO 1 more ammo type, decide on base type
Items.thorium, new ArtilleryBulletType(2.5f, 310, "shell"){{
Items.thorium, new ArtilleryBulletType(2.5f, 350, "shell"){{
hitEffect = new MultiEffect(Fx.titanExplosion, Fx.titanSmoke);
despawnEffect = Fx.none;
knockback = 2f;

View File

@@ -2598,7 +2598,7 @@ public class UnitTypes{
y = -1f;
heatColor = Color.valueOf("f9350f");
cooldownTime = 30f;
bullet = new BasicBulletType(7f, 100){{
bullet = new BasicBulletType(7f, 110){{
sprite = "missile-large";
width = 7.5f;
height = 13f;
@@ -2666,7 +2666,7 @@ public class UnitTypes{
heatColor = Color.valueOf("f9350f");
cooldownTime = 80f;
bullet = new BasicBulletType(8f, 140){{
bullet = new BasicBulletType(8f, 150){{
sprite = "missile-large";
width = 9.5f;
height = 13f;
@@ -3106,7 +3106,7 @@ public class UnitTypes{
drag = 0.1f;
hitSize = 21f;
rotateSpeed = 3f;
health = 2600;
health = 2900;
armor = 7f;
fogRadius = 40f;
stepShake = 0f;
@@ -3158,8 +3158,6 @@ public class UnitTypes{
smoothReloadSpeed = 0.15f;
shootWarmupSpeed = 0.05f;
minWarmup = 0.9f;
shootStatus = StatusEffects.slow;
shootStatusDuration = reload + 1f;
rotationLimit = 70f;
rotateSpeed = 2f;
inaccuracy = 20f;
@@ -3220,7 +3218,7 @@ public class UnitTypes{
maxRange = 6f;
lifetime = 60f * 1.7f;
outlineColor = Pal.darkOutline;
health = 45;
health = 55;
lowAltitude = true;
parts.add(new FlarePart(){{
@@ -3238,7 +3236,7 @@ public class UnitTypes{
mirror = false;
reload = 1f;
shootOnDeath = true;
bullet = new ExplosionBulletType(120f, 25f){{
bullet = new ExplosionBulletType(140f, 25f){{
shootEffect = new MultiEffect(Fx.massiveExplosion, new WrapEffect(Fx.dynamicSpikes, Pal.techBlue, 24f), new WaveEffect(){{
colorFrom = colorTo = Pal.techBlue;
sizeTo = 40f;

View File

@@ -30,7 +30,7 @@ abstract class TankComp implements Posc, Flyingc, Hitboxc, Unitc, ElevationMovec
@Override
public void update(){
//dust
if(walked && !headless && !inFogTo(player.team())){
if((walked || (net.client() && deltaLen() >= 0.01f)) && !headless && !inFogTo(player.team())){
treadEffectTime += Time.delta;
if(treadEffectTime >= 6f && type.treadRects.length > 0){
//first rect should always be at the back

View File

@@ -81,7 +81,7 @@ public class Reconstructor extends UnitBlock{
table.table(Styles.grayPanel, t -> {
t.left();
t.image(upgrade[0].uiIcon).size(40).pad(10f).left();
t.image(upgrade[0].uiIcon).size(40).pad(10f).left().scaling(Scaling.fit);
t.table(info -> {
info.add(upgrade[0].localizedName).left();
info.row();
@@ -96,7 +96,7 @@ public class Reconstructor extends UnitBlock{
table.table(Styles.grayPanel, t -> {
t.left();
t.image(upgrade[1].uiIcon).size(40).pad(10f).right();
t.image(upgrade[1].uiIcon).size(40).pad(10f).right().scaling(Scaling.fit);
t.table(info -> {
info.add(upgrade[1].localizedName).right();
info.row();