Any water tiles underground are considered lake or pond or water, depending on size.
Lake water is considered fresh, while sea water is considered brackish. Brackish water can be drunk and used for cooking as usual (with no ill effect), and can be boiled to make salt - 1 salt per kilogram of brackish water. The type, depth, and category of water affects the kind of fish that can be found within.
All surface tiles with a corner underwater (i.e. below the water table height) are marked as water. There is then a fill process, starting at the map borders, marking any connected water tiles as sea; shallow connected tiles (i.e. less than 25 deep) are considered sea shallows.
Once all tiles connected to the borders have been handled, any bodies of water that contiguously cover at least 7 tiles in a row (N-S and E-W) are considered lake tiles. Additional water tiles next to lake tiles (i.e. the lake fills its connected tiles) are also considered lake tiles. Any lake tiles that are less than 25 dirts deep are marked as lake shallows, and any sea shallows tiles that are closer to a lake tile than a sea tile are converted to lake shallows.
For any remaining bodies of water tiles, if the body is a contiguous body of 2 in a row (N-S and E-W), the tiles are converted to pond tiles, along with any adjacent water tiles (i.e. the pond fills its connected tiles). Note that pond radius is intended to be smaller than lake radius, so a pond is a body of water that’s too small to be a lake (but still large enough to be a pond: 2-6 tiles in radius).
Any tiles in caves (i.e. underground) with a corner under water is then marked as water. Large contiguous bodies of underground water are then marked as lake or pond, depending on size, in the same way as above-ground lake and pond tiles.
Notes:
*For a list of possible containers for water and other liquids, see the [[container|containers page]].
*Water can also be found at certain fixed locations by using a [[pendulum]] to perform [[water divining|divination]]. Water sources found in this manner must be accessed by placing a [[fountain]] or [[well]] on the spot.
*"Rare Water" is a possible item. Its special features are still unknown.