Skip to content

Conversation

@clementop
Copy link
Contributor

The travel command allows players to travel to named destinations rather than explicit coordinates.

The TravelLocations#find method just takes the simple approach of finding the first location with a case-insensitive substring match. So if you want to go to Ardougne, just typing ard will actually take you to the Wizard's Tower since that's first in the list.

Could potentially make it more complicated by asking for clarification for multi-matches, but this is fine for now.

Copy link
Contributor

@TheBlackParade TheBlackParade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks! :shipit:

@TheBlackParade TheBlackParade merged commit acfb399 into runejs:master Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants