-
Notifications
You must be signed in to change notification settings - Fork 277
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
feat(content): Allow multiple required bionics #5496
feat(content): Allow multiple required bionics #5496
Conversation
Autofix has formatted code style violation in this PR. I edit commits locally (e.g: git, github desktop) and want to keep autofix
I do not want the automated commit
If you don't do this, your following commits will be based on the old commit, and cause MERGE CONFLICT. |
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.
- Compiled and load-tested.
- Started as an industrial cyborg, no odd behavior found.
hecc |
I knew there'd be some weird string stuff, I'll go fix that |
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.
Tests pass now, compiled and load-tested as before and still works as expected. Also loaded up and tested that it won't let me install the muscle CBM without augmenting my skeleton.
Checklist
Required
main
so it won't cause conflict when updatingmain
branch later.Optional
doc/
folder.Purpose of change
Add on to #5484 by allowing multiple bionics to be required to install a new bionic.
Describe the solution
Essentially the same as Zlorthishen's solution, just edited to also work with a list of required bionics.
Describe alternatives you've considered
Leave it the way it is.
Testing
1.) Create a world and character
2.) Give the character debug bionic installation
3.) Spawn an autodoc and couch
4.) Spawn Hydraulic Muscles and Skeletal Bracing
5.) Try to install Muscles before Bracing, see warning popup
6.) Install Bracing, then Muscles, then try to uninstall bracing, see warning popup
7.) Uninstall Muscles, then Bracing, as normal
You can also create a test bionic that requires multiple bionics to check the new functionality. I here are the objects I used for that:
bionic json
bionic item json
Additional context