Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. sui-gu-zhi-chu
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    sui-gu-zhi-chu

    @sui-gu-zhi-chu

    3
    Posts
    194
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    sui-gu-zhi-chu Follow

    Posts made by sui-gu-zhi-chu

    • RE: Can't fill all of my extensions

      let me make sure. Is your problem that you want to fill extension first ?

      If yes, i suggest your change your find targets code, a simple change is

      const target = targets[targets.length - 1]; // take the last target, it must not be spawn
      

      and then

      if (creep.transfer(target, RESOURCE_ENERGY) === ERR_NOT_IN_RANGE) {
        creep.moveTo(target);
      }
      
      posted in Help
      sui-gu-zhi-chu
    • RE: How to withdraw energy from spawn and take it to the room controller

      I don't suggest you transfer energy from spawn to controller, because your spawn maybe has not enough energy to respawn died creeps.

      For beginners , The tutorial role.upgrader code is the best code to upgrade controller, if it doesn't meet your needs, it's time to rebuild your code .

      posted in Help
      sui-gu-zhi-chu