Many various bugfixes, more aggressive memory optimization

This commit is contained in:
Anuken
2018-06-26 11:15:23 -04:00
parent 8ec9d95cd2
commit 7a049d64d8
39 changed files with 189 additions and 87 deletions

View File

@@ -18,6 +18,8 @@ public enum Difficulty {
/**Scaling of max time between waves. Default time is 4 minutes.*/
public final float maxTimeScaling;
private String value;
Difficulty(float enemyScaling, float timeScaling, float maxTimeScaling){
this.enemyScaling = enemyScaling;
this.timeScaling = timeScaling;
@@ -26,6 +28,9 @@ public enum Difficulty {
@Override
public String toString() {
return Bundles.get("setting.difficulty." + name());
if(value == null){
value = Bundles.get("setting.difficulty." + name());
}
return value;
}
}

View File

@@ -13,6 +13,8 @@ public enum Team {
public final Color color;
public final int intColor;
public final static Team[] all = values();
Team(Color color){
this.color = color;
intColor = Color.rgba8888(color);