Unhardcode water_source
to allow arbitrary liquid fields
#75786
Labels
[C++]
Changes (can be) made in C++. Previously named `Code`
Fields / Furniture / Terrain / Traps
Objects that are part of the map or its features.
Good First Issue
This is a good first issue for a new contributor
<Suggestion / Discussion>
Talk it out before implementing
Is your feature request related to a problem? Please describe.
Right now only sewage, liquid cacao(?!), water and salt water have working liquid sources because they are hardcoded:
Cataclysm-DDA/src/map.cpp
Lines 5772 to 5795 in 711754c
Solution you would like.
Rename
water_source
intoliquid_source
. Do mind the compatibility as some things do usewater_source
and must be adapted for the new thing. Make it an examine actor and allow an argument to specify the liquid item to be dispensed.Also handle finite liquid sources appropriately.
Describe alternatives you have considered.
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: