Build cost/speed rules

This commit is contained in:
Anuken
2019-03-24 18:33:07 -04:00
parent e1f53dfc67
commit bb9573b85a
25 changed files with 67 additions and 12 deletions
@@ -25,6 +25,8 @@ public enum RulePreset{
pvp = true;
enemyCoreBuildRadius = 600f;
respawnTime = 60 * 10;
buildCostMultiplier = 0.5f;
buildSpeedMultiplier = 2f;
}});
private final Supplier<Rules> rules;
@@ -19,6 +19,10 @@ public class Rules{
public boolean pvp;
/**Whether enemy units drop random items on death.*/
public boolean unitDrops;
/**Multiplier for buildings for the player.*/
public float buildCostMultiplier = 1f;
/**Multiplier for building speed.*/
public float buildSpeedMultiplier = 1f;
/**No-build zone around enemy core radius.*/
public float enemyCoreBuildRadius = 400f;
/**Player respawn time in ticks.*/