Misc balance / Fixed cross-planet sector 'lock'
This commit is contained in:
@@ -2459,8 +2459,8 @@ public class UnitTypes{
|
|||||||
treadPullOffset = 3;
|
treadPullOffset = 3;
|
||||||
speed = 0.75f;
|
speed = 0.75f;
|
||||||
rotateSpeed = 3.5f;
|
rotateSpeed = 3.5f;
|
||||||
health = 840;
|
health = 850;
|
||||||
armor = 5f;
|
armor = 6f;
|
||||||
itemCapacity = 0;
|
itemCapacity = 0;
|
||||||
treadRects = new Rect[]{new Rect(12 - 32f, 7 - 32f, 14, 51)};
|
treadRects = new Rect[]{new Rect(12 - 32f, 7 - 32f, 14, 51)};
|
||||||
researchCostMultiplier = 0f;
|
researchCostMultiplier = 0f;
|
||||||
@@ -2471,7 +2471,7 @@ public class UnitTypes{
|
|||||||
shootY = 4.5f;
|
shootY = 4.5f;
|
||||||
recoil = 1f;
|
recoil = 1f;
|
||||||
rotate = true;
|
rotate = true;
|
||||||
rotateSpeed = 1.7f;
|
rotateSpeed = 2.2f;
|
||||||
mirror = false;
|
mirror = false;
|
||||||
x = 0f;
|
x = 0f;
|
||||||
y = -0.75f;
|
y = -0.75f;
|
||||||
@@ -2653,7 +2653,7 @@ public class UnitTypes{
|
|||||||
weapons.add(new Weapon("vanquish-weapon"){{
|
weapons.add(new Weapon("vanquish-weapon"){{
|
||||||
shootSound = Sounds.mediumCannon;
|
shootSound = Sounds.mediumCannon;
|
||||||
layerOffset = 0.0001f;
|
layerOffset = 0.0001f;
|
||||||
reload = 110f;
|
reload = 90f;
|
||||||
shootY = 71f / 4f;
|
shootY = 71f / 4f;
|
||||||
shake = 5f;
|
shake = 5f;
|
||||||
recoil = 4f;
|
recoil = 4f;
|
||||||
@@ -3534,7 +3534,7 @@ public class UnitTypes{
|
|||||||
|
|
||||||
accel = 0.09f;
|
accel = 0.09f;
|
||||||
health = 600f;
|
health = 600f;
|
||||||
armor = 3f;
|
armor = 1f;
|
||||||
hitSize = 11f;
|
hitSize = 11f;
|
||||||
engineOffset = 7f;
|
engineOffset = 7f;
|
||||||
engineSize = 2f;
|
engineSize = 2f;
|
||||||
@@ -3542,9 +3542,6 @@ public class UnitTypes{
|
|||||||
useEngineElevation = false;
|
useEngineElevation = false;
|
||||||
researchCostMultiplier = 0f;
|
researchCostMultiplier = 0f;
|
||||||
|
|
||||||
//does this look better?
|
|
||||||
//engineColor = Pal.sapBullet;
|
|
||||||
|
|
||||||
abilities.add(new MoveEffectAbility(0f, -7f, Pal.sapBulletBack, Fx.missileTrailShort, 4f){{
|
abilities.add(new MoveEffectAbility(0f, -7f, Pal.sapBulletBack, Fx.missileTrailShort, 4f){{
|
||||||
teamColor = true;
|
teamColor = true;
|
||||||
}});
|
}});
|
||||||
@@ -3574,7 +3571,7 @@ public class UnitTypes{
|
|||||||
|
|
||||||
shoot = new ShootSpread(2, 11f);
|
shoot = new ShootSpread(2, 11f);
|
||||||
|
|
||||||
bullet = new BasicBulletType(5f, 20){{
|
bullet = new BasicBulletType(5f, 18){{
|
||||||
homingPower = 0.19f;
|
homingPower = 0.19f;
|
||||||
homingDelay = 4f;
|
homingDelay = 4f;
|
||||||
width = 7f;
|
width = 7f;
|
||||||
|
|||||||
@@ -146,10 +146,16 @@ public class Universe{
|
|||||||
turn++;
|
turn++;
|
||||||
|
|
||||||
int newSecondsPassed = (int)(turnDuration / 60);
|
int newSecondsPassed = (int)(turnDuration / 60);
|
||||||
|
Planet current = state.getPlanet();
|
||||||
|
|
||||||
//update relevant sectors
|
//update relevant sectors
|
||||||
for(Planet planet : content.planets()){
|
for(Planet planet : content.planets()){
|
||||||
|
|
||||||
|
//planets with different wave simulation status are not updated
|
||||||
|
if(current != null && current.allowWaveSimulation != planet.allowWaveSimulation){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
//first pass: clear import stats
|
//first pass: clear import stats
|
||||||
for(Sector sector : planet.sectors){
|
for(Sector sector : planet.sectors){
|
||||||
if(sector.hasBase() && !sector.isBeingPlayed()){
|
if(sector.hasBase() && !sector.isBeingPlayed()){
|
||||||
|
|||||||
@@ -1179,7 +1179,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
|
|
||||||
//make sure there are no under-attack sectors (other than this one)
|
//make sure there are no under-attack sectors (other than this one)
|
||||||
for(Planet planet : content.planets()){
|
for(Planet planet : content.planets()){
|
||||||
if(!planet.allowWaveSimulation && !debugSelect){
|
if(!planet.allowWaveSimulation && !debugSelect && planet.allowWaveSimulation == sector.planet.allowWaveSimulation){
|
||||||
//if there are two or more attacked sectors... something went wrong, don't show the dialog to prevent softlock
|
//if there are two or more attacked sectors... something went wrong, don't show the dialog to prevent softlock
|
||||||
Sector attacked = planet.sectors.find(s -> s.isAttacked() && s != sector);
|
Sector attacked = planet.sectors.find(s -> s.isAttacked() && s != sector);
|
||||||
if(attacked != null && planet.sectors.count(s -> s.isAttacked()) < 2){
|
if(attacked != null && planet.sectors.count(s -> s.isAttacked()) < 2){
|
||||||
|
|||||||
Reference in New Issue
Block a user