Many various bugfixes, more aggressive memory optimization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user