You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long Distance Harvesters need a better way to be issued with source, as current sourceId using array index [0] seems to switch between sources in a multi source room, making the harvesters move between source objects. Suggest could simply use full sourceID as a saved memory item for the room.
var source = creep.room.find(FIND_SOURCES)[creep.memory.sourceIndex];
Long Distance Harvesters need a better way to be issued with source, as current sourceId using array index [0] seems to switch between sources in a multi source room, making the harvesters move between source objects. Suggest could simply use full sourceID as a saved memory item for the room.
var source = creep.room.find(FIND_SOURCES)[creep.memory.sourceIndex];
Screeps-Nooby-Code/role.longDistanceHarvester.js
Lines 52 to 64 in 749d816
The text was updated successfully, but these errors were encountered: