Game.map.isRoomAvailable not working
-
Hi, I am in a novice area and am trying to use code to find the best path between some rooms but its not working.
I found
Game.map.findRoute
but it is returning a path that is blocked by the walls that are keeping me inside of the novice area.I then found
Game.map.isRoomAvailable
that says in documentation:"Check if the room is available to move into."
but it is returning true for both rooms inside the novice area and rooms outside the novice area so I can't use it in the routeCallback to try to change the path I get from
Game.map.findRoute
Which shard is affected?
Shard 2What happened?
Game.map.isRoomAvailable("W25N13") === Game.map.isRoomAvailable("W25N14")
What should have happened?
Game.map.isRoomAvailable("W25N13") !== Game.map.isRoomAvailable("W25N14")
How can we reproduce this?
Put the above code into the consoleOptional information:
Replay link
N/APiece of code which shows the bug in action
See above.
-
It is intended.
Game.map.isRoomAvailable
only tells if a room can be accessed in general (i.e. it's open for settlement and not in disabled world area), it says nothing about whether it can be accessed by you personally.