Package mindustry.game
Class Rules.TeamRule
java.lang.Object
mindustry.game.Rules.TeamRule
- Enclosing class:
- Rules
A team-specific ruleset.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Whether, when AI is enabled, ships should be spawned from the core.float
How much damage blocks (turrets) deal.float
How much health blocks start with.boolean
AI that builds random schematics.float
Tier of builder AI.float
Multiplier for building speed.boolean
If true, blocks don't require power or resources.boolean
If true, this team has infinite unit ammo.boolean
If true, resources are not consumed when building.boolean
Enables "RTS" unit AI.int
Maximum size of attack squads.int
Minimum size of attack squads.float
Minimum "advantage" needed for a squad to attack.float
How fast unit factories build units.float
Multiplier of resources that units take to build.float
How much damage unit crash damage deals.float
How much damage units deal.float
How much health units start with. -
Constructor Summary
-
Method Summary
-
Field Details
-
aiCoreSpawn
public boolean aiCoreSpawnWhether, when AI is enabled, ships should be spawned from the core. TODO remove / unnecessary? -
cheat
public boolean cheatIf true, blocks don't require power or resources. -
infiniteResources
public boolean infiniteResourcesIf true, resources are not consumed when building. -
infiniteAmmo
public boolean infiniteAmmoIf true, this team has infinite unit ammo. -
buildAi
public boolean buildAiAI that builds random schematics. -
buildAiTier
public float buildAiTierTier of builder AI. [0, 1] -
rtsAi
public boolean rtsAiEnables "RTS" unit AI. -
rtsMinSquad
public int rtsMinSquadMinimum size of attack squads. -
rtsMaxSquad
public int rtsMaxSquadMaximum size of attack squads. -
rtsMinWeight
public float rtsMinWeightMinimum "advantage" needed for a squad to attack. Higher -> more cautious. -
unitBuildSpeedMultiplier
public float unitBuildSpeedMultiplierHow fast unit factories build units. -
unitDamageMultiplier
public float unitDamageMultiplierHow much damage units deal. -
unitCrashDamageMultiplier
public float unitCrashDamageMultiplierHow much damage unit crash damage deals. (Compounds with unitDamageMultiplier) -
unitCostMultiplier
public float unitCostMultiplierMultiplier of resources that units take to build. -
unitHealthMultiplier
public float unitHealthMultiplierHow much health units start with. -
blockHealthMultiplier
public float blockHealthMultiplierHow much health blocks start with. -
blockDamageMultiplier
public float blockDamageMultiplierHow much damage blocks (turrets) deal. -
buildSpeedMultiplier
public float buildSpeedMultiplierMultiplier for building speed.
-
-
Constructor Details
-
TeamRule
public TeamRule()
-