More appropriate non-artifact sacrifice gifts #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ideally this will fix the following issues:
Does NOT touch the spellbook giving code at all, except maybe some whitespace. Tested as best I could, no crashes and it seems to work as intended.
Rarely, elf PCs with awful weapon skills (mainly rangers, seems like) can get REALLY unlucky rolls on weapons (and not get any). This is because the code just clears racial gear that doesn't match the race (so if they get an orcish one it won't convert to elven, just reroll completely), and if you happen to not land on a weapon you can use then you're out of luck. To compensate, the rolls has been upped to 1000 (and a debug message added if it bypasses that). This should only really be a problem with maybe rangers and rogues, anybody who doesn't get too many weapon skills (of weapons possible to get gifted, spear through katana).