Campaign tweaks

This commit is contained in:
Anuken
2020-10-30 11:50:38 -04:00
parent 784a280bef
commit 76ff55d7f1
9 changed files with 40 additions and 23 deletions

View File

@@ -45,6 +45,8 @@ public class SectorInfo{
public boolean attack = false;
/** Wave # from state */
public int wave = 1, winWave = -1;
/** Waves this sector can survive if under attack. Based on wave in info. <0 means uncalculated. */
public int wavesSurvived = -1;
/** Time between waves. */
public float waveSpacing = 60 * 60 * 2;
/** Damage dealt to sector. */

View File

@@ -84,7 +84,7 @@ public class Universe{
if(state.hasSector()){
//update sector light
float light = state.getSector().getLight();
float alpha = Mathf.clamp(Mathf.map(light, 0f, 0.8f, 0.1f, 1f));
float alpha = Mathf.clamp(Mathf.map(light, 0f, 0.8f, 0.2f, 1f));
//assign and map so darkness is not 100% dark
state.rules.ambientLight.a = 1f - alpha;