Package mindustry.game
Class Rules.TeamRule
java.lang.Object
mindustry.game.Rules.TeamRule
- Enclosing class:
- Rules
A team-specific ruleset.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether, when AI is enabled, ships should be spawned from the core.floatHow much damage blocks (turrets) deal.floatHow much health blocks start with.booleanAI that builds random schematics.floatTier of builder AI.floatMultiplier for building speed.booleanIf true, blocks don't require power or resources.floatExtra spacing added to the no-build zone around the core.booleanIf true, the core is always filled to capacity with all items.booleanIf true, this team has infinite unit ammo.booleanIf true, resources are not consumed when building.booleanEXPERIMENTAL, DO NOT USE: Pre-built base AI.booleanEnables "RTS" unit AI.intMaximum size of attack squads.intMinimum size of attack squads.floatMinimum "advantage" needed for a squad to attack.floatHow fast unit factories build units.floatMultiplier of resources that units take to build.floatHow much damage unit crash damage deals.floatHow much damage units deal.floatHow much health units start with.floatHow fast units can mine. -
Constructor Summary
Constructors -
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. -
fillItems
public boolean fillItemsIf true, the core is always filled to capacity with all items. -
infiniteResources
public boolean infiniteResourcesIf true, resources are not consumed when building. -
infiniteAmmo
public boolean infiniteAmmoIf true, this team has infinite unit ammo. -
prebuildAi
public boolean prebuildAiEXPERIMENTAL, DO NOT USE: Pre-built base AI. Gives the illusion of intelligent design of pre-building an attack base. -
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. Any groups of units above this size will attack targets regardless of weight. -
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) -
unitMineSpeedMultiplier
public float unitMineSpeedMultiplierHow fast units can mine. -
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. -
extraCoreBuildRadius
public float extraCoreBuildRadiusExtra spacing added to the no-build zone around the core.
-
-
Constructor Details
-
TeamRule
public TeamRule()
-