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
Currently, when the traveler is unable to find a complete path to the destination, it shows the path in red. I think it would be useful to be able to get this information via travelTo's return value, or a separate method that we could add to the creep's prototype.
The text was updated successfully, but these errors were encountered:
Oh, except you have to access it in a bit of a roundabout way, by passing an object as the returnData option that traveller will then update with extra information about the path:
let returnData = {};
creep.travelTo(..., { returnData });
if (returnData.pathfinderReturn.incomplete) {
// ...
}
It would be nicer if the incomplete property was at least available as returnData.incomplete.
Currently, when the traveler is unable to find a complete path to the destination, it shows the path in red. I think it would be useful to be able to get this information via
travelTo
's return value, or a separate method that we could add to the creep's prototype.The text was updated successfully, but these errors were encountered: