Weird behaviour when observing unavailable rooms



  • As one of my rooms is close to an area that has not yet been opened ("Not available"), I "accidentally" used an observer to look into one of these rooms.

    It seems like basic functionality such as room.find(FIND_SOURCES) works as expected; I can enumerate sources, the controller, minerals, and so on.

    However, when using room.lookForAtArea(LOOK_TERRAIN), ALL of the tiles return with type = "wall".

    This does not appear to be documented, and seems a bit weird to me.
    If the room is "not available", it should not be observable in the first place.
    Or there should be some flags / functions somewhere to CHECK if it is available, so that I can ignore these strange results.

    Or am I missing something?!



  • Okay, I just now realized that "Game.map.isRoomProtected" returns true for these rooms.

    Maybe the description/documentation should be updated to include this, as it just talks about the newbie walls.