Closed mkaulfers closed 1 month ago
I'm using the moveTo while providing a routeCallback. It appears when I return Infinity or a float value, creeps still path through those rooms.
moveTo
routeCallback
Infinity
routeCallback(roomName, fromRoomName) { const intelligenceData = Memory.intelligenceData if (!intelligenceData) return 1 if (intelligenceData[roomName]?.hostile) { console.log(`Creep avoiding hostile room ${roomName}`) return Infinity } return 1 }
Should be fixed in the latest release!
I'm using the
moveTo
while providing arouteCallback
. It appears when I returnInfinity
or a float value, creeps still path through those rooms.