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

Book editing #36631

Merged
merged 4 commits into from
Jan 2, 2020
Merged

Book editing #36631

merged 4 commits into from
Jan 2, 2020

Conversation

k4gi
Copy link
Contributor

@k4gi k4gi commented Jan 2, 2020

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

"description": "This sheaf of papers--dated two weeks before all this started--describes some new chemical formula, and its effects on human subjects. It's stamped "APPROVED"…",

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?

"description": "This classic reference work contains extensive, dense chapters and tables on materials, metrology, toolmaking, gears, threading and more. This recent edition includes extensive data on what were the latest techniques in additive manufacturing. If you need to know how best complete a certain machining operation, the answer lies somewhere in these pages.",

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.

"s_hunting",
"mil_surplus",
"s_gas"
],
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor

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

@k4gi
Copy link
Contributor Author

k4gi commented Jan 2, 2020

yay it worked this time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants