Function screeps::constants::control::controller_downgrade
source ยท pub const fn controller_downgrade(rcl: u8) -> Option<u32>
Expand description
Translates the CONTROLLER_DOWNGRADE
constant, the maximum value of
StructureController::ticks_to_downgrade
for each controller level.
Note that rooms that upgrade or downgrade in level start at half of this maximum value for their new level, and that a controller will not upgrade to the next level unless filled completely.
Returns Some
for levels 1-8, None
for all others.