Closed ghost closed 11 years ago
Well, it hasn't entirely been taken care of. I don't want every tile to have to record which directions have neighbouring tiles. So a general 'no way out in that direction' message would be useful.
So maybe it would be best if there were a way to set a default message from each tile module, that fit the context of the tile. The message would be printed if someone tried to go to a non-existent tile, but as soon as a new tile is added the message would no longer appear.
Yep, that's what I'm thinking. It could be called something like no_path_message
.
And it's done.
Like Ben said about the cave in his pull request, the impassable undergrowth message won't always make sense. There should be a mechanism for changing it, but it should fall back on a default message.
EDIT: Sorry! The
leave()
function didn't stick in my memory after my first read through the wiki. This issue has already been taken care of.