-
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
Overhaul vehicle part installation [RDY] #16280
Merged
Merged
Changes from 18 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
976291c
Rework vehicle_selector to traverse all parts
mugling 7a9a898
Drop function deprecated by visitable interface
mugling dbfe267
Deprecate item::has_quality
mugling d169da4
Visitable interface supports tool qualities
mugling ef8e8b5
Vehicle parts can provide tool qualities
mugling 8bab031
Implement max_quality for visitable interface
mugling 13b09de
Encapsulate lifting strength requirements
mugling be1e9ac
Overhaul installation requirements
mugling 3ea8809
Add folding engine crane
mugling 4bb4ef8
Prevent lifting ourselves
mugling b7adbd2
Fix broken conditional
mugling 83fb8b4
Rescale TOOL_LIFT_FACTOR to 500kg per unit
mugling 0799db1
Add different types of crane
mugling 6f7bddd
Support lifting of vehicles when changing wheels
mugling 284e767
Rescale JACK capacities
mugling 8658093
Cap JACK requirements for arbitrarily large vehicles
mugling d2bd29e
Short-circuit evaluation is more efficient
mugling fad5c2b
Simplify display of requirements
mugling 7768b3c
Fix visitable interface
mugling 826c124
Provide separate values for JACK
mugling 54963e0
Add excavator and overhaul public works vehicles
mugling 9ec51a8
Fix calculation of maximum installation weight
mugling ccf460d
Add makeshift jack
mugling 59dae1d
Increase weights of some parts
mugling fbc1a63
Increase range of vehicle cranes
mugling 4a49134
Fix astyle
mugling c047287
Support dumping of vehicle weights
mugling 06d24c0
Increase HP for heavy duty frames
mugling cbe6fed
Support dumping of vehicle parts
mugling 6ac9fa8
Rebalance crafting rigs
mugling 8810013
Adjust carrying/lifting weights
mugling 50b9603
Fix regression of DIG qualities
mugling e731f45
Fix visitable<T>::max_quality() when quality not found
mugling 7899828
Final balancing of craft rigs
mugling f537def
Fix positional format string
mugling c382737
Defang changes
mugling File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[ | ||
{ | ||
"id": "cantilever_medium", | ||
"type": "GENERIC", | ||
"category": "veh_parts", | ||
"name": "steel boom", | ||
"description": "A large rigid steel boom. If attached to a frame it could be used for lifting.", | ||
"price": 23400, | ||
"weight": 31600, | ||
"volume": 50, | ||
"material": "steel", | ||
"symbol": "&", | ||
"color": "dark_gray" | ||
}, | ||
{ | ||
"id": "cantilever_small", | ||
"type": "GENERIC", | ||
"category": "veh_parts", | ||
"name": "telescopic cantilever", | ||
"description": "A small steel telescoping cantilever. If attached to a frame it could be used for lifting.", | ||
"price": 7900, | ||
"weight": 12000, | ||
"volume": 12, | ||
"material": "steel", | ||
"symbol": "&", | ||
"color": "dark_gray" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[ | ||
{ | ||
"result": "cantilever_medium", | ||
"type" : "recipe", | ||
"category": "CC_OTHER", | ||
"subcategory": "CSC_OTHER_VEHICLE", | ||
"skill_used": "mechanics", | ||
"skills_required": [ "fabrication", 3 ], | ||
"difficulty": 5, | ||
"time": 360000, | ||
"book_learn": [ [ "textbook_fabrication", 6 ] , [ "textbook_mechanics", 5 ] ], | ||
"qualities": [ | ||
{ "id": "HAMMER", "level": 2 }, | ||
{ "id": "SAW_M", "level": 1 }, | ||
{ "id": "WRENCH", "level": 2 } | ||
], | ||
"tools": [ | ||
[ [ "goggles_welding", -1 ] ], | ||
[ [ "welder", 100 ], [ "welder_crude", 150 ], [ "toolset", 150 ] ] | ||
], | ||
"components": [ | ||
[ [ "pipe", 32 ] ], | ||
[ [ "steel_chunk", 8 ], [ "scrap", 24 ] ], | ||
[ [ "chain", 1 ] ] | ||
] | ||
}, | ||
{ | ||
"result": "cantilever_small", | ||
"type" : "recipe", | ||
"category": "CC_OTHER", | ||
"subcategory": "CSC_OTHER_VEHICLE", | ||
"skill_used": "mechanics", | ||
"skills_required": [ "fabrication", 2 ], | ||
"difficulty": 2, | ||
"time": 60000, | ||
"book_learn": [ [ "textbook_fabrication", 4 ] , [ "textbook_mechanics", 2 ] , [ "manual_mechanics", 2 ] ], | ||
"qualities": [ | ||
{ "id": "HAMMER", "level": 2 }, | ||
{ "id": "SAW_M", "level": 1 }, | ||
{ "id": "WRENCH", "level": 2 } | ||
], | ||
"tools": [ | ||
[ [ "goggles_welding", -1 ] ], | ||
[ [ "welder", 50 ], [ "welder_crude", 75 ], [ "toolset", 75 ] ] | ||
], | ||
"components": [ | ||
[ [ "pipe", 8 ] ], | ||
[ [ "steel_chunk", 2 ], [ "scrap", 6 ] ], | ||
[ [ "wire", 8 ] ] | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5733,4 +5733,4 @@ | |
{"item": "scrap", "count": [2,6]} | ||
] | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[ | ||
{ | ||
"id": "crane_medium", | ||
"type": "vehicle_part", | ||
"name": "boom crane", | ||
"item": "cantilever_medium", | ||
"location": "structure", | ||
"symbol": "=", | ||
"color": "light_gray", | ||
"broken_symbol": "*", | ||
"broken_color": "light_blue", | ||
"difficulty": 5, | ||
"durability": 200, | ||
"qualities": [ [ "LIFT", 4 ] ], | ||
"flags" : [ "TOOL_WRENCH", "PROTRUSION", "OBSTACLE", "UNMOUNT_ON_DAMAGE" ], | ||
"breaks_into": [ | ||
{ "item": "pipe", "count": [ 8, 32 ] }, | ||
{ "item": "scrap", "count": [ 8, 24 ] } | ||
] | ||
}, | ||
{ | ||
"id": "crane_small", | ||
"type": "vehicle_part", | ||
"name": "telescopic crane", | ||
"item": "cantilever_small", | ||
"location": "center", | ||
"symbol": "=", | ||
"color": "light_gray", | ||
"broken_symbol": "*", | ||
"broken_color": "light_blue", | ||
"folded_volume": 12, | ||
"difficulty": 2, | ||
"durability": 100, | ||
"qualities": [ [ "LIFT", 1 ] ], | ||
"flags" : [ "TOOL_WRENCH", "PROTRUSION", "OBSTACLE", "FOLDABLE" ], | ||
"breaks_into": [ | ||
{ "item": "pipe", "count": [ 2, 8 ] }, | ||
{ "item": "scrap", "count": [ 2, 6 ] } | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why not specify JACK explicitly?
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.
That's a very good point