feat(UI): always show book's skill cap even if the PC has passed it #5791
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.
Checklist
Required
main
so it won't cause conflict when updatingmain
branch later.Purpose of change
Currently, books stop showing how far they can teach once they can no longer teach the PC. They're still useful for teaching NPCs, though; after that point, only the
R
ead command will show the skill they can teach to.This synchronizes that functionality for the sake of convenience.
Describe the solution
I made a few very minor edits to
item::book_info()
.Describe alternatives you've considered
N/A. This was pretty simple.
Testing
Spawn a book → look at the book → set your skill level higher than the book's cap → look at the book again.
Additional context