Function screeps::game::cpu::set_shard_limits

source ยท
pub fn set_shard_limits(limits: &Object) -> Result<(), ErrorCode>
Available on crate feature mmo only.
Expand description

Sets new shard limits for your script in an Object, with shard names in JsString form as keys and numbers as values. This is the same format accepted by shard_limits. Total amount of CPU should remain equal to the sum of the values of shard_limits. This method can be used only once per 12 hours (CPU_SET_SHARD_LIMITS_COOLDOWN).

Screeps documentation