New rule modifiers

This commit is contained in:
Anuken
2019-04-04 00:03:19 -04:00
parent 6de4af727b
commit 148f272500
28 changed files with 91 additions and 15 deletions

View File

@@ -28,6 +28,9 @@ public enum RulePreset{
respawnTime = 60 * 10;
buildCostMultiplier = 0.5f;
buildSpeedMultiplier = 2f;
playerDamageMultiplier = 0.5f;
unitBuildSpeedMultiplier = 3f;
unitHealthMultiplier = 2f;
}});
private final Supplier<Rules> rules;

View File

@@ -19,6 +19,12 @@ public class Rules{
public boolean pvp;
/**Whether enemy units drop random items on death.*/
public boolean unitDrops;
/**How fast unit pads build units.*/
public float unitBuildSpeedMultiplier = 1f;
/**How much health units start with.*/
public float unitHealthMultiplier = 1f;
/**How much damage player mechs deal.*/
public float playerDamageMultiplier = 1f;
/**Multiplier for buildings for the player.*/
public float buildCostMultiplier = 1f;
/**Multiplier for building speed.*/