Mech balancing / Less glitchy menu shader

This commit is contained in:
Anuken
2018-09-03 13:33:40 -04:00
parent bb59f45ba6
commit e877310d85
6 changed files with 13 additions and 18 deletions

View File

@@ -37,7 +37,6 @@ public class Vars{
//team of the enemy in waves
public static final Team waveTeam = Team.red;
//discord group URL
public static final String discordURL = "https://discord.gg/mindustry";
public static final String releasesURL = "https://api.github.com/repos/Anuken/Mindustry/releases";
public static final String crashReportURL = "http://mindustry.us.to/report";

View File

@@ -137,7 +137,7 @@ public class Mechs implements ContentList{
boostSpeed = 0.8f;
weapon = Weapons.healBlaster;
maxSpeed = 5f;
armor = 35f;
armor = 20f;
altChargeAlpha = 0.05f;
trailColorTo = Palette.heal;
}
@@ -150,8 +150,6 @@ public class Mechs implements ContentList{
@Override
public void updateAlt(Player player){
//idle regen
player.healBy(0.01f * Timers.delta());
if(player.altHeat >= 0.91f){
Effects.effect(UnitFx.healWave, player);
@@ -197,7 +195,7 @@ public class Mechs implements ContentList{
weapon = Weapons.swarmer;
trailColorTo = Color.valueOf("feb380");
maxSpeed = 3.5f;
armor = 50f;
armor = 45f;
}
@Override

View File

@@ -96,7 +96,7 @@ public class MissileBullets extends BulletList implements ContentList{
}
};
swarm = new MissileBulletType(2.7f, 14, "missile"){
swarm = new MissileBulletType(2.7f, 12, "missile"){
{
bulletWidth = 8f;
bulletHeight = 8f;
@@ -105,7 +105,7 @@ public class MissileBullets extends BulletList implements ContentList{
homingRange = 60f;
keepVelocity = false;
splashDamageRadius = 25f;
splashDamage = 11f;
splashDamage = 10f;
lifetime = 120f;
trailColor = Color.GRAY;
backColor = Palette.bulletYellowBack;

View File

@@ -36,7 +36,7 @@ public class TurretBullets extends BulletList implements ContentList{
@Override
public void load(){
healBullet = new BulletType(5.2f, 19){
healBullet = new BulletType(5.2f, 16){
float healAmount = 21f;
{

View File

@@ -415,9 +415,7 @@ public class Renderer extends RendererModule{
public Vector2 averagePosition(){
avgPosition.setZero();
drawAndInterpolate(playerGroup, p -> p.isLocal, p -> {
avgPosition.add(p.x, p.y);
});
drawAndInterpolate(playerGroup, p -> p.isLocal, p -> avgPosition.add(p.x, p.y));
avgPosition.scl(1f / players.length);
return avgPosition;