Function screeps::game::cpu::set_shard_limits
source · pub fn set_shard_limits(limits: &Object) -> Result<(), ErrorCode>
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
).