-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Vehicle parts JSON update #34850
Conversation
The awkwardness of copy-from behaving strangely regarding requirements was one of the main reasons I decided this needed to be done. |
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. |
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.