-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Glue and lube refactor #26765
base: master
Are you sure you want to change the base?
Glue and lube refactor #26765
Conversation
This is gonna be a learning experience... 😭 |
…kind of technically.
Basic structure is done. Its really messy now but it works for the most part. Still a lot of work to be done probably ~40-50% complete. |
@metalgearsloth Can you point me to a component and system that can handle pausing correctly? So far, all the ones I found don't seem to do anything different than what glue is currently doing which doesn't handle pausing. |
RSI Diff Bot; head commit 0930ced merging into f476526 Resources/Textures/Objects/Consumable/Drinks/glue-tube.rsi
Resources/Textures/Objects/Consumable/Drinks/lube-tube.rsi
Resources/Textures/Objects/Consumable/Drinks/crazy_glue_bottle.rsi
Resources/Textures/Objects/Consumable/Drinks/squeeze_bottle.rsi
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
About the PR
Refactor of the glue and lube things. Even I can tell its very unrobust at the moment 😆. The names are all very confusing and there is a lot of copy and pasting going on.
Make generic "reagent on item" system that works for both lube and glue or any other future reagent that can be applied to items and works in a similar way.(I need help to get this working.)Have glue make objects sticky? (Sticky component?)(I don't quite know how this would work and is not worth the time to get working)Add ability to remove with soap!(Because of the forensics system there isn't a clean way of doing this and I don't have the mental capacity to handle it right now 😆)Syringes are able to apply reagents to items.(I don't think its necessary and makes the squeeze bottle more unique!)Resolves: #18683
Why / Balance
The code was very messy and needed to be redone (Lots of copy and paste and many other bad things).
Technical details
Removed all the old glue and lube code. Now there is a generic squeeze bottle that can hold any reagent. When you try to apply something with the squeeze bottle it will add the correct components (Glue and or lube). The system also allows for new reagents to be stuck to items (Only a little bit (~5 lines) of copy and pasting is required 😆).
Media
demo.mp4
(There are more things that I tested but I can't be bothered to make 100 videos)
Breaking changes
I changed the IDs of the old glue and lube bottles. If a map uses them then something bad will happen probably?
Changelog
🆑 Beck Thompson