Room.lookAtArea always returns plain terrain
-
Even though there are creeps or walls in the area.
-
I agree, it's buggy: I looked at 4 spaces: [9,10]wall, [9,11]plain, [10,10]source, [10,11]plain/creep and it returned:
{"9": { "10":[{"type":"terrain","terrain":"wall"}], "11":[{"type":"terrain","terrain":"wall"}] <- should return plain }, "10": { "10":[{"type":"source","source":{"id":"5540ec830f7b59f66436fd38","pos":{"x":10,"y":10,"roomName":"E9N6"},"energy":882,"energyCapacity":3000,"ticksToRegeneration":39}},{"type":"terrain","terrain":"wall"}], "11":[{"type":"terrain","terrain":"plain"}] <- creep missing } }
-
I have/had similar problems with lookForAt. Strangely, it does seem to work when using the different method header.
room.lookForAt('creep', 10, 10) <- does not return the correct information room.lookForAt('creep', room.getPositionAt(10,10)) <- seems to returns the creep correctly...