-
Notifications
You must be signed in to change notification settings - Fork 7
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
Racial Skill and Rep Skill both show up #17
Comments
This was never a problem up to 28.1. There was no option to remove racial skills - they just always appeared when they were available. The one bit of config I always had to do was to untick the rep skill for my own race (man or dwarf only) 28.2 broke it by removing the (rep) from the rep skill names
to
I seems that the addon does not like two list entries with the same name Renaming it as a test to
caused the following
|
@ejsmit thanks for the additional info, that makes it easier to understand what is happening. In the data stored in the plugin like
As the plugin is using a non-unique identifier, racial skill and the reputation skill with the same name get mixed up. By adding the I am working on a way so these skills are identified differently, as this would allow a more robust way of identifying skills, remembering which ones are enabled and what the sort order is. |
|
Rivendell is a store skill like Michel Delving. Other races cannot get it from rep. |
Well, this is a simple change in the label to say "Store" rather than "Rep", and I can implement that easily. It will however not change any issues with sorting or the main issue here, unfortunately. |
Fixing the enabled value for skills seem to be relatively easy: just index settings.enabled by Data instead of by Key and it will work. I can now enable and disable skills on demand without any visible sideeffects. The API is unfortunately very limited. As soon as you get either rep or racial, both are added to the travel window because they are searched by name. No easy way to fix that. I can submit a PR if you are interested. |
PRs are always welcome, I would welcome it. Using the ID as a unique identifier is the obvious choice; I am aware of that. I have not done that yet since what is labor intense or hard is not rewriting the code, but testing in the client and checking all the possible edge cases. |
I have committed code that first accomplishes the ability to enable/disable skills in options and all of them being referred by skillD. Meaning racial and reputation skill can be enabled/disabled separately. I still need to check the case where a character has their racial skill acquired but not the shop skill, and the untrained shop skill would show up as described in the original bug report. Once a release happens hopefully tomorrow this should be a significant improvement though. |
Because of the way the API returns learned skills, it seems there is no way of knowing which of the two skills with identical names is learned and which not. Making it so they will both show up, and the user can decide to hide the one their character does not know. This at least is possible with the current code in develop. |
Looks like I'm not the only one with Thorin's Gate issues, but mine's the other way around - on my Dwarf Champion I see both Return to Thorin's Gate (racial) and Return to Thorin's Gate (rep). Obviously I can't learn the reputation one so it's greyed out, but strangely enough I can't remove it from the travel window.
(edit: I just realised something that might be important: this only started happening when I completed the deed to get the racial trait and equipped it. Before then, neither version would show)
It's not a game breaker, but it's quite bothersome nonetheless so I'm hoping you can locate the bug and find it's something that's easily fixed. Please?
Here's what I've tried:
Here's what it looks like in-game:
The text was updated successfully, but these errors were encountered: