-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Wheel hub assemblies and wheel adjustments #33520
Wheel hub assemblies and wheel adjustments #33520
Conversation
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: https://discourse.cataclysmdda.org/t/i-need-mechanincs-4-to-swap-a-tire-aka-wheel-rework/21138/8 |
Getting close to being done. I managed to move steering from steerable wheels to steerable wheel mounts. In the end it was just a small one line edit. Vehicle efficiency test is a problem since the new parts change the vehicle weights slightly. |
There's a "test" just above the efficiency test that generates median values for you, whenever we know a test is going to shift these values it's ok to just update them, though we'll want to eyeball the results to make sure they aren't unexpectedly impactful. |
All checks green and I think everything works. |
data/json/vehicleparts/wheel.json
Outdated
"using": [ [ "welding_standard", 10 ] ] | ||
}, | ||
"removal": { | ||
"skills": [ [ "mechanics", 4 ] ], |
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 mechanics 4 is a far too high requirement for a simple sawing off a hub.
data/json/vehicleparts/wheel.json
Outdated
}, | ||
"removal": { | ||
"skills": [ [ "mechanics", 4 ] ], | ||
"time": "45 m", |
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.
Too much, IMO. Maybe 15 minutes?
data/json/vehicleparts/wheel.json
Outdated
}, | ||
"removal": { | ||
"skills": [ [ "mechanics", 5 ] ], | ||
"time": "60 m", |
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 same for skills and time requirements.
Moved the metal wheel to obsolete (it is not used anywhere in json, mods or c++).
|
That failed test is not related to this pull I think. |
When loading one of savegames:
|
Summary
SUMMARY: Balance "Vehicle wheels require vehicle mounts"
Purpose of change
The skill requirements for replacing a wheel is too high. (note: Actual remove and install, not the less known "change tire")
The requirements to install a wheel on new spot is too low.
Repairing wheel with welder makes no sense.
Describe the solution
TL;DR:
Now the wheel mount is separate part. the hub assembly.
Doing anything to the hub assembly requires few skill levels. Installing requires welder while removing requires hacksaw. Repairing requires welder.
Wheel mounts come in three variants:
The wheel is bolted on the hub assembly. In practice this just means that the wheel part can be installed only if there is already a hub assembly of appropriate size in the spot.
Additionally each wheel mount has steerable variant. It is identical except for the steerable flag on it. Wheels attached on these mounts will act as steerable. (old steerable wheels still work)
You can remove and install wheels on hub assemblies without any skills.
Casters and tricycle wheels don't need mounts.
Wheel repairing has also been adjusted. Wheels are repaired with glue and plastic.
Repairing skill requirements have also been adjusted a bit. Mostly they are similar to before.
Wheel install/remove/repair times are now (used to be 1h install, 30m remove 25m repair), :
Additional infrastructure changes:
"NEEDS_JACKING"
on the part makes it require jacking (used to be hardcoded for wheels).Describe alternatives you've considered
Additional context
The install/remove/repair values were not defined in the json before this. The code has some legacy values for them that were used.
I was going to put the time/repair adjustments separately but since they were not defined in json I had to add some definition for them in json so I put them here.
You can still use welder to repair wheels in inventory. There is no way to define how items are repaired.
Drum rollers and train wheels are left unchanged.
The save conversion will leave steerable wheels on vehicles from old saves. This will not cause any problems and can be left as is.
Open for value change suggestions.