Description
All water from natural sources is polluted and must be purified.
NOT Server side only (clients do need to install the mod)
EAC safe (clients and servers do not need to disable Easy Anti-Cheat)
Features
- All natural water sources yield polluted water instead of murky water. Polluted water takes away 15 health, and has a near-certain chance of giving you dysentery. Polluted water can not be boiled, and must be purified to murky water.
- Adds water purification tablets. Tablets can be crafted in either a campfire with a beaker, or a chemistry station. The recipe unlocks with the recipe for herbal antibiotics. They are also a rare find in medical loot, and can be bought at traders.
- Purification tablets require bleach, which is new to the game. Bleach cannot be crafted, but can be found in loot in the same places as acid.
- Glass jars are back, but can only be filled with polluted water. Jars can be looted and crafted, but are not returned when liquids are consumed. This is for compatibility with other consumables in A21, and for balance reasons.
- Snowballs can be turned into polluted water using a glass jar at a campfire.
- Dew collectors do not produce heat.
Technical Details
This mod uses XPath to modify XML files, and does not have custom C# code. It should be compatible with EAC.
However, the mod also includes new non-XML resources (new icons). These resources are not pushed from server to client. For this reason, the mod should be installed on both servers and clients.
Modifying Dew Collectors
It is possible to make dew collectors collect polluted water without a water filter, and murky water with a water filter.
That was not done in this mod, because it is believed to remove any reason to use dew collectors at all.
But, you may disagree. If so, you can un-comment this XML in the mod’s blocks.xml file:
<set xpath="//block[@name='cntDewCollector']/property[@name='ConvertToItem']/@value">drinkJarPollutedWater</set>
<set xpath="//block[@name='cntDewCollector']/property[@name='ModdedConvertToItem']/@value">drinkJarRiverWater</set>
If you do this, you may also want to change the color of the “fill” icons in the dew collector. There is commented-out code to do this in the XUi/controls.xml file:
<setattribute xpath="//dewcollector_stack/rect[@controller='DewCollectorStack']" name="standard_fill_color">118,161,94,255</setattribute>
<setattribute xpath="//dewcollector_stack/rect[@controller='DewCollectorStack']" name="modded_fill_color">202,190,33,255</setattribute>
This sets the standard fill color to the same off-green that is used for polluted water, and the modified (filtered) fill color to the same off-yellow color that is used for murky water.
You can change those colors if you like. The format is RGBA (Red,Green,Blue,Alpha transparency), 0-255.
Icons and Resources
Starting with the 2.x version, a folder called Source has been added to the mod. This contains all of the source files used to make the icons.
The new icons were created using Gimp.
Contents:
- Icons – the Gimp source files for the 2.x icons.
- Icons/1.x – the original 1.x Polluted Water icon and Gimp source file, for those who want them.
The icon images are derivative works of The Fun Pimps original images. No rights are claimed over these images.
You may only re-use the images under the same terms and conditions that you would use the original images from The Fun Pimps.
If you are using those derivative works under TFP’s terms and conditions, then you don’t need to ask permission.
However, the bleach bottle icon is released under a CC0 (public domain) license, and may be used freely. The bottle itself is from a photo taken. The logo comes from a bleach bottle image that is also released under a CC0 license: https://openclipart.org/detail/29000/bleach-bottle
Changelogs
Version 2.0.1.0
Polluted Water has been updated to 7D2D 2.x versions. It has been tested with 2.0 and 2.1.
Changes:
- Updated icons for empty jars and polluted water
- Stack sizes of murky water, polluted water, and empty jars set to 10 to match other drinks
- Water purification tablets unlocked with Fort Bites, not herbal antibiotics
- Loot rebalance
New features:
- New prefab/mesh for empty jars (for first-person view when holding)
- Added commented-out code to have the dew collector collect murky water
- Compatibility with Bad Medicine mod
- New localization for empty jars
Download
V2
DOWNLOAD for V2 (9,2 MB)
V1
DOWNLOAD for V1 (4,9 MB)
The forum topic of the mod is here.
Credits: khzmusik
If you have any questions or have any problems/bugs, please use the support link (Discord, Forum Topic, GitHub Issues, etc.) in the post. If there is no support link in the post, please use the comments section.