Class Rules.TeamRule

java.lang.Object
mindustry.game.Rules.TeamRule
Enclosing class:
Rules

public static class Rules.TeamRule extends Object
A team-specific ruleset.
  • Field Details

    • aiCoreSpawn

      public boolean aiCoreSpawn
      Whether, when AI is enabled, ships should be spawned from the core. TODO remove / unnecessary?
    • cheat

      public boolean cheat
      If true, blocks don't require power or resources.
    • infiniteResources

      public boolean infiniteResources
      If true, resources are not consumed when building.
    • infiniteAmmo

      public boolean infiniteAmmo
      If true, this team has infinite unit ammo.
    • buildAi

      public boolean buildAi
      AI that builds random schematics.
    • buildAiTier

      public float buildAiTier
      Tier of builder AI. [0, 1]
    • rtsAi

      public boolean rtsAi
      Enables "RTS" unit AI.
    • rtsMinSquad

      public int rtsMinSquad
      Minimum size of attack squads.
    • rtsMaxSquad

      public int rtsMaxSquad
      Maximum size of attack squads.
    • rtsMinWeight

      public float rtsMinWeight
      Minimum "advantage" needed for a squad to attack. Higher -> more cautious.
    • unitBuildSpeedMultiplier

      public float unitBuildSpeedMultiplier
      How fast unit factories build units.
    • unitDamageMultiplier

      public float unitDamageMultiplier
      How much damage units deal.
    • unitCrashDamageMultiplier

      public float unitCrashDamageMultiplier
      How much damage unit crash damage deals. (Compounds with unitDamageMultiplier)
    • unitCostMultiplier

      public float unitCostMultiplier
      Multiplier of resources that units take to build.
    • unitHealthMultiplier

      public float unitHealthMultiplier
      How much health units start with.
    • blockHealthMultiplier

      public float blockHealthMultiplier
      How much health blocks start with.
    • blockDamageMultiplier

      public float blockDamageMultiplier
      How much damage blocks (turrets) deal.
    • buildSpeedMultiplier

      public float buildSpeedMultiplier
      Multiplier for building speed.
  • Constructor Details

    • TeamRule

      public TeamRule()