Added difficulty grace period scaling
This commit is contained in:
@@ -3,34 +3,21 @@ package io.anuke.mindustry.game;
|
||||
import io.anuke.ucore.util.Bundles;
|
||||
|
||||
public enum Difficulty{
|
||||
easy(4f, 2f, 1f),
|
||||
normal(2f, 1f, 1f),
|
||||
hard(1.5f, 0.5f, 0.75f),
|
||||
insane(0.5f, 0.25f, 0.5f);
|
||||
//purge removed due to new wave system
|
||||
/*purge(0.25f, 0.01f, 0.25f)*/;
|
||||
easy(2f, 1.5f),
|
||||
normal(1f, 1f),
|
||||
hard(0.5f, 0.75f),
|
||||
insane(0.25f, 0.5f);
|
||||
|
||||
/**
|
||||
* The scaling of how many waves it takes for one more enemy of a type to appear.
|
||||
* For example: with enemeyScaling = 2 and the default scaling being 2, it would take 4 waves for
|
||||
* an enemy spawn to go from 1->2 enemies.
|
||||
*/
|
||||
public final float enemyScaling;
|
||||
/**
|
||||
* Multiplier of the time between waves.
|
||||
*/
|
||||
/**Multiplier of the time between waves.*/
|
||||
public final float timeScaling;
|
||||
/**
|
||||
* Scaling of max time between waves. Default time is 4 minutes.
|
||||
*/
|
||||
public final float maxTimeScaling;
|
||||
/**Multiplier of spawner grace period.*/
|
||||
public final float spawnerScaling;
|
||||
|
||||
private String value;
|
||||
|
||||
Difficulty(float enemyScaling, float timeScaling, float maxTimeScaling){
|
||||
this.enemyScaling = enemyScaling;
|
||||
Difficulty(float timeScaling, float spawnerScaling){
|
||||
this.timeScaling = timeScaling;
|
||||
this.maxTimeScaling = maxTimeScaling;
|
||||
this.spawnerScaling = spawnerScaling;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user