Module control

Source
Expand description

Re-export of all constants related to StructureController behavior and GCL.

Re-exports§

pub use super::extra::CONTROLLER_DOWNGRADE_PROGRESS_RATIO;
pub use super::extra::CONTROLLER_SIGN_MAX_LENGTH;

Constants§

CONTROLLER_ATTACK_BLOCKED_UPGRADE
A controller cannot be attacked or upgraded for this number of ticks after one or more creeps successfully uses Creep::attack_controller against it.
CONTROLLER_CLAIM_DOWNGRADE
Additional decay of the StructureController::ticks_to_downgrade timer caused by each claim part used per Creep::attack_controller action.
CONTROLLER_DOWNGRADE_RESTORE
Ticks added to a StructureController::ticks_to_downgrade timer on each tick that at least one creep successfully used Creep::upgrade_controller.
CONTROLLER_DOWNGRADE_SAFEMODE_THRESHOLD
Ticks under 50% of controller_downgrade max that safe mode becomes unavailable.
CONTROLLER_MAX_UPGRADE_PER_TICK
Maxiumum energy per tick that can be spent on Creep::upgrade_controller at room control level 8 without power creep effects or boosts.
CONTROLLER_NUKE_BLOCKED_UPGRADE
Ticks a controller cannot be attacked or upgraded for after a nuke detonation in the room.
CONTROLLER_RESERVE
Reservation ticks added per claim part per Creep::reserve_controller action.
CONTROLLER_RESERVE_MAX
Maximum ticks of reservation allowed on a controller
GCL_MULTIPLY
Base growth rate of control points needed per global control level (GCL).
GCL_NOVICE
Maximum GCL for players allowed to spawn in a Novice area.
GCL_POW
Exponential growth rate of control points needed per global control level (GCL).
SAFE_MODE_COOLDOWN
Ticks since last safe mode activation before another is allowed.
SAFE_MODE_COST
Cost in Ghodium to add a safe mode activation to a controller via Creep::generate_safe_mode
SAFE_MODE_DURATION
Duration of safe mode once activated, in ticks.
SIGN_PLANNED_AREA
Text added to signs of unowned rooms when a novice or respawn area is planned for the sector.
SYSTEM_USERNAME
Owner username of system-owned structures and creeps.

Functions§

controller_downgrade
Translates the CONTROLLER_DOWNGRADE constant, the maximum value of StructureController::ticks_to_downgrade for each controller level.
controller_levels
Translates the CONTROLLER_LEVELS constant.