-
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
[RDY] Workbenches #29434
[RDY] Workbenches #29434
Conversation
Re
|
I think I'll only get to bullets 1 and part of 2 in this pr, it's already way bigger than I planned. I'll move the rest to #29210. The changes I just pushed implement a simple bonus based on workbench stats that are now defined in json. The current numbers I put it are really just placeholders, and should not be reviewed yet. I also plan to replace the flat 10% penalty for exceeding the allowed volume/mass with a linear fall off, or something similar, details tbd. |
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.
Workbench functions are basically the same for the furniture and for the vehicle part. I believe it's best to rewrite the function with checks for furniture and for vehicle part.
Been on my todo for a while, just wanted to get this working before refining it. It's almost to that stage though. Thanks for the reviews! |
Alright, the code is done for this, I just want to get some feedback on the (now jsonized) workbench stats before this gets merged. |
Pardon my language, but, FUCK YEAH |
- also fix simple bug with workbench iexamine - vehicle workbenches currently have no use, will be added in following commits
- Add vehicle examine function - Add craft from vehicle infrastructure - Add WORKBENCH1/2/3 flags
- Various small fixes and tweaks - Add documentation of iexamine and flags
- Use bounded lerp to calculate multiplier from mass/volume - Jsonize workbench stats - Numbers still need adjustment, but framework is in place - Fix crash on closing out of craft selection without selecting a craft to work on - Apply copyedits from code review - Remove vehicle::use_workbench and merge with iexamine - Remove outdated flags - Update documentation
- Add more sensible workbench stats - Apply more copyedits from code review
- Also fix some odd merge error - Astyle
- add prompt on starting craft - must wield or work from workbench/ground - Update crafting test to take this into account - jsonize empty hands/ground workbench stats - Allow selection of adjacent workbench when starting craft - Slight refactor of adjacent furn checks in map:: - Templatize return_true
Alright I think that's enough tweaking, I'm going to call this ready to go. If the stats need to be tweaked in the future it's all jsonized anyways. |
Is it intended that a tourist table can't be used as a workbench? |
Seems reasonable that it could function as an OK workbench, feel free to open an issue or pull request for that, all it would take is a few lines of JSON. |
Summary
SUMMARY: Content "Add workbench functionality."
Purpose of change
Provide a way to work on very large/heavy in progress crafts.
Provide a convenient place to store long term crafts and return to them later.
Provide a small crafting bonus for a good crafting environment.
Fixes #29500.
Fixes #29442.
Describe the solution
Get feedback on workbench stats.Stats are easy to tweak later as they're all jsonized. They may not be perfect right now, but they are close enough imo and I'd rather get this merged so I can move forward with the next crafting changes