-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Book editing #36631
Book editing #36631
Conversation
data/json/items/book/maps.json
Outdated
"s_hunting", | ||
"mil_surplus", | ||
"s_gas" | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The convention is to put an array or an object in a single line if it's short enough. The JSON formatter will complain if you wrap it this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see. i'll change that one back. how short is short enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's 120 characters, but you can just use the json linting tool. Copy a changed file into it, hit "lint", and copy the output back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paste the json in the web linter and it will format it for you. http://dev.narc.ro/cataclysm/format.html
yay it worked this time |
Summary
SUMMARY: None
Purpose of change
I've read through all the files in json/items/book, editing as I go. Fixed a few mistakes. Mostly I've expanded the definitions of variants in misc.json onto multiple lines.
Describe alternatives you've considered
I put double dashes on this line because a similar book had double dashes. I could have changed the other one to single dashes, this seemed better?
I changed this from "this recent edition includes extensive data on what was the latest techniques", I'm not absolutely sure about this one.
Testing
I've copied the edited files over to one of my game installations and checked a few of the books in the debug spawner.