For something that's pretty central to survival, water purification is quite haphazard.
Some cleanups we can do:
To be more concrete, I'm proposing:
New Items:
cloudy water (obviously dirty, probably unsafe, from rivers)
toxic water (obviously dirty water from an obviously dangerous source)
sterilized water (flat or chemical-tasting water, biologically safe, output of boiling or chemical purification, lower morale boost than clean water)
water test kit (item used to detect chemical contamination in water)
New item attributes:
bio_contamination
chem_contamination
Code changes:
Enhancing recipe code to copy contamination from inputs to output
Enhance recipes to indicate whether they transfer contamination
Item changes:
Let iodine be used to sterilize (percent chance?) water.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
If water from the same source (river/lake/etc) retains the same cleanliness, etc when I get more of it later, then yeah, this sounds interesting. Nontrivial chance for tedium though, I'm thinking?
Reducing open issues to those which are (or will) be actively worked upon helps us focus our efforts. This issue has not been deleted - it still appears in searches and if it contains relevant information you are encouraged to continue to link to it.
It should be reopened if it can be reproduced in the current build. You can obtain the most recent copy here. Please check there is not a more recent report of this bug before doing so. If no more recent report exists you should continue the discussion in this issue.
If the consensus was that the idea was good you could consider submitting an implementation via a PR. If you want to comment further please do so here as opposed to opening a new issue. Before posting check nobody has already made the same point and consider whether your comments are likely to lead to an implementation. If you have doubts about either consider instead voting for the issue
Then either assign it to yourself or if you are unable to do so claim it via adding a comment. Please don't assign others or make a general request for action.
Here's my take on water and its sources:
Questions:
I agree with the types of water laid out by Kevin. There's been recent upgrades to recipes to track calories from the base ingredients and will carry the (rotten) effect across; will that system work for water contamination? (See here) Will the types of contamination have different effects? Requiring different purification types? I don't know if there were as many options for water purification when Kevin proposed this. As it stands, boiling, the water purification tablets, charcoal water filter and the electronic water filter all would deal with biological contaminants, but only a distillation system like a still or a solar distiller would consistently separate the chemical contaminants from polluted water. Some chemicals have a lower boiling point than water, so even those wouldn't be removed IRL, but we might handwave that issue.
This issue has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:
https://discourse.cataclysmdda.org/t/why-are-swamps-in-this-game-filled-with-salt-water/25349/6
Most helpful comment
Here's my take on water and its sources:
a. Still water would be clear by default. Unless there's a current to keep it moving solid particles would drop to the bottom and even sewage would settle out within a few days of the sewer system ceasing to function. This would have no effect on its potability.
b. Flowing water would be cloudy, but not inherently any more unsafe than still water in the region. How to model that variation in potability effectively is an open question, discussed below.
Questions:
I agree with the types of water laid out by Kevin. There's been recent upgrades to recipes to track calories from the base ingredients and will carry the (rotten) effect across; will that system work for water contamination? (See here) Will the types of contamination have different effects? Requiring different purification types? I don't know if there were as many options for water purification when Kevin proposed this. As it stands, boiling, the water purification tablets, charcoal water filter and the electronic water filter all would deal with biological contaminants, but only a distillation system like a still or a solar distiller would consistently separate the chemical contaminants from polluted water. Some chemicals have a lower boiling point than water, so even those wouldn't be removed IRL, but we might handwave that issue.