upgradeController returns OK but does not work



  • I have 4 creep and +1 creep to upgradecontroller. Some of them have 6 works part, the others two have +10 works but, these creeps (+10 works parts) return OK but, they don't upgrade the controller.

    Room is W42N15



  • From the API: "A fully upgraded level 8 controller can't be upgraded over 15 energy units per tick regardless of creeps abilities."

     

    Since the game doesn't know how much energy you're putting into the controller yet when you run upgradeController, it just returns OK (if all the checks it actually can return errors for pass).

    Only when your code has finished running for a given tick is it able to check how much energy you're trying to put in and caps it at 15.