-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Un-Hardcode water evaporation & mopping behavior #33399
base: master
Are you sure you want to change the base?
Conversation
Please make sure AbsorbentSystem only works with water in the case you add more regents with evaporation Unless you want to mop blood with puke. |
Tests were failing for unrelated reasons but I have now fixed it, yes. |
@Zap527 Can you please make holy water and ice also work the same as water in this PR? |
I could, but I feel like this might be something which would be better suited for a follow-up PR. I don't think currently ice and holy water evaporate? Ideally I don't change game behavior with this. |
About the PR
Made evaporation and mopping logic more generic
Why / Balance
Water = "water"
On a more serious note, this is needed for downstreams, and hardcoding behavior with magic strings is not good.
Technical details
Added two new parameters to reagents, which determines if they evaporate and if they can be used to mop or not.
Removed hardcoded water evaporation and mopping behavior and made it depend on the reagent's evaporation/mopping parameter.
Requirements
Breaking changes
EvaporationReagents
was removed in favor ofGetEvaporatingReagents(solution)
andGetMoppableReagents(solution)
Changelog
Not player facing