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

Vehicle parts JSON update #34850

Merged
merged 24 commits into from
Nov 29, 2019

Conversation

LetterShapedGlyphs
Copy link
Contributor

@LetterShapedGlyphs LetterShapedGlyphs commented Oct 18, 2019

Summary

SUMMARY: Infrastructure "Remove all of the legacy vehicleparts JSON"

Purpose of change

Updates the JSON for all vehicle parts to not use the old legacy code.
Incidentally:
Fixes #34741 - Swappable storage batteries required welders to install into a storage battery case

Describe the solution

Remove the difficulty field from all vehicle parts. Remove all old tool based flags. Add in the calculated requirements based on the legacy conversion code.

There were also a couple of what I felt were common sense fixes to install/removal/repair times, but honestly the entire lot needs to be checked more thoroughly for balance.

Describe alternatives you've considered

Allow the legacy code to exist

Testing

I have concretely tested the installation of every single part in the mainline, as well as blaze.
Testing the removal of parts is a much more complicated endeavor, and while I am working on it when I can that's a lot of things to actually test in-game instead of just relying on the JSON checker not throwing any errors.

@LetterShapedGlyphs
Copy link
Contributor Author

The awkwardness of copy-from behaving strangely regarding requirements was one of the main reasons I decided this needed to be done.
As with all other flags/variables, values that are present now replace values from their base rather than randomly adding on.

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [JSON] Changes (can be) made in JSON Vehicles Vehicles, parts, mechanics & interactions labels Oct 19, 2019
@snipercup
Copy link
Contributor

I tested this PR. JSON loaded without errors, use the interface to skim over the parts when installing a part, no errors came up. Uninstalled 2 parts without problems.

@ZhilkinSerg ZhilkinSerg merged commit c1f35fe into CleverRaven:master Nov 29, 2019
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) [JSON] Changes (can be) made in JSON Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Un-Swappable Storage Batteries
4 participants