Memory Help


  • int_max

    So in my code it sets creep.memory.role when the creeps spawns.
    Thing is as soon as my creeps spawns it's role is changed to 'harvester'.I have checked my code for all role words using Webstorm find feature and there is nothing in my code that could've done it.It has happened just recently.

    I'm not sure what topic to put this as. Also this only happens for default branch which is linked to github

    Thanks,
    -starwar15432


  • int_max

    I ran other branch and resynced from github worked for about 5 ticks then broke again.



  • Seems like u do smth like:

    if(creep.memory.role = 'harvester') // =/==
    doHarvester(creep);