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

Turn martial arts manuals into real books #42315

Merged

Conversation

UrbanCMC
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Fix martial arts books requiring no time to read"

Purpose of change

Fixes #42312.

The intelligence requirement and time-to-read values were not inherited from the base manual.
copy-from doesn't seem to work for nested fields like book_data. All missing values are instead set to their default.

Describe the solution

Changes all martial arts books to use the BOOK type, and specify book-related fields directly instead of using book_data

Describe alternatives you've considered

Look at deserialization code to figure out how to make copy-from work with book_data.

Specify time and intelligence directly on each manual.

Testing

Spawn multiple martial arts books using the old JSON. Learn one of them almost instantly.
Load the game with the changed JSON and ensure the books are still read/unread like before.
Read the second book. Each chapter now takes about 10 minutes to read.

@anothersimulacrum anothersimulacrum added the <Bugfix> This is a fix for a bug (or closes open issue) label Jul 20, 2020
@Rivet-the-Zombie Rivet-the-Zombie merged commit 42ca94c into CleverRaven:master Jul 21, 2020
@UrbanCMC UrbanCMC deleted the martialarts-real-books branch July 21, 2020 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Martial Arts Learning Bug
3 participants