*Im not exactly sure if this a bug or a feature...
also I need an editing function fpr this forum
*Im not exactly sure if this a bug or a feature...
also I need an editing function fpr this forum
Hey guys,
Im not exactly if this a bug or a feature but room.find(FIND_EXIT);
returns ALL edge cells instead of the exit cells. Its not a big problem but if it is a bug I reported it
Reproduction steps (I cant believe I have to do this):
Game.spawns.Spawn1.room.find(FIND_EXIT);
try refreshing your browser with every new game
Sorry. The code I use is an altered version of the tutorial code:
function doJob(creep,spawn)
{
if (creep.energy < creep.energyCapacity)
{
var source = creep.pos.findClosest(FIND_SOURCES);
creep.harvest(source);
}
}
but you can also reprocude it by calling from the console:
Game.creeps['<creepername>'].pos.findClosest(FIND_SOURCES);
Hey,
I just saw that the findNearest() method is depreciated and was removed an hour ago but the findClosest() method seems to be gone too. Was this by mistake or intented?