Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nowhere #111

Open
KVonGit opened this issue Dec 6, 2024 · 1 comment
Open

Nowhere #111

KVonGit opened this issue Dec 6, 2024 · 1 comment

Comments

@KVonGit
Copy link
Contributor

KVonGit commented Dec 6, 2024

When hyperlinks are enabled and the location has no exit, it prints "nowhere"


PR coming very soon. (I'm not sure my fix is the correct way to handle it.)

@KVonGit
Copy link
Contributor Author

KVonGit commented Dec 6, 2024

QuestJS/lib/item-links.js

Lines 217 to 221 in f9680fb

tp.text_processors.exitsHere = function(arr, params) {
itemLinks.disableAllLinks('exit-link')
const list = w[player.loc].getExitDirs().map(el => '<span class="exit-link" onclick="runCmd(\'' + el + '\')">' + el + '</span>')
return formatList(list, {lastSep:lang.list_or, nothing:lang.list_nowhere});
}

This is what I changed to fix it:

  //return formatList(list, {lastSep:lang.list_or, nothing:lang.list_nowhere});
  return formatList(list, {lastSep:lang.list_or, nothing:''});

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

No branches or pull requests

1 participant