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 perCreep::attack_controller
action. - CONTROLLER_
DOWNGRADE_ RESTORE - Ticks added to a
StructureController::ticks_to_downgrade
timer on each tick that at least one creep successfully usedCreep::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 viaCreep::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 ofStructureController::ticks_to_downgrade
for each controller level. - controller_
levels - Translates the
CONTROLLER_LEVELS
constant.