Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. squisher
    3. Posts
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Posts made by squisher

    • bug in src/game/creeps.js withdrawing from power spawn

      in https://raw.githubusercontent.com/screeps/engine/c318a920e3c04c1285c885e328d89ef748d7004c/src/game/creeps.js line 608 I think

       

                  if(data(target.id)[resourceType] || data(target.id)[resourceType] < amount) {
                      return C.ERR_NOT_ENOUGH_RESOURCES;
                  }

      should read

       

                  if(!data(target.id)[resourceType] || data(target.id)[resourceType] < amount) {
                      return C.ERR_NOT_ENOUGH_RESOURCES;
                  }
      posted in Technical Issues and Bugs
      squisher