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
Not really compatible with xskills -- Blasksmith skill completely being overwritten. #1
Comments
Thanks for the issue post. This is something I am aware of, and know of a way to fix. However, I currently lack the time to implement. I do plan on getting to it eventually. When I added the existing "compatibility", I'll admit my knowledge about XSkills was lacking because I don't use it. Currently, the compatibility is just where rarity is influenced by the quality. Thus, items XSkills doesn't give the 'quality' attribute are subjected to normal RPGItemRarity, and since RPGItemRarity currently takes precedent in stat modification it overrides XSkills using 'quality' as the 'rarity'. The "fix" I have in mind (in the case anyone is curious or would like to do a pr themselves) would be the following: Instead of having the 'quality' attribute be the 'rarity' attribute when it exists, it would generate 'rarity' normally. If it is lower then the 'quality', it would use the 'quality' instead. Then, ideally it would assign stats based on XSkills modifiers instead of those programmed in RPGItemRarity. It would use RPGItemRarity modifiers for anything XSkills doesn't change. This should solve any issues. One issue with compatibility is XSkills source doesn't appear to be anywhere, so it is a smidgen more difficult then it should be, mostly about stuff concerning stat modifiers. |
Well, if you can't seem to get in contact with xSkills mod author about that, there is always ILSpy that can be used to open the dll and see if the information is in the dll, right? It's not like your modifying or trying to change anything but understand their mod so you can make compatibility with it in your own so it shouldn't be a breech of anything since its an educational method of teaching oneself to understand a program better from a Computer Science perspective. |
I had the same thoughts. I'm going try contacting the mod author once I know exactly what information I need, then try dnspy/Ilspy if necessary. I have used it on VS mods before, and it works fine. |
I have take a look at xskill and xlib, what I have found is that the part where the blacksmith level is used to increase the
This part is the interesting stuff
From what I understand if the skill is >0 then we directly give the item. The behavior without the skill is different because (see below) it tries to give the item using the vintage story API
|
Whenever a person learns via xskills the Blacksmith skill, the rate of getting items that are above common drastically diminishes; however, whenever one does not have the skill, they get at what feels like a very significantly higher chance of getting items to roll greater than common. It's almost like it is not really compatible with xskills' Blacksmith skill. On top of this, when blasksmithing using the Blacksmith skill, the if the blacksmith crafted an item that has a higher quality with better durability, and then drops or uses the item, it is overwritten with RPG Item Rarity and rolls significantly lower stats and gravely lesser quality than what the blacksmith has crafted.
Also posted this here: your forum post and here: your mod page
The text was updated successfully, but these errors were encountered: