I noticed in the findPath function the js will return if the endpoint isn't traversable. I'm interested in a state of affairs where a character might interact with a tile that isn't traversable (say, finding a tree with the purpose of cutting it down and get wood, finding a rock to break it and get stone, etc.). Is there any reason I should avoid removing these lines of code if I'm not concerned about whether the endpoint is walkable?
I noticed in the findPath function the js will return if the endpoint isn't traversable. I'm interested in a state of affairs where a character might interact with a tile that isn't traversable (say, finding a tree with the purpose of cutting it down and get wood, finding a rock to break it and get stone, etc.). Is there any reason I should avoid removing these lines of code if I'm not concerned about whether the endpoint is walkable?